id
int32
0
165k
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
68,200
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.waitUntilReconstitutionIsCompleted
private void waitUntilReconstitutionIsCompleted() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "waitUntilReconstitutionISCompleted"); // gracefully shutdown the pool _reconstituteThreadpool.shutdown(); //awaitTermination() is a bloc...
java
private void waitUntilReconstitutionIsCompleted() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "waitUntilReconstitutionISCompleted"); // gracefully shutdown the pool _reconstituteThreadpool.shutdown(); //awaitTermination() is a bloc...
[ "private", "void", "waitUntilReconstitutionIsCompleted", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"waitUntilReconstitutionISComplete...
Will wait until the reconstitution is completed This will be called for each of BaseDestinationHandler, LinkHandler and MQLinkHandler The threadpool will be destroyed
[ "Will", "wait", "until", "the", "reconstitution", "is", "completed", "This", "will", "be", "called", "for", "each", "of", "BaseDestinationHandler", "LinkHandler", "and", "MQLinkHandler", "The", "threadpool", "will", "be", "destroyed" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L1067-L1091
68,201
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.getLink
public final LinkHandler getLink(String linkName) { LinkTypeFilter filter = new LinkTypeFilter(); return (LinkHandler) linkIndex.findByName(linkName, filter); }
java
public final LinkHandler getLink(String linkName) { LinkTypeFilter filter = new LinkTypeFilter(); return (LinkHandler) linkIndex.findByName(linkName, filter); }
[ "public", "final", "LinkHandler", "getLink", "(", "String", "linkName", ")", "{", "LinkTypeFilter", "filter", "=", "new", "LinkTypeFilter", "(", ")", ";", "return", "(", "LinkHandler", ")", "linkIndex", ".", "findByName", "(", "linkName", ",", "filter", ")", ...
Gets the link destination from the set of destinations @param linkName @return
[ "Gets", "the", "link", "destination", "from", "the", "set", "of", "destinations" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L1099-L1103
68,202
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.getDestination
public DestinationHandler getDestination(JsDestinationAddress destinationAddr, boolean includeInvisible) throws SITemporaryDestinationNotFoundException, SIResourceException, SINotPossibleInCurrentConfigurationException { return getDestination(destinationAddr.getDestinationName(), ...
java
public DestinationHandler getDestination(JsDestinationAddress destinationAddr, boolean includeInvisible) throws SITemporaryDestinationNotFoundException, SIResourceException, SINotPossibleInCurrentConfigurationException { return getDestination(destinationAddr.getDestinationName(), ...
[ "public", "DestinationHandler", "getDestination", "(", "JsDestinationAddress", "destinationAddr", ",", "boolean", "includeInvisible", ")", "throws", "SITemporaryDestinationNotFoundException", ",", "SIResourceException", ",", "SINotPossibleInCurrentConfigurationException", "{", "ret...
This method provides lookup of a destination by its address. If the destination is not found, it throws SIDestinationNotFoundException. @param destinationAddr @return Destination @throws SIDestinationNotFoundException @throws SIMPNullParameterException @throws SIMPDestinationCorruptException
[ "This", "method", "provides", "lookup", "of", "a", "destination", "by", "its", "address", ".", "If", "the", "destination", "is", "not", "found", "it", "throws", "SIDestinationNotFoundException", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L1116-L1124
68,203
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.removePseudoDestination
public final void removePseudoDestination(SIBUuid12 destinationUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removePseudoDestination", destinationUuid); destinationIndex.removePseudoUuid(destinationUuid); if (TraceComponent.isAnyTracing...
java
public final void removePseudoDestination(SIBUuid12 destinationUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removePseudoDestination", destinationUuid); destinationIndex.removePseudoUuid(destinationUuid); if (TraceComponent.isAnyTracing...
[ "public", "final", "void", "removePseudoDestination", "(", "SIBUuid12", "destinationUuid", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "...
Remove a link for a pseudo desintation ID. @param destinationUuid The ID of the pseudo destination to remove.
[ "Remove", "a", "link", "for", "a", "pseudo", "desintation", "ID", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L1652-L1659
68,204
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.resetDestination
public void resetDestination(String destName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resetDestination", destName); try { DestinationHandler dh = destinationIndex.findByName( ...
java
public void resetDestination(String destName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resetDestination", destName); try { DestinationHandler dh = destinationIndex.findByName( ...
[ "public", "void", "resetDestination", "(", "String", "destName", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"resetDestination\"", ","...
Reset a destination. @param destName @throws InvalidOperationException if the destination is not one which can be reset (e.g. it is an alias destination). @throws SIDestinationNotFoundException
[ "Reset", "a", "destination", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L1670-L1735
68,205
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.resetLink
public void resetLink(String linkName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resetLink", linkName); try { DestinationHandler link = linkIndex.findByName(linkName, null); checkDestinationHandlerExists( ...
java
public void resetLink(String linkName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resetLink", linkName); try { DestinationHandler link = linkIndex.findByName(linkName, null); checkDestinationHandlerExists( ...
[ "public", "void", "resetLink", "(", "String", "linkName", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"resetLink\"", ",", "linkName"...
Reset a link. @param linkName @throws InvalidOperationException if the link is not one which can be reset. @throws SINotPossibleInCurrentConfigurationException
[ "Reset", "a", "link", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L1746-L1807
68,206
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.getLinkDefinition
public VirtualLinkDefinition getLinkDefinition(String busName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getLinkDefinition", busName); ForeignBusDefinition foreignBus = messageProcessor.getForeignBus(busName); VirtualLinkDefinition link...
java
public VirtualLinkDefinition getLinkDefinition(String busName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getLinkDefinition", busName); ForeignBusDefinition foreignBus = messageProcessor.getForeignBus(busName); VirtualLinkDefinition link...
[ "public", "VirtualLinkDefinition", "getLinkDefinition", "(", "String", "busName", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getLinkDe...
Returns the link definition of the link used to connect to the given busname @return VirtualLinkDefinition
[ "Returns", "the", "link", "definition", "of", "the", "link", "used", "to", "connect", "to", "the", "given", "busname" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L1814-L1845
68,207
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.getTopicSpaceMapping
public String getTopicSpaceMapping(String busName, SIBUuid12 topicSpace) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getTopicSpaceMapping", new Object[] { busName, topicSpace }); VirtualLinkDefinition linkDef = getLinkDefinition(busName); ...
java
public String getTopicSpaceMapping(String busName, SIBUuid12 topicSpace) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getTopicSpaceMapping", new Object[] { busName, topicSpace }); VirtualLinkDefinition linkDef = getLinkDefinition(busName); ...
[ "public", "String", "getTopicSpaceMapping", "(", "String", "busName", ",", "SIBUuid12", "topicSpace", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "...
Returns the topicSpaceName of the foreign topicSpace @param String The busname of the foreign TS @param SIBUuid12 The uuid of the TS on this bus @return String The foreign TS name
[ "Returns", "the", "topicSpaceName", "of", "the", "foreign", "topicSpace" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L1854-L1873
68,208
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.createNewTemporaryDestinationName
String createNewTemporaryDestinationName(String destinationPrefix, SIBUuid8 meUuid, Distribution distribution) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnab...
java
String createNewTemporaryDestinationName(String destinationPrefix, SIBUuid8 meUuid, Distribution distribution) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnab...
[ "String", "createNewTemporaryDestinationName", "(", "String", "destinationPrefix", ",", "SIBUuid8", "meUuid", ",", "Distribution", "distribution", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ...
Creates a new name for a temporary destination. Uses the Message Store Tick count to generate the unique suffix for the temporary destination @param destinationPrefix @param meUuid @param distribution @return @throws SILimitExceededException
[ "Creates", "a", "new", "name", "for", "a", "temporary", "destination", ".", "Uses", "the", "Message", "Store", "Tick", "count", "to", "generate", "the", "unique", "suffix", "for", "the", "temporary", "destination" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L2054-L2097
68,209
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.removeDestination
protected void removeDestination(DestinationHandler dh) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeDestination", dh); if (dh.isLink()) { if (linkIndex.containsKey(dh)) { linkIndex.remove(dh); ...
java
protected void removeDestination(DestinationHandler dh) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeDestination", dh); if (dh.isLink()) { if (linkIndex.containsKey(dh)) { linkIndex.remove(dh); ...
[ "protected", "void", "removeDestination", "(", "DestinationHandler", "dh", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"removeDestinatio...
Remove the given destination from the DestinationManager. This will only be a BaseDestinationHandler removing either a link or a destination. @param dh The DestinationHandler to remove.
[ "Remove", "the", "given", "destination", "from", "the", "DestinationManager", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L2201-L2223
68,210
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.createTransmissionDestination
protected void createTransmissionDestination(SIBUuid8 remoteMEUuid) throws SIResourceException, SIMPDestinationAlreadyExistsException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createTransmissionDestination", remoteMEUuid); String destinationName ...
java
protected void createTransmissionDestination(SIBUuid8 remoteMEUuid) throws SIResourceException, SIMPDestinationAlreadyExistsException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createTransmissionDestination", remoteMEUuid); String destinationName ...
[ "protected", "void", "createTransmissionDestination", "(", "SIBUuid8", "remoteMEUuid", ")", "throws", "SIResourceException", ",", "SIMPDestinationAlreadyExistsException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnab...
Method createTransmissionDestination. <p>Create a transmission queue destination for the remote ME uuid specified.</p> @param remoteMEUuid
[ "Method", "createTransmissionDestination", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L2233-L2254
68,211
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.reconcileRemote
public void reconcileRemote() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "reconcileRemote"); DestinationTypeFilter filter = new DestinationTypeFilter(); //filter.REMOTE = Boolean.TRUE; filter.UNRECONCILED = Boolean.TRUE; SI...
java
public void reconcileRemote() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "reconcileRemote"); DestinationTypeFilter filter = new DestinationTypeFilter(); //filter.REMOTE = Boolean.TRUE; filter.UNRECONCILED = Boolean.TRUE; SI...
[ "public", "void", "reconcileRemote", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"reconcileRemote\"", ")", ";", "DestinationTypeF...
This method is used to perform remote Destination reconciliation tasks
[ "This", "method", "is", "used", "to", "perform", "remote", "Destination", "reconciliation", "tasks" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L2462-L2617
68,212
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.checkDestinationHandlerExists
private void checkDestinationHandlerExists( boolean condition, String destName, String engineName) throws SINotPossibleInCurrentConfigurationException, SITemporaryDestinationNotFoundException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
private void checkDestinationHandlerExists( boolean condition, String destName, String engineName) throws SINotPossibleInCurrentConfigurationException, SITemporaryDestinationNotFoundException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "private", "void", "checkDestinationHandlerExists", "(", "boolean", "condition", ",", "String", "destName", ",", "String", "engineName", ")", "throws", "SINotPossibleInCurrentConfigurationException", ",", "SITemporaryDestinationNotFoundException", "{", "if", "(", "TraceCompon...
Asserts that a DestinationHandler exists. Throws out the appropriate exception if the condition has failed. @param condition This is the existence check. An expression here should evaluate to true if the destination exists, false otherwise. For example, a simple expression here could be (dh != null). @param destName T...
[ "Asserts", "that", "a", "DestinationHandler", "exists", ".", "Throws", "out", "the", "appropriate", "exception", "if", "the", "condition", "has", "failed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L4117-L4171
68,213
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.checkBusExists
private void checkBusExists(boolean condition, String foreignBusName, boolean linkError, Throwable cause) throws SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, ...
java
private void checkBusExists(boolean condition, String foreignBusName, boolean linkError, Throwable cause) throws SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, ...
[ "private", "void", "checkBusExists", "(", "boolean", "condition", ",", "String", "foreignBusName", ",", "boolean", "linkError", ",", "Throwable", "cause", ")", "throws", "SINotPossibleInCurrentConfigurationException", "{", "if", "(", "TraceComponent", ".", "isAnyTracing...
Asserts that a Bus exists. Throws out the appropriate exception if the condition has failed. @param condition This is the existence check. An expression here should evaluate to true if the destination exists, false otherwise. For example, a simple expression here could be (dh != null). @param foreignBusName The name o...
[ "Asserts", "that", "a", "Bus", "exists", ".", "Throws", "out", "the", "appropriate", "exception", "if", "the", "condition", "has", "failed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L4187-L4247
68,214
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.checkMQLinkExists
private void checkMQLinkExists(boolean condition, String mqlinkName) throws SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "checkMQLinkExists", ...
java
private void checkMQLinkExists(boolean condition, String mqlinkName) throws SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "checkMQLinkExists", ...
[ "private", "void", "checkMQLinkExists", "(", "boolean", "condition", ",", "String", "mqlinkName", ")", "throws", "SINotPossibleInCurrentConfigurationException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", ...
Asserts that an MQLink exists. Throws out the appropriate exception if the condition has failed. @param condition This is the existence check. An expression here should evaluate to true if the destination exists, false otherwise. For example, a simple expression here could be (dh != null). @param mqLinkName The name o...
[ "Asserts", "that", "an", "MQLink", "exists", ".", "Throws", "out", "the", "appropriate", "exception", "if", "the", "condition", "has", "failed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L4260-L4294
68,215
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.checkQueuePointContainsLocalME
private void checkQueuePointContainsLocalME(Set<String> queuePointLocalizingMEs, SIBUuid8 messagingEngineUuid, DestinationDefinition destinationDefinition, LocalizationDefiniti...
java
private void checkQueuePointContainsLocalME(Set<String> queuePointLocalizingMEs, SIBUuid8 messagingEngineUuid, DestinationDefinition destinationDefinition, LocalizationDefiniti...
[ "private", "void", "checkQueuePointContainsLocalME", "(", "Set", "<", "String", ">", "queuePointLocalizingMEs", ",", "SIBUuid8", "messagingEngineUuid", ",", "DestinationDefinition", "destinationDefinition", ",", "LocalizationDefinition", "destinationLocalizationDefinition", ")", ...
Checks that the Local ME is in the queue point localizing set @param queuePointLocalizingMEs
[ "Checks", "that", "the", "Local", "ME", "is", "in", "the", "queue", "point", "localizing", "set" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L4348-L4367
68,216
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.checkQueuePointLocalizingSize
private void checkQueuePointLocalizingSize(Set<String> queuePointLocalizingMEs, DestinationDefinition destinationDefinition) { //There must be at least one queue point if (((destinationDefinition.getDestinationType() != DestinationType.SERVICE) && ...
java
private void checkQueuePointLocalizingSize(Set<String> queuePointLocalizingMEs, DestinationDefinition destinationDefinition) { //There must be at least one queue point if (((destinationDefinition.getDestinationType() != DestinationType.SERVICE) && ...
[ "private", "void", "checkQueuePointLocalizingSize", "(", "Set", "<", "String", ">", "queuePointLocalizingMEs", ",", "DestinationDefinition", "destinationDefinition", ")", "{", "//There must be at least one queue point", "if", "(", "(", "(", "destinationDefinition", ".", "ge...
Checks that the queuePointLocalising size is valid
[ "Checks", "that", "the", "queuePointLocalising", "size", "is", "valid" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L4372-L4389
68,217
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.setIsAsyncDeletionThreadStartable
private void setIsAsyncDeletionThreadStartable(boolean isStartable) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setIsAsyncDeletionThreadStartable", new Boolean(isStartable)); synchronized (deletionThreadLock) { _isAsyncDeletion...
java
private void setIsAsyncDeletionThreadStartable(boolean isStartable) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setIsAsyncDeletionThreadStartable", new Boolean(isStartable)); synchronized (deletionThreadLock) { _isAsyncDeletion...
[ "private", "void", "setIsAsyncDeletionThreadStartable", "(", "boolean", "isStartable", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setI...
Indicates whether the async deletion thread should be startable or not. @param isStartable
[ "Indicates", "whether", "the", "async", "deletion", "thread", "should", "be", "startable", "or", "not", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L4776-L4788
68,218
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.createSystemDestination
public JsDestinationAddress createSystemDestination(String prefix, Reliability reliability) throws SIResourceException, SIMPDestinationAlreadyExistsException, SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createSystemDestination", ne...
java
public JsDestinationAddress createSystemDestination(String prefix, Reliability reliability) throws SIResourceException, SIMPDestinationAlreadyExistsException, SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createSystemDestination", ne...
[ "public", "JsDestinationAddress", "createSystemDestination", "(", "String", "prefix", ",", "Reliability", "reliability", ")", "throws", "SIResourceException", ",", "SIMPDestinationAlreadyExistsException", ",", "SIIncorrectCallException", "{", "if", "(", "TraceComponent", ".",...
Creates a System destination with the given prefix and reliability
[ "Creates", "a", "System", "destination", "with", "the", "given", "prefix", "and", "reliability" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L4821-L4881
68,219
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.addSubscriptionToDelete
public void addSubscriptionToDelete(SubscriptionItemStream stream) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addSubscriptionToDelete", stream); synchronized (deletableSubscriptions) { deletableSubscriptions.add(stream); ...
java
public void addSubscriptionToDelete(SubscriptionItemStream stream) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addSubscriptionToDelete", stream); synchronized (deletableSubscriptions) { deletableSubscriptions.add(stream); ...
[ "public", "void", "addSubscriptionToDelete", "(", "SubscriptionItemStream", "stream", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"addSu...
Add a subscription to the list of subscriptions to be deleted.
[ "Add", "a", "subscription", "to", "the", "list", "of", "subscriptions", "to", "be", "deleted", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L5051-L5061
68,220
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.getDestination
public DestinationHandler getDestination(SIBUuid12 destinationUuid, boolean includeInvisible) throws SITemporaryDestinationNotFoundException, SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getDestination", destinat...
java
public DestinationHandler getDestination(SIBUuid12 destinationUuid, boolean includeInvisible) throws SITemporaryDestinationNotFoundException, SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getDestination", destinat...
[ "public", "DestinationHandler", "getDestination", "(", "SIBUuid12", "destinationUuid", ",", "boolean", "includeInvisible", ")", "throws", "SITemporaryDestinationNotFoundException", ",", "SINotPossibleInCurrentConfigurationException", "{", "if", "(", "TraceComponent", ".", "isAn...
Method getDestination. @param destinationUuid @return Destination @throws SIDestinationNotFoundException <p>This method provides lookup of a destination by its uuid. If the destination is not found, it throws SIDestinationNotFoundException.</p>
[ "Method", "getDestination", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L5184-L5201
68,221
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.getMQLinkLocalization
public MQLinkHandler getMQLinkLocalization(SIBUuid8 mqLinkUuid, boolean includeInvisible) throws SIMPMQLinkCorruptException, SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMQLinkLocalization", mqLinkUuid); ...
java
public MQLinkHandler getMQLinkLocalization(SIBUuid8 mqLinkUuid, boolean includeInvisible) throws SIMPMQLinkCorruptException, SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMQLinkLocalization", mqLinkUuid); ...
[ "public", "MQLinkHandler", "getMQLinkLocalization", "(", "SIBUuid8", "mqLinkUuid", ",", "boolean", "includeInvisible", ")", "throws", "SIMPMQLinkCorruptException", ",", "SINotPossibleInCurrentConfigurationException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled",...
Lookup a destination by its uuid. @param mqLinkUuid @param includeInvisible @return MQLinkHandler @throws SIDestinationNotFoundException The link was not found @throws SIMPMQLinkCorruptException
[ "Lookup", "a", "destination", "by", "its", "uuid", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L5237-L5277
68,222
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.announceMPStarted
void announceMPStarted(int startMode) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "announceMPStarted"); DestinationTypeFilter destFilter = new DestinationTypeFilter(); SIMPIterator itr = destinationIndex.iterator(destFilter); while ...
java
void announceMPStarted(int startMode) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "announceMPStarted"); DestinationTypeFilter destFilter = new DestinationTypeFilter(); SIMPIterator itr = destinationIndex.iterator(destFilter); while ...
[ "void", "announceMPStarted", "(", "int", "startMode", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"announceMPStarted\"", ")", ";", "...
Find the mediated destinations and tell them that the MP is now ready for mediations to start work. In addition alert the MQLink component that MP has started and set the flag to allow asynch deletion. Feature 176658.3.8
[ "Find", "the", "mediated", "destinations", "and", "tell", "them", "that", "the", "MP", "is", "now", "ready", "for", "mediations", "to", "start", "work", ".", "In", "addition", "alert", "the", "MQLink", "component", "that", "MP", "has", "started", "and", "s...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L5409-L5485
68,223
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.findBus
public BusHandler findBus(String busName) throws SIResourceException, SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "findBus", new Object[] { busName }); // Get the bus ForeignBusTypeFilter filter ...
java
public BusHandler findBus(String busName) throws SIResourceException, SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "findBus", new Object[] { busName }); // Get the bus ForeignBusTypeFilter filter ...
[ "public", "BusHandler", "findBus", "(", "String", "busName", ")", "throws", "SIResourceException", ",", "SINotPossibleInCurrentConfigurationException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")",...
Method findBus. @param busName @return busHandler @throws SIDestinationNotFoundException @throws SIMPNullParameterException <p>This method provides lookup of a foreign bus by its name. If the bus is not known to the ME, the method queries admin to see if the bus is a known foreign bus, if the address can still not be ...
[ "Method", "findBus", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L5897-L5917
68,224
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.isLocalizationAvailable
private boolean isLocalizationAvailable( BaseDestinationHandler baseDestinationHandler, DestinationAvailability destinationAvailability) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibT...
java
private boolean isLocalizationAvailable( BaseDestinationHandler baseDestinationHandler, DestinationAvailability destinationAvailability) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibT...
[ "private", "boolean", "isLocalizationAvailable", "(", "BaseDestinationHandler", "baseDestinationHandler", ",", "DestinationAvailability", "destinationAvailability", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled...
This method determines whether a localization for a destination is available.
[ "This", "method", "determines", "whether", "a", "localization", "for", "a", "destination", "is", "available", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L6955-L6981
68,225
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.getAllSystemDestinations
public List<JsDestinationAddress> getAllSystemDestinations(SIBUuid8 meUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getAllSystemDestinations", meUuid); DestinationTypeFilter filter = new DestinationTypeFilter(); filter.LOCAL = Boolean....
java
public List<JsDestinationAddress> getAllSystemDestinations(SIBUuid8 meUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getAllSystemDestinations", meUuid); DestinationTypeFilter filter = new DestinationTypeFilter(); filter.LOCAL = Boolean....
[ "public", "List", "<", "JsDestinationAddress", ">", "getAllSystemDestinations", "(", "SIBUuid8", "meUuid", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "("...
Finds all the JsDestinationAddresses that belong to system destinations for the ME that was passed in. @param meUuid @return List of all the system destination addresses for the meUuid passed
[ "Finds", "all", "the", "JsDestinationAddresses", "that", "belong", "to", "system", "destinations", "for", "the", "ME", "that", "was", "passed", "in", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L7132-L7170
68,226
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.activateDestination
protected void activateDestination(DestinationHandler dh) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "activateDestination", dh); if (dh.isLink()) { linkIndex.create(dh); } else { destinationI...
java
protected void activateDestination(DestinationHandler dh) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "activateDestination", dh); if (dh.isLink()) { linkIndex.create(dh); } else { destinationI...
[ "protected", "void", "activateDestination", "(", "DestinationHandler", "dh", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"activateDestin...
Move the destination into ACTIVE state
[ "Move", "the", "destination", "into", "ACTIVE", "state" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L7173-L7189
68,227
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.corruptDestination
protected void corruptDestination(DestinationHandler dh) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "corruptDestination", dh); if (!dh.isLink() && destinationIndex.containsDestination(dh)) { destinationIndex.corrupt(dh); ...
java
protected void corruptDestination(DestinationHandler dh) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "corruptDestination", dh); if (!dh.isLink() && destinationIndex.containsDestination(dh)) { destinationIndex.corrupt(dh); ...
[ "protected", "void", "corruptDestination", "(", "DestinationHandler", "dh", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"corruptDestinat...
PK54812 Move the destination into CORRUPT state
[ "PK54812", "Move", "the", "destination", "into", "CORRUPT", "state" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L7192-L7204
68,228
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DeletePubSubMsgsThread.stopThread
@Override public void stopThread(StoppableThreadCache cache) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "stopThread"); this.hasToStop = true; //Remove this thread from the thread cache cache.deregisterThread(this); if (Tr...
java
@Override public void stopThread(StoppableThreadCache cache) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "stopThread"); this.hasToStop = true; //Remove this thread from the thread cache cache.deregisterThread(this); if (Tr...
[ "@", "Override", "public", "void", "stopThread", "(", "StoppableThreadCache", "cache", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"...
This get called from MessageProcessor on ME getting stopped.
[ "This", "get", "called", "from", "MessageProcessor", "on", "ME", "getting", "stopped", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L7520-L7532
68,229
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSDeployedSupport.java
EJSDeployedSupport.setUncheckedLocalException
public final void setUncheckedLocalException(Throwable ex) throws EJBException { ExceptionMappingStrategy exceptionStrategy = getExceptionMappingStrategy(); Throwable mappedException = exceptionStrategy.setUncheckedException(this, ex); if (mappedException != null) { if (mappedExcepti...
java
public final void setUncheckedLocalException(Throwable ex) throws EJBException { ExceptionMappingStrategy exceptionStrategy = getExceptionMappingStrategy(); Throwable mappedException = exceptionStrategy.setUncheckedException(this, ex); if (mappedException != null) { if (mappedExcepti...
[ "public", "final", "void", "setUncheckedLocalException", "(", "Throwable", "ex", ")", "throws", "EJBException", "{", "ExceptionMappingStrategy", "exceptionStrategy", "=", "getExceptionMappingStrategy", "(", ")", ";", "Throwable", "mappedException", "=", "exceptionStrategy",...
d395666 - rewrote entire method.
[ "d395666", "-", "rewrote", "entire", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSDeployedSupport.java#L447-L469
68,230
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSDeployedSupport.java
EJSDeployedSupport.getApplicationExceptionRollback
protected Boolean getApplicationExceptionRollback(Throwable t) { Boolean rollback; if (ivIgnoreApplicationExceptions) { rollback = null; } else { ComponentMetaData cmd = getComponentMetaData(); EJBModuleMetaDataImpl mmd = (EJBModuleMetaDataImpl) cmd.getModuleM...
java
protected Boolean getApplicationExceptionRollback(Throwable t) { Boolean rollback; if (ivIgnoreApplicationExceptions) { rollback = null; } else { ComponentMetaData cmd = getComponentMetaData(); EJBModuleMetaDataImpl mmd = (EJBModuleMetaDataImpl) cmd.getModuleM...
[ "protected", "Boolean", "getApplicationExceptionRollback", "(", "Throwable", "t", ")", "{", "Boolean", "rollback", ";", "if", "(", "ivIgnoreApplicationExceptions", ")", "{", "rollback", "=", "null", ";", "}", "else", "{", "ComponentMetaData", "cmd", "=", "getCompo...
d395666 - added entire method.
[ "d395666", "-", "added", "entire", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSDeployedSupport.java#L537-L547
68,231
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSDeployedSupport.java
EJSDeployedSupport.getContextData
public Map<String, Object> getContextData() { if (ivContextData == null) { ivContextData = new HashMap<String, Object>(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getContextData: created empty"); } return ivContextDa...
java
public Map<String, Object> getContextData() { if (ivContextData == null) { ivContextData = new HashMap<String, Object>(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getContextData: created empty"); } return ivContextDa...
[ "public", "Map", "<", "String", ",", "Object", ">", "getContextData", "(", ")", "{", "if", "(", "ivContextData", "==", "null", ")", "{", "ivContextData", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "if", "(", "TraceComponen...
Returns the context data associated with this method invocation.
[ "Returns", "the", "context", "data", "associated", "with", "this", "method", "invocation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSDeployedSupport.java#L721-L730
68,232
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsCreator.java
StatsCreator.addSubStatsToParent
public static void addSubStatsToParent(SPIStats parentStats, SPIStats subStats) { StatsImpl p = (StatsImpl) parentStats; StatsImpl s = (StatsImpl) subStats; p.add(s); }
java
public static void addSubStatsToParent(SPIStats parentStats, SPIStats subStats) { StatsImpl p = (StatsImpl) parentStats; StatsImpl s = (StatsImpl) subStats; p.add(s); }
[ "public", "static", "void", "addSubStatsToParent", "(", "SPIStats", "parentStats", ",", "SPIStats", "subStats", ")", "{", "StatsImpl", "p", "=", "(", "StatsImpl", ")", "parentStats", ";", "StatsImpl", "s", "=", "(", "StatsImpl", ")", "subStats", ";", "p", "....
This method adds one Stats object as a subStats of another Stats object @param parentStats This Stats is the parent @param subStats This Stats is the child
[ "This", "method", "adds", "one", "Stats", "object", "as", "a", "subStats", "of", "another", "Stats", "object" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsCreator.java#L135-L139
68,233
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsCreator.java
StatsCreator.addStatisticsToParent
public static void addStatisticsToParent(SPIStats parentStats, SPIStatistic statistic) { StatsImpl p = (StatsImpl) parentStats; StatisticImpl s = (StatisticImpl) statistic; p.add(s); }
java
public static void addStatisticsToParent(SPIStats parentStats, SPIStatistic statistic) { StatsImpl p = (StatsImpl) parentStats; StatisticImpl s = (StatisticImpl) statistic; p.add(s); }
[ "public", "static", "void", "addStatisticsToParent", "(", "SPIStats", "parentStats", ",", "SPIStatistic", "statistic", ")", "{", "StatsImpl", "p", "=", "(", "StatsImpl", ")", "parentStats", ";", "StatisticImpl", "s", "=", "(", "StatisticImpl", ")", "statistic", ...
This method adds one Statistic object as the child of a Stats object @param parentStats This stats is the parent @param statistic This statistic should be added
[ "This", "method", "adds", "one", "Statistic", "object", "as", "the", "child", "of", "a", "Stats", "object" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsCreator.java#L147-L151
68,234
OpenLiberty/open-liberty
dev/com.ibm.ws.jndi/src/com/ibm/ws/jndi/internal/AutoBindNode.java
AutoBindNode.addLastEntry
void addLastEntry(Object entry) { if (multiple == null) { if (!single.equals(entry)) { multiple = new LinkedList<Object>(); multiple.addLast(single); multiple.addLast(entry); } } else { if (!multiple.contains(entry)) { ...
java
void addLastEntry(Object entry) { if (multiple == null) { if (!single.equals(entry)) { multiple = new LinkedList<Object>(); multiple.addLast(single); multiple.addLast(entry); } } else { if (!multiple.contains(entry)) { ...
[ "void", "addLastEntry", "(", "Object", "entry", ")", "{", "if", "(", "multiple", "==", "null", ")", "{", "if", "(", "!", "single", ".", "equals", "(", "entry", ")", ")", "{", "multiple", "=", "new", "LinkedList", "<", "Object", ">", "(", ")", ";", ...
This method is used to add an entry to the AutoBindNode Note that the node can contain multiple entries. This method is not thread safe and should be externally synchronized such that other modifications do not happen concurrently on another thread. @param entry The entry to add
[ "This", "method", "is", "used", "to", "add", "an", "entry", "to", "the", "AutoBindNode", "Note", "that", "the", "node", "can", "contain", "multiple", "entries", ".", "This", "method", "is", "not", "thread", "safe", "and", "should", "be", "externally", "syn...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jndi/src/com/ibm/ws/jndi/internal/AutoBindNode.java#L48-L61
68,235
OpenLiberty/open-liberty
dev/com.ibm.ws.jndi/src/com/ibm/ws/jndi/internal/AutoBindNode.java
AutoBindNode.removeEntry
boolean removeEntry(Object entry) { if (multiple == null) { if (entry.equals(single)) { single = null; return true; } } else { multiple.remove(entry); if (single.equals(entry)) { single = multiple.peekLast();...
java
boolean removeEntry(Object entry) { if (multiple == null) { if (entry.equals(single)) { single = null; return true; } } else { multiple.remove(entry); if (single.equals(entry)) { single = multiple.peekLast();...
[ "boolean", "removeEntry", "(", "Object", "entry", ")", "{", "if", "(", "multiple", "==", "null", ")", "{", "if", "(", "entry", ".", "equals", "(", "single", ")", ")", "{", "single", "=", "null", ";", "return", "true", ";", "}", "}", "else", "{", ...
This method is used to remove an entry from the AutoBindNode. This method is not thread safe and should be externally synchronized such that other modifications do not happen concurrently on another thread. @param entry The entry to remove @return boolean representing whether the AutoBindNode is empty and can be remov...
[ "This", "method", "is", "used", "to", "remove", "an", "entry", "from", "the", "AutoBindNode", ".", "This", "method", "is", "not", "thread", "safe", "and", "should", "be", "externally", "synchronized", "such", "that", "other", "modifications", "do", "not", "h...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jndi/src/com/ibm/ws/jndi/internal/AutoBindNode.java#L73-L89
68,236
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/RealTimeDaemon.java
RealTimeDaemon.alarm
public void alarm(final Object context) { long sleepInterval = 0; do { long startWakeUpTime = System.currentTimeMillis(); try { wakeUp(startDaemonTime, startWakeUpTime); } catch (Exception ex) { com.ibm.ws.ffdc.FFDCFilter.processException(ex, "com.ibm.ws.ca...
java
public void alarm(final Object context) { long sleepInterval = 0; do { long startWakeUpTime = System.currentTimeMillis(); try { wakeUp(startDaemonTime, startWakeUpTime); } catch (Exception ex) { com.ibm.ws.ffdc.FFDCFilter.processException(ex, "com.ibm.ws.ca...
[ "public", "void", "alarm", "(", "final", "Object", "context", ")", "{", "long", "sleepInterval", "=", "0", ";", "do", "{", "long", "startWakeUpTime", "=", "System", ".", "currentTimeMillis", "(", ")", ";", "try", "{", "wakeUp", "(", "startDaemonTime", ",",...
It runs in a loop that tries to wake every timeInterval. If it gets behind due to an overload, the subclass' implementation of the wakeUp method is responsible for resynching itself based on the startDaemonTime and startWakeUpTime.
[ "It", "runs", "in", "a", "loop", "that", "tries", "to", "wake", "every", "timeInterval", ".", "If", "it", "gets", "behind", "due", "to", "an", "overload", "the", "subclass", "implementation", "of", "the", "wakeUp", "method", "is", "responsible", "for", "re...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/RealTimeDaemon.java#L91-L115
68,237
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java
PasswordUtil.encode
public static String encode(String decoded_string, String crypto_algorithm, String crypto_key) throws InvalidPasswordEncodingException, UnsupportedCryptoAlgorithmException { HashMap<String, String> props = new HashMap<String, String>(); if (crypto_key != null) { props.put...
java
public static String encode(String decoded_string, String crypto_algorithm, String crypto_key) throws InvalidPasswordEncodingException, UnsupportedCryptoAlgorithmException { HashMap<String, String> props = new HashMap<String, String>(); if (crypto_key != null) { props.put...
[ "public", "static", "String", "encode", "(", "String", "decoded_string", ",", "String", "crypto_algorithm", ",", "String", "crypto_key", ")", "throws", "InvalidPasswordEncodingException", ",", "UnsupportedCryptoAlgorithmException", "{", "HashMap", "<", "String", ",", "S...
Encode the provided string with the specified algorithm and the crypto key If the decoded_string is already encoded, the string will be decoded and then encoded by using the specified crypto algorithm. Use this method for encoding the string by using the AES encryption with the specific crypto key. Note that this metho...
[ "Encode", "the", "provided", "string", "with", "the", "specified", "algorithm", "and", "the", "crypto", "key", "If", "the", "decoded_string", "is", "already", "encoded", "the", "string", "will", "be", "decoded", "and", "then", "encoded", "by", "using", "the", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java#L194-L201
68,238
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java
PasswordUtil.encode
public static String encode(String decoded_string, String crypto_algorithm, Map<String, String> properties) throws InvalidPasswordEncodingException, UnsupportedCryptoAlgorithmException { /* * check input: * * -- decoded_string: any string, any length, cannot be nu...
java
public static String encode(String decoded_string, String crypto_algorithm, Map<String, String> properties) throws InvalidPasswordEncodingException, UnsupportedCryptoAlgorithmException { /* * check input: * * -- decoded_string: any string, any length, cannot be nu...
[ "public", "static", "String", "encode", "(", "String", "decoded_string", ",", "String", "crypto_algorithm", ",", "Map", "<", "String", ",", "String", ">", "properties", ")", "throws", "InvalidPasswordEncodingException", ",", "UnsupportedCryptoAlgorithmException", "{", ...
Encode the provided string with the specified algorithm and the properties If the decoded_string is already encoded, the string will be decoded and then encoded by using the specified crypto algorithm. Note that this method is only avaiable for the Liberty profile. @param decoded_string the string to be encoded. @para...
[ "Encode", "the", "provided", "string", "with", "the", "specified", "algorithm", "and", "the", "properties", "If", "the", "decoded_string", "is", "already", "encoded", "the", "string", "will", "be", "decoded", "and", "then", "encoded", "by", "using", "the", "sp...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java#L215-L255
68,239
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java
PasswordUtil.isHashed
public static boolean isHashed(String encoded_string) { String algorithm = getCryptoAlgorithm(encoded_string); return isValidAlgorithm(algorithm, PasswordCipherUtil.getSupportedHashAlgorithms()); }
java
public static boolean isHashed(String encoded_string) { String algorithm = getCryptoAlgorithm(encoded_string); return isValidAlgorithm(algorithm, PasswordCipherUtil.getSupportedHashAlgorithms()); }
[ "public", "static", "boolean", "isHashed", "(", "String", "encoded_string", ")", "{", "String", "algorithm", "=", "getCryptoAlgorithm", "(", "encoded_string", ")", ";", "return", "isValidAlgorithm", "(", "algorithm", ",", "PasswordCipherUtil", ".", "getSupportedHashAl...
Determine if the provided string is hashed by examining the algorithm tag. Note that this method is only avaiable for the Liberty profile. @param encoded_string the string with the encoded algorithm tag. @return true if the encoded algorithm is hash. false otherwise.
[ "Determine", "if", "the", "provided", "string", "is", "hashed", "by", "examining", "the", "algorithm", "tag", ".", "Note", "that", "this", "method", "is", "only", "avaiable", "for", "the", "Liberty", "profile", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java#L371-L374
68,240
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java
PasswordUtil.passwordEncode
public static String passwordEncode(String decoded_string, String crypto_algorithm) { /* * check input: * * -- decoded_string: any string, any length, cannot be null, * may start with valid (supported) crypto algorithm tag * * -- crypto_algorithm: any stri...
java
public static String passwordEncode(String decoded_string, String crypto_algorithm) { /* * check input: * * -- decoded_string: any string, any length, cannot be null, * may start with valid (supported) crypto algorithm tag * * -- crypto_algorithm: any stri...
[ "public", "static", "String", "passwordEncode", "(", "String", "decoded_string", ",", "String", "crypto_algorithm", ")", "{", "/*\n * check input:\n * \n * -- decoded_string: any string, any length, cannot be null,\n * may start with valid (supported) crypto a...
Encode the provided password with the algorithm. If another algorithm is already applied, it will be removed and replaced with the new algorithm. @param decoded_string the string to be encoded, or the encoded string. @param crypto_algorithm the algorithm to be used for encoding. The supported values are xor, aes, or h...
[ "Encode", "the", "provided", "password", "with", "the", "algorithm", ".", "If", "another", "algorithm", "is", "already", "applied", "it", "will", "be", "removed", "and", "replaced", "with", "the", "new", "algorithm", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java#L442-L471
68,241
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java
PasswordUtil.removeCryptoAlgorithmTag
public static String removeCryptoAlgorithmTag(String password) { if (null == password) { return null; } String rc = null; String data = password.trim(); if (data.length() >= 2) { if ('{' == data.charAt(0)) { int end = data.indexOf('}', 1);...
java
public static String removeCryptoAlgorithmTag(String password) { if (null == password) { return null; } String rc = null; String data = password.trim(); if (data.length() >= 2) { if ('{' == data.charAt(0)) { int end = data.indexOf('}', 1);...
[ "public", "static", "String", "removeCryptoAlgorithmTag", "(", "String", "password", ")", "{", "if", "(", "null", "==", "password", ")", "{", "return", "null", ";", "}", "String", "rc", "=", "null", ";", "String", "data", "=", "password", ".", "trim", "(...
Remove the algorithm tag from the input encoded password. @param password the string which contains the crypto algorithm tag. @return The string which the crypto algorithm tag is removed.
[ "Remove", "the", "algorithm", "tag", "from", "the", "input", "encoded", "password", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java#L479-L501
68,242
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java
PasswordUtil.convert_viewable_to_bytes
private static byte[] convert_viewable_to_bytes(String string) { if (null == string) { return null; } if (0 == string.length()) { return EMPTY_BYTE_ARRAY; } return Base64Coder.base64Decode(convert_to_bytes(string)); }
java
private static byte[] convert_viewable_to_bytes(String string) { if (null == string) { return null; } if (0 == string.length()) { return EMPTY_BYTE_ARRAY; } return Base64Coder.base64Decode(convert_to_bytes(string)); }
[ "private", "static", "byte", "[", "]", "convert_viewable_to_bytes", "(", "String", "string", ")", "{", "if", "(", "null", "==", "string", ")", "{", "return", "null", ";", "}", "if", "(", "0", "==", "string", ".", "length", "(", ")", ")", "{", "return...
Convert the string to bytes using UTF-8 encoding and then run it through the base64 decoding. @param string @return byte[] - null if null input or an error in the conversion happens
[ "Convert", "the", "string", "to", "bytes", "using", "UTF", "-", "8", "encoding", "and", "then", "run", "it", "through", "the", "base64", "decoding", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java#L552-L560
68,243
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java
PasswordUtil.convert_viewable_to_string
private static String convert_viewable_to_string(byte[] bytes) { String string = null; if (bytes != null) { if (bytes.length == 0) { string = EMPTY_STRING; } else { string = convert_to_string(Base64Coder.base64Encode(bytes)); } ...
java
private static String convert_viewable_to_string(byte[] bytes) { String string = null; if (bytes != null) { if (bytes.length == 0) { string = EMPTY_STRING; } else { string = convert_to_string(Base64Coder.base64Encode(bytes)); } ...
[ "private", "static", "String", "convert_viewable_to_string", "(", "byte", "[", "]", "bytes", ")", "{", "String", "string", "=", "null", ";", "if", "(", "bytes", "!=", "null", ")", "{", "if", "(", "bytes", ".", "length", "==", "0", ")", "{", "string", ...
Use base64 encoding on the bytes and then convert them to a string using UTF-8 encoding. @param bytes @return String - null if input is null or an error happens during the conversion
[ "Use", "base64", "encoding", "on", "the", "bytes", "and", "then", "convert", "them", "to", "a", "string", "using", "UTF", "-", "8", "encoding", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java#L569-L580
68,244
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java
PasswordUtil.decode_password
private static String decode_password(String encoded_string, String crypto_algorithm) { /* * decoding process: * * -- check for empty algorithm tag * -- convert input String to byte[] using base64 decoding * -- decipher byte[] * -- convert byte[] to String ...
java
private static String decode_password(String encoded_string, String crypto_algorithm) { /* * decoding process: * * -- check for empty algorithm tag * -- convert input String to byte[] using base64 decoding * -- decipher byte[] * -- convert byte[] to String ...
[ "private", "static", "String", "decode_password", "(", "String", "encoded_string", ",", "String", "crypto_algorithm", ")", "{", "/*\n * decoding process:\n * \n * -- check for empty algorithm tag\n * -- convert input String to byte[] using base64 decoding\n ...
Decode the provided string with the specified algorithm. @param encoded_string @param crypto_algorithm @return String
[ "Decode", "the", "provided", "string", "with", "the", "specified", "algorithm", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java#L589-L647
68,245
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java
PasswordUtil.encode_password
public static String encode_password(String decoded_string, String crypto_algorithm, Map<String, String> properties) { /* * encoding process: * * -- check for empty algorithm tag * -- convert input String to byte[] UTF8 conversion code * -- encipher byte[] ...
java
public static String encode_password(String decoded_string, String crypto_algorithm, Map<String, String> properties) { /* * encoding process: * * -- check for empty algorithm tag * -- convert input String to byte[] UTF8 conversion code * -- encipher byte[] ...
[ "public", "static", "String", "encode_password", "(", "String", "decoded_string", ",", "String", "crypto_algorithm", ",", "Map", "<", "String", ",", "String", ">", "properties", ")", "{", "/*\n * encoding process:\n * \n * -- check for empty algorithm ...
Encode the provided string by using the specified encoding algorithm and properties @param decoded_string the string to be encoded. @param crypto_algorithm the algorithm to be used for encoding. The supported values are xor, aes, or hash. @param properties the properties for the encryption. @return The encoded string....
[ "Encode", "the", "provided", "string", "by", "using", "the", "specified", "encoding", "algorithm", "and", "properties" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/websphere/crypto/PasswordUtil.java#L657-L732
68,246
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/AbstractFileClient.java
AbstractFileClient.getAsset
protected Asset getAsset(final String assetId, final boolean includeAttachments) throws FileNotFoundException, IOException, BadVersionException { Asset ass = readJson(assetId); ass.set_id(assetId); // We always get a wlp info when read back from Massive so create one if there isnt already one ...
java
protected Asset getAsset(final String assetId, final boolean includeAttachments) throws FileNotFoundException, IOException, BadVersionException { Asset ass = readJson(assetId); ass.set_id(assetId); // We always get a wlp info when read back from Massive so create one if there isnt already one ...
[ "protected", "Asset", "getAsset", "(", "final", "String", "assetId", ",", "final", "boolean", "includeAttachments", ")", "throws", "FileNotFoundException", ",", "IOException", ",", "BadVersionException", "{", "Asset", "ass", "=", "readJson", "(", "assetId", ")", "...
Gets the specified asset @param assetId The asset id to get @param includeAttachments Flag to specify if the attachments should be read as well. @return @throws FileNotFoundException @throws IOException @throws BadVersionException
[ "Gets", "the", "specified", "asset" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/AbstractFileClient.java#L108-L169
68,247
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/AbstractFileClient.java
AbstractFileClient.getName
protected String getName(final String relative) { return relative.substring(relative.lastIndexOf(File.separator) + 1); }
java
protected String getName(final String relative) { return relative.substring(relative.lastIndexOf(File.separator) + 1); }
[ "protected", "String", "getName", "(", "final", "String", "relative", ")", "{", "return", "relative", ".", "substring", "(", "relative", ".", "lastIndexOf", "(", "File", ".", "separator", ")", "+", "1", ")", ";", "}" ]
Gets the name from the relative path of the asset @param relative @return
[ "Gets", "the", "name", "from", "the", "relative", "path", "of", "the", "asset" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/AbstractFileClient.java#L214-L216
68,248
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/AbstractFileClient.java
AbstractFileClient.getInputStreamToLicenseInsideZip
protected InputStream getInputStreamToLicenseInsideZip(final ZipInputStream zis, final String assetId, final String attachmentId) throws IOException { InputStream is = null; try { ZipEntry ze = zis.getNextEntry(); while (ze != null) { if (ze.isDirectory()) { ...
java
protected InputStream getInputStreamToLicenseInsideZip(final ZipInputStream zis, final String assetId, final String attachmentId) throws IOException { InputStream is = null; try { ZipEntry ze = zis.getNextEntry(); while (ze != null) { if (ze.isDirectory()) { ...
[ "protected", "InputStream", "getInputStreamToLicenseInsideZip", "(", "final", "ZipInputStream", "zis", ",", "final", "String", "assetId", ",", "final", "String", "attachmentId", ")", "throws", "IOException", "{", "InputStream", "is", "=", "null", ";", "try", "{", ...
Given a ZipInputStream to an asset within the repo get an input stream to the license attachment within the asset. @param zis ZipInputStream to the container for the asset (i.e. ZipInputStream to an ESA file inside a repo). @param assetId The id of the asset @param attachmentId The id of the license to get an input st...
[ "Given", "a", "ZipInputStream", "to", "an", "asset", "within", "the", "repo", "get", "an", "input", "stream", "to", "the", "license", "attachment", "within", "the", "asset", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/AbstractFileClient.java#L232-L270
68,249
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.reset
void reset( Object key) { _nodeKey[0] = key; _nodeKey[midPoint()] = key; _population = 1; _rightChild = null; _leftChild = null; _balance = 0; }
java
void reset( Object key) { _nodeKey[0] = key; _nodeKey[midPoint()] = key; _population = 1; _rightChild = null; _leftChild = null; _balance = 0; }
[ "void", "reset", "(", "Object", "key", ")", "{", "_nodeKey", "[", "0", "]", "=", "key", ";", "_nodeKey", "[", "midPoint", "(", ")", "]", "=", "key", ";", "_population", "=", "1", ";", "_rightChild", "=", "null", ";", "_leftChild", "=", "null", ";",...
Return the node to its post-construction state. @param key The key that would have been passed in to the constructor for the newly allocated node.
[ "Return", "the", "node", "to", "its", "post", "-", "construction", "state", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L67-L76
68,250
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.hasChild
boolean hasChild() { boolean has = false; if ( (leftChild() != null) || (rightChild() != null) ) has = true; return has; }
java
boolean hasChild() { boolean has = false; if ( (leftChild() != null) || (rightChild() != null) ) has = true; return has; }
[ "boolean", "hasChild", "(", ")", "{", "boolean", "has", "=", "false", ";", "if", "(", "(", "leftChild", "(", ")", "!=", "null", ")", "||", "(", "rightChild", "(", ")", "!=", "null", ")", ")", "has", "=", "true", ";", "return", "has", ";", "}" ]
Return true if the node has either a right child or a left child.
[ "Return", "true", "if", "the", "node", "has", "either", "a", "right", "child", "or", "a", "left", "child", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L171-L177
68,251
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.balance
public short balance() { if ( (_balance == -1) || (_balance == 0) || (_balance == 1) ) return _balance; else { String x = "Found invalid balance factor: " + _balance; throw new RuntimeException(x); } }
java
public short balance() { if ( (_balance == -1) || (_balance == 0) || (_balance == 1) ) return _balance; else { String x = "Found invalid balance factor: " + _balance; throw new RuntimeException(x); } }
[ "public", "short", "balance", "(", ")", "{", "if", "(", "(", "_balance", "==", "-", "1", ")", "||", "(", "_balance", "==", "0", ")", "||", "(", "_balance", "==", "1", ")", ")", "return", "_balance", ";", "else", "{", "String", "x", "=", "\"Found ...
Return the balance factor for the node.
[ "Return", "the", "balance", "factor", "for", "the", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L193-L202
68,252
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.setBalance
void setBalance( int b) { if ( (b == -1) || (b == 0) || (b == 1) ) _balance = (short) b; else { String x = "Attempt to set invalid balance factor: " + b; throw new IllegalArgumentException(x); } }
java
void setBalance( int b) { if ( (b == -1) || (b == 0) || (b == 1) ) _balance = (short) b; else { String x = "Attempt to set invalid balance factor: " + b; throw new IllegalArgumentException(x); } }
[ "void", "setBalance", "(", "int", "b", ")", "{", "if", "(", "(", "b", "==", "-", "1", ")", "||", "(", "b", "==", "0", ")", "||", "(", "b", "==", "1", ")", ")", "_balance", "=", "(", "short", ")", "b", ";", "else", "{", "String", "x", "=",...
Set the node's balance factor to a new value. @param b The value to set, which must be 0, -1, or +1.
[ "Set", "the", "node", "s", "balance", "factor", "to", "a", "new", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L215-L225
68,253
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.isLeafNode
public boolean isLeafNode() { boolean leaf = false; if ( (_leftChild == null) && (_rightChild == null) ) leaf = true; return leaf; }
java
public boolean isLeafNode() { boolean leaf = false; if ( (_leftChild == null) && (_rightChild == null) ) leaf = true; return leaf; }
[ "public", "boolean", "isLeafNode", "(", ")", "{", "boolean", "leaf", "=", "false", ";", "if", "(", "(", "_leftChild", "==", "null", ")", "&&", "(", "_rightChild", "==", "null", ")", ")", "leaf", "=", "true", ";", "return", "leaf", ";", "}" ]
Return true if the node is a leaf node.
[ "Return", "true", "if", "the", "node", "is", "a", "leaf", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L273-L280
68,254
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.findInsertPointInLeft
void findInsertPointInLeft( Object new1, NodeInsertPoint point) { int endp = endPoint(); findIndex(0, endp, new1, point); }
java
void findInsertPointInLeft( Object new1, NodeInsertPoint point) { int endp = endPoint(); findIndex(0, endp, new1, point); }
[ "void", "findInsertPointInLeft", "(", "Object", "new1", ",", "NodeInsertPoint", "point", ")", "{", "int", "endp", "=", "endPoint", "(", ")", ";", "findIndex", "(", "0", ",", "endp", ",", "new1", ",", "point", ")", ";", "}" ]
Find the insert point in the left half of the node for a new key. @param new1 New Object to be inserted @param point Found insertion point
[ "Find", "the", "insert", "point", "in", "the", "left", "half", "of", "the", "node", "for", "a", "new", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L336-L342
68,255
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.searchLeft
public int searchLeft( SearchComparator comp, Object searchKey) { int idx = -1; int top = middleIndex(); if (comp.type() == SearchComparator.EQ) idx = findEqual(comp, 0, top, searchKey); else idx = findGreater(comp, 0, top, searchKey); return idx; }
java
public int searchLeft( SearchComparator comp, Object searchKey) { int idx = -1; int top = middleIndex(); if (comp.type() == SearchComparator.EQ) idx = findEqual(comp, 0, top, searchKey); else idx = findGreater(comp, 0, top, searchKey); return idx; }
[ "public", "int", "searchLeft", "(", "SearchComparator", "comp", ",", "Object", "searchKey", ")", "{", "int", "idx", "=", "-", "1", ";", "int", "top", "=", "middleIndex", "(", ")", ";", "if", "(", "comp", ".", "type", "(", ")", "==", "SearchComparator",...
Search the left half of the node. <p>Look in the left half of the node to find an index entry that is one of <ol> <li>an exact match for the supplied key, <li>greater than the supplied key, or <li>greater than or equal to the supplied key. </ol> The type of the supplied SearchComparator indicate which of the above thr...
[ "Search", "the", "left", "half", "of", "the", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L424-L436
68,256
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.searchRight
public int searchRight( SearchComparator comp, Object searchKey) { int idx = -1; int bot = middleIndex(); int right = rightMostIndex(); if (bot > right) { String x = "bot = " + bot + ", right = " + right; throw new OptimisticDepthException(x); }...
java
public int searchRight( SearchComparator comp, Object searchKey) { int idx = -1; int bot = middleIndex(); int right = rightMostIndex(); if (bot > right) { String x = "bot = " + bot + ", right = " + right; throw new OptimisticDepthException(x); }...
[ "public", "int", "searchRight", "(", "SearchComparator", "comp", ",", "Object", "searchKey", ")", "{", "int", "idx", "=", "-", "1", ";", "int", "bot", "=", "middleIndex", "(", ")", ";", "int", "right", "=", "rightMostIndex", "(", ")", ";", "if", "(", ...
Search the right half of the node. <p>Look in the right half of the node to find an index entry that is one of <ol> <li>an exact match for the supplied key, <li>greater than the supplied key, or <li>greater than or equal to the supplied key. </ol> The type of the supplied SearchComparator indicate which of the above t...
[ "Search", "the", "right", "half", "of", "the", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L456-L475
68,257
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.searchAll
int searchAll( SearchComparator comp, Object searchKey) { int idx = -1; if (comp.type() == SearchComparator.EQ) idx = findEqual(comp, 0, rightMostIndex(), searchKey); else idx = findGreater(comp, 0, rightMostIndex(), searchKey); return idx; }
java
int searchAll( SearchComparator comp, Object searchKey) { int idx = -1; if (comp.type() == SearchComparator.EQ) idx = findEqual(comp, 0, rightMostIndex(), searchKey); else idx = findGreater(comp, 0, rightMostIndex(), searchKey); return idx; }
[ "int", "searchAll", "(", "SearchComparator", "comp", ",", "Object", "searchKey", ")", "{", "int", "idx", "=", "-", "1", ";", "if", "(", "comp", ".", "type", "(", ")", "==", "SearchComparator", ".", "EQ", ")", "idx", "=", "findEqual", "(", "comp", ","...
Search the whole node. <p>Look in the whole node to find an index entry that is one of</p> <ol> <li>an exact match for the supplied key, <li>greater than the supplied key, or <li>greater than or equal to the supplied key. </ol> <p>The type of the supplied SearchComparator indicate which of the above three conditions a...
[ "Search", "the", "whole", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L494-L505
68,258
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.findEqual
private int findEqual( SearchComparator comp, int lower, int upper, Object searchKey) { int nkeys = numKeys(lower, upper); int idx = -1; if (nkeys < 4) idx = sequentialSearchEqual(comp, lower, upper, searchKey); else idx = binarySearc...
java
private int findEqual( SearchComparator comp, int lower, int upper, Object searchKey) { int nkeys = numKeys(lower, upper); int idx = -1; if (nkeys < 4) idx = sequentialSearchEqual(comp, lower, upper, searchKey); else idx = binarySearc...
[ "private", "int", "findEqual", "(", "SearchComparator", "comp", ",", "int", "lower", ",", "int", "upper", ",", "Object", "searchKey", ")", "{", "int", "nkeys", "=", "numKeys", "(", "lower", ",", "upper", ")", ";", "int", "idx", "=", "-", "1", ";", "i...
Find an index entry that is equal to the supplied key. @param searchKey The key to find. @return Index of key within node. -1 if key does not exist.
[ "Find", "an", "index", "entry", "that", "is", "equal", "to", "the", "supplied", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L514-L527
68,259
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.sequentialSearchEqual
private int sequentialSearchEqual( SearchComparator comp, int lower, int upper, Object searchKey) { int xcc; /* Current compare result */ int idx = -1; /* The returned index (-1 if not found) */ ...
java
private int sequentialSearchEqual( SearchComparator comp, int lower, int upper, Object searchKey) { int xcc; /* Current compare result */ int idx = -1; /* The returned index (-1 if not found) */ ...
[ "private", "int", "sequentialSearchEqual", "(", "SearchComparator", "comp", ",", "int", "lower", ",", "int", "upper", ",", "Object", "searchKey", ")", "{", "int", "xcc", ";", "/* Current compare result */", "int", "idx", "=", "-", "1", ";", "/* Th...
Use sequential search to find a matched key.
[ "Use", "sequential", "search", "to", "find", "a", "matched", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L532-L550
68,260
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.findGreater
private int findGreater( SearchComparator comp, int lower, int upper, Object searchKey) { int nkeys = numKeys(lower, upper); int idx = -1; if (nkeys < 4) idx = sequentialSearchGreater(comp, lower, upper, searchKey); else idx = binaryS...
java
private int findGreater( SearchComparator comp, int lower, int upper, Object searchKey) { int nkeys = numKeys(lower, upper); int idx = -1; if (nkeys < 4) idx = sequentialSearchGreater(comp, lower, upper, searchKey); else idx = binaryS...
[ "private", "int", "findGreater", "(", "SearchComparator", "comp", ",", "int", "lower", ",", "int", "upper", ",", "Object", "searchKey", ")", "{", "int", "nkeys", "=", "numKeys", "(", "lower", ",", "upper", ")", ";", "int", "idx", "=", "-", "1", ";", ...
Find an index entry that is either greater than or greater than or equal to the supplied key. @param searchKey The key to find. @return Index of key within node. -1 if key does not exist.
[ "Find", "an", "index", "entry", "that", "is", "either", "greater", "than", "or", "greater", "than", "or", "equal", "to", "the", "supplied", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L592-L605
68,261
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.findIndex
private void findIndex( int lower, int upper, Object new1, NodeInsertPoint point) { int nkeys = numKeys(lower, upper); if (nkeys < 4) sequentialFindIndex(lower, upper, new1, point); else binaryFindIndex(lower, upper, new1, point); }
java
private void findIndex( int lower, int upper, Object new1, NodeInsertPoint point) { int nkeys = numKeys(lower, upper); if (nkeys < 4) sequentialFindIndex(lower, upper, new1, point); else binaryFindIndex(lower, upper, new1, point); }
[ "private", "void", "findIndex", "(", "int", "lower", ",", "int", "upper", ",", "Object", "new1", ",", "NodeInsertPoint", "point", ")", "{", "int", "nkeys", "=", "numKeys", "(", "lower", ",", "upper", ")", ";", "if", "(", "nkeys", "<", "4", ")", "sequ...
Find the insert point for a new key. <p>Find the insert point for a new key. This method finds the point AFTER which the new key should be inserted. The key does not need to be bounded by the node value and duplicates are allowed. If the new key is less than the lowest value already in the node, -1 is returned as th...
[ "Find", "the", "insert", "point", "for", "a", "new", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L681-L692
68,262
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.binaryFindIndex
private void binaryFindIndex( int lower, int upper, Object new1, NodeInsertPoint point) { java.util.Comparator comp = insertComparator(); int xcc; /* Current compare result */ int lxcc = +1; /* Rememb...
java
private void binaryFindIndex( int lower, int upper, Object new1, NodeInsertPoint point) { java.util.Comparator comp = insertComparator(); int xcc; /* Current compare result */ int lxcc = +1; /* Rememb...
[ "private", "void", "binaryFindIndex", "(", "int", "lower", ",", "int", "upper", ",", "Object", "new1", ",", "NodeInsertPoint", "point", ")", "{", "java", ".", "util", ".", "Comparator", "comp", "=", "insertComparator", "(", ")", ";", "int", "xcc", ";", "...
Use binary search to find the insert point.
[ "Use", "binary", "search", "to", "find", "the", "insert", "point", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L726-L754
68,263
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.findDeleteInRight
int findDeleteInRight( Object delKey) { int idx = -1; int r = rightMostIndex(); int m = midPoint(); if (r > m) idx = findDelete(m, r, delKey); return idx; }
java
int findDeleteInRight( Object delKey) { int idx = -1; int r = rightMostIndex(); int m = midPoint(); if (r > m) idx = findDelete(m, r, delKey); return idx; }
[ "int", "findDeleteInRight", "(", "Object", "delKey", ")", "{", "int", "idx", "=", "-", "1", ";", "int", "r", "=", "rightMostIndex", "(", ")", ";", "int", "m", "=", "midPoint", "(", ")", ";", "if", "(", "r", ">", "m", ")", "idx", "=", "findDelete"...
Find the delete key in the right half of the node. <p>The key to be found is known to be greater than the key at the mid point. If the key at the mid point is the last key in the node then the delete key is not here.</p>
[ "Find", "the", "delete", "key", "in", "the", "right", "half", "of", "the", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L763-L772
68,264
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.findDelete
int findDelete( int lower, int upper, Object delKey) { int nkeys = numKeys(lower, upper); int idx = -1; if (nkeys < 4) idx = sequentialFindDelete(lower, upper, delKey); else idx = binaryFindDelete(lower, upper, delKey); return idx; }
java
int findDelete( int lower, int upper, Object delKey) { int nkeys = numKeys(lower, upper); int idx = -1; if (nkeys < 4) idx = sequentialFindDelete(lower, upper, delKey); else idx = binaryFindDelete(lower, upper, delKey); return idx; }
[ "int", "findDelete", "(", "int", "lower", ",", "int", "upper", ",", "Object", "delKey", ")", "{", "int", "nkeys", "=", "numKeys", "(", "lower", ",", "upper", ")", ";", "int", "idx", "=", "-", "1", ";", "if", "(", "nkeys", "<", "4", ")", "idx", ...
Find the index of the key to delete. @param delKey The key to delete. @return Index of key within node. -1 if key does not exist.
[ "Find", "the", "index", "of", "the", "key", "to", "delete", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L791-L803
68,265
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.sequentialFindDelete
private int sequentialFindDelete( int lower, int upper, Object delKey) { java.util.Comparator comp = deleteComparator(); int xcc; /* Current compare result */ int idx = -1; /* The returned index (-1 if no...
java
private int sequentialFindDelete( int lower, int upper, Object delKey) { java.util.Comparator comp = deleteComparator(); int xcc; /* Current compare result */ int idx = -1; /* The returned index (-1 if no...
[ "private", "int", "sequentialFindDelete", "(", "int", "lower", ",", "int", "upper", ",", "Object", "delKey", ")", "{", "java", ".", "util", ".", "Comparator", "comp", "=", "deleteComparator", "(", ")", ";", "int", "xcc", ";", "/* Current compare result ...
Use sequential search to find the delete key.
[ "Use", "sequential", "search", "to", "find", "the", "delete", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L808-L826
68,266
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.binaryFindDelete
private int binaryFindDelete( int lower, int upper, Object delKey) { java.util.Comparator comp = insertComparator(); int xcc; /* Current compare result */ int i; int idx = -1; /* Returned index (-1 if...
java
private int binaryFindDelete( int lower, int upper, Object delKey) { java.util.Comparator comp = insertComparator(); int xcc; /* Current compare result */ int i; int idx = -1; /* Returned index (-1 if...
[ "private", "int", "binaryFindDelete", "(", "int", "lower", ",", "int", "upper", ",", "Object", "delKey", ")", "{", "java", ".", "util", ".", "Comparator", "comp", "=", "insertComparator", "(", ")", ";", "int", "xcc", ";", "/* Current compare result ...
Use binary search to find the delete key.
[ "Use", "binary", "search", "to", "find", "the", "delete", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L831-L858
68,267
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.middleIndex
public int middleIndex() { int x = midPoint(); int r = rightMostIndex(); if (r < midPoint()) x = r; return x; }
java
public int middleIndex() { int x = midPoint(); int r = rightMostIndex(); if (r < midPoint()) x = r; return x; }
[ "public", "int", "middleIndex", "(", ")", "{", "int", "x", "=", "midPoint", "(", ")", ";", "int", "r", "=", "rightMostIndex", "(", ")", ";", "if", "(", "r", "<", "midPoint", "(", ")", ")", "x", "=", "r", ";", "return", "x", ";", "}" ]
Return the index to the key at the median position in the node.
[ "Return", "the", "index", "to", "the", "key", "at", "the", "median", "position", "in", "the", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L923-L930
68,268
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.addRightLeaf
void addRightLeaf( Object new1) { GBSNode p = _index.getNode(new1); if (rightChild() != null) throw new RuntimeException("Help!"); setRightChild(p); }
java
void addRightLeaf( Object new1) { GBSNode p = _index.getNode(new1); if (rightChild() != null) throw new RuntimeException("Help!"); setRightChild(p); }
[ "void", "addRightLeaf", "(", "Object", "new1", ")", "{", "GBSNode", "p", "=", "_index", ".", "getNode", "(", "new1", ")", ";", "if", "(", "rightChild", "(", ")", "!=", "null", ")", "throw", "new", "RuntimeException", "(", "\"Help!\"", ")", ";", "setRig...
Add a right child to the node placing in the new right child the supplied key.
[ "Add", "a", "right", "child", "to", "the", "node", "placing", "in", "the", "new", "right", "child", "the", "supplied", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L954-L961
68,269
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.insertByLeftShift
Object insertByLeftShift( int ix, Object new1) { Object old1 = leftMostKey(); leftShift(ix); _nodeKey[ix] = new1; if (midPoint() > rightMostIndex()) _nodeKey[midPoint()] = rightMostKey(); return old1; }
java
Object insertByLeftShift( int ix, Object new1) { Object old1 = leftMostKey(); leftShift(ix); _nodeKey[ix] = new1; if (midPoint() > rightMostIndex()) _nodeKey[midPoint()] = rightMostKey(); return old1; }
[ "Object", "insertByLeftShift", "(", "int", "ix", ",", "Object", "new1", ")", "{", "Object", "old1", "=", "leftMostKey", "(", ")", ";", "leftShift", "(", "ix", ")", ";", "_nodeKey", "[", "ix", "]", "=", "new1", ";", "if", "(", "midPoint", "(", ")", ...
Insert a new key by overlaying the left-most key, shifting other keys left and inserting the new key at the appropriate insert point. @param ix The insert point within the node. @param new1 The new key to be inserted. @return the key that used to be the left-most key in the node.
[ "Insert", "a", "new", "key", "by", "overlaying", "the", "left", "-", "most", "key", "shifting", "other", "keys", "left", "and", "inserting", "the", "new", "key", "at", "the", "appropriate", "insert", "point", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L972-L982
68,270
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.leftShift
private void leftShift( int ix) { for (int j = 0; j < ix; j++) _nodeKey[j] = _nodeKey[j+1]; }
java
private void leftShift( int ix) { for (int j = 0; j < ix; j++) _nodeKey[j] = _nodeKey[j+1]; }
[ "private", "void", "leftShift", "(", "int", "ix", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "ix", ";", "j", "++", ")", "_nodeKey", "[", "j", "]", "=", "_nodeKey", "[", "j", "+", "1", "]", ";", "}" ]
Open up a slot in a node by shifting the keys left. <p>We are inserting a new key into a node that is not currently full. There is at least one vacant slot. We open up the correct slot for the new key by shifting all other keys left.</p>
[ "Open", "up", "a", "slot", "in", "a", "node", "by", "shifting", "the", "keys", "left", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L1004-L1009
68,271
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.insertByRightShift
Object insertByRightShift( int ix, Object new1) { Object old1 = null; if (isFull()) { old1 = rightMostKey(); rightMove(ix+1); _nodeKey[ix+1] = new1; } else { rightShift(ix+1); _nodeKey[ix+1] = new1; _populat...
java
Object insertByRightShift( int ix, Object new1) { Object old1 = null; if (isFull()) { old1 = rightMostKey(); rightMove(ix+1); _nodeKey[ix+1] = new1; } else { rightShift(ix+1); _nodeKey[ix+1] = new1; _populat...
[ "Object", "insertByRightShift", "(", "int", "ix", ",", "Object", "new1", ")", "{", "Object", "old1", "=", "null", ";", "if", "(", "isFull", "(", ")", ")", "{", "old1", "=", "rightMostKey", "(", ")", ";", "rightMove", "(", "ix", "+", "1", ")", ";", ...
Insert a new key by shifting keys right. <p>Insert a new key by overlaying the right-most key, shifting other keys right and inserting the new key at the appropriate insert point.</p> @param ix The insert point within the node. @param new1 The new key to be inserted. @return the key that used to be the right-most key...
[ "Insert", "a", "new", "key", "by", "shifting", "keys", "right", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L1022-L1042
68,272
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.addRightMostKey
Object addRightMostKey( Object new1) { Object old1 = null; if (isFull()) /* Node is currently full */ { /* We will overlay right-most key */ old1 = rightMostKey(); _nodeKey[rightMostIndex()] = new1; }...
java
Object addRightMostKey( Object new1) { Object old1 = null; if (isFull()) /* Node is currently full */ { /* We will overlay right-most key */ old1 = rightMostKey(); _nodeKey[rightMostIndex()] = new1; }...
[ "Object", "addRightMostKey", "(", "Object", "new1", ")", "{", "Object", "old1", "=", "null", ";", "if", "(", "isFull", "(", ")", ")", "/* Node is currently full */", "{", "/* We will overlay right-most key */", "old1", "=", "rightMostKey", "(", ...
Add the right-most key to the node. <p>Insert a new key in the right-most slot in the node. If this causes the right-most key to be overlayed it is returned to the caller. Otherwise null is returned to the caller.</p> @param new1 The new key to be inserted. @return the key that used to be the right-most key in the n...
[ "Add", "the", "right", "-", "most", "key", "to", "the", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L1092-L1111
68,273
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.fillFromRight
void fillFromRight() { int gapWid = width() - population(); int gidx = population(); GBSNode p = rightChild(); for (int j = 0; j < gapWid; j++) _nodeKey[j+gidx] = p._nodeKey[j]; int delta = gapWid; if (p._population < delta) delta = p._population; _population += delta; p....
java
void fillFromRight() { int gapWid = width() - population(); int gidx = population(); GBSNode p = rightChild(); for (int j = 0; j < gapWid; j++) _nodeKey[j+gidx] = p._nodeKey[j]; int delta = gapWid; if (p._population < delta) delta = p._population; _population += delta; p....
[ "void", "fillFromRight", "(", ")", "{", "int", "gapWid", "=", "width", "(", ")", "-", "population", "(", ")", ";", "int", "gidx", "=", "population", "(", ")", ";", "GBSNode", "p", "=", "rightChild", "(", ")", ";", "for", "(", "int", "j", "=", "0"...
Fill a node with new keys from the right side. <p>A node that is not completely full has acquired a right child. Use the left keys of the right child to fill the node as much as possible, limited by the free space in the current node and the population of the right child.</p>
[ "Fill", "a", "node", "with", "new", "keys", "from", "the", "right", "side", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L1179-L1193
68,274
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.rightMostChild
GBSNode rightMostChild() { GBSNode q = this; GBSNode p = rightChild(); while (p != null) { q = p; p = p.rightChild(); } return q; }
java
GBSNode rightMostChild() { GBSNode q = this; GBSNode p = rightChild(); while (p != null) { q = p; p = p.rightChild(); } return q; }
[ "GBSNode", "rightMostChild", "(", ")", "{", "GBSNode", "q", "=", "this", ";", "GBSNode", "p", "=", "rightChild", "(", ")", ";", "while", "(", "p", "!=", "null", ")", "{", "q", "=", "p", ";", "p", "=", "p", ".", "rightChild", "(", ")", ";", "}",...
Find the right-most child of a node by following the paths of all of the right-most children all the way to the bottom of the tree.
[ "Find", "the", "right", "-", "most", "child", "of", "a", "node", "by", "following", "the", "paths", "of", "all", "of", "the", "right", "-", "most", "children", "all", "the", "way", "to", "the", "bottom", "of", "the", "tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L1210-L1220
68,275
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.rightShift
private void rightShift( int ix) { for (int j = rightMostIndex(); j >= ix; j--) _nodeKey[j+1] = _nodeKey[j]; }
java
private void rightShift( int ix) { for (int j = rightMostIndex(); j >= ix; j--) _nodeKey[j+1] = _nodeKey[j]; }
[ "private", "void", "rightShift", "(", "int", "ix", ")", "{", "for", "(", "int", "j", "=", "rightMostIndex", "(", ")", ";", "j", ">=", "ix", ";", "j", "--", ")", "_nodeKey", "[", "j", "+", "1", "]", "=", "_nodeKey", "[", "j", "]", ";", "}" ]
Open up a slot for a new key by shifting keys right to make room. <p>We are inserting a new key into a node that is not currently full. There is at least one vacant slot. We open up the correct slot for the new key by shifting all other keys right.</p>
[ "Open", "up", "a", "slot", "for", "a", "new", "key", "by", "shifting", "keys", "right", "to", "make", "room", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L1229-L1234
68,276
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.rightMove
private void rightMove( int ix) { for (int j = rightMostIndex()-1; j >= ix; j--) _nodeKey[j+1] = _nodeKey[j]; }
java
private void rightMove( int ix) { for (int j = rightMostIndex()-1; j >= ix; j--) _nodeKey[j+1] = _nodeKey[j]; }
[ "private", "void", "rightMove", "(", "int", "ix", ")", "{", "for", "(", "int", "j", "=", "rightMostIndex", "(", ")", "-", "1", ";", "j", ">=", "ix", ";", "j", "--", ")", "_nodeKey", "[", "j", "+", "1", "]", "=", "_nodeKey", "[", "j", "]", ";"...
Open up a slot for a new key by shifting keys right to make room and overlaying the right-most key. <p>We are inserting a new key into a node that is currently full. We open up the correct slot for the new key by shifting all other keys right, overlaying the right-most key.</p>
[ "Open", "up", "a", "slot", "for", "a", "new", "key", "by", "shifting", "keys", "right", "to", "make", "room", "and", "overlaying", "the", "right", "-", "most", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L1244-L1249
68,277
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.overlayLeftShift
void overlayLeftShift( int ix) { for (int j = ix; j < rightMostIndex(); j++) _nodeKey[j] = _nodeKey[j+1]; }
java
void overlayLeftShift( int ix) { for (int j = ix; j < rightMostIndex(); j++) _nodeKey[j] = _nodeKey[j+1]; }
[ "void", "overlayLeftShift", "(", "int", "ix", ")", "{", "for", "(", "int", "j", "=", "ix", ";", "j", "<", "rightMostIndex", "(", ")", ";", "j", "++", ")", "_nodeKey", "[", "j", "]", "=", "_nodeKey", "[", "j", "+", "1", "]", ";", "}" ]
Overlay a key to be deleted by moving keys left. <p>We are removing a key from a node. We shift all of the keys left to overlay the slot of the key to be deleted and open up the slot occupied by the right-most key in the node.</p>
[ "Overlay", "a", "key", "to", "be", "deleted", "by", "moving", "keys", "left", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L1258-L1263
68,278
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.overlayRightShift
private void overlayRightShift( int ix) { for (int j = ix; j > 0; j--) _nodeKey[j] = _nodeKey[j-1]; }
java
private void overlayRightShift( int ix) { for (int j = ix; j > 0; j--) _nodeKey[j] = _nodeKey[j-1]; }
[ "private", "void", "overlayRightShift", "(", "int", "ix", ")", "{", "for", "(", "int", "j", "=", "ix", ";", "j", ">", "0", ";", "j", "--", ")", "_nodeKey", "[", "j", "]", "=", "_nodeKey", "[", "j", "-", "1", "]", ";", "}" ]
Overlay a key to be deleted by moving keys right. <p>We are removing a key from a node. We shift all of the keys right to overlay the slot of the key to be deleted and open up the slot occupied by the left most key in the node.</p>
[ "Overlay", "a", "key", "to", "be", "deleted", "by", "moving", "keys", "right", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L1272-L1277
68,279
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.lowerPredecessor
GBSNode lowerPredecessor( NodeStack stack) { GBSNode r = leftChild(); GBSNode lastr = r; if (r != null) stack.push(NodeStack.PROCESS_CURRENT, this); while (r != null) /* Find right-most child of left child */ { if (r.rightChild() != null) stack.push...
java
GBSNode lowerPredecessor( NodeStack stack) { GBSNode r = leftChild(); GBSNode lastr = r; if (r != null) stack.push(NodeStack.PROCESS_CURRENT, this); while (r != null) /* Find right-most child of left child */ { if (r.rightChild() != null) stack.push...
[ "GBSNode", "lowerPredecessor", "(", "NodeStack", "stack", ")", "{", "GBSNode", "r", "=", "leftChild", "(", ")", ";", "GBSNode", "lastr", "=", "r", ";", "if", "(", "r", "!=", "null", ")", "stack", ".", "push", "(", "NodeStack", ".", "PROCESS_CURRENT", "...
Find the lower predecessor of this node. <p>The lower predecessor is the right-most child of the left child. This is the prior node in order that is also below this node.</p> @param stack The stack that is used to remember the traversal path. @return The lower predecessor node.
[ "Find", "the", "lower", "predecessor", "of", "this", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L1289-L1304
68,280
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java
GBSNode.validate
public boolean validate() { boolean correct = true; if (population() > 1) { java.util.Comparator comp = index().insertComparator(); int xcc = 0; for (int i = 0; i < population()-1; i++) { xcc = comp.compare(_nodeKey[i], _nodeKey[i+1]); if ( !(xcc < 0) ) { ...
java
public boolean validate() { boolean correct = true; if (population() > 1) { java.util.Comparator comp = index().insertComparator(); int xcc = 0; for (int i = 0; i < population()-1; i++) { xcc = comp.compare(_nodeKey[i], _nodeKey[i+1]); if ( !(xcc < 0) ) { ...
[ "public", "boolean", "validate", "(", ")", "{", "boolean", "correct", "=", "true", ";", "if", "(", "population", "(", ")", ">", "1", ")", "{", "java", ".", "util", ".", "Comparator", "comp", "=", "index", "(", ")", ".", "insertComparator", "(", ")", ...
Used by test code to make sure that all of the keys within a node are in the correct collating sequence.
[ "Used", "by", "test", "code", "to", "make", "sure", "that", "all", "of", "the", "keys", "within", "a", "node", "are", "in", "the", "correct", "collating", "sequence", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSNode.java#L1375-L1393
68,281
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/archive/AbstractCDIArchive.java
AbstractCDIArchive.getExtensionClasses
@Override public Set<String> getExtensionClasses() { Set<String> serviceClazzes = new HashSet<>(); if (getType() == ArchiveType.WEB_MODULE) { Resource webInfClassesMetaInfServicesEntry = getResource(CDIUtils.WEB_INF_CLASSES_META_INF_SERVICES_CDI_EXTENSION); serviceClazzes.a...
java
@Override public Set<String> getExtensionClasses() { Set<String> serviceClazzes = new HashSet<>(); if (getType() == ArchiveType.WEB_MODULE) { Resource webInfClassesMetaInfServicesEntry = getResource(CDIUtils.WEB_INF_CLASSES_META_INF_SERVICES_CDI_EXTENSION); serviceClazzes.a...
[ "@", "Override", "public", "Set", "<", "String", ">", "getExtensionClasses", "(", ")", "{", "Set", "<", "String", ">", "serviceClazzes", "=", "new", "HashSet", "<>", "(", ")", ";", "if", "(", "getType", "(", ")", "==", "ArchiveType", ".", "WEB_MODULE", ...
Get hold of the extension class names from the file of META-INF\services\javax.enterprise.inject.spi.Extension @return a set of classes mentioned in the extension file
[ "Get", "hold", "of", "the", "extension", "class", "names", "from", "the", "file", "of", "META", "-", "INF", "\\", "services", "\\", "javax", ".", "enterprise", ".", "inject", ".", "spi", ".", "Extension" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/archive/AbstractCDIArchive.java#L134-L147
68,282
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/archive/AbstractCDIArchive.java
AbstractCDIArchive.getBeanDiscoveryMode
public BeanDiscoveryMode getBeanDiscoveryMode(CDIRuntime cdiRuntime, BeansXml beansXml) { BeanDiscoveryMode mode = BeanDiscoveryMode.ANNOTATED; if (beansXml != null) { mode = beansXml.getBeanDiscoveryMode(); } else if (cdiRuntime.isImplicitBeanArchivesScanningDisabled(this)) { ...
java
public BeanDiscoveryMode getBeanDiscoveryMode(CDIRuntime cdiRuntime, BeansXml beansXml) { BeanDiscoveryMode mode = BeanDiscoveryMode.ANNOTATED; if (beansXml != null) { mode = beansXml.getBeanDiscoveryMode(); } else if (cdiRuntime.isImplicitBeanArchivesScanningDisabled(this)) { ...
[ "public", "BeanDiscoveryMode", "getBeanDiscoveryMode", "(", "CDIRuntime", "cdiRuntime", ",", "BeansXml", "beansXml", ")", "{", "BeanDiscoveryMode", "mode", "=", "BeanDiscoveryMode", ".", "ANNOTATED", ";", "if", "(", "beansXml", "!=", "null", ")", "{", "mode", "=",...
Determine the bean deployment archive scanning mode If there is a beans.xml, the bean discovery mode will be used. If there is no beans.xml, the mode will be annotated, unless the enableImplicitBeanArchives is configured as false via the server.xml. If there is no beans.xml and the enableImplicitBeanArchives attribute ...
[ "Determine", "the", "bean", "deployment", "archive", "scanning", "mode", "If", "there", "is", "a", "beans", ".", "xml", "the", "bean", "discovery", "mode", "will", "be", "used", ".", "If", "there", "is", "no", "beans", ".", "xml", "the", "mode", "will", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/archive/AbstractCDIArchive.java#L183-L192
68,283
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/URAPIs_UserGroupSearchBases.java
URAPIs_UserGroupSearchBases.teardownClass
@AfterClass public static void teardownClass() throws Exception { try { if (libertyServer != null) { libertyServer.stopServer("CWIML4537E"); } } finally { if (ds != null) { ds.shutDown(true); } } libertyS...
java
@AfterClass public static void teardownClass() throws Exception { try { if (libertyServer != null) { libertyServer.stopServer("CWIML4537E"); } } finally { if (ds != null) { ds.shutDown(true); } } libertyS...
[ "@", "AfterClass", "public", "static", "void", "teardownClass", "(", ")", "throws", "Exception", "{", "try", "{", "if", "(", "libertyServer", "!=", "null", ")", "{", "libertyServer", ".", "stopServer", "(", "\"CWIML4537E\"", ")", ";", "}", "}", "finally", ...
Tear down the test.
[ "Tear", "down", "the", "test", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/URAPIs_UserGroupSearchBases.java#L94-L106
68,284
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/URAPIs_UserGroupSearchBases.java
URAPIs_UserGroupSearchBases.setupLibertyServer
private static void setupLibertyServer() throws Exception { /* * Add LDAP variables to bootstrap properties file */ LDAPUtils.addLDAPVariables(libertyServer); Log.info(c, "setUp", "Starting the server... (will wait for userRegistry servlet to start)"); libertyServer.cop...
java
private static void setupLibertyServer() throws Exception { /* * Add LDAP variables to bootstrap properties file */ LDAPUtils.addLDAPVariables(libertyServer); Log.info(c, "setUp", "Starting the server... (will wait for userRegistry servlet to start)"); libertyServer.cop...
[ "private", "static", "void", "setupLibertyServer", "(", ")", "throws", "Exception", "{", "/*\n * Add LDAP variables to bootstrap properties file\n */", "LDAPUtils", ".", "addLDAPVariables", "(", "libertyServer", ")", ";", "Log", ".", "info", "(", "c", ",",...
Setup the Liberty server. This server will start with very basic configuration. The tests will configure the server dynamically. @throws Exception If there was an issue setting up the Liberty server.
[ "Setup", "the", "Liberty", "server", ".", "This", "server", "will", "start", "with", "very", "basic", "configuration", ".", "The", "tests", "will", "configure", "the", "server", "dynamically", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/URAPIs_UserGroupSearchBases.java#L114-L146
68,285
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/URAPIs_UserGroupSearchBases.java
URAPIs_UserGroupSearchBases.setupldapServer
private static void setupldapServer() throws Exception { ds = new InMemoryLDAPServer(SUB_DN); Entry entry = new Entry(SUB_DN); entry.addAttribute("objectclass", "top"); entry.addAttribute("objectclass", "domain"); ds.add(entry); /* * Add the partition entries. ...
java
private static void setupldapServer() throws Exception { ds = new InMemoryLDAPServer(SUB_DN); Entry entry = new Entry(SUB_DN); entry.addAttribute("objectclass", "top"); entry.addAttribute("objectclass", "domain"); ds.add(entry); /* * Add the partition entries. ...
[ "private", "static", "void", "setupldapServer", "(", ")", "throws", "Exception", "{", "ds", "=", "new", "InMemoryLDAPServer", "(", "SUB_DN", ")", ";", "Entry", "entry", "=", "new", "Entry", "(", "SUB_DN", ")", ";", "entry", ".", "addAttribute", "(", "\"obj...
Configure the embedded LDAP server. @throws Exception If the server failed to start for some reason.
[ "Configure", "the", "embedded", "LDAP", "server", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap_fat/fat/src/com/ibm/ws/security/wim/adapter/ldap/fat/URAPIs_UserGroupSearchBases.java#L153-L216
68,286
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/FastSynchHashTable.java
FastSynchHashTable.syncGetValueFromBucket
private Object syncGetValueFromBucket(FastSyncHashBucket hb, int key, boolean remove) { FastSyncHashEntry e = null; FastSyncHashEntry last = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "syncGetValueFromBucket: key, remove " + key + " " + rem...
java
private Object syncGetValueFromBucket(FastSyncHashBucket hb, int key, boolean remove) { FastSyncHashEntry e = null; FastSyncHashEntry last = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "syncGetValueFromBucket: key, remove " + key + " " + rem...
[ "private", "Object", "syncGetValueFromBucket", "(", "FastSyncHashBucket", "hb", ",", "int", "key", ",", "boolean", "remove", ")", "{", "FastSyncHashEntry", "e", "=", "null", ";", "FastSyncHashEntry", "last", "=", "null", ";", "if", "(", "TraceComponent", ".", ...
Internal get from the table which is partially synchronized at the hash bucket level. @param hb a hash bucket to go to. @param key the key to retrieve @param remove whether to remove it from the table or not @return value in the table
[ "Internal", "get", "from", "the", "table", "which", "is", "partially", "synchronized", "at", "the", "hash", "bucket", "level", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/FastSynchHashTable.java#L91-L123
68,287
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/FastSynchHashTable.java
FastSynchHashTable.put
public Object put(int key, Object value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "put"); } if (value == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "value == null"); ...
java
public Object put(int key, Object value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "put"); } if (value == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "value == null"); ...
[ "public", "Object", "put", "(", "int", "key", ",", "Object", "value", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "tc", ",", "\"put\"", "...
Put into the table if does not exist. @param key Object to identify the value by @param value Object to store in the table @return value of the object in the cache
[ "Put", "into", "the", "table", "if", "does", "not", "exist", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/FastSynchHashTable.java#L134-L162
68,288
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/FastSynchHashTable.java
FastSynchHashTable.syncPutIntoBucket
private Object syncPutIntoBucket(FastSyncHashBucket hb, FastSyncHashEntry newEntry) { FastSyncHashEntry e = null; FastSyncHashEntry last = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "syncPutIntoBucket"); } synchronized (hb) {...
java
private Object syncPutIntoBucket(FastSyncHashBucket hb, FastSyncHashEntry newEntry) { FastSyncHashEntry e = null; FastSyncHashEntry last = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "syncPutIntoBucket"); } synchronized (hb) {...
[ "private", "Object", "syncPutIntoBucket", "(", "FastSyncHashBucket", "hb", ",", "FastSyncHashEntry", "newEntry", ")", "{", "FastSyncHashEntry", "e", "=", "null", ";", "FastSyncHashEntry", "last", "=", "null", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabl...
Put synchronized into bucket. Puts an object into the bucket and is synchronized. @param hb a FastSyncHashBucket @param newEntry a FastSyncHashEntry to place in the Bucket @return the value in the table
[ "Put", "synchronized", "into", "bucket", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/FastSynchHashTable.java#L224-L265
68,289
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/FastSynchHashTable.java
FastSynchHashTable.getAllEntryValues
public Object[] getAllEntryValues() { List<Object> values = new ArrayList<Object>(); FastSyncHashBucket hb = null; FastSyncHashEntry e = null; for (int i = 0; i < xVar; i++) { for (int j = 0; j < yVar; j++) { hb = mainTable[i][j]; synchronized...
java
public Object[] getAllEntryValues() { List<Object> values = new ArrayList<Object>(); FastSyncHashBucket hb = null; FastSyncHashEntry e = null; for (int i = 0; i < xVar; i++) { for (int j = 0; j < yVar; j++) { hb = mainTable[i][j]; synchronized...
[ "public", "Object", "[", "]", "getAllEntryValues", "(", ")", "{", "List", "<", "Object", ">", "values", "=", "new", "ArrayList", "<", "Object", ">", "(", ")", ";", "FastSyncHashBucket", "hb", "=", "null", ";", "FastSyncHashEntry", "e", "=", "null", ";", ...
This routine returns a snapshot of all the values in the hash table. CAUTION: The entries returned may no longer be valid, so code that processes of the return values should be aware of this. The main reason for this function is to provide a way of dumping the table for diagnostic purposes. @return an array of all th...
[ "This", "routine", "returns", "a", "snapshot", "of", "all", "the", "values", "in", "the", "hash", "table", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/FastSynchHashTable.java#L291-L310
68,290
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java
JmsConnectionImpl.removeSession
void removeSession(JmsSessionImpl sess) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeSession", sess); synchronized (stateLock) { // Remove the Session // Note that this is a synchronized collection. boole...
java
void removeSession(JmsSessionImpl sess) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeSession", sess); synchronized (stateLock) { // Remove the Session // Note that this is a synchronized collection. boole...
[ "void", "removeSession", "(", "JmsSessionImpl", "sess", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"removeSession\"", ...
This method is used to remove a Session from the list of sessions held by the Connection.
[ "This", "method", "is", "used", "to", "remove", "a", "Session", "from", "the", "list", "of", "sessions", "held", "by", "the", "Connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java#L880-L898
68,291
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java
JmsConnectionImpl.getState
protected int getState() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getState"); int tempState; synchronized (stateLock) { tempState = state; } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
protected int getState() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getState"); int tempState; synchronized (stateLock) { tempState = state; } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "protected", "int", "getState", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getState\"", ")", ";", "int", "te...
Returns the state. @return int
[ "Returns", "the", "state", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java#L905-L915
68,292
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java
JmsConnectionImpl.setState
protected void setState(int newState) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setState", newState); synchronized (stateLock) { if ((newState == JmsInternalConstants.CLOSED) || (newState == JmsInternalConstants.STO...
java
protected void setState(int newState) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setState", newState); synchronized (stateLock) { if ((newState == JmsInternalConstants.CLOSED) || (newState == JmsInternalConstants.STO...
[ "protected", "void", "setState", "(", "int", "newState", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"setState\"", ",...
Sets the state. @param state The state to set
[ "Sets", "the", "state", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java#L922-L937
68,293
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java
JmsConnectionImpl.checkClosed
protected void checkClosed() throws JMSException { if (getState() == CLOSED) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "This Connection is closed."); throw (javax.jms.IllegalStateException) JmsErrorUtils.newThrowable(javax.jm...
java
protected void checkClosed() throws JMSException { if (getState() == CLOSED) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "This Connection is closed."); throw (javax.jms.IllegalStateException) JmsErrorUtils.newThrowable(javax.jm...
[ "protected", "void", "checkClosed", "(", ")", "throws", "JMSException", "{", "if", "(", "getState", "(", ")", "==", "CLOSED", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "...
This method is called at the beginning of every method that should not work if the Connection has been closed. It prevents further execution by throwing a JMSException with a suitable "I'm closed" message.
[ "This", "method", "is", "called", "at", "the", "beginning", "of", "every", "method", "that", "should", "not", "work", "if", "the", "Connection", "has", "been", "closed", ".", "It", "prevents", "further", "execution", "by", "throwing", "a", "JMSException", "w...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java#L944-L952
68,294
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java
JmsConnectionImpl.fixClientID
protected void fixClientID() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "fixClientID"); synchronized (stateLock) { clientIDFixed = true; } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
protected void fixClientID() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "fixClientID"); synchronized (stateLock) { clientIDFixed = true; } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "protected", "void", "fixClientID", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"fixClientID\"", ")", ";", "sync...
This method is called in order to mark that the clientID may not now change.
[ "This", "method", "is", "called", "in", "order", "to", "mark", "that", "the", "clientID", "may", "not", "now", "change", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java#L965-L975
68,295
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java
JmsConnectionImpl.unfixClientID
void unfixClientID() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unfixClientID"); synchronized (stateLock) { clientIDFixed = false; } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr...
java
void unfixClientID() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unfixClientID"); synchronized (stateLock) { clientIDFixed = false; } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr...
[ "void", "unfixClientID", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"unfixClientID\"", ")", ";", "synchronized", ...
This method is called in order to mark that the clientID may now change.
[ "This", "method", "is", "called", "in", "order", "to", "mark", "that", "the", "clientID", "may", "now", "change", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java#L980-L990
68,296
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java
JmsConnectionImpl.createJcaSession
protected JmsJcaSession createJcaSession(boolean transacted) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createJcaSession", transacted); JmsJcaSession jcaSess = null; // If we have a JCA connection, then make a JCA se...
java
protected JmsJcaSession createJcaSession(boolean transacted) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createJcaSession", transacted); JmsJcaSession jcaSess = null; // If we have a JCA connection, then make a JCA se...
[ "protected", "JmsJcaSession", "createJcaSession", "(", "boolean", "transacted", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", ...
Create a JCA Session. If this Connection contains a JCA Connection, then use it to create a JCA Session. @return The new JCA Session @throws JMSException if the JCA runtime fails to create the JCA Session
[ "Create", "a", "JCA", "Session", ".", "If", "this", "Connection", "contains", "a", "JCA", "Connection", "then", "use", "it", "to", "create", "a", "JCA", "Session", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java#L1000-L1030
68,297
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java
JmsConnectionImpl.addTemporaryDestination
protected void addTemporaryDestination(JmsTemporaryDestinationInternal tempDest) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "addTemporaryDestination", System.identityHashCode(tempDest)); synchronized (temporaryDestinations) { // synchronize agai...
java
protected void addTemporaryDestination(JmsTemporaryDestinationInternal tempDest) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "addTemporaryDestination", System.identityHashCode(tempDest)); synchronized (temporaryDestinations) { // synchronize agai...
[ "protected", "void", "addTemporaryDestination", "(", "JmsTemporaryDestinationInternal", "tempDest", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ...
Add a TemporaryDestination to the list of temporary destinations created by sessions under this connection @param tempDest - the temporary destination
[ "Add", "a", "TemporaryDestination", "to", "the", "list", "of", "temporary", "destinations", "created", "by", "sessions", "under", "this", "connection" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java#L1049-L1059
68,298
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java
JmsConnectionImpl.removeTemporaryDestination
protected void removeTemporaryDestination(JmsTemporaryDestinationInternal tempDest) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeTemporaryDestination", System.identityHashCode(tempDest)); synchronized (temporaryDestinations) { // synchroniz...
java
protected void removeTemporaryDestination(JmsTemporaryDestinationInternal tempDest) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeTemporaryDestination", System.identityHashCode(tempDest)); synchronized (temporaryDestinations) { // synchroniz...
[ "protected", "void", "removeTemporaryDestination", "(", "JmsTemporaryDestinationInternal", "tempDest", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this"...
Remove a TemporaryDestination from the list of temporary destinations created by sessions under this connection @param tempDest - the temporary destination to be removed from the List
[ "Remove", "a", "TemporaryDestination", "from", "the", "list", "of", "temporary", "destinations", "created", "by", "sessions", "under", "this", "connection" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java#L1067-L1077
68,299
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java
JmsConnectionImpl.allocateOrderingContext
public OrderingContext allocateOrderingContext() throws SIConnectionDroppedException, SIConnectionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "allocateOrderingContext"); // Synchronize on the state lock, and either re-use an existi...
java
public OrderingContext allocateOrderingContext() throws SIConnectionDroppedException, SIConnectionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "allocateOrderingContext"); // Synchronize on the state lock, and either re-use an existi...
[ "public", "OrderingContext", "allocateOrderingContext", "(", ")", "throws", "SIConnectionDroppedException", ",", "SIConnectionUnavailableException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")",...
Called by each session when it is created to get an ordering context for that session. @throws SIConnectionUnavailableException @throws SIConnectionDroppedException
[ "Called", "by", "each", "session", "when", "it", "is", "created", "to", "get", "an", "ordering", "context", "for", "that", "session", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionImpl.java#L1121-L1145