repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/xml/XmlUtils.java
XmlUtils.getChildTextList
public static List getChildTextList(Element elem, String childTagName) { NodeList nodeList = elem.getElementsByTagName(childTagName); int len = nodeList.getLength(); if (len == 0) { return Collections.EMPTY_LIST; } List list = new ArrayList(len); ...
java
public static List getChildTextList(Element elem, String childTagName) { NodeList nodeList = elem.getElementsByTagName(childTagName); int len = nodeList.getLength(); if (len == 0) { return Collections.EMPTY_LIST; } List list = new ArrayList(len); ...
[ "public", "static", "List", "getChildTextList", "(", "Element", "elem", ",", "String", "childTagName", ")", "{", "NodeList", "nodeList", "=", "elem", ".", "getElementsByTagName", "(", "childTagName", ")", ";", "int", "len", "=", "nodeList", ".", "getLength", "...
Return list of content Strings of all child elements with given tag name. @param elem @param childTagName @return List
[ "Return", "list", "of", "content", "Strings", "of", "all", "child", "elements", "with", "given", "tag", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/xml/XmlUtils.java#L87-L103
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java
PubSubInputHandler.sendNackMessage
@Override public void sendNackMessage( SIBUuid8 upstream, SIBUuid12 destUuid, SIBUuid8 busUuid, long startTick, long endTick, ...
java
@Override public void sendNackMessage( SIBUuid8 upstream, SIBUuid12 destUuid, SIBUuid8 busUuid, long startTick, long endTick, ...
[ "@", "Override", "public", "void", "sendNackMessage", "(", "SIBUuid8", "upstream", ",", "SIBUuid12", "destUuid", ",", "SIBUuid8", "busUuid", ",", "long", "startTick", ",", "long", "endTick", ",", "int", "priority", ",", "Reliability", "reliability", ",", "SIBUui...
Called by one of our input stream data structures when we don't have any info for a tick and need to nack upstream. @param startTick @param endTick
[ "Called", "by", "one", "of", "our", "input", "stream", "data", "structures", "when", "we", "don", "t", "have", "any", "info", "for", "a", "tick", "and", "need", "to", "nack", "upstream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java#L450-L487
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java
PubSubInputHandler.processAckExpected
private void processAckExpected(ControlAckExpected ackExpMsg) throws SIResourceException { // This is called by a PubSubOutputHandler when it finds Unknown // ticks in it's own stream and need the InputStream to resend them if (TraceComponent.isAnyTracingEnabled() && tc....
java
private void processAckExpected(ControlAckExpected ackExpMsg) throws SIResourceException { // This is called by a PubSubOutputHandler when it finds Unknown // ticks in it's own stream and need the InputStream to resend them if (TraceComponent.isAnyTracingEnabled() && tc....
[ "private", "void", "processAckExpected", "(", "ControlAckExpected", "ackExpMsg", ")", "throws", "SIResourceException", "{", "// This is called by a PubSubOutputHandler when it finds Unknown", "// ticks in it's own stream and need the InputStream to resend them", "if", "(", "TraceComponen...
Process an AckExpected message. @param ackExpMsg The AckExpected message
[ "Process", "an", "AckExpected", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java#L633-L660
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java
PubSubInputHandler.processNackWithReturnValue
private long processNackWithReturnValue(ControlNack nackMsg) throws SIResourceException { // This is called by a PubSubOutputHandler when it finds Unknown // ticks in it's own stream and need the InputStream to resend them if (TraceComponent.isAnyTracingEnabled() && tc.is...
java
private long processNackWithReturnValue(ControlNack nackMsg) throws SIResourceException { // This is called by a PubSubOutputHandler when it finds Unknown // ticks in it's own stream and need the InputStream to resend them if (TraceComponent.isAnyTracingEnabled() && tc.is...
[ "private", "long", "processNackWithReturnValue", "(", "ControlNack", "nackMsg", ")", "throws", "SIResourceException", "{", "// This is called by a PubSubOutputHandler when it finds Unknown", "// ticks in it's own stream and need the InputStream to resend them", "if", "(", "TraceComponent...
Process a nack from a PubSubOutputHandler. @param nack The nack message from one of our PubSubOutputHandlers.
[ "Process", "a", "nack", "from", "a", "PubSubOutputHandler", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java#L667-L707
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java
PubSubInputHandler.remotePut
private void remotePut( MessageItem msg, SIBUuid8 sourceMEUuid) throws SIResourceException, SIDiscriminatorSyntaxException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
private void remotePut( MessageItem msg, SIBUuid8 sourceMEUuid) throws SIResourceException, SIDiscriminatorSyntaxException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "private", "void", "remotePut", "(", "MessageItem", "msg", ",", "SIBUuid8", "sourceMEUuid", ")", "throws", "SIResourceException", ",", "SIDiscriminatorSyntaxException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntry...
The remote put method is driven when the producer is remote to this PubSub Input handler. @param msg The inbound data message. @param sourceCellule The cellule from which the message was received. We need this to update the originMap for the inbound stream.
[ "The", "remote", "put", "method", "is", "driven", "when", "the", "producer", "is", "remote", "to", "this", "PubSub", "Input", "handler", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java#L1409-L1477
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java
PubSubInputHandler.remoteToLocalPutSilence
protected void remoteToLocalPutSilence(MessageItem msgItem) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "remoteToLocalPutSilence", new Object[] { msgItem });...
java
protected void remoteToLocalPutSilence(MessageItem msgItem) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "remoteToLocalPutSilence", new Object[] { msgItem });...
[ "protected", "void", "remoteToLocalPutSilence", "(", "MessageItem", "msgItem", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", ...
This is a put message that has oringinated from another ME When there are no matching local consumers we need to write Silence into the stream instead @param msgItem The message to be put. @throws SIResourceException
[ "This", "is", "a", "put", "message", "that", "has", "oringinated", "from", "another", "ME", "When", "there", "are", "no", "matching", "local", "consumers", "we", "need", "to", "write", "Silence", "into", "the", "stream", "instead" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java#L1646-L1660
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java
PubSubInputHandler.matchMessage
private MessageProcessorSearchResults matchMessage(MessageItem msg) throws SIDiscriminatorSyntaxException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "matchMessage", ...
java
private MessageProcessorSearchResults matchMessage(MessageItem msg) throws SIDiscriminatorSyntaxException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "matchMessage", ...
[ "private", "MessageProcessorSearchResults", "matchMessage", "(", "MessageItem", "msg", ")", "throws", "SIDiscriminatorSyntaxException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ...
Returns a list of matching OutputHandlers for a particular message. Note that this method takes a MessageProcessorSearchResults object from a pool. This object must be returned by the caller when it is finished with. @param msg @return
[ "Returns", "a", "list", "of", "matching", "OutputHandlers", "for", "a", "particular", "message", ".", "Note", "that", "this", "method", "takes", "a", "MessageProcessorSearchResults", "object", "from", "a", "pool", ".", "This", "object", "must", "be", "returned",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java#L1671-L1712
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java
PubSubInputHandler.restoreFanOut
private boolean restoreFanOut( MessageItemReference ref, boolean commitInsert) throws SIDiscriminatorSyntaxException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable...
java
private boolean restoreFanOut( MessageItemReference ref, boolean commitInsert) throws SIDiscriminatorSyntaxException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable...
[ "private", "boolean", "restoreFanOut", "(", "MessageItemReference", "ref", ",", "boolean", "commitInsert", ")", "throws", "SIDiscriminatorSyntaxException", ",", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ...
Restore fan out of the given message to subscribers. Perform match asks the match space for the matching set of output handlers based on the topic of the message. It will send messages to the PubSubOutput handlers for delivery to remote ME's @param msg Reference to the message object @param commitInsert If the messa...
[ "Restore", "fan", "out", "of", "the", "given", "message", "to", "subscribers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java#L1983-L2083
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java
PubSubInputHandler.addProxyReference
private MessageItemReference addProxyReference(MessageItem msg, MessageProcessorSearchResults matchingPubsubOutputHandlers, TransactionCommon tran) throws SIResourceException { if (TraceComponent.isAnyTraci...
java
private MessageItemReference addProxyReference(MessageItem msg, MessageProcessorSearchResults matchingPubsubOutputHandlers, TransactionCommon tran) throws SIResourceException { if (TraceComponent.isAnyTraci...
[ "private", "MessageItemReference", "addProxyReference", "(", "MessageItem", "msg", ",", "MessageProcessorSearchResults", "matchingPubsubOutputHandlers", ",", "TransactionCommon", "tran", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracin...
Add a msg reference to the proxy subscription reference stream. @param msg @param tran @throws SIResourceException if there is a message store resource problem @throws SIStoreException if there is a general problem with the message store.
[ "Add", "a", "msg", "reference", "to", "the", "proxy", "subscription", "reference", "stream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java#L2188-L2244
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java
PubSubInputHandler.setPropertiesInMessage
public void setPropertiesInMessage(JsMessage jsMsg, SIBUuid12 destinationUuid, SIBUuid12 producerConnectionUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setPropertiesInMessag...
java
public void setPropertiesInMessage(JsMessage jsMsg, SIBUuid12 destinationUuid, SIBUuid12 producerConnectionUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setPropertiesInMessag...
[ "public", "void", "setPropertiesInMessage", "(", "JsMessage", "jsMsg", ",", "SIBUuid12", "destinationUuid", ",", "SIBUuid12", "producerConnectionUuid", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(...
Sets properties in the message that are common to both links and non-links. @param jsMsg @param destinationUuid @param producerConnectionUuid @author tpm
[ "Sets", "properties", "in", "the", "message", "that", "are", "common", "to", "both", "links", "and", "non", "-", "links", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubInputHandler.java#L2968-L2998
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.cdi/src/com/ibm/ws/microprofile/faulttolerance/cdi/config/BulkheadConfig.java
BulkheadConfig.validate
@Override public void validate() { //validate the parameters String target = getTargetName(); if (value() < 1) { throw new FaultToleranceDefinitionException(Tr.formatMessage(tc, "bulkhead.parameter.invalid.value.CWMFT5016E", "value ", value(), target)); } //valida...
java
@Override public void validate() { //validate the parameters String target = getTargetName(); if (value() < 1) { throw new FaultToleranceDefinitionException(Tr.formatMessage(tc, "bulkhead.parameter.invalid.value.CWMFT5016E", "value ", value(), target)); } //valida...
[ "@", "Override", "public", "void", "validate", "(", ")", "{", "//validate the parameters", "String", "target", "=", "getTargetName", "(", ")", ";", "if", "(", "value", "(", ")", "<", "1", ")", "{", "throw", "new", "FaultToleranceDefinitionException", "(", "T...
Validate Bulkhead configure and make sure the value and waitingTaskQueue must be greater than or equal to 1.
[ "Validate", "Bulkhead", "configure", "and", "make", "sure", "the", "value", "and", "waitingTaskQueue", "must", "be", "greater", "than", "or", "equal", "to", "1", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.cdi/src/com/ibm/ws/microprofile/faulttolerance/cdi/config/BulkheadConfig.java#L50-L63
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache.monitor/src/com/ibm/ws/cache/stat/internal/CacheStatsModule.java
CacheStatsModule.updateCacheSizes
public void updateCacheSizes(long max, long current) { final String methodName = "updateCacheSizes()"; if (tc.isDebugEnabled() && null != _maxInMemoryCacheEntryCount && null != _inMemoryCacheEntryCount) { if (max != _maxInMemoryCacheEntryCount.getCount() && _inMemoryCacheEntryCount.getCoun...
java
public void updateCacheSizes(long max, long current) { final String methodName = "updateCacheSizes()"; if (tc.isDebugEnabled() && null != _maxInMemoryCacheEntryCount && null != _inMemoryCacheEntryCount) { if (max != _maxInMemoryCacheEntryCount.getCount() && _inMemoryCacheEntryCount.getCoun...
[ "public", "void", "updateCacheSizes", "(", "long", "max", ",", "long", "current", ")", "{", "final", "String", "methodName", "=", "\"updateCacheSizes()\"", ";", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", "&&", "null", "!=", "_maxInMemoryCacheEntryCount", ...
Updates statistics using two supplied arguments - maxInMemoryCacheSize and currentInMemoryCacheSize. @param max Maximum # of entries that can be stored in memory @param current Current # of in memory cache entries
[ "Updates", "statistics", "using", "two", "supplied", "arguments", "-", "maxInMemoryCacheSize", "and", "currentInMemoryCacheSize", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache.monitor/src/com/ibm/ws/cache/stat/internal/CacheStatsModule.java#L635-L651
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache.monitor/src/com/ibm/ws/cache/stat/internal/CacheStatsModule.java
CacheStatsModule.onCacheHit
public void onCacheHit(String template, int locality) { final String methodName = "onCacheHit()"; CacheStatsModule csm = null; if ((csm = getCSM(template)) == null) { return; } if (tc.isDebugEnabled()) Tr.debug(tc, methodName + " cacheName=" + _sCacheName...
java
public void onCacheHit(String template, int locality) { final String methodName = "onCacheHit()"; CacheStatsModule csm = null; if ((csm = getCSM(template)) == null) { return; } if (tc.isDebugEnabled()) Tr.debug(tc, methodName + " cacheName=" + _sCacheName...
[ "public", "void", "onCacheHit", "(", "String", "template", ",", "int", "locality", ")", "{", "final", "String", "methodName", "=", "\"onCacheHit()\"", ";", "CacheStatsModule", "csm", "=", "null", ";", "if", "(", "(", "csm", "=", "getCSM", "(", "template", ...
Updates statistics for the cache hit case. @param template the template of the cache entry. The template cannot be null for Servlet cache. @param locality Whether the miss was local or remote
[ "Updates", "statistics", "for", "the", "cache", "hit", "case", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache.monitor/src/com/ibm/ws/cache/stat/internal/CacheStatsModule.java#L758-L800
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache.monitor/src/com/ibm/ws/cache/stat/internal/CacheStatsModule.java
CacheStatsModule.onCacheMiss
public void onCacheMiss(String template, int locality) { final String methodName = "onCacheMiss()"; CacheStatsModule csm = null; if ((csm = getCSM(template)) == null) { return; } if (tc.isDebugEnabled()) Tr.debug(tc, methodName + " cacheName=" + _sCacheNa...
java
public void onCacheMiss(String template, int locality) { final String methodName = "onCacheMiss()"; CacheStatsModule csm = null; if ((csm = getCSM(template)) == null) { return; } if (tc.isDebugEnabled()) Tr.debug(tc, methodName + " cacheName=" + _sCacheNa...
[ "public", "void", "onCacheMiss", "(", "String", "template", ",", "int", "locality", ")", "{", "final", "String", "methodName", "=", "\"onCacheMiss()\"", ";", "CacheStatsModule", "csm", "=", "null", ";", "if", "(", "(", "csm", "=", "getCSM", "(", "template", ...
Updates statistics for the cache miss case. @param template the template of the cache entry. The template cannot be null for Servlet cache. @param locality Whether the miss was local or remote
[ "Updates", "statistics", "for", "the", "cache", "miss", "case", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache.monitor/src/com/ibm/ws/cache/stat/internal/CacheStatsModule.java#L810-L823
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache.monitor/src/com/ibm/ws/cache/stat/internal/CacheStatsModule.java
CacheStatsModule.onEntryCreation
public void onEntryCreation(String template, int source) { final String methodName = "onEntryCreation()"; CacheStatsModule csm = null; if ((csm = getCSM(template)) == null) { return; } if (tc.isDebugEnabled()) Tr.debug(tc, methodName + " cacheName=" + _sC...
java
public void onEntryCreation(String template, int source) { final String methodName = "onEntryCreation()"; CacheStatsModule csm = null; if ((csm = getCSM(template)) == null) { return; } if (tc.isDebugEnabled()) Tr.debug(tc, methodName + " cacheName=" + _sC...
[ "public", "void", "onEntryCreation", "(", "String", "template", ",", "int", "source", ")", "{", "final", "String", "methodName", "=", "\"onEntryCreation()\"", ";", "CacheStatsModule", "csm", "=", "null", ";", "if", "(", "(", "csm", "=", "getCSM", "(", "templ...
Updates statistics for the cache entry creation case. @param template the template of the cache entry. The template cannot be null for Servlet cache. @param source whether the invalidation was generated internally or remotely
[ "Updates", "statistics", "for", "the", "cache", "entry", "creation", "case", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache.monitor/src/com/ibm/ws/cache/stat/internal/CacheStatsModule.java#L833-L852
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/jackson/JAXBAnnotationsHelper.java
JAXBAnnotationsHelper.applyElement
private static void applyElement(Annotated member, Schema property) { final XmlElementWrapper wrapper = member.getAnnotation(XmlElementWrapper.class); if (wrapper != null) { final XML xml = getXml(property); xml.setWrapped(true); // No need to set the xml name if the ...
java
private static void applyElement(Annotated member, Schema property) { final XmlElementWrapper wrapper = member.getAnnotation(XmlElementWrapper.class); if (wrapper != null) { final XML xml = getXml(property); xml.setWrapped(true); // No need to set the xml name if the ...
[ "private", "static", "void", "applyElement", "(", "Annotated", "member", ",", "Schema", "property", ")", "{", "final", "XmlElementWrapper", "wrapper", "=", "member", ".", "getAnnotation", "(", "XmlElementWrapper", ".", "class", ")", ";", "if", "(", "wrapper", ...
Puts definitions for XML element. @param member annotations provider @param property property instance to be updated
[ "Puts", "definitions", "for", "XML", "element", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/jackson/JAXBAnnotationsHelper.java#L55-L70
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/jackson/JAXBAnnotationsHelper.java
JAXBAnnotationsHelper.applyAttribute
private static void applyAttribute(Annotated member, Schema property) { final XmlAttribute attribute = member.getAnnotation(XmlAttribute.class); if (attribute != null) { final XML xml = getXml(property); xml.setAttribute(true); setName(attribute.namespace(), attribute...
java
private static void applyAttribute(Annotated member, Schema property) { final XmlAttribute attribute = member.getAnnotation(XmlAttribute.class); if (attribute != null) { final XML xml = getXml(property); xml.setAttribute(true); setName(attribute.namespace(), attribute...
[ "private", "static", "void", "applyAttribute", "(", "Annotated", "member", ",", "Schema", "property", ")", "{", "final", "XmlAttribute", "attribute", "=", "member", ".", "getAnnotation", "(", "XmlAttribute", ".", "class", ")", ";", "if", "(", "attribute", "!="...
Puts definitions for XML attribute. @param member annotations provider @param property property instance to be updated
[ "Puts", "definitions", "for", "XML", "attribute", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/jackson/JAXBAnnotationsHelper.java#L78-L85
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/jackson/JAXBAnnotationsHelper.java
JAXBAnnotationsHelper.setName
private static boolean setName(String ns, String name, Schema property) { boolean apply = false; final String cleanName = StringUtils.trimToNull(name); final String useName; if (!isEmpty(cleanName) && !cleanName.equals(((SchemaImpl) property).getName())) { useName = cleanName...
java
private static boolean setName(String ns, String name, Schema property) { boolean apply = false; final String cleanName = StringUtils.trimToNull(name); final String useName; if (!isEmpty(cleanName) && !cleanName.equals(((SchemaImpl) property).getName())) { useName = cleanName...
[ "private", "static", "boolean", "setName", "(", "String", "ns", ",", "String", "name", ",", "Schema", "property", ")", "{", "boolean", "apply", "=", "false", ";", "final", "String", "cleanName", "=", "StringUtils", ".", "trimToNull", "(", "name", ")", ";",...
Puts name space and name for XML node or attribute. @param ns name space @param name name @param property property instance to be updated @return <code>true</code> if name space and name have been set
[ "Puts", "name", "space", "and", "name", "for", "XML", "node", "or", "attribute", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/jackson/JAXBAnnotationsHelper.java#L105-L128
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/jackson/JAXBAnnotationsHelper.java
JAXBAnnotationsHelper.isAttributeAllowed
private static boolean isAttributeAllowed(Schema property) { if (property.getType() == SchemaType.ARRAY || property.getType() == SchemaType.OBJECT) { return false; } if (!StringUtils.isBlank(property.getRef())) { return false; } return true; }
java
private static boolean isAttributeAllowed(Schema property) { if (property.getType() == SchemaType.ARRAY || property.getType() == SchemaType.OBJECT) { return false; } if (!StringUtils.isBlank(property.getRef())) { return false; } return true; }
[ "private", "static", "boolean", "isAttributeAllowed", "(", "Schema", "property", ")", "{", "if", "(", "property", ".", "getType", "(", ")", "==", "SchemaType", ".", "ARRAY", "||", "property", ".", "getType", "(", ")", "==", "SchemaType", ".", "OBJECT", ")"...
Checks whether the passed property can be represented as node attribute. @param property property instance to be checked @return <code>true</code> if the passed property can be represented as node attribute
[ "Checks", "whether", "the", "passed", "property", "can", "be", "represented", "as", "node", "attribute", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/core/jackson/JAXBAnnotationsHelper.java#L137-L147
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/Attribute.java
Attribute.getInstance
public static Attribute getInstance( Object o) { if (o == null || o instanceof Attribute) { return (Attribute)o; } if (o instanceof ASN1Sequence) { return new Attribute((ASN1Sequence)o); } throw new IllegalArgumentException("u...
java
public static Attribute getInstance( Object o) { if (o == null || o instanceof Attribute) { return (Attribute)o; } if (o instanceof ASN1Sequence) { return new Attribute((ASN1Sequence)o); } throw new IllegalArgumentException("u...
[ "public", "static", "Attribute", "getInstance", "(", "Object", "o", ")", "{", "if", "(", "o", "==", "null", "||", "o", "instanceof", "Attribute", ")", "{", "return", "(", "Attribute", ")", "o", ";", "}", "if", "(", "o", "instanceof", "ASN1Sequence", ")...
return an Attribute object from the given object. @param o the object we want converted. @exception IllegalArgumentException if the object cannot be converted.
[ "return", "an", "Attribute", "object", "from", "the", "given", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/Attribute.java#L37-L51
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelOptions.java
SSLChannelOptions.unregister
synchronized void unregister() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "unregister", this); } if (registration != null) { registration.unregister(); registration = null; } }
java
synchronized void unregister() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "unregister", this); } if (registration != null) { registration.unregister(); registration = null; } }
[ "synchronized", "void", "unregister", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"unregister\"", ",", "this", ")", ";", ...
Remove the service registration Package private.
[ "Remove", "the", "service", "registration", "Package", "private", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelOptions.java#L156-L164
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/TruncatableThrowable.java
TruncatableThrowable.printStackTrace
@Override public void printStackTrace(PrintWriter p) { if (wrapped == null) { p.println("none"); } else { StackTraceElement[] stackElements = getStackTraceEliminatingDuplicateFrames(); // format and print p.println(wrapped); for (int i = ...
java
@Override public void printStackTrace(PrintWriter p) { if (wrapped == null) { p.println("none"); } else { StackTraceElement[] stackElements = getStackTraceEliminatingDuplicateFrames(); // format and print p.println(wrapped); for (int i = ...
[ "@", "Override", "public", "void", "printStackTrace", "(", "PrintWriter", "p", ")", "{", "if", "(", "wrapped", "==", "null", ")", "{", "p", ".", "println", "(", "\"none\"", ")", ";", "}", "else", "{", "StackTraceElement", "[", "]", "stackElements", "=", ...
This method will print a trimmed stack trace to stderr.
[ "This", "method", "will", "print", "a", "trimmed", "stack", "trace", "to", "stderr", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/TruncatableThrowable.java#L68-L102
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/TruncatableThrowable.java
TruncatableThrowable.getStackTraceEliminatingDuplicateFrames
public StackTraceElement[] getStackTraceEliminatingDuplicateFrames() { // If this isn't a cause, there can't be any duplicate frames, so proceed no further if (parentFrames == null) { return getStackTrace(); } if (noduplicatesStackTrace == null) { List<StackTraceE...
java
public StackTraceElement[] getStackTraceEliminatingDuplicateFrames() { // If this isn't a cause, there can't be any duplicate frames, so proceed no further if (parentFrames == null) { return getStackTrace(); } if (noduplicatesStackTrace == null) { List<StackTraceE...
[ "public", "StackTraceElement", "[", "]", "getStackTraceEliminatingDuplicateFrames", "(", ")", "{", "// If this isn't a cause, there can't be any duplicate frames, so proceed no further", "if", "(", "parentFrames", "==", "null", ")", "{", "return", "getStackTrace", "(", ")", "...
Useful for exceptions which are the causes of other exceptions. Gets the stack frames, but not only does it eliminate internal classes, it eliminates frames which are redundant with the parent exception. In the case where the exception is not a cause, it returns a normal exception. If duplicate frames are stripped, it ...
[ "Useful", "for", "exceptions", "which", "are", "the", "causes", "of", "other", "exceptions", ".", "Gets", "the", "stack", "frames", "but", "not", "only", "does", "it", "eliminate", "internal", "classes", "it", "eliminates", "frames", "which", "are", "redundant...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/TruncatableThrowable.java#L211-L239
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/CircuitBreakerRollingWindow.java
CircuitBreakerRollingWindow.record
public void record(CircuitBreakerStateImpl.CircuitBreakerResult result) { boolean isFailure = (result == FAILURE); if (resultCount < size) { // Window is not yet full resultCount++; } else { // Window is full, roll off the oldest result boolean old...
java
public void record(CircuitBreakerStateImpl.CircuitBreakerResult result) { boolean isFailure = (result == FAILURE); if (resultCount < size) { // Window is not yet full resultCount++; } else { // Window is full, roll off the oldest result boolean old...
[ "public", "void", "record", "(", "CircuitBreakerStateImpl", ".", "CircuitBreakerResult", "result", ")", "{", "boolean", "isFailure", "=", "(", "result", "==", "FAILURE", ")", ";", "if", "(", "resultCount", "<", "size", ")", "{", "// Window is not yet full", "res...
Record a result in the rolling window @param result the result to record
[ "Record", "a", "result", "in", "the", "rolling", "window" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/CircuitBreakerRollingWindow.java#L87-L109
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/pool/impl/ViewPoolImpl.java
ViewPoolImpl.deriveViewKey
protected MetadataViewKey deriveViewKey(FacesContext facesContext, UIViewRoot root) { MetadataViewKey viewKey; if (!facesContext.getResourceLibraryContracts().isEmpty()) { String[] contracts = new String[facesContext.getResourceLibraryContracts().size()]; ...
java
protected MetadataViewKey deriveViewKey(FacesContext facesContext, UIViewRoot root) { MetadataViewKey viewKey; if (!facesContext.getResourceLibraryContracts().isEmpty()) { String[] contracts = new String[facesContext.getResourceLibraryContracts().size()]; ...
[ "protected", "MetadataViewKey", "deriveViewKey", "(", "FacesContext", "facesContext", ",", "UIViewRoot", "root", ")", "{", "MetadataViewKey", "viewKey", ";", "if", "(", "!", "facesContext", ".", "getResourceLibraryContracts", "(", ")", ".", "isEmpty", "(", ")", ")...
Generates an unique key according to the metadata information stored in the passed UIViewRoot instance that can affect the way how the view is generated. By default, the "view" params are the viewId, the locale, the renderKit and the contracts associated to the view. @param facesContext @param root @return
[ "Generates", "an", "unique", "key", "according", "to", "the", "metadata", "information", "stored", "in", "the", "passed", "UIViewRoot", "instance", "that", "can", "affect", "the", "way", "how", "the", "view", "is", "generated", ".", "By", "default", "the", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/pool/impl/ViewPoolImpl.java#L174-L189
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/JsonLogHandler.java
JsonLogHandler.modified
public void modified(List<String> newSources) { if (collectorMgr == null || isInit == false) { this.sourcesList = newSources; return; } try { //Old sources ArrayList<String> oldSources = new ArrayList<String>(sourcesList); //Sources ...
java
public void modified(List<String> newSources) { if (collectorMgr == null || isInit == false) { this.sourcesList = newSources; return; } try { //Old sources ArrayList<String> oldSources = new ArrayList<String>(sourcesList); //Sources ...
[ "public", "void", "modified", "(", "List", "<", "String", ">", "newSources", ")", "{", "if", "(", "collectorMgr", "==", "null", "||", "isInit", "==", "false", ")", "{", "this", ".", "sourcesList", "=", "newSources", ";", "return", ";", "}", "try", "{",...
Without osgi, this modified method is called explicility from the update method in JsonTrService @param newSources List of the new source list from config
[ "Without", "osgi", "this", "modified", "method", "is", "called", "explicility", "from", "the", "update", "method", "in", "JsonTrService" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/JsonLogHandler.java#L113-L138
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/StateWriter.java
StateWriter.writingState
public void writingState() { if (!this.writtenState) { this.writtenState = true; this.writtenStateWithoutWrapper = false; this.fast = new FastWriter(this.initialSize); this.out = this.fast; } }
java
public void writingState() { if (!this.writtenState) { this.writtenState = true; this.writtenStateWithoutWrapper = false; this.fast = new FastWriter(this.initialSize); this.out = this.fast; } }
[ "public", "void", "writingState", "(", ")", "{", "if", "(", "!", "this", ".", "writtenState", ")", "{", "this", ".", "writtenState", "=", "true", ";", "this", ".", "writtenStateWithoutWrapper", "=", "false", ";", "this", ".", "fast", "=", "new", "FastWri...
Mark that state is about to be written. Contrary to what you'd expect, we cannot and should not assume that this location is really going to have state; it is perfectly legit to have a ResponseWriter that filters out content, and ignores an attempt to write out state at this point. So, we have to check after the fact t...
[ "Mark", "that", "state", "is", "about", "to", "be", "written", ".", "Contrary", "to", "what", "you", "d", "expect", "we", "cannot", "and", "should", "not", "assume", "that", "this", "location", "is", "really", "going", "to", "have", "state", ";", "it", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/StateWriter.java#L128-L137
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxrs.2.1.common/src/com/ibm/ws/jaxrs20/component/JaxRsServiceActivator.java
JaxRsServiceActivator.registerExtensionProvider
@Reference(name = "extensionProvider", service = ExtensionProvider.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE) protected void registerExtensionProvider(ExtensionProvider provider) { LibertyApplicationBusFactory.getInstance().registerExtensionProvider(provider); ...
java
@Reference(name = "extensionProvider", service = ExtensionProvider.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE) protected void registerExtensionProvider(ExtensionProvider provider) { LibertyApplicationBusFactory.getInstance().registerExtensionProvider(provider); ...
[ "@", "Reference", "(", "name", "=", "\"extensionProvider\"", ",", "service", "=", "ExtensionProvider", ".", "class", ",", "policy", "=", "ReferencePolicy", ".", "DYNAMIC", ",", "cardinality", "=", "ReferenceCardinality", ".", "MULTIPLE", ")", "protected", "void", ...
Register a new extension provier @param provider The extension provider
[ "Register", "a", "new", "extension", "provier" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.1.common/src/com/ibm/ws/jaxrs20/component/JaxRsServiceActivator.java#L107-L110
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/web/EndpointServices.java
EndpointServices.dumpMap
@Trivial private String dumpMap(Map<String, String[]> m) { StringBuffer sb = new StringBuffer(); sb.append(" --- request parameters: ---\n"); Iterator<String> it = m.keySet().iterator(); while (it.hasNext()) { String key = it.next(); String[] values = m.get(ke...
java
@Trivial private String dumpMap(Map<String, String[]> m) { StringBuffer sb = new StringBuffer(); sb.append(" --- request parameters: ---\n"); Iterator<String> it = m.keySet().iterator(); while (it.hasNext()) { String key = it.next(); String[] values = m.get(ke...
[ "@", "Trivial", "private", "String", "dumpMap", "(", "Map", "<", "String", ",", "String", "[", "]", ">", "m", ")", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", ")", ";", "sb", ".", "append", "(", "\" --- request parameters: ---\\n\"", ")", ...
dump parameter map for trace.
[ "dump", "parameter", "map", "for", "trace", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/web/EndpointServices.java#L195-L210
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/RemoteMessageReceiver.java
RemoteMessageReceiver.forwardMessage
private void forwardMessage(AbstractMessage aMessage, SIBUuid8 targetMEUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "forwardMessage", new Object[]{aMessage, targetMEUuid}); if (TraceComponent.isAnyTracingEnabl...
java
private void forwardMessage(AbstractMessage aMessage, SIBUuid8 targetMEUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "forwardMessage", new Object[]{aMessage, targetMEUuid}); if (TraceComponent.isAnyTracingEnabl...
[ "private", "void", "forwardMessage", "(", "AbstractMessage", "aMessage", ",", "SIBUuid8", "targetMEUuid", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(",...
Forwards a message onto a foreign bus @param aMessage @param sourceCellule @param targetCellule
[ "Forwards", "a", "message", "onto", "a", "foreign", "bus" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/RemoteMessageReceiver.java#L653-L702
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.attachAndLockMsg
private boolean attachAndLockMsg(SIMPMessage msgItem, boolean isOnItemStream) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "attachAndLockMsg", ...
java
private boolean attachAndLockMsg(SIMPMessage msgItem, boolean isOnItemStream) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "attachAndLockMsg", ...
[ "private", "boolean", "attachAndLockMsg", "(", "SIMPMessage", "msgItem", ",", "boolean", "isOnItemStream", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")...
Attach and lock a message to this LCP NOTE: Callers to this method will have the JSLocalConsumerPoint locked (and their JSKeyGroup locked if applicable) @param msgItem The message to be attached @param isOnItemStream true if the message being attached is stored on the QP's itemStream
[ "Attach", "and", "lock", "a", "message", "to", "this", "LCP" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L860-L984
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.getAttachedMessage
SIMPMessage getAttachedMessage() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getAttachedMessage", this); SIMPMessage msg = null; //check if there really is a message attached if (_msgAttached) { ...
java
SIMPMessage getAttachedMessage() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getAttachedMessage", this); SIMPMessage msg = null; //check if there really is a message attached if (_msgAttached) { ...
[ "SIMPMessage", "getAttachedMessage", "(", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getAttachedMessage...
If a message has been attached to this LCP, detach it and return it NOTE: Callers to this method will have the JSLocalConsumerPoint locked @return The message which was attached @throws SIResourceException
[ "If", "a", "message", "has", "been", "attached", "to", "this", "LCP", "detach", "it", "and", "return", "it" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L994-L1025
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.checkReceiveAllowed
private boolean checkReceiveAllowed() throws SISessionUnavailableException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkReceiveAllowed"); boolean allowed = _destinationAttachedTo.isReceiveAllowed(); if (!allowed) ...
java
private boolean checkReceiveAllowed() throws SISessionUnavailableException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkReceiveAllowed"); boolean allowed = _destinationAttachedTo.isReceiveAllowed(); if (!allowed) ...
[ "private", "boolean", "checkReceiveAllowed", "(", ")", "throws", "SISessionUnavailableException", ",", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "e...
Checks the destination allows receive If receive not allowed, and LCP started, stops it If receive allowed, and LCP stopped, may start it
[ "Checks", "the", "destination", "allows", "receive" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L1034-L1069
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.checkReceiveState
private void checkReceiveState() throws SIIncorrectCallException, SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkReceiveState"); // Only valid if the consumer session is still open checkN...
java
private void checkReceiveState() throws SIIncorrectCallException, SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkReceiveState"); // Only valid if the consumer session is still open checkN...
[ "private", "void", "checkReceiveState", "(", ")", "throws", "SIIncorrectCallException", ",", "SISessionUnavailableException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "e...
Checks the state for the synchronous consumer Will check for not closed, AsynchConsumer and if it is already in a wait If any of those conditions appear - an exception will be thrown.
[ "Checks", "the", "state", "for", "the", "synchronous", "consumer" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L1081-L1124
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.getEligibleMsgLocked
private SIMPMessage getEligibleMsgLocked(TransactionCommon tranImpl) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getEligibleMsgLocked", new Object[] { this, tranImpl }); /* * 166829.1 Support for noLocal deliver...
java
private SIMPMessage getEligibleMsgLocked(TransactionCommon tranImpl) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getEligibleMsgLocked", new Object[] { this, tranImpl }); /* * 166829.1 Support for noLocal deliver...
[ "private", "SIMPMessage", "getEligibleMsgLocked", "(", "TransactionCommon", "tranImpl", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "e...
Retrieves the next eligible message for delivery to this consumer. Performs a check for noLocal and takes this into account when retrieving the next eligible message. If any messages are not eligible for delivery, they are deleted from the itemstream before the first eligble one is returned. NOTE: Callers to this meth...
[ "Retrieves", "the", "next", "eligible", "message", "for", "delivery", "to", "this", "consumer", ".", "Performs", "a", "check", "for", "noLocal", "and", "takes", "this", "into", "account", "when", "retrieving", "the", "next", "eligible", "message", ".", "If", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L1297-L1393
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.waitingNotify
protected void waitingNotify() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "waitingNotify"); this.lock(); try { if (_waiting) _waiter.signal(); } finally { this.unlock(); ...
java
protected void waitingNotify() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "waitingNotify"); this.lock(); try { if (_waiting) _waiter.signal(); } finally { this.unlock(); ...
[ "protected", "void", "waitingNotify", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"waitingNotify\"", ")", ";", "this", ".", "...
Wakeup our thread if we're waiting on a receive. This method is normally called as part of remoteDurable when we need to resubmit a get because a previous get caused a noLocal discard.
[ "Wakeup", "our", "thread", "if", "we", "re", "waiting", "on", "a", "receive", ".", "This", "method", "is", "normally", "called", "as", "part", "of", "remoteDurable", "when", "we", "need", "to", "resubmit", "a", "get", "because", "a", "previous", "get", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L1847-L1864
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.retrieveMsgLocked
private SIMPMessage retrieveMsgLocked() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "retrieveMsgLocked", new Object[] { this }); SIMPMessage msg = null; // Look in the Cd's ItenStream for the next available messa...
java
private SIMPMessage retrieveMsgLocked() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "retrieveMsgLocked", new Object[] { this }); SIMPMessage msg = null; // Look in the Cd's ItenStream for the next available messa...
[ "private", "SIMPMessage", "retrieveMsgLocked", "(", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"retrie...
Attempt to retrieve a message from the CD's itemStream in a locked state. @return A locked message
[ "Attempt", "to", "retrieve", "a", "message", "from", "the", "CD", "s", "itemStream", "in", "a", "locked", "state", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L1871-L1921
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.checkParams
private void checkParams(int maxActiveMessages, long messageLockExpiry, int maxBatchSize) throws SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( ...
java
private void checkParams(int maxActiveMessages, long messageLockExpiry, int maxBatchSize) throws SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( ...
[ "private", "void", "checkParams", "(", "int", "maxActiveMessages", ",", "long", "messageLockExpiry", ",", "int", "maxBatchSize", ")", "throws", "SIIncorrectCallException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "is...
Checks that the maxBatchSize is >0 Checks that messasgeLockExpiry >=0 Checks that maxActiveMessages >=0 @param maxBatchSize @param max
[ "Checks", "that", "the", "maxBatchSize", "is", ">", "0", "Checks", "that", "messasgeLockExpiry", ">", "=", "0", "Checks", "that", "maxActiveMessages", ">", "=", "0" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L1931-L1982
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.processAttachedMsgs
boolean processAttachedMsgs() throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "processAttachedMsgs", this); SIMPMessage msg = null; // Check if there is a message attached to this consumer,...
java
boolean processAttachedMsgs() throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "processAttachedMsgs", this); SIMPMessage msg = null; // Check if there is a message attached to this consumer,...
[ "boolean", "processAttachedMsgs", "(", ")", "throws", "SIResourceException", ",", "SISessionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "...
Try to asynchronously deliver any attached messages @return true if a message was delivered @throws SIResourceException @throws SISessionDroppedException
[ "Try", "to", "asynchronously", "deliver", "any", "attached", "messages" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L2230-L2344
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.runAsynchConsumer
void runAsynchConsumer(boolean isolatedRun) throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "runAsynchConsumer", new Object[] { this, Boolean.valueOf(isolatedRun) }); JSLocalConsumerPoint nextConsum...
java
void runAsynchConsumer(boolean isolatedRun) throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "runAsynchConsumer", new Object[] { this, Boolean.valueOf(isolatedRun) }); JSLocalConsumerPoint nextConsum...
[ "void", "runAsynchConsumer", "(", "boolean", "isolatedRun", ")", "throws", "SIResourceException", ",", "SISessionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", "...
Go and look for both attached messages and messages on the QP. If any are found then deliver them via the asynch callback @param isolatedRun if true then call the Asynch callback at most once @throws SIResourceException Thrown if there are problems in the msgStore @throws SISessionDroppedException
[ "Go", "and", "look", "for", "both", "attached", "messages", "and", "messages", "on", "the", "QP", ".", "If", "any", "are", "found", "then", "deliver", "them", "via", "the", "asynch", "callback" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L3035-L3140
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.close
@Override public void close() throws SIResourceException, SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "close", this); // On closing, we need to run the async consumer a final time to process ...
java
@Override public void close() throws SIResourceException, SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "close", this); // On closing, we need to run the async consumer a final time to process ...
[ "@", "Override", "public", "void", "close", "(", ")", "throws", "SIResourceException", ",", "SINotPossibleInCurrentConfigurationException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "S...
Closes the LocalConsumerPoint. @throws
[ "Closes", "the", "LocalConsumerPoint", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L3147-L3317
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.isClosed
public boolean isClosed() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "isClosed", this); SibTr.exit(tc, "isClosed", Boolean.valueOf(_closed)); } return _closed; }
java
public boolean isClosed() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "isClosed", this); SibTr.exit(tc, "isClosed", Boolean.valueOf(_closed)); } return _closed; }
[ "public", "boolean", "isClosed", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"isClosed\"", ",", "this", ")", ";", "Sib...
Returns true if this LCP is closed. @return
[ "Returns", "true", "if", "this", "LCP", "is", "closed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L3324-L3332
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.start
@Override public void start(boolean deliverImmediately) throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "start", new Object[] { Boolean.valueOf(deliverImmediately), this...
java
@Override public void start(boolean deliverImmediately) throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "start", new Object[] { Boolean.valueOf(deliverImmediately), this...
[ "@", "Override", "public", "void", "start", "(", "boolean", "deliverImmediately", ")", "throws", "SISessionUnavailableException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", "...
Start this LCP. If there are any synchronous receives waiting, wake them up If there is a AsynchConsumerCallback registered look on the QP for messages for asynch delivery. If deliverImmediately is set, this Thread is used to deliver any initial messages rather than starting up a new Thread.
[ "Start", "this", "LCP", ".", "If", "there", "are", "any", "synchronous", "receives", "waiting", "wake", "them", "up", "If", "there", "is", "a", "AsynchConsumerCallback", "registered", "look", "on", "the", "QP", "for", "messages", "for", "asynch", "delivery", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L3469-L3484
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.checkForMessages
@Override public void checkForMessages() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkForMessages", this); try { //start a new thread to run the callback _messageProcessor.startNewThread(new AsynchThread(thi...
java
@Override public void checkForMessages() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkForMessages", this); try { //start a new thread to run the callback _messageProcessor.startNewThread(new AsynchThread(thi...
[ "@", "Override", "public", "void", "checkForMessages", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"checkForMessages\"", ",", "...
Spin off a thread that checks for any stored messages. This is called by a consumerKeyGroup to try to kick a group back into life after a stopped member detaches and makes the group ready again.
[ "Spin", "off", "a", "thread", "that", "checks", "for", "any", "stored", "messages", ".", "This", "is", "called", "by", "a", "consumerKeyGroup", "to", "try", "to", "kick", "a", "group", "back", "into", "life", "after", "a", "stopped", "member", "detaches", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L3645-L3672
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.unlockAll
@Override public void unlockAll() throws SISessionUnavailableException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "unlockAll", this); synchronized (_asynchConsumerBusyLock) { this.lock(); tr...
java
@Override public void unlockAll() throws SISessionUnavailableException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "unlockAll", this); synchronized (_asynchConsumerBusyLock) { this.lock(); tr...
[ "@", "Override", "public", "void", "unlockAll", "(", ")", "throws", "SISessionUnavailableException", ",", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", "....
Unlock all messages which have been locked to this LCP but not consumed @throws SIResourceException Thrown if there is a problem in the msgStore
[ "Unlock", "all", "messages", "which", "have", "been", "locked", "to", "this", "LCP", "but", "not", "consumed" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L3782-L3815
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.setBaseRecoverability
private void setBaseRecoverability(Reliability unrecoverableReliability) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setBaseRecoverability", new Object[] { this, unrecoverableReliability }); setUnrecoverability(unrecoverableReliability); _...
java
private void setBaseRecoverability(Reliability unrecoverableReliability) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setBaseRecoverability", new Object[] { this, unrecoverableReliability }); setUnrecoverability(unrecoverableReliability); _...
[ "private", "void", "setBaseRecoverability", "(", "Reliability", "unrecoverableReliability", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\...
Set the consumerSession's recoverability
[ "Set", "the", "consumerSession", "s", "recoverability" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L3820-L3830
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.resetBaseUnrecoverability
private void resetBaseUnrecoverability() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resetBaseUnrecoverability", this); _unrecoverableOptions = _baseUnrecoverableOptions; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
private void resetBaseUnrecoverability() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resetBaseUnrecoverability", this); _unrecoverableOptions = _baseUnrecoverableOptions; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "private", "void", "resetBaseUnrecoverability", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"resetBaseUnrecoverability\"", ",", "th...
Restore the original unrecoverability of the session
[ "Restore", "the", "original", "unrecoverability", "of", "the", "session" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L3835-L3844
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.setReady
private void setReady() throws SINotPossibleInCurrentConfigurationException { // If we're not transacted no messages are recoverable Reliability unrecoverable = Reliability.ASSURED_PERSISTENT; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setR...
java
private void setReady() throws SINotPossibleInCurrentConfigurationException { // If we're not transacted no messages are recoverable Reliability unrecoverable = Reliability.ASSURED_PERSISTENT; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setR...
[ "private", "void", "setReady", "(", ")", "throws", "SINotPossibleInCurrentConfigurationException", "{", "// If we're not transacted no messages are recoverable", "Reliability", "unrecoverable", "=", "Reliability", ".", "ASSURED_PERSISTENT", ";", "if", "(", "TraceComponent", "."...
Change the Ready state to true
[ "Change", "the", "Ready", "state", "to", "true" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L3867-L3891
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.unsetReady
protected void unsetReady() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "unsetReady", this); //set the ready state _ready = false; if (_keyGroup != null) _keyGroup.groupNotReady(); // if consumerKey is null the...
java
protected void unsetReady() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "unsetReady", this); //set the ready state _ready = false; if (_keyGroup != null) _keyGroup.groupNotReady(); // if consumerKey is null the...
[ "protected", "void", "unsetReady", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"unsetReady\"", ",", "this", ")", ";", "//set ...
Change the Ready state to false
[ "Change", "the", "Ready", "state", "to", "false" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L3896-L3916
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.getAutoCommitTransaction
protected TransactionCommon getAutoCommitTransaction() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getAutoCommitTransaction", this); } TransactionCommon tran = _messageProcessor.getTXManager().createAutoCom...
java
protected TransactionCommon getAutoCommitTransaction() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getAutoCommitTransaction", this); } TransactionCommon tran = _messageProcessor.getTXManager().createAutoCom...
[ "protected", "TransactionCommon", "getAutoCommitTransaction", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getAutoCommitTransact...
An autocommit transaction is not threadsafe, therefore any users must either prevent concurrent use or use separate transactions. All references in JSLocalConsumerPoint to _autoCommitTransaction are threadsafe so the cached transaction is ok. However, callers to this method are not, so a new transaction is returned eac...
[ "An", "autocommit", "transaction", "is", "not", "threadsafe", "therefore", "any", "users", "must", "either", "prevent", "concurrent", "use", "or", "use", "separate", "transactions", ".", "All", "references", "in", "JSLocalConsumerPoint", "to", "_autoCommitTransaction"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L4202-L4216
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.getMaxActiveMessages
public int getMaxActiveMessages() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getMaxActiveMessages"); SibTr.exit(tc, "getMaxActiveMessages", Integer.valueOf(_maxActiveMessages)); } return _maxActiveMessages; }
java
public int getMaxActiveMessages() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getMaxActiveMessages"); SibTr.exit(tc, "getMaxActiveMessages", Integer.valueOf(_maxActiveMessages)); } return _maxActiveMessages; }
[ "public", "int", "getMaxActiveMessages", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getMaxActiveMessages\"", ")", ";", "...
Gets the max active message count, Currently only used by the unit tests to be sure that the max active count has been updated @return
[ "Gets", "the", "max", "active", "message", "count", "Currently", "only", "used", "by", "the", "unit", "tests", "to", "be", "sure", "that", "the", "max", "active", "count", "has", "been", "updated" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L4540-L4548
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java
JSLocalConsumerPoint.setMaxActiveMessages
@Override public void setMaxActiveMessages(int maxActiveMessages) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setMaxActiveMessages", Integer.valueOf(maxActiveMessages)); synchronized (_asynchConsumerBusyLock) { this.lock();...
java
@Override public void setMaxActiveMessages(int maxActiveMessages) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setMaxActiveMessages", Integer.valueOf(maxActiveMessages)); synchronized (_asynchConsumerBusyLock) { this.lock();...
[ "@", "Override", "public", "void", "setMaxActiveMessages", "(", "int", "maxActiveMessages", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", ...
Update the max active messages field Set by the MessagePump class to indicate that there has been an update in the Threadpool class. WARNING: if the max is ever set to zero (now or on registration) then counting is disabled (for performance), so if it ever gets reset to a non-zero value we will not have accounted for...
[ "Update", "the", "max", "active", "messages", "field" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSLocalConsumerPoint.java#L4564-L4619
train
OpenLiberty/open-liberty
dev/com.ibm.ws.request.probes/src/com/ibm/wsspi/request/probe/bci/TransformDescriptorHelper.java
TransformDescriptorHelper.contextInfoRequired
public boolean contextInfoRequired(String eventType, long requestNumber) { boolean needContextInfo = false; List<ProbeExtension> probeExtnList = RequestProbeService .getProbeExtensions(); for (int i = 0; i < probeExtnList.size(); i++) { ProbeExtension probeExtension = probeExtnList.get(i); if (reques...
java
public boolean contextInfoRequired(String eventType, long requestNumber) { boolean needContextInfo = false; List<ProbeExtension> probeExtnList = RequestProbeService .getProbeExtensions(); for (int i = 0; i < probeExtnList.size(); i++) { ProbeExtension probeExtension = probeExtnList.get(i); if (reques...
[ "public", "boolean", "contextInfoRequired", "(", "String", "eventType", ",", "long", "requestNumber", ")", "{", "boolean", "needContextInfo", "=", "false", ";", "List", "<", "ProbeExtension", ">", "probeExtnList", "=", "RequestProbeService", ".", "getProbeExtensions",...
This method will check if context information is required or not by processing through each active ProbeExtensions available in PE List @param eventType @return
[ "This", "method", "will", "check", "if", "context", "information", "is", "required", "or", "not", "by", "processing", "through", "each", "active", "ProbeExtensions", "available", "in", "PE", "List" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probes/src/com/ibm/wsspi/request/probe/bci/TransformDescriptorHelper.java#L45-L68
train
OpenLiberty/open-liberty
dev/com.ibm.ws.request.probes/src/com/ibm/wsspi/request/probe/bci/TransformDescriptorHelper.java
TransformDescriptorHelper.getObjForInstrumentation
public static RequestProbeTransformDescriptor getObjForInstrumentation( String key) { RequestProbeTransformDescriptor requestProbeTransformDescriptor = RequestProbeBCIManagerImpl .getRequestProbeTransformDescriptors().get(key); return requestProbeTransformDescriptor; }
java
public static RequestProbeTransformDescriptor getObjForInstrumentation( String key) { RequestProbeTransformDescriptor requestProbeTransformDescriptor = RequestProbeBCIManagerImpl .getRequestProbeTransformDescriptors().get(key); return requestProbeTransformDescriptor; }
[ "public", "static", "RequestProbeTransformDescriptor", "getObjForInstrumentation", "(", "String", "key", ")", "{", "RequestProbeTransformDescriptor", "requestProbeTransformDescriptor", "=", "RequestProbeBCIManagerImpl", ".", "getRequestProbeTransformDescriptors", "(", ")", ".", "...
getObjForInstrumentation Returns TransformDescriptor with input parameters className, methodName and methodDescription @param classname @param mInfo @return
[ "getObjForInstrumentation", "Returns", "TransformDescriptor", "with", "input", "parameters", "className", "methodName", "and", "methodDescription" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probes/src/com/ibm/wsspi/request/probe/bci/TransformDescriptorHelper.java#L208-L213
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessageToken.java
SibRaMessageToken.addHandle
boolean addHandle (SIMessageHandle handle, Map ctxInfo, final boolean canBeDeleted) { final String methodName = "addHandle"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object [] { han...
java
boolean addHandle (SIMessageHandle handle, Map ctxInfo, final boolean canBeDeleted) { final String methodName = "addHandle"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object [] { han...
[ "boolean", "addHandle", "(", "SIMessageHandle", "handle", ",", "Map", "ctxInfo", ",", "final", "boolean", "canBeDeleted", ")", "{", "final", "String", "methodName", "=", "\"addHandle\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&...
Attemts to add the supplied message handle to the token. This is only done if the context information matches and both messages are BENP or both are not BENP. @param handle The message handle to try and add to the token @param ctxInfo The context info associated with the message @param unrecoveredReliability The unreco...
[ "Attemts", "to", "add", "the", "supplied", "message", "handle", "to", "the", "token", ".", "This", "is", "only", "done", "if", "the", "context", "information", "matches", "and", "both", "messages", "are", "BENP", "or", "both", "are", "not", "BENP", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessageToken.java#L251-L302
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessageToken.java
SibRaMessageToken.matches
boolean matches (Map ctxInfo, boolean canBeDeleted) { final String methodName = "matches"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object [] { ctxInfo, canBeDeleted }); } if (TraceComponent.isAnyTracingEnabled(...
java
boolean matches (Map ctxInfo, boolean canBeDeleted) { final String methodName = "matches"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object [] { ctxInfo, canBeDeleted }); } if (TraceComponent.isAnyTracingEnabled(...
[ "boolean", "matches", "(", "Map", "ctxInfo", ",", "boolean", "canBeDeleted", ")", "{", "final", "String", "methodName", "=", "\"matches\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ...
This method checks to see if the supplied information from a message handle matches the information that this token is using. @param ctxInfo The context info of the new message handle @param isBENP Whether the new message handle represents a BENP message or not @return true if the information about the new messages ma...
[ "This", "method", "checks", "to", "see", "if", "the", "supplied", "information", "from", "a", "message", "handle", "matches", "the", "information", "that", "this", "token", "is", "using", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessageToken.java#L313-L360
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/ByteBufferConfiguration.java
ByteBufferConfiguration.updateBufferManager
private void updateBufferManager(Map<String, Object> properties) { if (properties.isEmpty()) { return; } if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "Ignoring runtime changes to WSBB config; " + properties); } // T...
java
private void updateBufferManager(Map<String, Object> properties) { if (properties.isEmpty()) { return; } if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "Ignoring runtime changes to WSBB config; " + properties); } // T...
[ "private", "void", "updateBufferManager", "(", "Map", "<", "String", ",", "Object", ">", "properties", ")", "{", "if", "(", "properties", ".", "isEmpty", "(", ")", ")", "{", "return", ";", "}", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ...
This is used to provide the runtime configuration changes to an existing pool manager, which is a small subset of the possible creation properties. @param properties
[ "This", "is", "used", "to", "provide", "the", "runtime", "configuration", "changes", "to", "an", "existing", "pool", "manager", "which", "is", "a", "small", "subset", "of", "the", "possible", "creation", "properties", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/ByteBufferConfiguration.java#L175-L183
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PerfModules.java
PerfModules.initConfigs
private synchronized static void initConfigs() { for (int i = 0; i < moduleIDs.length; i++) { // add module configs one by one //addModuleInfo(moduleIDs[i] + modulePrefix); // don't do validation since in pre-defined module getConfigFromXMLFile(getXmlFileName(modu...
java
private synchronized static void initConfigs() { for (int i = 0; i < moduleIDs.length; i++) { // add module configs one by one //addModuleInfo(moduleIDs[i] + modulePrefix); // don't do validation since in pre-defined module getConfigFromXMLFile(getXmlFileName(modu...
[ "private", "synchronized", "static", "void", "initConfigs", "(", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "moduleIDs", ".", "length", ";", "i", "++", ")", "{", "// add module configs one by one", "//addModuleInfo(moduleIDs[i] + modulePrefix);", ...
Init moduleConfigs with array moduleIDs - use modulePrefix because they are all websphere default PMI modules
[ "Init", "moduleConfigs", "with", "array", "moduleIDs", "-", "use", "modulePrefix", "because", "they", "are", "all", "websphere", "default", "PMI", "modules" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PerfModules.java#L114-L121
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PerfModules.java
PerfModules.getConfig
public static PmiModuleConfig getConfig(String moduleID) { if (moduleID == null) return null; PmiModuleConfig config = (PmiModuleConfig) moduleConfigs.get(moduleID); if (config == null) { // beanModule and com.ibm.websphere.pmi.xml.beanModule will work // if...
java
public static PmiModuleConfig getConfig(String moduleID) { if (moduleID == null) return null; PmiModuleConfig config = (PmiModuleConfig) moduleConfigs.get(moduleID); if (config == null) { // beanModule and com.ibm.websphere.pmi.xml.beanModule will work // if...
[ "public", "static", "PmiModuleConfig", "getConfig", "(", "String", "moduleID", ")", "{", "if", "(", "moduleID", "==", "null", ")", "return", "null", ";", "PmiModuleConfig", "config", "=", "(", "PmiModuleConfig", ")", "moduleConfigs", ".", "get", "(", "moduleID...
return PmiModuleConfig for a given moduleID
[ "return", "PmiModuleConfig", "for", "a", "given", "moduleID" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PerfModules.java#L130-L155
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PerfModules.java
PerfModules.findConfig
public static PmiModuleConfig findConfig(PmiModuleConfig[] configs, String moduleID) { if (moduleID == null) return null; for (int i = 0; i < configs.length; i++) { if (configs[i].getUID().equals(moduleID)) // VELA //configs[i].getShortName().equals(moduleID)) ...
java
public static PmiModuleConfig findConfig(PmiModuleConfig[] configs, String moduleID) { if (moduleID == null) return null; for (int i = 0; i < configs.length; i++) { if (configs[i].getUID().equals(moduleID)) // VELA //configs[i].getShortName().equals(moduleID)) ...
[ "public", "static", "PmiModuleConfig", "findConfig", "(", "PmiModuleConfig", "[", "]", "configs", ",", "String", "moduleID", ")", "{", "if", "(", "moduleID", "==", "null", ")", "return", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "co...
return the config for the moduleID
[ "return", "the", "config", "for", "the", "moduleID" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PerfModules.java#L158-L168
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PerfModules.java
PerfModules.getConfigFromXMLFile
public synchronized static PmiModuleConfig getConfigFromXMLFile(String xmlFilePath, boolean bFromCache, boolean bValidate) { //System.out.println ("[PerfModules] getConfigFromXMLFile(): " +xmlFilePath); PmiModuleConfig config = null; // if xmlFilePath = /com/ibm/websphere/pmi/customMod.xml ...
java
public synchronized static PmiModuleConfig getConfigFromXMLFile(String xmlFilePath, boolean bFromCache, boolean bValidate) { //System.out.println ("[PerfModules] getConfigFromXMLFile(): " +xmlFilePath); PmiModuleConfig config = null; // if xmlFilePath = /com/ibm/websphere/pmi/customMod.xml ...
[ "public", "synchronized", "static", "PmiModuleConfig", "getConfigFromXMLFile", "(", "String", "xmlFilePath", ",", "boolean", "bFromCache", ",", "boolean", "bValidate", ")", "{", "//System.out.println (\"[PerfModules] getConfigFromXMLFile(): \" +xmlFilePath);", "PmiModuleConfig", ...
will parsed one more time
[ "will", "parsed", "one", "more", "time" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PerfModules.java#L204-L334
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PerfModules.java
PerfModules.getDataName
public static String getDataName(String moduleName, int dataId) { PmiModuleConfig config = PerfModules.getConfig(moduleName); if (config == null) return null; PmiDataInfo info = config.getDataInfo(dataId); if (info == null) return null; else r...
java
public static String getDataName(String moduleName, int dataId) { PmiModuleConfig config = PerfModules.getConfig(moduleName); if (config == null) return null; PmiDataInfo info = config.getDataInfo(dataId); if (info == null) return null; else r...
[ "public", "static", "String", "getDataName", "(", "String", "moduleName", ",", "int", "dataId", ")", "{", "PmiModuleConfig", "config", "=", "PerfModules", ".", "getConfig", "(", "moduleName", ")", ";", "if", "(", "config", "==", "null", ")", "return", "null"...
Convert data id to data name
[ "Convert", "data", "id", "to", "data", "name" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PerfModules.java#L356-L366
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PerfModules.java
PerfModules.getDataId
public static int getDataId(String moduleName, String dataName) { PmiModuleConfig config = PerfModules.getConfig(moduleName); // attach module name to it - this has to be consistent with the PMI xml config files // under com/ibm/websphere/pmi/xxModule.xml if (dataName.indexOf('.') < 0) ...
java
public static int getDataId(String moduleName, String dataName) { PmiModuleConfig config = PerfModules.getConfig(moduleName); // attach module name to it - this has to be consistent with the PMI xml config files // under com/ibm/websphere/pmi/xxModule.xml if (dataName.indexOf('.') < 0) ...
[ "public", "static", "int", "getDataId", "(", "String", "moduleName", ",", "String", "dataName", ")", "{", "PmiModuleConfig", "config", "=", "PerfModules", ".", "getConfig", "(", "moduleName", ")", ";", "// attach module name to it - this has to be consistent with the PMI ...
Convert data name to dataId
[ "Convert", "data", "name", "to", "dataId" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PerfModules.java#L371-L381
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/DurableSubscriptionItemStream.java
DurableSubscriptionItemStream.getConsumerDispatcherState
public ConsumerDispatcherState getConsumerDispatcherState() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getConsumerDispatcherState"); SibTr.exit(tc, "getConsumerDispatcherState", _subState); } return _subState; }
java
public ConsumerDispatcherState getConsumerDispatcherState() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getConsumerDispatcherState"); SibTr.exit(tc, "getConsumerDispatcherState", _subState); } return _subState; }
[ "public", "ConsumerDispatcherState", "getConsumerDispatcherState", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getConsumerDispa...
Returns the subState. @return Object
[ "Returns", "the", "subState", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/DurableSubscriptionItemStream.java#L462-L471
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/DurableSubscriptionItemStream.java
DurableSubscriptionItemStream.deleteDurableSubscription
private void deleteDurableSubscription( boolean callProxyCode) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteDurableSubscription", new Object[] { new Boolean(callProxyCode) }); HashMap durableSubsTable = _destinationManager.getDura...
java
private void deleteDurableSubscription( boolean callProxyCode) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteDurableSubscription", new Object[] { new Boolean(callProxyCode) }); HashMap durableSubsTable = _destinationManager.getDura...
[ "private", "void", "deleteDurableSubscription", "(", "boolean", "callProxyCode", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"deleteDura...
Deletes the durable subscription from the list of durable subscriptions and calls through to the consumer dispatcher to remove the subscription from the MatchSpace. @param callProxyCode If the delete needs to call the proxy handling code.
[ "Deletes", "the", "durable", "subscription", "from", "the", "list", "of", "durable", "subscriptions", "and", "calls", "through", "to", "the", "consumer", "dispatcher", "to", "remove", "the", "subscription", "from", "the", "MatchSpace", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/DurableSubscriptionItemStream.java#L540-L599
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ejs/ras/Tr.java
Tr.register
public static TraceComponent register(Class<?> aClass, String group) { return register(aClass, group, null); }
java
public static TraceComponent register(Class<?> aClass, String group) { return register(aClass, group, null); }
[ "public", "static", "TraceComponent", "register", "(", "Class", "<", "?", ">", "aClass", ",", "String", "group", ")", "{", "return", "register", "(", "aClass", ",", "group", ",", "null", ")", ";", "}" ]
Register the provided class with the trace service and assign it to the provided group name. @param aClass @param group @return TraceComponent
[ "Register", "the", "provided", "class", "with", "the", "trace", "service", "and", "assign", "it", "to", "the", "provided", "group", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ejs/ras/Tr.java#L125-L127
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ejs/ras/Tr.java
Tr.dump
public static final void dump(TraceComponent tc, String msg, Object obj) { if (obj != null && obj instanceof Object[]) { com.ibm.websphere.ras.Tr.dump(tc, msg, (Object[]) obj); } else { com.ibm.websphere.ras.Tr.dump(tc, msg, obj); } }
java
public static final void dump(TraceComponent tc, String msg, Object obj) { if (obj != null && obj instanceof Object[]) { com.ibm.websphere.ras.Tr.dump(tc, msg, (Object[]) obj); } else { com.ibm.websphere.ras.Tr.dump(tc, msg, obj); } }
[ "public", "static", "final", "void", "dump", "(", "TraceComponent", "tc", ",", "String", "msg", ",", "Object", "obj", ")", "{", "if", "(", "obj", "!=", "null", "&&", "obj", "instanceof", "Object", "[", "]", ")", "{", "com", ".", "ibm", ".", "webspher...
Print the provided message if the input trace component allows dump level messages. @param tc @param msg @param obj
[ "Print", "the", "provided", "message", "if", "the", "input", "trace", "component", "allows", "dump", "level", "messages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ejs/ras/Tr.java#L227-L233
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ejs/ras/Tr.java
Tr.entry
public static final void entry(TraceComponent tc, String methodName, Object obj) { if (obj != null && obj instanceof Object[]) { com.ibm.websphere.ras.Tr.entry(tc, methodName, (Object[]) obj); } else { com.ibm.websphere.ras.Tr.entry(tc, methodName, obj); } }
java
public static final void entry(TraceComponent tc, String methodName, Object obj) { if (obj != null && obj instanceof Object[]) { com.ibm.websphere.ras.Tr.entry(tc, methodName, (Object[]) obj); } else { com.ibm.websphere.ras.Tr.entry(tc, methodName, obj); } }
[ "public", "static", "final", "void", "entry", "(", "TraceComponent", "tc", ",", "String", "methodName", ",", "Object", "obj", ")", "{", "if", "(", "obj", "!=", "null", "&&", "obj", "instanceof", "Object", "[", "]", ")", "{", "com", ".", "ibm", ".", "...
Print the provided message if the input trace component allows entry level messages. @param tc @param methodName @param obj
[ "Print", "the", "provided", "message", "if", "the", "input", "trace", "component", "allows", "entry", "level", "messages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ejs/ras/Tr.java#L254-L260
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ejs/ras/Tr.java
Tr.error
public static final void error(TraceComponent tc, String msg) { com.ibm.websphere.ras.Tr.error(tc, msg); }
java
public static final void error(TraceComponent tc, String msg) { com.ibm.websphere.ras.Tr.error(tc, msg); }
[ "public", "static", "final", "void", "error", "(", "TraceComponent", "tc", ",", "String", "msg", ")", "{", "com", ".", "ibm", ".", "websphere", ".", "ras", ".", "Tr", ".", "error", "(", "tc", ",", "msg", ")", ";", "}" ]
Print the provided message if the input trace component allows error level messages. @param tc @param msg
[ "Print", "the", "provided", "message", "if", "the", "input", "trace", "component", "allows", "error", "level", "messages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ejs/ras/Tr.java#L269-L271
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ejs/ras/Tr.java
Tr.exit
public static final void exit(TraceComponent tc, String methodName, Object obj) { com.ibm.websphere.ras.Tr.exit(tc, methodName, obj); }
java
public static final void exit(TraceComponent tc, String methodName, Object obj) { com.ibm.websphere.ras.Tr.exit(tc, methodName, obj); }
[ "public", "static", "final", "void", "exit", "(", "TraceComponent", "tc", ",", "String", "methodName", ",", "Object", "obj", ")", "{", "com", ".", "ibm", ".", "websphere", ".", "ras", ".", "Tr", ".", "exit", "(", "tc", ",", "methodName", ",", "obj", ...
Print the provided message if the input trace component allows exit level messages. @param tc @param methodName @param obj
[ "Print", "the", "provided", "message", "if", "the", "input", "trace", "component", "allows", "exit", "level", "messages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ejs/ras/Tr.java#L335-L337
train
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/IDGenerator.java
IDGenerator.getID
public String getID() { byte[] genBytes = new byte[this.outputSize]; synchronized (this.generator) { this.generator.nextBytes(genBytes); } String id = convertSessionIdBytesToSessionId(genBytes, this.idLength); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnab...
java
public String getID() { byte[] genBytes = new byte[this.outputSize]; synchronized (this.generator) { this.generator.nextBytes(genBytes); } String id = convertSessionIdBytesToSessionId(genBytes, this.idLength); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnab...
[ "public", "String", "getID", "(", ")", "{", "byte", "[", "]", "genBytes", "=", "new", "byte", "[", "this", ".", "outputSize", "]", ";", "synchronized", "(", "this", ".", "generator", ")", "{", "this", ".", "generator", ".", "nextBytes", "(", "genBytes"...
Request the next random ID field from the generator. @return String
[ "Request", "the", "next", "random", "ID", "field", "from", "the", "generator", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/IDGenerator.java#L95-L105
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/MatchResponse.java
MatchResponse.merge
public MatchResponse merge(MatchResponse matchResponse) { if (matchResponse == null || matchResponse == this) { return this; } else { boolean mergedSSLRequired = mergeSSLRequired(matchResponse.isSSLRequired()); boolean mergedAccessPrecluded = mergeAccessPrecluded(matc...
java
public MatchResponse merge(MatchResponse matchResponse) { if (matchResponse == null || matchResponse == this) { return this; } else { boolean mergedSSLRequired = mergeSSLRequired(matchResponse.isSSLRequired()); boolean mergedAccessPrecluded = mergeAccessPrecluded(matc...
[ "public", "MatchResponse", "merge", "(", "MatchResponse", "matchResponse", ")", "{", "if", "(", "matchResponse", "==", "null", "||", "matchResponse", "==", "this", ")", "{", "return", "this", ";", "}", "else", "{", "boolean", "mergedSSLRequired", "=", "mergeSS...
Merges the roles, sslRequired, and accessPrecluded fields according to the Servlet 2.3 and 3.0 specifications. @param matchResponse @return
[ "Merges", "the", "roles", "sslRequired", "and", "accessPrecluded", "fields", "according", "to", "the", "Servlet", "2", ".", "3", "and", "3", ".", "0", "specifications", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/MatchResponse.java#L140-L149
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/MatchResponse.java
MatchResponse.mergeSSLRequired
protected boolean mergeSSLRequired(boolean otherSSLRequired) { boolean mergedSSLRequired = false; if (collectionMatch.isExactMatch()) { mergedSSLRequired = sslRequired && otherSSLRequired; } else if (collectionMatch.isPathMatch() || collectionMatch.isExtensionMatch()) { m...
java
protected boolean mergeSSLRequired(boolean otherSSLRequired) { boolean mergedSSLRequired = false; if (collectionMatch.isExactMatch()) { mergedSSLRequired = sslRequired && otherSSLRequired; } else if (collectionMatch.isPathMatch() || collectionMatch.isExtensionMatch()) { m...
[ "protected", "boolean", "mergeSSLRequired", "(", "boolean", "otherSSLRequired", ")", "{", "boolean", "mergedSSLRequired", "=", "false", ";", "if", "(", "collectionMatch", ".", "isExactMatch", "(", ")", ")", "{", "mergedSSLRequired", "=", "sslRequired", "&&", "othe...
Merges the sslRequired fields. For exact match, SSL not required takes precedence. For path matches of equal length and extension match, SSL required takes precedence. @param otherSSLRequired @return
[ "Merges", "the", "sslRequired", "fields", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/MatchResponse.java#L160-L168
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/webapp/StartupServletContextListener.java
StartupServletContextListener._publishManagedBeanDestroyerListener
private void _publishManagedBeanDestroyerListener(FacesContext facesContext) { ExternalContext externalContext = facesContext.getExternalContext(); Map<String, Object> applicationMap = externalContext.getApplicationMap(); applicationMap.put(ManagedBeanDestroyerListener.APPLICATION_MAP_KEY, ...
java
private void _publishManagedBeanDestroyerListener(FacesContext facesContext) { ExternalContext externalContext = facesContext.getExternalContext(); Map<String, Object> applicationMap = externalContext.getApplicationMap(); applicationMap.put(ManagedBeanDestroyerListener.APPLICATION_MAP_KEY, ...
[ "private", "void", "_publishManagedBeanDestroyerListener", "(", "FacesContext", "facesContext", ")", "{", "ExternalContext", "externalContext", "=", "facesContext", ".", "getExternalContext", "(", ")", ";", "Map", "<", "String", ",", "Object", ">", "applicationMap", "...
Publishes the ManagedBeanDestroyerListener instance in the application map. This allows the FacesConfigurator to access the instance and to set the correct ManagedBeanDestroyer instance on it. @param facesContext
[ "Publishes", "the", "ManagedBeanDestroyerListener", "instance", "in", "the", "application", "map", ".", "This", "allows", "the", "FacesConfigurator", "to", "access", "the", "instance", "and", "to", "set", "the", "correct", "ManagedBeanDestroyer", "instance", "on", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/webapp/StartupServletContextListener.java#L142-L148
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/webapp/StartupServletContextListener.java
StartupServletContextListener.setFacesInitializer
public void setFacesInitializer(FacesInitializer facesInitializer) // TODO who uses this method? { if (_facesInitializer != null && _facesInitializer != facesInitializer && _servletContext != null) { _facesInitializer.destroyFaces(_servletContext); } _facesInitializer = f...
java
public void setFacesInitializer(FacesInitializer facesInitializer) // TODO who uses this method? { if (_facesInitializer != null && _facesInitializer != facesInitializer && _servletContext != null) { _facesInitializer.destroyFaces(_servletContext); } _facesInitializer = f...
[ "public", "void", "setFacesInitializer", "(", "FacesInitializer", "facesInitializer", ")", "// TODO who uses this method?", "{", "if", "(", "_facesInitializer", "!=", "null", "&&", "_facesInitializer", "!=", "facesInitializer", "&&", "_servletContext", "!=", "null", ")", ...
configure the faces initializer @param facesInitializer
[ "configure", "the", "faces", "initializer" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/webapp/StartupServletContextListener.java#L186-L197
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/webapp/StartupServletContextListener.java
StartupServletContextListener.dispatchInitializationEvent
private void dispatchInitializationEvent(ServletContextEvent event, int operation) { if (operation == FACES_INIT_PHASE_PREINIT) { if (!loadFacesInitPluginsJDK6()) { loadFacesInitPluginsJDK5(); } } List<StartupListener> pluginEntri...
java
private void dispatchInitializationEvent(ServletContextEvent event, int operation) { if (operation == FACES_INIT_PHASE_PREINIT) { if (!loadFacesInitPluginsJDK6()) { loadFacesInitPluginsJDK5(); } } List<StartupListener> pluginEntri...
[ "private", "void", "dispatchInitializationEvent", "(", "ServletContextEvent", "event", ",", "int", "operation", ")", "{", "if", "(", "operation", "==", "FACES_INIT_PHASE_PREINIT", ")", "{", "if", "(", "!", "loadFacesInitPluginsJDK6", "(", ")", ")", "{", "loadFaces...
the central initialisation event dispatcher which calls our listeners @param event @param operation
[ "the", "central", "initialisation", "event", "dispatcher", "which", "calls", "our", "listeners" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/webapp/StartupServletContextListener.java#L300-L342
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ConversationHelperImpl.java
ConversationHelperImpl.unsetAsynchConsumer
public void unsetAsynchConsumer(boolean stoppable) //SIB0115d.comms throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIErrorException, SIIncorrec...
java
public void unsetAsynchConsumer(boolean stoppable) //SIB0115d.comms throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIErrorException, SIIncorrec...
[ "public", "void", "unsetAsynchConsumer", "(", "boolean", "stoppable", ")", "//SIB0115d.comms", "throws", "SISessionUnavailableException", ",", "SISessionDroppedException", ",", "SIConnectionUnavailableException", ",", "SIConnectionDroppedException", ",", "SIErrorException", ",", ...
Sends a request to unset the asynchronous consumer.
[ "Sends", "a", "request", "to", "unset", "the", "asynchronous", "consumer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ConversationHelperImpl.java#L104-L173
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ConversationHelperImpl.java
ConversationHelperImpl.setAsynchConsumer
public void setAsynchConsumer(AsynchConsumerCallback consumer, int maxActiveMessages, long messageLockExpiry, int maxBatchSize, OrderingContext orderContext, ...
java
public void setAsynchConsumer(AsynchConsumerCallback consumer, int maxActiveMessages, long messageLockExpiry, int maxBatchSize, OrderingContext orderContext, ...
[ "public", "void", "setAsynchConsumer", "(", "AsynchConsumerCallback", "consumer", ",", "int", "maxActiveMessages", ",", "long", "messageLockExpiry", ",", "int", "maxBatchSize", ",", "OrderingContext", "orderContext", ",", "int", "maxSequentialFailures", ",", "//SIB0115d.c...
Sends a request to set the asynchronous consumer. @param consumer @param maxActiveMessages @param messageLockExpiry @param maxBatchSize @param orderContext @param maxSequentialFailures @param hiddenMessageDelay
[ "Sends", "a", "request", "to", "set", "the", "asynchronous", "consumer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ConversationHelperImpl.java#L186-L300
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ConversationHelperImpl.java
ConversationHelperImpl.exchangeStop
public void exchangeStop() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() &&...
java
public void exchangeStop() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() &&...
[ "public", "void", "exchangeStop", "(", ")", "throws", "SISessionUnavailableException", ",", "SISessionDroppedException", ",", "SIConnectionUnavailableException", ",", "SIConnectionDroppedException", ",", "SIResourceException", ",", "SIConnectionLostException", ",", "SIErrorExcept...
Sends a request to stop the session.
[ "Sends", "a", "request", "to", "stop", "the", "session", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ConversationHelperImpl.java#L363-L421
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ConversationHelperImpl.java
ConversationHelperImpl.deleteMessages
public void deleteMessages(SIMessageHandle[] msgHandles, SITransaction tran, int priority) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResour...
java
public void deleteMessages(SIMessageHandle[] msgHandles, SITransaction tran, int priority) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResour...
[ "public", "void", "deleteMessages", "(", "SIMessageHandle", "[", "]", "msgHandles", ",", "SITransaction", "tran", ",", "int", "priority", ")", "throws", "SISessionUnavailableException", ",", "SISessionDroppedException", ",", "SIConnectionUnavailableException", ",", "SICon...
Deletes a set of messages based on their IDs in the scope of a specific transaction. @param msgIDs @param tran @param priority
[ "Deletes", "a", "set", "of", "messages", "based", "on", "their", "IDs", "in", "the", "scope", "of", "a", "specific", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ConversationHelperImpl.java#L599-L698
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ConversationHelperImpl.java
ConversationHelperImpl.setSessionId
public void setSessionId(short sessionId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSessionId", ""+sessionId); if (this.sessionId == 0 && sessionId != 0) { this.sessionId = sessionId; } else { // If the session I...
java
public void setSessionId(short sessionId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSessionId", ""+sessionId); if (this.sessionId == 0 && sessionId != 0) { this.sessionId = sessionId; } else { // If the session I...
[ "public", "void", "setSessionId", "(", "short", "sessionId", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"setSessionId\...
This method will set the ID of the session that we will flow to the server to identify us. This method can only be called once. @param sessionId The session ID.
[ "This", "method", "will", "set", "the", "ID", "of", "the", "session", "that", "we", "will", "flow", "to", "the", "server", "to", "identify", "us", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ConversationHelperImpl.java#L771-L795
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CacheingMatcher.java
CacheingMatcher.get
public void get(Object rootVal, MatchSpaceKey msg, EvalCache cache, Object contextValue, SearchResults result) throws MatchingException,BadMessageFormatMatchingException { if (tc.isEntryEnabled()) tc.entry(this,cclass, "get", new Obj...
java
public void get(Object rootVal, MatchSpaceKey msg, EvalCache cache, Object contextValue, SearchResults result) throws MatchingException,BadMessageFormatMatchingException { if (tc.isEntryEnabled()) tc.entry(this,cclass, "get", new Obj...
[ "public", "void", "get", "(", "Object", "rootVal", ",", "MatchSpaceKey", "msg", ",", "EvalCache", "cache", ",", "Object", "contextValue", ",", "SearchResults", "result", ")", "throws", "MatchingException", ",", "BadMessageFormatMatchingException", "{", "if", "(", ...
get delegates and also caches and reports whether there are any tests below this point in the tree.
[ "get", "delegates", "and", "also", "caches", "and", "reports", "whether", "there", "are", "any", "tests", "below", "this", "point", "in", "the", "tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CacheingMatcher.java#L76-L92
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CacheingMatcher.java
CacheingMatcher.remove
public ContentMatcher remove(Conjunction selector, MatchTarget object, InternTable subExpr, OrdinalPosition parentId) throws MatchingException { if (tc.isEntryEnabled()) tc.entry(this,cclass, "remove","selector: "+selector+", object: "+object); vacantChild = vacantChild.remove(selector, object, subE...
java
public ContentMatcher remove(Conjunction selector, MatchTarget object, InternTable subExpr, OrdinalPosition parentId) throws MatchingException { if (tc.isEntryEnabled()) tc.entry(this,cclass, "remove","selector: "+selector+", object: "+object); vacantChild = vacantChild.remove(selector, object, subE...
[ "public", "ContentMatcher", "remove", "(", "Conjunction", "selector", ",", "MatchTarget", "object", ",", "InternTable", "subExpr", ",", "OrdinalPosition", "parentId", ")", "throws", "MatchingException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", ...
Remove just delegates
[ "Remove", "just", "delegates" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/CacheingMatcher.java#L95-L110
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/io/DynamicPushbackInputStream.java
DynamicPushbackInputStream.shrink
public int shrink() { byte[] old = buf; if (pos == 0) { return 0; // nothing to do } int n = old.length - pos; int m; int p; int s; int l; if (n < origsize) { buf = new byte[origsize]; p = pos...
java
public int shrink() { byte[] old = buf; if (pos == 0) { return 0; // nothing to do } int n = old.length - pos; int m; int p; int s; int l; if (n < origsize) { buf = new byte[origsize]; p = pos...
[ "public", "int", "shrink", "(", ")", "{", "byte", "[", "]", "old", "=", "buf", ";", "if", "(", "pos", "==", "0", ")", "{", "return", "0", ";", "// nothing to do", "}", "int", "n", "=", "old", ".", "length", "-", "pos", ";", "int", "m", ";", "...
Shrink the buffer. This will reclaim currently unused space in the buffer, reducing memory but potentially increasing the cost of resizing the buffer
[ "Shrink", "the", "buffer", ".", "This", "will", "reclaim", "currently", "unused", "space", "in", "the", "buffer", "reducing", "memory", "but", "potentially", "increasing", "the", "cost", "of", "resizing", "the", "buffer" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/io/DynamicPushbackInputStream.java#L62-L94
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/RRSNoTransactionWrapper.java
RRSNoTransactionWrapper.isRRSTransactional
@Override public boolean isRRSTransactional() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, hexId() + ":isRRSTransactional()=" + true); } return true; }
java
@Override public boolean isRRSTransactional() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, hexId() + ":isRRSTransactional()=" + true); } return true; }
[ "@", "Override", "public", "boolean", "isRRSTransactional", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "hexId", "(", ")", ...
Indicate whether this TranWrapper is RRS transactional
[ "Indicate", "whether", "this", "TranWrapper", "is", "RRS", "transactional" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/RRSNoTransactionWrapper.java#L81-L87
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
FaceletViewDeclarationLanguage.createCompiler
protected Compiler createCompiler(FacesContext context) { Compiler compiler = new SAXCompiler(); compiler.setDevelopmentProjectStage(context.isProjectStage(ProjectStage.Development)); loadLibraries(context, compiler); loadDecorators(context, compiler); loadOptions(context, ...
java
protected Compiler createCompiler(FacesContext context) { Compiler compiler = new SAXCompiler(); compiler.setDevelopmentProjectStage(context.isProjectStage(ProjectStage.Development)); loadLibraries(context, compiler); loadDecorators(context, compiler); loadOptions(context, ...
[ "protected", "Compiler", "createCompiler", "(", "FacesContext", "context", ")", "{", "Compiler", "compiler", "=", "new", "SAXCompiler", "(", ")", ";", "compiler", ".", "setDevelopmentProjectStage", "(", "context", ".", "isProjectStage", "(", "ProjectStage", ".", "...
Creates the Facelet page compiler. @param context the current FacesContext @return the application's Facelet page compiler
[ "Creates", "the", "Facelet", "page", "compiler", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java#L2173-L2184
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
FaceletViewDeclarationLanguage.createFaceletFactory
protected FaceletFactory createFaceletFactory(FacesContext context, Compiler compiler) { ExternalContext eContext = context.getExternalContext(); // refresh period long refreshPeriod; if (context.isProjectStage(ProjectStage.Production)) { refreshPeriod = WebConfi...
java
protected FaceletFactory createFaceletFactory(FacesContext context, Compiler compiler) { ExternalContext eContext = context.getExternalContext(); // refresh period long refreshPeriod; if (context.isProjectStage(ProjectStage.Production)) { refreshPeriod = WebConfi...
[ "protected", "FaceletFactory", "createFaceletFactory", "(", "FacesContext", "context", ",", "Compiler", "compiler", ")", "{", "ExternalContext", "eContext", "=", "context", ".", "getExternalContext", "(", ")", ";", "// refresh period", "long", "refreshPeriod", ";", "i...
Creates a FaceletFactory instance using the specified compiler. @param context the current FacesContext @param compiler the compiler to be used by the factory @return the factory used by this VDL to load pages
[ "Creates", "a", "FaceletFactory", "instance", "using", "the", "specified", "compiler", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java#L2196-L2236
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
FaceletViewDeclarationLanguage.getResponseContentType
protected String getResponseContentType(FacesContext context, String orig) { String contentType = orig; // see if we need to override the contentType Map<Object, Object> m = context.getAttributes(); if (m.containsKey("facelets.ContentType")) { contentType = (Stri...
java
protected String getResponseContentType(FacesContext context, String orig) { String contentType = orig; // see if we need to override the contentType Map<Object, Object> m = context.getAttributes(); if (m.containsKey("facelets.ContentType")) { contentType = (Stri...
[ "protected", "String", "getResponseContentType", "(", "FacesContext", "context", ",", "String", "orig", ")", "{", "String", "contentType", "=", "orig", ";", "// see if we need to override the contentType", "Map", "<", "Object", ",", "Object", ">", "m", "=", "context...
Generate the content type @param context @param orig @return
[ "Generate", "the", "content", "type" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java#L2343-L2366
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
FaceletViewDeclarationLanguage.getResponseEncoding
protected String getResponseEncoding(FacesContext context, String orig) { String encoding = orig; // see if we need to override the encoding Map<Object, Object> m = context.getAttributes(); Map<String, Object> sm = context.getExternalContext().getSessionMap(); // 1. check t...
java
protected String getResponseEncoding(FacesContext context, String orig) { String encoding = orig; // see if we need to override the encoding Map<Object, Object> m = context.getAttributes(); Map<String, Object> sm = context.getExternalContext().getSessionMap(); // 1. check t...
[ "protected", "String", "getResponseEncoding", "(", "FacesContext", "context", ",", "String", "orig", ")", "{", "String", "encoding", "=", "orig", ";", "// see if we need to override the encoding", "Map", "<", "Object", ",", "Object", ">", "m", "=", "context", ".",...
Generate the encoding @param context @param orig @return
[ "Generate", "the", "encoding" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java#L2375-L2422
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
FaceletViewDeclarationLanguage.initialize
protected void initialize(FacesContext context) { log.finest("Initializing"); Compiler compiler = createCompiler(context); _faceletFactory = createFaceletFactory(context, compiler); ExternalContext eContext = context.getExternalContext(); _initializeBuffer(eContext); ...
java
protected void initialize(FacesContext context) { log.finest("Initializing"); Compiler compiler = createCompiler(context); _faceletFactory = createFaceletFactory(context, compiler); ExternalContext eContext = context.getExternalContext(); _initializeBuffer(eContext); ...
[ "protected", "void", "initialize", "(", "FacesContext", "context", ")", "{", "log", ".", "finest", "(", "\"Initializing\"", ")", ";", "Compiler", "compiler", "=", "createCompiler", "(", "context", ")", ";", "_faceletFactory", "=", "createFaceletFactory", "(", "c...
Initialize the ViewHandler during its first request.
[ "Initialize", "the", "ViewHandler", "during", "its", "first", "request", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java#L2467-L2494
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java
FaceletViewDeclarationLanguage._getFacelet
private Facelet _getFacelet(FacesContext context, String viewId) throws IOException { // grab our FaceletFactory and create a Facelet FaceletFactory.setInstance(_faceletFactory); try { return _faceletFactory.getFacelet(context, viewId); } finally {...
java
private Facelet _getFacelet(FacesContext context, String viewId) throws IOException { // grab our FaceletFactory and create a Facelet FaceletFactory.setInstance(_faceletFactory); try { return _faceletFactory.getFacelet(context, viewId); } finally {...
[ "private", "Facelet", "_getFacelet", "(", "FacesContext", "context", ",", "String", "viewId", ")", "throws", "IOException", "{", "// grab our FaceletFactory and create a Facelet", "FaceletFactory", ".", "setInstance", "(", "_faceletFactory", ")", ";", "try", "{", "retur...
Gets the Facelet representing the specified view identifier. @param viewId the view identifier @return the Facelet representing the specified view identifier @throws IOException if a read or parsing error occurs
[ "Gets", "the", "Facelet", "representing", "the", "specified", "view", "identifier", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletViewDeclarationLanguage.java#L2577-L2589
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTMHelper.java
EmbeddableTMHelper.retrieveBundleContext
@Override protected void retrieveBundleContext() { BundleContext bc = TxBundleTools.getBundleContext(); if (tc.isDebugEnabled()) Tr.debug(tc, "retrieveBundleContext from TxBundleTools, bc " + bc); if (bc == null) { bc = EmbeddableTxBundleTools.getBundleContext(); ...
java
@Override protected void retrieveBundleContext() { BundleContext bc = TxBundleTools.getBundleContext(); if (tc.isDebugEnabled()) Tr.debug(tc, "retrieveBundleContext from TxBundleTools, bc " + bc); if (bc == null) { bc = EmbeddableTxBundleTools.getBundleContext(); ...
[ "@", "Override", "protected", "void", "retrieveBundleContext", "(", ")", "{", "BundleContext", "bc", "=", "TxBundleTools", ".", "getBundleContext", "(", ")", ";", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", ...
This method retrieves bundle context from the the ws.tx.embeddable bundle so that if that bundle has started before the tx.jta bundle, then we are still able to access the Service Registry. @return
[ "This", "method", "retrieves", "bundle", "context", "from", "the", "the", "ws", ".", "tx", ".", "embeddable", "bundle", "so", "that", "if", "that", "bundle", "has", "started", "before", "the", "tx", ".", "jta", "bundle", "then", "we", "are", "still", "ab...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTMHelper.java#L46-L58
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java
ThreadPool.setRequestBufferSize
public synchronized void setRequestBufferSize(int size) { if (size <= 0) { throw new IllegalArgumentException("request buffer size must be greater than zero"); } if (this.requestBuffer.size() != 0) { throw new IllegalStateException("cannot resize non-empty ThreadPool re...
java
public synchronized void setRequestBufferSize(int size) { if (size <= 0) { throw new IllegalArgumentException("request buffer size must be greater than zero"); } if (this.requestBuffer.size() != 0) { throw new IllegalStateException("cannot resize non-empty ThreadPool re...
[ "public", "synchronized", "void", "setRequestBufferSize", "(", "int", "size", ")", "{", "if", "(", "size", "<=", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"request buffer size must be greater than zero\"", ")", ";", "}", "if", "(", "this", ...
Sets the size of the request buffer. If work has been dispatched on this thread pool, the behavior of this method and all subsequent calls to this pool are undefined. As a result of the request buffer size being set the expansion limit of the buffer is set to be 10 times greater than the newly configured buffer size.
[ "Sets", "the", "size", "of", "the", "request", "buffer", ".", "If", "work", "has", "been", "dispatched", "on", "this", "thread", "pool", "the", "behavior", "of", "this", "method", "and", "all", "subsequent", "calls", "to", "this", "pool", "are", "undefined...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java#L605-L618
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java
ThreadPool.addThread
@Deprecated protected void addThread(Runnable command) { Worker worker; if (_isDecoratedZOS) // 331761A worker = new DecoratedZOSWorker(command, threadid++); // 331761A else // 331761A worker = new Worker(command, threadid++); // LIDB1855-58 // D5...
java
@Deprecated protected void addThread(Runnable command) { Worker worker; if (_isDecoratedZOS) // 331761A worker = new DecoratedZOSWorker(command, threadid++); // 331761A else // 331761A worker = new Worker(command, threadid++); // LIDB1855-58 // D5...
[ "@", "Deprecated", "protected", "void", "addThread", "(", "Runnable", "command", ")", "{", "Worker", "worker", ";", "if", "(", "_isDecoratedZOS", ")", "// 331761A", "worker", "=", "new", "DecoratedZOSWorker", "(", "command", ",", "threadid", "++", ")", ";", ...
Create and start a thread to handle a new command. Call only when holding lock. @deprecated This will be private in a future release.
[ "Create", "and", "start", "a", "thread", "to", "handle", "a", "new", "command", ".", "Call", "only", "when", "holding", "lock", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java#L633-L676
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java
ThreadPool.createThreads
@Deprecated public int createThreads(int numberOfThreads) { int ncreated = 0; for (int i = 0; i < numberOfThreads; ++i) { synchronized (this) { if (poolSize_ < maximumPoolSize_) { addThread(null); ++ncreated; } els...
java
@Deprecated public int createThreads(int numberOfThreads) { int ncreated = 0; for (int i = 0; i < numberOfThreads; ++i) { synchronized (this) { if (poolSize_ < maximumPoolSize_) { addThread(null); ++ncreated; } els...
[ "@", "Deprecated", "public", "int", "createThreads", "(", "int", "numberOfThreads", ")", "{", "int", "ncreated", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "numberOfThreads", ";", "++", "i", ")", "{", "synchronized", "(", "this", ...
Create and start up to numberOfThreads threads in the pool. Return the number created. This may be less than the number requested if creating more would exceed maximum pool size bound. @deprecated This method will go away in a future release. All thread creation should be done lazily.
[ "Create", "and", "start", "up", "to", "numberOfThreads", "threads", "in", "the", "pool", ".", "Return", "the", "number", "created", ".", "This", "may", "be", "less", "than", "the", "number", "requested", "if", "creating", "more", "would", "exceed", "maximum"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java#L709-L725
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java
ThreadPool.workerDone
@Deprecated protected synchronized void workerDone(Worker w, boolean taskDied) { threads_.remove(w); if (taskDied) { --activeThreads; --poolSize_; } if (poolSize_ == 0 && shutdown_) { maximumPoolSize_ = minimumPoolSize_ = 0; // disable new threa...
java
@Deprecated protected synchronized void workerDone(Worker w, boolean taskDied) { threads_.remove(w); if (taskDied) { --activeThreads; --poolSize_; } if (poolSize_ == 0 && shutdown_) { maximumPoolSize_ = minimumPoolSize_ = 0; // disable new threa...
[ "@", "Deprecated", "protected", "synchronized", "void", "workerDone", "(", "Worker", "w", ",", "boolean", "taskDied", ")", "{", "threads_", ".", "remove", "(", "w", ")", ";", "if", "(", "taskDied", ")", "{", "--", "activeThreads", ";", "--", "poolSize_", ...
Cleanup method called upon termination of worker thread. @deprecated This will become private in a future release.
[ "Cleanup", "method", "called", "upon", "termination", "of", "worker", "thread", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java#L837-L853
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java
ThreadPool.getTask
@Deprecated protected Runnable getTask(boolean oldThread) throws InterruptedException { // PK77809 long waitTime; Runnable r = null; boolean firstTime = true; while (true) { synchronized (this) { // System.out.println("1 " + activeThreads + " : " + poolSi...
java
@Deprecated protected Runnable getTask(boolean oldThread) throws InterruptedException { // PK77809 long waitTime; Runnable r = null; boolean firstTime = true; while (true) { synchronized (this) { // System.out.println("1 " + activeThreads + " : " + poolSi...
[ "@", "Deprecated", "protected", "Runnable", "getTask", "(", "boolean", "oldThread", ")", "throws", "InterruptedException", "{", "// PK77809", "long", "waitTime", ";", "Runnable", "r", "=", "null", ";", "boolean", "firstTime", "=", "true", ";", "while", "(", "t...
Get a task from the handoff queue, or null if shutting down. @deprecated This will become private in a future release.
[ "Get", "a", "task", "from", "the", "handoff", "queue", "or", "null", "if", "shutting", "down", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java#L861-L937
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java
ThreadPool.setDecoratedZOS
public void setDecoratedZOS() { // 331761A if (xMemSetupThread == null) { try { final Class xMemCRBridgeClass = Class.forName("com.ibm.ws390.xmem.XMemCRBridgeImpl"); xMemSetupThread = xMemCRBridgeClass.getMethod("setupThreadStub", new Class[] { java.lang.Object.class...
java
public void setDecoratedZOS() { // 331761A if (xMemSetupThread == null) { try { final Class xMemCRBridgeClass = Class.forName("com.ibm.ws390.xmem.XMemCRBridgeImpl"); xMemSetupThread = xMemCRBridgeClass.getMethod("setupThreadStub", new Class[] { java.lang.Object.class...
[ "public", "void", "setDecoratedZOS", "(", ")", "{", "// 331761A", "if", "(", "xMemSetupThread", "==", "null", ")", "{", "try", "{", "final", "Class", "xMemCRBridgeClass", "=", "Class", ".", "forName", "(", "\"com.ibm.ws390.xmem.XMemCRBridgeImpl\"", ")", ";", "xM...
sets this thread pool to create threads which are decorated via setupThreadStub
[ "sets", "this", "thread", "pool", "to", "create", "threads", "which", "are", "decorated", "via", "setupThreadStub" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java#L1010-L1026
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java
ThreadPool.executeOnDaemon
public void executeOnDaemon(Runnable command) { int id = 0; final Runnable commandToRun = command; synchronized (this) { this.daemonId++; id = this.daemonId; } final String runId = name + " : DMN" + id; // d185137.2 Thread t = (Thread) AccessCo...
java
public void executeOnDaemon(Runnable command) { int id = 0; final Runnable commandToRun = command; synchronized (this) { this.daemonId++; id = this.daemonId; } final String runId = name + " : DMN" + id; // d185137.2 Thread t = (Thread) AccessCo...
[ "public", "void", "executeOnDaemon", "(", "Runnable", "command", ")", "{", "int", "id", "=", "0", ";", "final", "Runnable", "commandToRun", "=", "command", ";", "synchronized", "(", "this", ")", "{", "this", ".", "daemonId", "++", ";", "id", "=", "this",...
Dispatch work on a daemon thread. This thread is not accounted for in the pool. There are no corresponding ThreadPoolListener events. There is no MonitorPlugin support.
[ "Dispatch", "work", "on", "a", "daemon", "thread", ".", "This", "thread", "is", "not", "accounted", "for", "in", "the", "pool", ".", "There", "are", "no", "corresponding", "ThreadPoolListener", "events", ".", "There", "is", "no", "MonitorPlugin", "support", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java#L1066-L1089
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java
ThreadPool.execute
public void execute(Runnable command, int blockingMode) throws InterruptedException, ThreadPoolQueueIsFullException, IllegalStateException { // D186668 execute(command, blockingMode, 0); }
java
public void execute(Runnable command, int blockingMode) throws InterruptedException, ThreadPoolQueueIsFullException, IllegalStateException { // D186668 execute(command, blockingMode, 0); }
[ "public", "void", "execute", "(", "Runnable", "command", ",", "int", "blockingMode", ")", "throws", "InterruptedException", ",", "ThreadPoolQueueIsFullException", ",", "IllegalStateException", "{", "// D186668", "execute", "(", "command", ",", "blockingMode", ",", "0"...
Arrange for the given command to be executed by a thread in this pool. The call's behavior when the pool and its internal request queue are at full capacity is determined by the blockingMode. @param command - the work to be dispatched. @param blockingMode - specifies whether this call will block until capacity beco...
[ "Arrange", "for", "the", "given", "command", "to", "be", "executed", "by", "a", "thread", "in", "this", "pool", ".", "The", "call", "s", "behavior", "when", "the", "pool", "and", "its", "internal", "request", "queue", "are", "at", "full", "capacity", "is...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java#L1133-L1135
train