repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/DeferredService.java
DeferredService.deregisterDeferredService
public void deregisterDeferredService() { Object obj = serviceReg.get(); if (obj == null) { // already deregistered so there is nothing to be done return; } if (obj instanceof CountDownLatch) { // If someone else has the latch, then let them do whateve...
java
public void deregisterDeferredService() { Object obj = serviceReg.get(); if (obj == null) { // already deregistered so there is nothing to be done return; } if (obj instanceof CountDownLatch) { // If someone else has the latch, then let them do whateve...
[ "public", "void", "deregisterDeferredService", "(", ")", "{", "Object", "obj", "=", "serviceReg", ".", "get", "(", ")", ";", "if", "(", "obj", "==", "null", ")", "{", "// already deregistered so there is nothing to be done", "return", ";", "}", "if", "(", "obj...
Unregister information provided after class loader was created
[ "Unregister", "information", "provided", "after", "class", "loader", "was", "created" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/DeferredService.java#L89-L116
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc_fat_postgresql/fat/src/com/ibm/ws/jdbc/fat/postgresql/CustomPostgreSQLContainer.java
CustomPostgreSQLContainer.withConfigOption
public SELF withConfigOption(String key, String value) { if (key == null) { throw new java.lang.NullPointerException("key marked @NonNull but is null"); } if (value == null) { throw new java.lang.NullPointerException("value marked @NonNull but is null"); } ...
java
public SELF withConfigOption(String key, String value) { if (key == null) { throw new java.lang.NullPointerException("key marked @NonNull but is null"); } if (value == null) { throw new java.lang.NullPointerException("value marked @NonNull but is null"); } ...
[ "public", "SELF", "withConfigOption", "(", "String", "key", ",", "String", "value", ")", "{", "if", "(", "key", "==", "null", ")", "{", "throw", "new", "java", ".", "lang", ".", "NullPointerException", "(", "\"key marked @NonNull but is null\"", ")", ";", "}...
Add additional configuration options that should be used for this container. @param key The PostgreSQL configuration option key. For example: "max_connections" @param value The PostgreSQL configuration option value. For example: "200" @return this
[ "Add", "additional", "configuration", "options", "that", "should", "be", "used", "for", "this", "container", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc_fat_postgresql/fat/src/com/ibm/ws/jdbc/fat/postgresql/CustomPostgreSQLContainer.java#L26-L35
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.getStateStream
public StateStream getStateStream() { if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "getStateStream"); SibTr.exit(tc, "getStateStream", oststream); } return oststream; }
java
public StateStream getStateStream() { if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "getStateStream"); SibTr.exit(tc, "getStateStream", oststream); } return oststream; }
[ "public", "StateStream", "getStateStream", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getStateStream\"", ")...
Used for debug
[ "Used", "for", "debug" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L355-L363
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.writeSilence
public boolean writeSilence(SIMPMessage m) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeSilence", new Object[] { m }); boolean sendMessage = true; JsMessage jsMsg = m.getMessage(); // There may be Completed ticks afte...
java
public boolean writeSilence(SIMPMessage m) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeSilence", new Object[] { m }); boolean sendMessage = true; JsMessage jsMsg = m.getMessage(); // There may be Completed ticks afte...
[ "public", "boolean", "writeSilence", "(", "SIMPMessage", "m", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ...
This method uses a Value message to write Silence into the stream, because a message has been rolled back @param m The value message @exception GDException Can be thrown from the writeCompletedRange method @return boolean true if the message can be sent downstream this is determined by the sendWindow
[ "This", "method", "uses", "a", "Value", "message", "to", "write", "Silence", "into", "the", "stream", "because", "a", "message", "has", "been", "rolled", "back" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L546-L615
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.writeSilenceForced
public boolean writeSilenceForced(SIMPMessage m) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeSilenceForced", new Object[] { m }); boolean msgRemoved = true; JsMessage jsMsg = m.getMessage(); long start = jsMsg.g...
java
public boolean writeSilenceForced(SIMPMessage m) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeSilenceForced", new Object[] { m }); boolean msgRemoved = true; JsMessage jsMsg = m.getMessage(); long start = jsMsg.g...
[ "public", "boolean", "writeSilenceForced", "(", "SIMPMessage", "m", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "thi...
This method uses a Value message to write Silence into the stream, because a message which was a Guess is being removed from the stream It forces the stream to be updated to Silence without checking the existing state @param m The value message
[ "This", "method", "uses", "a", "Value", "message", "to", "write", "Silence", "into", "the", "stream", "because", "a", "message", "which", "was", "a", "Guess", "is", "being", "removed", "from", "the", "stream", "It", "forces", "the", "stream", "to", "be", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L627-L699
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.writeSilenceForced
public void writeSilenceForced(TickRange vtr) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeSilenceForced", new Object[] { vtr }); long start = vtr.startstamp; long end = vtr.endstamp; if (TraceComponent.isAnyTracing...
java
public void writeSilenceForced(TickRange vtr) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeSilenceForced", new Object[] { vtr }); long start = vtr.startstamp; long end = vtr.endstamp; if (TraceComponent.isAnyTracing...
[ "public", "void", "writeSilenceForced", "(", "TickRange", "vtr", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this",...
This method uses a Value TickRange to write Silence into the stream, because a message has expired before it was sent and so needs to be removed from the stream It forces the stream to be updated to Silence without checking the existing state @param m The value tickRange
[ "This", "method", "uses", "a", "Value", "TickRange", "to", "write", "Silence", "into", "the", "stream", "because", "a", "message", "has", "expired", "before", "it", "was", "sent", "and", "so", "needs", "to", "be", "removed", "from", "the", "stream", "It", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L712-L759
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.writeSilenceForced
public void writeSilenceForced(long tick) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeSilenceForced", Long.valueOf(tick) ); // Details of the new silence long startTick = -1; long endTick = -1; long completed...
java
public void writeSilenceForced(long tick) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeSilenceForced", Long.valueOf(tick) ); // Details of the new silence long startTick = -1; long endTick = -1; long completed...
[ "public", "void", "writeSilenceForced", "(", "long", "tick", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", "...
This replaces the specified tick with Silence without checking the existing state @param m The tick to be removed from the stream
[ "This", "replaces", "the", "specified", "tick", "with", "Silence", "without", "checking", "the", "existing", "state" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L769-L843
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.writeAckPrefix
public List writeAckPrefix(long stamp) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeAckPrefix", Long.valueOf(stamp)); // Holds TickRanges of all Value ticks between AckPrefix // and completedPrefix // This is returned to the caller List<Tick...
java
public List writeAckPrefix(long stamp) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeAckPrefix", Long.valueOf(stamp)); // Holds TickRanges of all Value ticks between AckPrefix // and completedPrefix // This is returned to the caller List<Tick...
[ "public", "List", "writeAckPrefix", "(", "long", "stamp", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"writeAckPrefix\"...
This method is called when all the messages up to the ackPrefix have been acknowledged. For pointTopoint this is called when an Ack message is recieved from the target. For pubsub this is called when all the InternalOutputStreams associated with this SourceStream have received Ack messages. @param stamp The ackPrefix ...
[ "This", "method", "is", "called", "when", "all", "the", "messages", "up", "to", "the", "ackPrefix", "have", "been", "acknowledged", ".", "For", "pointTopoint", "this", "is", "called", "when", "an", "Ack", "message", "is", "recieved", "from", "the", "target",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L859-L987
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.restoreUncommitted
public void restoreUncommitted(SIMPMessage m) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "restoreUncommitted", new Object[] { m }); TickRange tr = null; JsMessage jsMsg = m.getMessage(); long stamp = jsMsg.getGuaranteedValueValueTick(); lo...
java
public void restoreUncommitted(SIMPMessage m) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "restoreUncommitted", new Object[] { m }); TickRange tr = null; JsMessage jsMsg = m.getMessage(); long stamp = jsMsg.getGuaranteedValueValueTick(); lo...
[ "public", "void", "restoreUncommitted", "(", "SIMPMessage", "m", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"restoreUn...
This method uses a Value message to write an Uncommitted tick into the stream. It is called at retore time. @param m The value message to write to the stream
[ "This", "method", "uses", "a", "Value", "message", "to", "write", "an", "Uncommitted", "tick", "into", "the", "stream", ".", "It", "is", "called", "at", "retore", "time", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L1371-L1407
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.restoreValue
public void restoreValue(SIMPMessage m) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "restoreValue", m); TickRange tr = null; long msgStoreId = AbstractItem.NO_ID; try { if (m.isInStore()) msgStoreId...
java
public void restoreValue(SIMPMessage m) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "restoreValue", m); TickRange tr = null; long msgStoreId = AbstractItem.NO_ID; try { if (m.isInStore()) msgStoreId...
[ "public", "void", "restoreValue", "(", "SIMPMessage", "m", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ","...
This method uses a Value message to write a Value tick into the stream. It is called at retore time. @param m The value message to write to the stream
[ "This", "method", "uses", "a", "Value", "message", "to", "write", "a", "Value", "tick", "into", "the", "stream", ".", "It", "is", "called", "at", "retore", "time", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L1417-L1472
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.newGuessInStream
public synchronized void newGuessInStream(long tick) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "newGuessInStream", new Object[] { Long.valueOf(tick), Boolean.valueOf(containsGuesses), Long.valueOf(sendWindow), ...
java
public synchronized void newGuessInStream(long tick) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "newGuessInStream", new Object[] { Long.valueOf(tick), Boolean.valueOf(containsGuesses), Long.valueOf(sendWindow), ...
[ "public", "synchronized", "void", "newGuessInStream", "(", "long", "tick", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(...
Also called by writeUncomitted when a guess is written into the stream
[ "Also", "called", "by", "writeUncomitted", "when", "a", "guess", "is", "written", "into", "the", "stream" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L1815-L1841
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.guessesInStream
public synchronized void guessesInStream() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "guessesInStream", Boolean.valueOf(containsGuesses)); containsGuesses = true; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc...
java
public synchronized void guessesInStream() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "guessesInStream", Boolean.valueOf(containsGuesses)); containsGuesses = true; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc...
[ "public", "synchronized", "void", "guessesInStream", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"guessesInStream\""...
any messages while some are being reallocated
[ "any", "messages", "while", "some", "are", "being", "reallocated" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L1845-L1854
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.noGuessesInStream
public synchronized void noGuessesInStream() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "noGuessesInStream"); if(TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc, "oldContainesGuesses:" + cont...
java
public synchronized void noGuessesInStream() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "noGuessesInStream"); if(TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc, "oldContainesGuesses:" + cont...
[ "public", "synchronized", "void", "noGuessesInStream", "(", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",",...
ours to send
[ "ours", "to", "send" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L1859-L1895
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.initialiseSendWindow
public synchronized void initialiseSendWindow(long sendWindow, long definedSendWindow) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "initialiseSendWindow", new Object[] {Long.valueOf(sendWindow), Long.valueOf(definedSendWindow)} ); ...
java
public synchronized void initialiseSendWindow(long sendWindow, long definedSendWindow) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "initialiseSendWindow", new Object[] {Long.valueOf(sendWindow), Long.valueOf(definedSendWindow)} ); ...
[ "public", "synchronized", "void", "initialiseSendWindow", "(", "long", "sendWindow", ",", "long", "definedSendWindow", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(...
this value straight away and also that we don't need to persist it
[ "this", "value", "straight", "away", "and", "also", "that", "we", "don", "t", "need", "to", "persist", "it" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L1900-L1933
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.setDefinedSendWindow
public synchronized void setDefinedSendWindow(long newSendWindow) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setDefinedSendWindow", Long.valueOf(newSendWindow) ); definedSendWindow = newSendWindow; // PK41355 - Commenting out - should not be sending s...
java
public synchronized void setDefinedSendWindow(long newSendWindow) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setDefinedSendWindow", Long.valueOf(newSendWindow) ); definedSendWindow = newSendWindow; // PK41355 - Commenting out - should not be sending s...
[ "public", "synchronized", "void", "setDefinedSendWindow", "(", "long", "newSendWindow", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "t...
This is used to set the sendWindow defined in Admin panels
[ "This", "is", "used", "to", "set", "the", "sendWindow", "defined", "in", "Admin", "panels" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L1936-L1949
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.updateAndPersistSendWindow
public synchronized void updateAndPersistSendWindow() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "updateAndPersistSendWindow" ); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { SibTr.debug(tc, "define...
java
public synchronized void updateAndPersistSendWindow() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "updateAndPersistSendWindow" ); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { SibTr.debug(tc, "define...
[ "public", "synchronized", "void", "updateAndPersistSendWindow", "(", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this...
ONLY called from tests
[ "ONLY", "called", "from", "tests" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L1952-L2002
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.msgCanBeSent
private synchronized boolean msgCanBeSent( long stamp, boolean nackMsg ) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "msgCanBeSent", new Object[] { Long.valueOf(stamp), Boolean.valueOf(nackMsg), Long.valueOf(firstMsgOutsideWindow), B...
java
private synchronized boolean msgCanBeSent( long stamp, boolean nackMsg ) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "msgCanBeSent", new Object[] { Long.valueOf(stamp), Boolean.valueOf(nackMsg), Long.valueOf(firstMsgOutsideWindow), B...
[ "private", "synchronized", "boolean", "msgCanBeSent", "(", "long", "stamp", ",", "boolean", "nackMsg", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", ...
Method that determines if the message can be sent. If the message is a NACK message then we should not check the stream for guesses, but we should still follow the other checks for the stream. @param stamp @return
[ "Method", "that", "determines", "if", "the", "message", "can", "be", "sent", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L2037-L2063
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.msgRemoved
private synchronized TickRange msgRemoved(long tick, StateStream ststream, TransactionCommon tran) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "msgRemoved", new Object[]{Long.valueOf(tick), ...
java
private synchronized TickRange msgRemoved(long tick, StateStream ststream, TransactionCommon tran) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "msgRemoved", new Object[]{Long.valueOf(tick), ...
[ "private", "synchronized", "TickRange", "msgRemoved", "(", "long", "tick", ",", "StateStream", "ststream", ",", "TransactionCommon", "tran", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", "...
This method is called when the totalMessages on the stream falls and we have the possibility of sending a message because it is now inside the sendWindow
[ "This", "method", "is", "called", "when", "the", "totalMessages", "on", "the", "stream", "falls", "and", "we", "have", "the", "possibility", "of", "sending", "a", "message", "because", "it", "is", "now", "inside", "the", "sendWindow" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L2072-L2168
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.getAllMessagesOnStream
public synchronized List getAllMessagesOnStream() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getAllMessagesOnStream"); List<Long> msgs = new LinkedList<Long>(); oststream.setCursor(0); // Get the first TickRange TickRange tr = oststream.g...
java
public synchronized List getAllMessagesOnStream() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getAllMessagesOnStream"); List<Long> msgs = new LinkedList<Long>(); oststream.setCursor(0); // Get the first TickRange TickRange tr = oststream.g...
[ "public", "synchronized", "List", "getAllMessagesOnStream", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getAllMessa...
Get an unmodifiable list of all of the messages in the VALUE state on this stream
[ "Get", "an", "unmodifiable", "list", "of", "all", "of", "the", "messages", "in", "the", "VALUE", "state", "on", "this", "stream" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L2314-L2341
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.getAllMessageItemsOnStream
public synchronized List<TickRange> getAllMessageItemsOnStream(boolean includeUncommitted) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getAllMessageItemsOnStream", Boolean.valueOf(includeUncommitted)); List<TickRange> msgs = new LinkedList<TickRange>(); ...
java
public synchronized List<TickRange> getAllMessageItemsOnStream(boolean includeUncommitted) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getAllMessageItemsOnStream", Boolean.valueOf(includeUncommitted)); List<TickRange> msgs = new LinkedList<TickRange>(); ...
[ "public", "synchronized", "List", "<", "TickRange", ">", "getAllMessageItemsOnStream", "(", "boolean", "includeUncommitted", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", "...
Get an unmodifiable list of all of the message items in the VALUE state on this stream and, optionally, in the Uncommitted state
[ "Get", "an", "unmodifiable", "list", "of", "all", "of", "the", "message", "items", "in", "the", "VALUE", "state", "on", "this", "stream", "and", "optionally", "in", "the", "Uncommitted", "state" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L2347-L2375
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java
SourceStream.getTickRange
public synchronized TickRange getTickRange(long tick) { oststream.setCursor(tick); // Get the TickRange return (TickRange) oststream.getNext().clone(); }
java
public synchronized TickRange getTickRange(long tick) { oststream.setCursor(tick); // Get the TickRange return (TickRange) oststream.getNext().clone(); }
[ "public", "synchronized", "TickRange", "getTickRange", "(", "long", "tick", ")", "{", "oststream", ".", "setCursor", "(", "tick", ")", ";", "// Get the TickRange", "return", "(", "TickRange", ")", "oststream", ".", "getNext", "(", ")", ".", "clone", "(", ")"...
Get a tick range given a tick value @param tick @return TickRange
[ "Get", "a", "tick", "range", "given", "a", "tick", "value" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/SourceStream.java#L2406-L2412
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/Reader.java
Reader.read
public OpenAPI read(Set<Class<?>> classes) { Set<Class<?>> sortedClasses = new TreeSet<>(new Comparator<Class<?>>() { @Override public int compare(Class<?> class1, Class<?> class2) { if (class1.equals(class2)) { return 0; } else if (cla...
java
public OpenAPI read(Set<Class<?>> classes) { Set<Class<?>> sortedClasses = new TreeSet<>(new Comparator<Class<?>>() { @Override public int compare(Class<?> class1, Class<?> class2) { if (class1.equals(class2)) { return 0; } else if (cla...
[ "public", "OpenAPI", "read", "(", "Set", "<", "Class", "<", "?", ">", ">", "classes", ")", "{", "Set", "<", "Class", "<", "?", ">", ">", "sortedClasses", "=", "new", "TreeSet", "<>", "(", "new", "Comparator", "<", "Class", "<", "?", ">", ">", "("...
Scans a set of classes for both ReaderListeners and OpenAPI annotations. All found listeners will be instantiated before any of the classes are scanned for OpenAPI annotations - so they can be invoked accordingly. @param classes a set of classes to scan @return the generated OpenAPI definition
[ "Scans", "a", "set", "of", "classes", "for", "both", "ReaderListeners", "and", "OpenAPI", "annotations", ".", "All", "found", "listeners", "will", "be", "instantiated", "before", "any", "of", "the", "classes", "are", "scanned", "for", "OpenAPI", "annotations", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/Reader.java#L169-L189
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/MfpDiagnostics.java
MfpDiagnostics.initialize
public static MfpDiagnostics initialize() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initialize"); // We should only do this once if (singleton == null) { singleton = new MfpDiagnostics(); singleton.register(packageList); } if (TraceComponent.is...
java
public static MfpDiagnostics initialize() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initialize"); // We should only do this once if (singleton == null) { singleton = new MfpDiagnostics(); singleton.register(packageList); } if (TraceComponent.is...
[ "public", "static", "MfpDiagnostics", "initialize", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"initialize\"", ")", ";", "// W...
Initialise the diagnostic module by creating the singleton instance and registering it with the diagnostic engine in Websphere.
[ "Initialise", "the", "diagnostic", "module", "by", "creating", "the", "singleton", "instance", "and", "registering", "it", "with", "the", "diagnostic", "engine", "in", "Websphere", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/MfpDiagnostics.java#L93-L104
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/MfpDiagnostics.java
MfpDiagnostics.ffdcDumpDefault
public void ffdcDumpDefault(Throwable t, IncidentStream is, Object callerThis, Object[] objs, String sourceId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "ffdcDumpDefault"); // First trace the Throwable, so that we can actually spot the exception in the trace if (Tra...
java
public void ffdcDumpDefault(Throwable t, IncidentStream is, Object callerThis, Object[] objs, String sourceId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "ffdcDumpDefault"); // First trace the Throwable, so that we can actually spot the exception in the trace if (Tra...
[ "public", "void", "ffdcDumpDefault", "(", "Throwable", "t", ",", "IncidentStream", "is", ",", "Object", "callerThis", ",", "Object", "[", "]", "objs", ",", "String", "sourceId", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&...
Default ffdc dump routine - always invoked
[ "Default", "ffdc", "dump", "routine", "-", "always", "invoked" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/MfpDiagnostics.java#L123-L152
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/MfpDiagnostics.java
MfpDiagnostics.dumpUsefulStuff
private void dumpUsefulStuff(IncidentStream is, Object[] objs) { // The first parameter is a marker telling us what sort of data we have in subsequent // parameters. if (objs != null && objs.length > 0) { if (objs[0] == MfpConstants.DM_BUFFER && objs.length >= 4) dumpJmfBuffer(is, (byte[])obj...
java
private void dumpUsefulStuff(IncidentStream is, Object[] objs) { // The first parameter is a marker telling us what sort of data we have in subsequent // parameters. if (objs != null && objs.length > 0) { if (objs[0] == MfpConstants.DM_BUFFER && objs.length >= 4) dumpJmfBuffer(is, (byte[])obj...
[ "private", "void", "dumpUsefulStuff", "(", "IncidentStream", "is", ",", "Object", "[", "]", "objs", ")", "{", "// The first parameter is a marker telling us what sort of data we have in subsequent", "// parameters.", "if", "(", "objs", "!=", "null", "&&", "objs", ".", "...
routine to dump it.
[ "routine", "to", "dump", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/MfpDiagnostics.java#L157-L170
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/MfpDiagnostics.java
MfpDiagnostics.dumpJmfBuffer
private void dumpJmfBuffer(IncidentStream is, byte[] frame, int offset, int length) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "dumpJmfBuffer"); if (frame != null) { // If the length passed in is 0 we probably have rubbish in both the length // and the offset...
java
private void dumpJmfBuffer(IncidentStream is, byte[] frame, int offset, int length) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "dumpJmfBuffer"); if (frame != null) { // If the length passed in is 0 we probably have rubbish in both the length // and the offset...
[ "private", "void", "dumpJmfBuffer", "(", "IncidentStream", "is", ",", "byte", "[", "]", "frame", ",", "int", "offset", ",", "int", "length", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "("...
to contain the Jetstream headers etc.
[ "to", "contain", "the", "Jetstream", "headers", "etc", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/MfpDiagnostics.java#L176-L202
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/MfpDiagnostics.java
MfpDiagnostics.dumpJmfSlices
private void dumpJmfSlices(IncidentStream is, List<DataSlice> slices) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "dumpJmfSlices"); if (slices != null) { try { is.writeLine("JMF data slices", SibTr.formatSlices(slices, getDiagnosticDataLimitInt())); } ...
java
private void dumpJmfSlices(IncidentStream is, List<DataSlice> slices) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "dumpJmfSlices"); if (slices != null) { try { is.writeLine("JMF data slices", SibTr.formatSlices(slices, getDiagnosticDataLimitInt())); } ...
[ "private", "void", "dumpJmfSlices", "(", "IncidentStream", "is", ",", "List", "<", "DataSlice", ">", "slices", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "ent...
user data - so we only dump at most the first 4K bytes of each slice.
[ "user", "data", "-", "so", "we", "only", "dump", "at", "most", "the", "first", "4K", "bytes", "of", "each", "slice", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/MfpDiagnostics.java#L230-L247
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.initializeNonPersistent
protected void initializeNonPersistent(MessageProcessor messageProcessor) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initializeNonPersistent", messageProcessor); /* * Keep a local reference to the MessageProcessor object, as this allows ...
java
protected void initializeNonPersistent(MessageProcessor messageProcessor) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initializeNonPersistent", messageProcessor); /* * Keep a local reference to the MessageProcessor object, as this allows ...
[ "protected", "void", "initializeNonPersistent", "(", "MessageProcessor", "messageProcessor", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "...
Initialize non-persistent fields. These fields are common to both MS reconstitution of DestinationManagers and initial creation. Feature 174199.2.4 @param MessageProcessor
[ "Initialize", "non", "-", "persistent", "fields", ".", "These", "fields", "are", "common", "to", "both", "MS", "reconstitution", "of", "DestinationManagers", "and", "initial", "creation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L324-L352
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.moveAllInDoubtToUnreconciled
public void moveAllInDoubtToUnreconciled() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "moveAllInDoubtToUnreconciled"); DestinationTypeFilter filter = new DestinationTypeFilter(); filter.LOCAL = Boolean.TRUE; filter.INDOUBT = Boolea...
java
public void moveAllInDoubtToUnreconciled() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "moveAllInDoubtToUnreconciled"); DestinationTypeFilter filter = new DestinationTypeFilter(); filter.LOCAL = Boolean.TRUE; filter.INDOUBT = Boolea...
[ "public", "void", "moveAllInDoubtToUnreconciled", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"moveAllInDoubtToUnreconciled\"", ")", ...
Before reconciliation, we need to move any inDoubt handlers to the Unreconciled state. If the destination gets reconciled then we have recovered. If not, we might get moved back to the inDoubt state, arguing that the corrupt WCCM file is stil causing problems, or finally WCCM might now tell us to remove the destination...
[ "Before", "reconciliation", "we", "need", "to", "move", "any", "inDoubt", "handlers", "to", "the", "Unreconciled", "state", ".", "If", "the", "destination", "gets", "reconciled", "then", "we", "have", "recovered", ".", "If", "not", "we", "might", "get", "mov...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L409-L425
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.validateUnreconciled
public void validateUnreconciled() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "validateUnreconciled"); JsMessagingEngine engine = messageProcessor.getMessagingEngine(); //find all local, unreconciled destinations ...
java
public void validateUnreconciled() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "validateUnreconciled"); JsMessagingEngine engine = messageProcessor.getMessagingEngine(); //find all local, unreconciled destinations ...
[ "public", "void", "validateUnreconciled", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"validateUnreconciled\"", ")", ";", "JsMess...
At the end of the reconciliation phase of MessageProcessor startup, we need to check each unreconciled destination to see if it is safe to delete that destination, whether the destination should be altered to a new locality set, or whether the destination should be put into a InDoubt state. @author tpm
[ "At", "the", "end", "of", "the", "reconciliation", "phase", "of", "MessageProcessor", "startup", "we", "need", "to", "check", "each", "unreconciled", "destination", "to", "see", "if", "it", "is", "safe", "to", "delete", "that", "destination", "whether", "the",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L436-L561
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java
DestinationManager.startNewReconstituteThread
private void startNewReconstituteThread(Runnable runnable) throws InterruptedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "startNewReconstituteThread"); if (_reconstituteThreadpool == null) { createReconstituteThreadPoo...
java
private void startNewReconstituteThread(Runnable runnable) throws InterruptedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "startNewReconstituteThread"); if (_reconstituteThreadpool == null) { createReconstituteThreadPoo...
[ "private", "void", "startNewReconstituteThread", "(", "Runnable", "runnable", ")", "throws", "InterruptedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", ...
Starts a new thread for reconstitution @param runnable @throws InterruptedException
[ "Starts", "a", "new", "thread", "for", "reconstitution" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationManager.java#L569-L583
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train