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.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.allocateBuffer
public WsByteBuffer allocateBuffer(int size) { WsByteBufferPoolManager mgr = HttpDispatcher.getBufferManager(); WsByteBuffer wsbb = (this.useDirectBuffer) ? mgr.allocateDirect(size) : mgr.allocate(size); addToCreatedBuffer(wsbb); return wsbb; }
java
public WsByteBuffer allocateBuffer(int size) { WsByteBufferPoolManager mgr = HttpDispatcher.getBufferManager(); WsByteBuffer wsbb = (this.useDirectBuffer) ? mgr.allocateDirect(size) : mgr.allocate(size); addToCreatedBuffer(wsbb); return wsbb; }
[ "public", "WsByteBuffer", "allocateBuffer", "(", "int", "size", ")", "{", "WsByteBufferPoolManager", "mgr", "=", "HttpDispatcher", ".", "getBufferManager", "(", ")", ";", "WsByteBuffer", "wsbb", "=", "(", "this", ".", "useDirectBuffer", ")", "?", "mgr", ".", "...
Allocate a buffer according to the requested input size. @param size @return WsByteBuffer
[ "Allocate", "a", "buffer", "according", "to", "the", "requested", "input", "size", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2495-L2500
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.setDebugContext
@Override public void setDebugContext(Object o) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "debugContext set to " + o + " for " + this); } if (null != o) { this.debugContext = o; } }
java
@Override public void setDebugContext(Object o) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "debugContext set to " + o + " for " + this); } if (null != o) { this.debugContext = o; } }
[ "@", "Override", "public", "void", "setDebugContext", "(", "Object", "o", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"debugCont...
Allow the debug context object to be set to the input Object for more specialized debugging. A null input object will be ignored. @param o
[ "Allow", "the", "debug", "context", "object", "to", "be", "set", "to", "the", "input", "Object", "for", "more", "specialized", "debugging", ".", "A", "null", "input", "object", "will", "be", "ignored", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2530-L2538
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.incrementHeaderCounter
private void incrementHeaderCounter() { this.numberOfHeaders++; this.headerAddCount++; if (this.limitNumHeaders < this.numberOfHeaders) { String msg = "Too many headers in storage: " + this.numberOfHeaders; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) ...
java
private void incrementHeaderCounter() { this.numberOfHeaders++; this.headerAddCount++; if (this.limitNumHeaders < this.numberOfHeaders) { String msg = "Too many headers in storage: " + this.numberOfHeaders; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) ...
[ "private", "void", "incrementHeaderCounter", "(", ")", "{", "this", ".", "numberOfHeaders", "++", ";", "this", ".", "headerAddCount", "++", ";", "if", "(", "this", ".", "limitNumHeaders", "<", "this", ".", "numberOfHeaders", ")", "{", "String", "msg", "=", ...
Increment the number of headers in storage counter by one. If this puts it over the limit for the message, then an exception is thrown. @throws IllegalArgumentException if there are now too many headers
[ "Increment", "the", "number", "of", "headers", "in", "storage", "counter", "by", "one", ".", "If", "this", "puts", "it", "over", "the", "limit", "for", "the", "message", "then", "an", "exception", "is", "thrown", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2665-L2675
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.checkHeaderValue
private void checkHeaderValue(byte[] data, int offset, int length) { // if the last character is a CR or LF, then this fails int index = (offset + length) - 1; if (index < 0) { // empty data, quit now with success return; } String error = null; if ...
java
private void checkHeaderValue(byte[] data, int offset, int length) { // if the last character is a CR or LF, then this fails int index = (offset + length) - 1; if (index < 0) { // empty data, quit now with success return; } String error = null; if ...
[ "private", "void", "checkHeaderValue", "(", "byte", "[", "]", "data", ",", "int", "offset", ",", "int", "length", ")", "{", "// if the last character is a CR or LF, then this fails", "int", "index", "=", "(", "offset", "+", "length", ")", "-", "1", ";", "if", ...
Check the input header value for validity, starting at the offset and continuing for the input length of characters. @param data @param offset @param length
[ "Check", "the", "input", "header", "value", "for", "validity", "starting", "at", "the", "offset", "and", "continuing", "for", "the", "input", "length", "of", "characters", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2725-L2769
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.checkHeaderValue
private void checkHeaderValue(String data) { // if the last character is a CR or LF, then this fails int index = data.length() - 1; if (index < 0) { // empty string, quit now with success return; } String error = null; char c = data.charAt(index); ...
java
private void checkHeaderValue(String data) { // if the last character is a CR or LF, then this fails int index = data.length() - 1; if (index < 0) { // empty string, quit now with success return; } String error = null; char c = data.charAt(index); ...
[ "private", "void", "checkHeaderValue", "(", "String", "data", ")", "{", "// if the last character is a CR or LF, then this fails", "int", "index", "=", "data", ".", "length", "(", ")", "-", "1", ";", "if", "(", "index", "<", "0", ")", "{", "// empty string, quit...
Check the input header value for validity. @param data @exception IllegalArgumentException if invalid
[ "Check", "the", "input", "header", "value", "for", "validity", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2946-L2983
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.countInstances
private int countInstances(HeaderElement root) { int count = 0; HeaderElement elem = root; while (null != elem) { if (!elem.wasRemoved()) { count++; } elem = elem.nextInstance; } return count; }
java
private int countInstances(HeaderElement root) { int count = 0; HeaderElement elem = root; while (null != elem) { if (!elem.wasRemoved()) { count++; } elem = elem.nextInstance; } return count; }
[ "private", "int", "countInstances", "(", "HeaderElement", "root", ")", "{", "int", "count", "=", "0", ";", "HeaderElement", "elem", "=", "root", ";", "while", "(", "null", "!=", "elem", ")", "{", "if", "(", "!", "elem", ".", "wasRemoved", "(", ")", "...
Count the number of instances of this header starting at the given element. @param root @return int
[ "Count", "the", "number", "of", "instances", "of", "this", "header", "starting", "at", "the", "given", "element", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L2992-L3002
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.skipWhiteSpace
private boolean skipWhiteSpace(WsByteBuffer buff) { // keep reading until we hit the end of the buffer or a non-space char byte b; do { if (this.bytePosition >= this.byteLimit) { if (!fillByteCache(buff)) { // not filled return ...
java
private boolean skipWhiteSpace(WsByteBuffer buff) { // keep reading until we hit the end of the buffer or a non-space char byte b; do { if (this.bytePosition >= this.byteLimit) { if (!fillByteCache(buff)) { // not filled return ...
[ "private", "boolean", "skipWhiteSpace", "(", "WsByteBuffer", "buff", ")", "{", "// keep reading until we hit the end of the buffer or a non-space char", "byte", "b", ";", "do", "{", "if", "(", "this", ".", "bytePosition", ">=", "this", ".", "byteLimit", ")", "{", "i...
Skip any whitespace that might be at the start of this buffer. @param buff @return boolean (true if found non whitespace, false if end of buffer found)
[ "Skip", "any", "whitespace", "that", "might", "be", "at", "the", "start", "of", "this", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3011-L3027
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.addInstanceOfElement
private boolean addInstanceOfElement(HeaderElement root, HeaderElement elem) { // first add to the overall sequence list if (null == this.hdrSequence) { this.hdrSequence = elem; this.lastHdrInSequence = elem; } else { // find the end of the list and append thi...
java
private boolean addInstanceOfElement(HeaderElement root, HeaderElement elem) { // first add to the overall sequence list if (null == this.hdrSequence) { this.hdrSequence = elem; this.lastHdrInSequence = elem; } else { // find the end of the list and append thi...
[ "private", "boolean", "addInstanceOfElement", "(", "HeaderElement", "root", ",", "HeaderElement", "elem", ")", "{", "// first add to the overall sequence list", "if", "(", "null", "==", "this", ".", "hdrSequence", ")", "{", "this", ".", "hdrSequence", "=", "elem", ...
Helper method to add a new instance of a HeaderElement to root's internal list. This might be the first instance, or an additional instance in which case it will be added at the end of the list. @param root @param elem @return boolean
[ "Helper", "method", "to", "add", "a", "new", "instance", "of", "a", "HeaderElement", "to", "root", "s", "internal", "list", ".", "This", "might", "be", "the", "first", "instance", "or", "an", "additional", "instance", "in", "which", "case", "it", "will", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3043-L3063
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.putInt
protected WsByteBuffer[] putInt(int data, WsByteBuffer[] buffers) { return putBytes(GenericUtils.asBytes(data), buffers); }
java
protected WsByteBuffer[] putInt(int data, WsByteBuffer[] buffers) { return putBytes(GenericUtils.asBytes(data), buffers); }
[ "protected", "WsByteBuffer", "[", "]", "putInt", "(", "int", "data", ",", "WsByteBuffer", "[", "]", "buffers", ")", "{", "return", "putBytes", "(", "GenericUtils", ".", "asBytes", "(", "data", ")", ",", "buffers", ")", ";", "}" ]
Place the input int value into the outgoing cache. This will return the buffer array as it may have changed if the cache need to be flushed. @param data @param buffers @return WsByteBuffer[]
[ "Place", "the", "input", "int", "value", "into", "the", "outgoing", "cache", ".", "This", "will", "return", "the", "buffer", "array", "as", "it", "may", "have", "changed", "if", "the", "cache", "need", "to", "be", "flushed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3073-L3075
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.flushCache
protected WsByteBuffer[] flushCache(WsByteBuffer[] buffers) { // PK13351 - use the offset/length version to write only what we need // to and avoid the extra memory allocation int pos = this.bytePosition; if (0 == pos) { // nothing to write return buffers; ...
java
protected WsByteBuffer[] flushCache(WsByteBuffer[] buffers) { // PK13351 - use the offset/length version to write only what we need // to and avoid the extra memory allocation int pos = this.bytePosition; if (0 == pos) { // nothing to write return buffers; ...
[ "protected", "WsByteBuffer", "[", "]", "flushCache", "(", "WsByteBuffer", "[", "]", "buffers", ")", "{", "// PK13351 - use the offset/length version to write only what we need", "// to and avoid the extra memory allocation", "int", "pos", "=", "this", ".", "bytePosition", ";"...
Method to flush whatever is in the cache into the input buffers. These buffers are then returned to the caller as the flush may have needed to expand the list. @param buffers @return WsByteBuffer[]
[ "Method", "to", "flush", "whatever", "is", "in", "the", "cache", "into", "the", "input", "buffers", ".", "These", "buffers", "are", "then", "returned", "to", "the", "caller", "as", "the", "flush", "may", "have", "needed", "to", "expand", "the", "list", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3183-L3193
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.decrementBytePositionIgnoringLFs
final protected void decrementBytePositionIgnoringLFs() { // PK15898 - added for just LF after first line this.bytePosition--; if (BNFHeaders.LF == this.byteCache[this.bytePosition]) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "de...
java
final protected void decrementBytePositionIgnoringLFs() { // PK15898 - added for just LF after first line this.bytePosition--; if (BNFHeaders.LF == this.byteCache[this.bytePosition]) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "de...
[ "final", "protected", "void", "decrementBytePositionIgnoringLFs", "(", ")", "{", "// PK15898 - added for just LF after first line", "this", ".", "bytePosition", "--", ";", "if", "(", "BNFHeaders", ".", "LF", "==", "this", ".", "byteCache", "[", "this", ".", "bytePos...
Decrement the byte position unless it points to an LF character, in which case just leave the byte position alone.
[ "Decrement", "the", "byte", "position", "unless", "it", "points", "to", "an", "LF", "character", "in", "which", "case", "just", "leave", "the", "byte", "position", "alone", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3212-L3221
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.resetCacheToken
final protected void resetCacheToken(int len) { if (null == this.parsedToken || len != this.parsedToken.length) { this.parsedToken = new byte[len]; } this.parsedTokenLength = 0; }
java
final protected void resetCacheToken(int len) { if (null == this.parsedToken || len != this.parsedToken.length) { this.parsedToken = new byte[len]; } this.parsedTokenLength = 0; }
[ "final", "protected", "void", "resetCacheToken", "(", "int", "len", ")", "{", "if", "(", "null", "==", "this", ".", "parsedToken", "||", "len", "!=", "this", ".", "parsedToken", ".", "length", ")", "{", "this", ".", "parsedToken", "=", "new", "byte", "...
Reset the parse byte token based on the input length. If the existing array is the same size, then this is a simple reset. This is intended to only be used when the contents have already been extracted and can be overwritten with new data. @param len
[ "Reset", "the", "parse", "byte", "token", "based", "on", "the", "input", "length", ".", "If", "the", "existing", "array", "is", "the", "same", "size", "then", "this", "is", "a", "simple", "reset", ".", "This", "is", "intended", "to", "only", "be", "use...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3251-L3256
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.fillCacheToken
final protected boolean fillCacheToken(WsByteBuffer buff) { // figure out how much we have left to copy out, append to any existing // parsed token (multiple passes through here). int curr_len = this.parsedTokenLength; int need_len = this.parsedToken.length - curr_len; int copy_l...
java
final protected boolean fillCacheToken(WsByteBuffer buff) { // figure out how much we have left to copy out, append to any existing // parsed token (multiple passes through here). int curr_len = this.parsedTokenLength; int need_len = this.parsedToken.length - curr_len; int copy_l...
[ "final", "protected", "boolean", "fillCacheToken", "(", "WsByteBuffer", "buff", ")", "{", "// figure out how much we have left to copy out, append to any existing", "// parsed token (multiple passes through here).", "int", "curr_len", "=", "this", ".", "parsedTokenLength", ";", "...
Method to fill the parse token from the given input buffer. The token array must have been created prior to this attempt to fill it. @param buff @return boolean (true means success)
[ "Method", "to", "fill", "the", "parse", "token", "from", "the", "given", "input", "buffer", ".", "The", "token", "array", "must", "have", "been", "created", "prior", "to", "this", "attempt", "to", "fill", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3265-L3297
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.fillByteCache
protected boolean fillByteCache(WsByteBuffer buff) { if (this.bytePosition < this.byteLimit) { return false; } int size = buff.remaining(); if (size > this.byteCacheSize) { // truncate to just fill up the cache size = this.byteCacheSize; } ...
java
protected boolean fillByteCache(WsByteBuffer buff) { if (this.bytePosition < this.byteLimit) { return false; } int size = buff.remaining(); if (size > this.byteCacheSize) { // truncate to just fill up the cache size = this.byteCacheSize; } ...
[ "protected", "boolean", "fillByteCache", "(", "WsByteBuffer", "buff", ")", "{", "if", "(", "this", ".", "bytePosition", "<", "this", ".", "byteLimit", ")", "{", "return", "false", ";", "}", "int", "size", "=", "buff", ".", "remaining", "(", ")", ";", "...
Fills the byte cache. @param buff @return true on success and false on failure.
[ "Fills", "the", "byte", "cache", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3305-L3331
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.findCRLFTokenLength
protected TokenCodes findCRLFTokenLength(WsByteBuffer buff) throws MalformedMessageException { TokenCodes rc = TokenCodes.TOKEN_RC_MOREDATA; if (null == buff) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Null buffer provided"); ...
java
protected TokenCodes findCRLFTokenLength(WsByteBuffer buff) throws MalformedMessageException { TokenCodes rc = TokenCodes.TOKEN_RC_MOREDATA; if (null == buff) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Null buffer provided"); ...
[ "protected", "TokenCodes", "findCRLFTokenLength", "(", "WsByteBuffer", "buff", ")", "throws", "MalformedMessageException", "{", "TokenCodes", "rc", "=", "TokenCodes", ".", "TOKEN_RC_MOREDATA", ";", "if", "(", "null", "==", "buff", ")", "{", "if", "(", "TraceCompon...
Parse a CRLF delimited token and return the length of the token. @param buff @return TokenCodes (global length variable is set to parsed length) @throws MalformedMessageException
[ "Parse", "a", "CRLF", "delimited", "token", "and", "return", "the", "length", "of", "the", "token", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3351-L3410
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.skipCRLFs
protected TokenCodes skipCRLFs(WsByteBuffer buffer) { int maxCRLFs = 33; // limit is the max number of CRLFs to skip if (this.bytePosition >= this.byteLimit) { if (!fillByteCache(buffer)) { // no more data return TokenCodes.TOKEN_RC_MOREDATA; ...
java
protected TokenCodes skipCRLFs(WsByteBuffer buffer) { int maxCRLFs = 33; // limit is the max number of CRLFs to skip if (this.bytePosition >= this.byteLimit) { if (!fillByteCache(buffer)) { // no more data return TokenCodes.TOKEN_RC_MOREDATA; ...
[ "protected", "TokenCodes", "skipCRLFs", "(", "WsByteBuffer", "buffer", ")", "{", "int", "maxCRLFs", "=", "33", ";", "// limit is the max number of CRLFs to skip", "if", "(", "this", ".", "bytePosition", ">=", "this", ".", "byteLimit", ")", "{", "if", "(", "!", ...
This method is used to skip leading CRLF characters. It will stop when it finds a non-CRLF character, runs out of data, or finds too many CRLFs @param buffer @return TokenCodes -- MOREDATA means it ran out of buffer information, DELIM means it found a non-CRLF character, and CRLF means it found too many CRLFs
[ "This", "method", "is", "used", "to", "skip", "leading", "CRLF", "characters", ".", "It", "will", "stop", "when", "it", "finds", "a", "non", "-", "CRLF", "character", "runs", "out", "of", "data", "or", "finds", "too", "many", "CRLFs" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3506-L3539
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.findHeaderLength
protected TokenCodes findHeaderLength(WsByteBuffer buff) throws MalformedMessageException { TokenCodes rc = TokenCodes.TOKEN_RC_MOREDATA; if (null == buff) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "findHeaderLength: null buffer provi...
java
protected TokenCodes findHeaderLength(WsByteBuffer buff) throws MalformedMessageException { TokenCodes rc = TokenCodes.TOKEN_RC_MOREDATA; if (null == buff) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "findHeaderLength: null buffer provi...
[ "protected", "TokenCodes", "findHeaderLength", "(", "WsByteBuffer", "buff", ")", "throws", "MalformedMessageException", "{", "TokenCodes", "rc", "=", "TokenCodes", ".", "TOKEN_RC_MOREDATA", ";", "if", "(", "null", "==", "buff", ")", "{", "if", "(", "TraceComponent...
Parse a byte delimited token and return the length of the token. @param buff @return TokenCodes (global length variable is set to parsed length) @throws MalformedMessageException
[ "Parse", "a", "byte", "delimited", "token", "and", "return", "the", "length", "of", "the", "token", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3659-L3732
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.parseHeaderName
private boolean parseHeaderName(WsByteBuffer buff) throws MalformedMessageException { // if we're just starting, then skip leading white space characters // otherwise ignore them (i.e we might be in the middle of // "Mozilla/5.0 (Win" if (null == this.parsedToken) { if (!ski...
java
private boolean parseHeaderName(WsByteBuffer buff) throws MalformedMessageException { // if we're just starting, then skip leading white space characters // otherwise ignore them (i.e we might be in the middle of // "Mozilla/5.0 (Win" if (null == this.parsedToken) { if (!ski...
[ "private", "boolean", "parseHeaderName", "(", "WsByteBuffer", "buff", ")", "throws", "MalformedMessageException", "{", "// if we're just starting, then skip leading white space characters", "// otherwise ignore them (i.e we might be in the middle of", "// \"Mozilla/5.0 (Win\"", "if", "("...
Utility method to parse the header name from the input buffer. @param buff @return boolean (false means it needs more data, true otherwise) @throws MalformedMessageException
[ "Utility", "method", "to", "parse", "the", "header", "name", "from", "the", "input", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3741-L3802
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.parseHeaderValueExtract
private boolean parseHeaderValueExtract(WsByteBuffer buff) throws MalformedMessageException { // 295178 - don't log sensitive information // log value contents based on the header key (if known) int log = LOG_FULL; HeaderKeys key = this.currentElem.getKey(); if (null != key && !...
java
private boolean parseHeaderValueExtract(WsByteBuffer buff) throws MalformedMessageException { // 295178 - don't log sensitive information // log value contents based on the header key (if known) int log = LOG_FULL; HeaderKeys key = this.currentElem.getKey(); if (null != key && !...
[ "private", "boolean", "parseHeaderValueExtract", "(", "WsByteBuffer", "buff", ")", "throws", "MalformedMessageException", "{", "// 295178 - don't log sensitive information", "// log value contents based on the header key (if known)", "int", "log", "=", "LOG_FULL", ";", "HeaderKeys"...
Utility method for parsing a header value out of the input buffer. @param buff @return boolean (false if need more data, true otherwise) @throws MalformedMessageException
[ "Utility", "method", "for", "parsing", "a", "header", "value", "out", "of", "the", "input", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3811-L3832
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.parseTokenNonExtract
protected int parseTokenNonExtract(WsByteBuffer buff, byte bDelimiter, boolean bApproveCRLF) throws MalformedMessageException { TokenCodes rc = findTokenLength(buff, bDelimiter, bApproveCRLF); return (TokenCodes.TOKEN_RC_MOREDATA.equals(rc)) ? -1 : this.parsedTokenLength; }
java
protected int parseTokenNonExtract(WsByteBuffer buff, byte bDelimiter, boolean bApproveCRLF) throws MalformedMessageException { TokenCodes rc = findTokenLength(buff, bDelimiter, bApproveCRLF); return (TokenCodes.TOKEN_RC_MOREDATA.equals(rc)) ? -1 : this.parsedTokenLength; }
[ "protected", "int", "parseTokenNonExtract", "(", "WsByteBuffer", "buff", ",", "byte", "bDelimiter", ",", "boolean", "bApproveCRLF", ")", "throws", "MalformedMessageException", "{", "TokenCodes", "rc", "=", "findTokenLength", "(", "buff", ",", "bDelimiter", ",", "bAp...
Standard parsing of a token; however, instead of saving the data into the global parsedToken variable, this merely returns the length of the token. Used for occasions where we just need to find the length of the token. @param buff @param bDelimiter @param bApproveCRLF @return int (-1 means we need more data) @throws M...
[ "Standard", "parsing", "of", "a", "token", ";", "however", "instead", "of", "saving", "the", "data", "into", "the", "global", "parsedToken", "variable", "this", "merely", "returns", "the", "length", "of", "the", "token", ".", "Used", "for", "occasions", "whe...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3917-L3921
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.saveParsedToken
private void saveParsedToken(WsByteBuffer buff, int start, boolean delim, int log) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); // local copy of the length int length = this.parsedTokenLength; this.parsedTokenLength = 0; if (0 > length) { throw new ...
java
private void saveParsedToken(WsByteBuffer buff, int start, boolean delim, int log) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); // local copy of the length int length = this.parsedTokenLength; this.parsedTokenLength = 0; if (0 > length) { throw new ...
[ "private", "void", "saveParsedToken", "(", "WsByteBuffer", "buff", ",", "int", "start", ",", "boolean", "delim", ",", "int", "log", ")", "{", "final", "boolean", "bTrace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "// local copy of the le...
Sets the temporary parse token from the input buffer. @param buff The current WsByteBuffer being parsed @param start The start position of the token @param delim Did we stop on the delimiter or not? @param log Whether to log the contents or not
[ "Sets", "the", "temporary", "parse", "token", "from", "the", "input", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L3973-L4045
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java
BNFHeadersImpl.parsedCompactHeader
public void parsedCompactHeader(boolean flag) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "parsedCompactHeader: " + flag); } this.compactHeaderFlag = flag; }
java
public void parsedCompactHeader(boolean flag) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "parsedCompactHeader: " + flag); } this.compactHeaderFlag = flag; }
[ "public", "void", "parsedCompactHeader", "(", "boolean", "flag", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"parsedCompactHeader: \...
Sets the flag indicating that a SIP compact header has been parsed. @param flag Whether or not a header is in compact for or not
[ "Sets", "the", "flag", "indicating", "that", "a", "SIP", "compact", "header", "has", "been", "parsed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/BNFHeadersImpl.java#L4052-L4058
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/MPAlarmThread.java
MPAlarmThread.finishAlarmThread
void finishAlarmThread() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "finishAlarmThread"); //wake up the thread so that it will exit it's main loop and end synchronized(wakeupLock) { //flag this alarm thread as finished finished = true; ...
java
void finishAlarmThread() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "finishAlarmThread"); //wake up the thread so that it will exit it's main loop and end synchronized(wakeupLock) { //flag this alarm thread as finished finished = true; ...
[ "void", "finishAlarmThread", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"finishAlarmThread\"", ")", ";", "//wake up the thread so ...
Terminate this alarm thread. This is final, the thread should not be restarted.
[ "Terminate", "this", "alarm", "thread", ".", "This", "is", "final", "the", "thread", "should", "not", "be", "restarted", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/MPAlarmThread.java#L135-L151
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/MPAlarmThread.java
MPAlarmThread.run
public void run() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "run"); try { //loop until finished while(!finished) { //what time is it now long now = System.currentTimeMillis(); boolean fire = false; //synchr...
java
public void run() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "run"); try { //loop until finished while(!finished) { //what time is it now long now = System.currentTimeMillis(); boolean fire = false; //synchr...
[ "public", "void", "run", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"run\"", ")", ";", "try", "{", "//loop until finished", ...
The main loop for the MPAlarmThread. Loops until the alarm thread is marked as finished. If the alarm thread is suspended, it will wait forever. Otherwise the it will wait inside the loop until a specified time and then call the MPAlarmManager.fireInternalAlarm method.
[ "The", "main", "loop", "for", "the", "MPAlarmThread", ".", "Loops", "until", "the", "alarm", "thread", "is", "marked", "as", "finished", ".", "If", "the", "alarm", "thread", "is", "suspended", "it", "will", "wait", "forever", ".", "Otherwise", "the", "it",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/MPAlarmThread.java#L160-L275
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java
EmbeddableTransactionImpl.startInactivityTimer
public boolean startInactivityTimer() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "startInactivityTimer"); if (_inactivityTimeout > 0 && _status.getState() == TransactionState.STATE_ACTIVE ...
java
public boolean startInactivityTimer() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "startInactivityTimer"); if (_inactivityTimeout > 0 && _status.getState() == TransactionState.STATE_ACTIVE ...
[ "public", "boolean", "startInactivityTimer", "(", ")", "{", "final", "boolean", "traceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "traceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "t...
Start an inactivity timer and call alarm method of parameter when timeout expires. @param iat callback object to be notified when timer expires. This may be null. @exception SystemException thrown if transaction is not active
[ "Start", "an", "inactivity", "timer", "and", "call", "alarm", "method", "of", "parameter", "when", "timeout", "expires", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L205-L224
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java
EmbeddableTransactionImpl.rollbackResources
public void rollbackResources() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "rollbackResources"); try { final Transaction t = ((EmbeddableTranManagerSet) TransactionManagerFactory.getTransactionManager...
java
public void rollbackResources() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "rollbackResources"); try { final Transaction t = ((EmbeddableTranManagerSet) TransactionManagerFactory.getTransactionManager...
[ "public", "void", "rollbackResources", "(", ")", "{", "final", "boolean", "traceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "traceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ...
Rollback all resources, but do not drive state changes. Used when transaction HAS TIMED OUT.
[ "Rollback", "all", "resources", "but", "do", "not", "drive", "state", "changes", ".", "Used", "when", "transaction", "HAS", "TIMED", "OUT", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L230-L249
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java
EmbeddableTransactionImpl.stopInactivityTimer
public synchronized void stopInactivityTimer() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "stopInactivityTimer"); if (_inactivityTimerActive) { _inactivityTimerActive = false; EmbeddableTi...
java
public synchronized void stopInactivityTimer() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "stopInactivityTimer"); if (_inactivityTimerActive) { _inactivityTimerActive = false; EmbeddableTi...
[ "public", "synchronized", "void", "stopInactivityTimer", "(", ")", "{", "final", "boolean", "traceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "traceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry...
Stop inactivity timer associated with transaction. This method needs to be synchronized to serialize with inactivity timeout. If the timeout runs after this method, then there will be no _inactivityTimer to call and the context will be on_server. If the timeout runs before, then a subsequent resume will fail as the tra...
[ "Stop", "inactivity", "timer", "associated", "with", "transaction", ".", "This", "method", "needs", "to", "be", "synchronized", "to", "serialize", "with", "inactivity", "timeout", ".", "If", "the", "timeout", "runs", "after", "this", "method", "then", "there", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L269-L287
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java
EmbeddableTransactionImpl.resumeAssociation
@Override public void resumeAssociation() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "resumeAssociation"); resumeAssociation(true); if (traceOn && tc.isEntryEnabled()) Tr.exit(tc, "resume...
java
@Override public void resumeAssociation() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "resumeAssociation"); resumeAssociation(true); if (traceOn && tc.isEntryEnabled()) Tr.exit(tc, "resume...
[ "@", "Override", "public", "void", "resumeAssociation", "(", ")", "{", "final", "boolean", "traceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "traceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entr...
Called by interceptor when incoming reply arrives. This polices the single threaded operation of the transaction.
[ "Called", "by", "interceptor", "when", "incoming", "reply", "arrives", ".", "This", "polices", "the", "single", "threaded", "operation", "of", "the", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L419-L430
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java
EmbeddableTransactionImpl.resumeAssociation
public synchronized void resumeAssociation(boolean allowSetRollback) throws TRANSACTION_ROLLEDBACK { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "resumeAssociation", allowSetRollback); // if another thread is active...
java
public synchronized void resumeAssociation(boolean allowSetRollback) throws TRANSACTION_ROLLEDBACK { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "resumeAssociation", allowSetRollback); // if another thread is active...
[ "public", "synchronized", "void", "resumeAssociation", "(", "boolean", "allowSetRollback", ")", "throws", "TRANSACTION_ROLLEDBACK", "{", "final", "boolean", "traceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "traceOn", "&&", "tc"...
This polices the single threaded operation of the transaction. allowSetRollback indicates whether the condition where there is already an active association should result in rolling back the transaction. In the standard case of a client interceptor attempting to resume the association between a transaction and the thr...
[ "This", "polices", "the", "single", "threaded", "operation", "of", "the", "transaction", ".", "allowSetRollback", "indicates", "whether", "the", "condition", "where", "there", "is", "already", "an", "active", "association", "should", "result", "in", "rolling", "ba...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L450-L489
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java
EmbeddableTransactionImpl.addAssociation
@Override public synchronized void addAssociation() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "addAssociation"); if (_activeAssociations > _suspendedAssociations) { if (traceOn && tc.isDebugEnabl...
java
@Override public synchronized void addAssociation() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "addAssociation"); if (_activeAssociations > _suspendedAssociations) { if (traceOn && tc.isDebugEnabl...
[ "@", "Override", "public", "synchronized", "void", "addAssociation", "(", ")", "{", "final", "boolean", "traceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "traceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr",...
Called by interceptor when incoming request arrives. This polices the single threaded operation of the transaction.
[ "Called", "by", "interceptor", "when", "incoming", "request", "arrives", ".", "This", "polices", "the", "single", "threaded", "operation", "of", "the", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L510-L539
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java
EmbeddableTransactionImpl.removeAssociation
@Override public synchronized void removeAssociation() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "removeAssociation"); _activeAssociations--; if (_activeAssociations <= 0) { startInactiv...
java
@Override public synchronized void removeAssociation() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "removeAssociation"); _activeAssociations--; if (_activeAssociations <= 0) { startInactiv...
[ "@", "Override", "public", "synchronized", "void", "removeAssociation", "(", ")", "{", "final", "boolean", "traceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "traceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "T...
Called by interceptor when reply is sent. This updates the server association count for this context.
[ "Called", "by", "interceptor", "when", "reply", "is", "sent", ".", "This", "updates", "the", "server", "association", "count", "for", "this", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L545-L564
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java
EmbeddableTransactionImpl.enlistAsyncResource
@Override public void enlistAsyncResource(String xaResFactoryFilter, Serializable xaResInfo, Xid xid) throws SystemException // @LIDB1922-5C { if (tc.isEntryEnabled()) Tr.entry(tc, "enlistAsyncResource (SPI): args: ", new Object[] { xaResFactoryFilter, xaResInfo, xid }); try { ...
java
@Override public void enlistAsyncResource(String xaResFactoryFilter, Serializable xaResInfo, Xid xid) throws SystemException // @LIDB1922-5C { if (tc.isEntryEnabled()) Tr.entry(tc, "enlistAsyncResource (SPI): args: ", new Object[] { xaResFactoryFilter, xaResInfo, xid }); try { ...
[ "@", "Override", "public", "void", "enlistAsyncResource", "(", "String", "xaResFactoryFilter", ",", "Serializable", "xaResInfo", ",", "Xid", "xid", ")", "throws", "SystemException", "// @LIDB1922-5C", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "...
Enlist an asynchronous resource with the target TransactionImpl object. A WSATParticipantWrapper is typically a representation of a downstream WSAT subordinate server. @param asyncResource the remote WSATParticipantWrapper
[ "Enlist", "an", "asynchronous", "resource", "with", "the", "target", "TransactionImpl", "object", ".", "A", "WSATParticipantWrapper", "is", "typically", "a", "representation", "of", "a", "downstream", "WSAT", "subordinate", "server", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L573-L586
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java
EmbeddableTransactionImpl.inactivityTimeout
public synchronized void inactivityTimeout() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "inactivityTimeout", this); _inactivityTimerActive = false; if (_inactivityTimer != null) { try { ...
java
public synchronized void inactivityTimeout() { final boolean traceOn = TraceComponent.isAnyTracingEnabled(); if (traceOn && tc.isEntryEnabled()) Tr.entry(tc, "inactivityTimeout", this); _inactivityTimerActive = false; if (_inactivityTimer != null) { try { ...
[ "public", "synchronized", "void", "inactivityTimeout", "(", ")", "{", "final", "boolean", "traceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "traceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry",...
Called by the timeout manager when inactivity timer expires. Needs to be synchronized as it may interfere with normal timeout.
[ "Called", "by", "the", "timeout", "manager", "when", "inactivity", "timer", "expires", ".", "Needs", "to", "be", "synchronized", "as", "it", "may", "interfere", "with", "normal", "timeout", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionImpl.java#L833-L886
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerList.java
ConsumerList.get
synchronized ConsumerSessionImpl get(long id) { if (tc.isEntryEnabled()) SibTr.entry(tc, "get", new Long(id)); ConsumerSessionImpl consumer = null ; if( _messageProcessor.isStarted() ) { consumer = (ConsumerSessionImpl) _consumers.get(new Long(id)); } if (tc.isEntryEnabled(...
java
synchronized ConsumerSessionImpl get(long id) { if (tc.isEntryEnabled()) SibTr.entry(tc, "get", new Long(id)); ConsumerSessionImpl consumer = null ; if( _messageProcessor.isStarted() ) { consumer = (ConsumerSessionImpl) _consumers.get(new Long(id)); } if (tc.isEntryEnabled(...
[ "synchronized", "ConsumerSessionImpl", "get", "(", "long", "id", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"get\"", ",", "new", "Long", "(", "id", ")", ")", ";", "ConsumerSessionImpl", "co...
Gets a consumer using its' id. @param id @return
[ "Gets", "a", "consumer", "using", "its", "id", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerList.java#L92-L108
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerList.java
ConsumerList.add
synchronized void add(ConsumerSessionImpl consumer) { consumer.setId(_consumerCount); if (tc.isEntryEnabled()) SibTr.entry(tc, "add", new Long(consumer.getIdInternal()) ); _consumers.put(new Long(_consumerCount), consumer); _consumerCount++; if (tc.isEntryEnabled()) SibTr.exit(...
java
synchronized void add(ConsumerSessionImpl consumer) { consumer.setId(_consumerCount); if (tc.isEntryEnabled()) SibTr.entry(tc, "add", new Long(consumer.getIdInternal()) ); _consumers.put(new Long(_consumerCount), consumer); _consumerCount++; if (tc.isEntryEnabled()) SibTr.exit(...
[ "synchronized", "void", "add", "(", "ConsumerSessionImpl", "consumer", ")", "{", "consumer", ".", "setId", "(", "_consumerCount", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"add\"", ",", "new...
Adds a consumer to the list of Consumers that this messaging engine contains @param consumer The consumer to add to the list.
[ "Adds", "a", "consumer", "to", "the", "list", "of", "Consumers", "that", "this", "messaging", "engine", "contains" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerList.java#L115-L128
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/AbstractRepositoryClient.java
AbstractRepositoryClient.getFromAppliesTo
private static Collection<String> getFromAppliesTo(final Asset asset, final AppliesToFilterGetter getter) { Collection<AppliesToFilterInfo> atfis = asset.getWlpInformation().getAppliesToFilterInfo(); Collection<String> ret = new ArrayList<String>(); if (atfis != null) { for (AppliesT...
java
private static Collection<String> getFromAppliesTo(final Asset asset, final AppliesToFilterGetter getter) { Collection<AppliesToFilterInfo> atfis = asset.getWlpInformation().getAppliesToFilterInfo(); Collection<String> ret = new ArrayList<String>(); if (atfis != null) { for (AppliesT...
[ "private", "static", "Collection", "<", "String", ">", "getFromAppliesTo", "(", "final", "Asset", "asset", ",", "final", "AppliesToFilterGetter", "getter", ")", "{", "Collection", "<", "AppliesToFilterInfo", ">", "atfis", "=", "asset", ".", "getWlpInformation", "(...
Utility method to cycle through the applies to filters info and collate the values found @param asset @param getter @return
[ "Utility", "method", "to", "cycle", "through", "the", "applies", "to", "filters", "info", "and", "collate", "the", "values", "found" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/AbstractRepositoryClient.java#L256-L270
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.instrument.serialfilter.serverconfig/src/com/ibm/ws/kernel/instrument/serialfilter/serverconfig/FilterConfigFactory.java
FilterConfigFactory.activate
@Activate protected void activate(ComponentContext ctx, Map<String, Object> properties) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(this, tc, "activate", properties); } if(isEnabled()) { loadMaps(properties); } else { ...
java
@Activate protected void activate(ComponentContext ctx, Map<String, Object> properties) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(this, tc, "activate", properties); } if(isEnabled()) { loadMaps(properties); } else { ...
[ "@", "Activate", "protected", "void", "activate", "(", "ComponentContext", "ctx", ",", "Map", "<", "String", ",", "Object", ">", "properties", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "("...
to be deleted
[ "to", "be", "deleted" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.instrument.serialfilter.serverconfig/src/com/ibm/ws/kernel/instrument/serialfilter/serverconfig/FilterConfigFactory.java#L70-L80
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/AuthenticationServiceImpl.java
AuthenticationServiceImpl.updateCacheState
private void updateCacheState(Map<String, Object> props) { getAuthenticationConfig(props); if (cacheEnabled) { authCacheServiceRef.activate(cc); } else { authCacheServiceRef.deactivate(cc); } }
java
private void updateCacheState(Map<String, Object> props) { getAuthenticationConfig(props); if (cacheEnabled) { authCacheServiceRef.activate(cc); } else { authCacheServiceRef.deactivate(cc); } }
[ "private", "void", "updateCacheState", "(", "Map", "<", "String", ",", "Object", ">", "props", ")", "{", "getAuthenticationConfig", "(", "props", ")", ";", "if", "(", "cacheEnabled", ")", "{", "authCacheServiceRef", ".", "activate", "(", "cc", ")", ";", "}...
Based on the configuration properties, the auth cache should either be active or not. @param props
[ "Based", "on", "the", "configuration", "properties", "the", "auth", "cache", "should", "either", "be", "active", "or", "not", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/AuthenticationServiceImpl.java#L141-L149
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/AuthenticationServiceImpl.java
AuthenticationServiceImpl.optionallyObtainLockedLock
private ReentrantLock optionallyObtainLockedLock(AuthenticationData authenticationData) { ReentrantLock currentLock = null; if (isAuthCacheServiceAvailable()) { currentLock = authenticationGuard.requestAccess(authenticationData); currentLock.lock(); } return curre...
java
private ReentrantLock optionallyObtainLockedLock(AuthenticationData authenticationData) { ReentrantLock currentLock = null; if (isAuthCacheServiceAvailable()) { currentLock = authenticationGuard.requestAccess(authenticationData); currentLock.lock(); } return curre...
[ "private", "ReentrantLock", "optionallyObtainLockedLock", "(", "AuthenticationData", "authenticationData", ")", "{", "ReentrantLock", "currentLock", "=", "null", ";", "if", "(", "isAuthCacheServiceAvailable", "(", ")", ")", "{", "currentLock", "=", "authenticationGuard", ...
This method will try to obtain a lock from the authentication guard based on the given authentication data and lock it. If an equals authentication data on another thread is received for which a lock already exists, this method will block that another thread until the first thread relinquishes the lock. This allows hav...
[ "This", "method", "will", "try", "to", "obtain", "a", "lock", "from", "the", "authentication", "guard", "based", "on", "the", "given", "authentication", "data", "and", "lock", "it", ".", "If", "an", "equals", "authentication", "data", "on", "another", "threa...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/AuthenticationServiceImpl.java#L291-L298
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/AuthenticationServiceImpl.java
AuthenticationServiceImpl.delegate
@Override public Subject delegate(String roleName, String appName) { Subject runAsSubject = getRunAsSubjectFromProvider(roleName, appName); return runAsSubject; }
java
@Override public Subject delegate(String roleName, String appName) { Subject runAsSubject = getRunAsSubjectFromProvider(roleName, appName); return runAsSubject; }
[ "@", "Override", "public", "Subject", "delegate", "(", "String", "roleName", ",", "String", "appName", ")", "{", "Subject", "runAsSubject", "=", "getRunAsSubjectFromProvider", "(", "roleName", ",", "appName", ")", ";", "return", "runAsSubject", ";", "}" ]
Gets the delegation subject based on the currently configured delegation provider or the MethodDelegationProvider if one is not configured. @param roleName the name of the role, used to look up the corresponding user. @param appName the name of the application, used to look up the corresponding user. @return subject a...
[ "Gets", "the", "delegation", "subject", "based", "on", "the", "currently", "configured", "delegation", "provider", "or", "the", "MethodDelegationProvider", "if", "one", "is", "not", "configured", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/AuthenticationServiceImpl.java#L539-L543
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointSerializer.java
CFEndPointSerializer.determineType
static private StringBuilder determineType(String name, Object o) { String value = null; if (o instanceof String || o instanceof StringBuffer || o instanceof java.nio.CharBuffer || o instanceof Integer || o instanceof Long || o instanceof Byte || o instanceof Double || o instanceof Float || ...
java
static private StringBuilder determineType(String name, Object o) { String value = null; if (o instanceof String || o instanceof StringBuffer || o instanceof java.nio.CharBuffer || o instanceof Integer || o instanceof Long || o instanceof Byte || o instanceof Double || o instanceof Float || ...
[ "static", "private", "StringBuilder", "determineType", "(", "String", "name", ",", "Object", "o", ")", "{", "String", "value", "=", "null", ";", "if", "(", "o", "instanceof", "String", "||", "o", "instanceof", "StringBuffer", "||", "o", "instanceof", "java",...
Determine the type of the Object passed in and add the XML format for the result. @param type @param name @param o @return StringBuilder
[ "Determine", "the", "type", "of", "the", "Object", "passed", "in", "and", "add", "the", "XML", "format", "for", "the", "result", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointSerializer.java#L48-L77
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointSerializer.java
CFEndPointSerializer.serializeChannel
static private StringBuilder serializeChannel(StringBuilder buffer, OutboundChannelDefinition ocd, int order) throws NotSerializableException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Serializing channel: " + order + " " + ocd.getOutboundFactory().getName());...
java
static private StringBuilder serializeChannel(StringBuilder buffer, OutboundChannelDefinition ocd, int order) throws NotSerializableException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Serializing channel: " + order + " " + ocd.getOutboundFactory().getName());...
[ "static", "private", "StringBuilder", "serializeChannel", "(", "StringBuilder", "buffer", ",", "OutboundChannelDefinition", "ocd", ",", "int", "order", ")", "throws", "NotSerializableException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "...
Method to serialize a given channel object into the overall output buffer. @param buffer @param ocd @param order @return StringBuilder (expanded with new data) @throws NotSerializableException
[ "Method", "to", "serialize", "a", "given", "channel", "object", "into", "the", "overall", "output", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointSerializer.java#L89-L124
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointSerializer.java
CFEndPointSerializer.serialize
static public String serialize(CFEndPoint point) throws NotSerializableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "serialize"); } if (null == point) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ...
java
static public String serialize(CFEndPoint point) throws NotSerializableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "serialize"); } if (null == point) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ...
[ "static", "public", "String", "serialize", "(", "CFEndPoint", "point", ")", "throws", "NotSerializableException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry",...
Method to serialize the given end point object into an XML string. @param point @return String @throws NotSerializableException
[ "Method", "to", "serialize", "the", "given", "end", "point", "object", "into", "an", "XML", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointSerializer.java#L133-L174
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/transactions/impl/MSAutoCommitTransaction.java
MSAutoCommitTransaction.getOwningMessageStore
public MessageStore getOwningMessageStore() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "getOwningMessageStore"); SibTr.exit(this, tc, "getOwningMessageStore", "return="+_ms); } return _ms; }
java
public MessageStore getOwningMessageStore() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "getOwningMessageStore"); SibTr.exit(this, tc, "getOwningMessageStore", "return="+_ms); } return _ms; }
[ "public", "MessageStore", "getOwningMessageStore", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getOwningMessag...
This method is used to check the MessageStore instance that an implementing transaction object originated from. This is used to check that a transaction is being used to add Items to the same MessageStore as that it came from. @return The MessageStore instance where this transaction originated from.
[ "This", "method", "is", "used", "to", "check", "the", "MessageStore", "instance", "that", "an", "implementing", "transaction", "object", "originated", "from", ".", "This", "is", "used", "to", "check", "that", "a", "transaction", "is", "being", "used", "to", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/transactions/impl/MSAutoCommitTransaction.java#L449-L457
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.createRealizationAndState
protected void createRealizationAndState( MessageProcessor messageProcessor, TransactionCommon transaction) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled...
java
protected void createRealizationAndState( MessageProcessor messageProcessor, TransactionCommon transaction) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled...
[ "protected", "void", "createRealizationAndState", "(", "MessageProcessor", "messageProcessor", ",", "TransactionCommon", "transaction", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntr...
Cold start version of method to create state associated with Destination. @param messageProcessor @param transaction @throws SIResourceException
[ "Cold", "start", "version", "of", "method", "to", "create", "state", "associated", "with", "Destination", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L531-L567
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.reconstitute
protected void reconstitute( MessageProcessor processor, HashMap<String, Object> durableSubscriptionsTable, int startMode) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable...
java
protected void reconstitute( MessageProcessor processor, HashMap<String, Object> durableSubscriptionsTable, int startMode) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable...
[ "protected", "void", "reconstitute", "(", "MessageProcessor", "processor", ",", "HashMap", "<", "String", ",", "Object", ">", "durableSubscriptionsTable", ",", "int", "startMode", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTra...
Recover a BaseDestinationHandler retrieved from the MessageStore. @param processor @param durableSubscriptionsTable @throws Exception
[ "Recover", "a", "BaseDestinationHandler", "retrieved", "from", "the", "MessageStore", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L667-L786
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.deleteMsgsWithNoReferences
public void deleteMsgsWithNoReferences() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteMsgsWithNoReferences"); if (null != _pubSubRealization) //doing a sanity check with checking for not null _pubSubRealization.deleteMsgsWithNoReferen...
java
public void deleteMsgsWithNoReferences() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteMsgsWithNoReferences"); if (null != _pubSubRealization) //doing a sanity check with checking for not null _pubSubRealization.deleteMsgsWithNoReferen...
[ "public", "void", "deleteMsgsWithNoReferences", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"deleteMsgsWithNoReferences\"", ")", ";...
This method deletes the messages which are not having any references. Previously these messages were deleted during ME startup in reconstitute method.This method is called from DeletePubSubMsgsThread context
[ "This", "method", "deletes", "the", "messages", "which", "are", "not", "having", "any", "references", ".", "Previously", "these", "messages", "were", "deleted", "during", "ME", "startup", "in", "reconstitute", "method", ".", "This", "method", "is", "called", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L793-L802
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.getAnycastOutputHandler
public final synchronized AnycastOutputHandler getAnycastOutputHandler() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getAnycastOutputHandler"); AnycastOutputHandler aoh = null; if (_ptoPRealization != null) aoh = _ptoPRealizati...
java
public final synchronized AnycastOutputHandler getAnycastOutputHandler() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getAnycastOutputHandler"); AnycastOutputHandler aoh = null; if (_ptoPRealization != null) aoh = _ptoPRealizati...
[ "public", "final", "synchronized", "AnycastOutputHandler", "getAnycastOutputHandler", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"...
Called to get the AnycastOutputHandler for this Destination @return
[ "Called", "to", "get", "the", "AnycastOutputHandler", "for", "this", "Destination" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L1409-L1422
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.getPostReconstitutePseudoIds
public Object[] getPostReconstitutePseudoIds() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getPostReconstitutePseudoIds"); Object[] result = _protoRealization. getRemoteSupport(). getPostReconstitute...
java
public Object[] getPostReconstitutePseudoIds() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getPostReconstitutePseudoIds"); Object[] result = _protoRealization. getRemoteSupport(). getPostReconstitute...
[ "public", "Object", "[", "]", "getPostReconstitutePseudoIds", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getPostReconstitutePseud...
Returns an array of all pseudoDestination UUIDs which should be mapped to this BaseDestinationHandler. This method is used by the DestinationManager to determine what pseudo references need to be added after a destination is reconstituted. @return An array of all pseudoDestination UUIDs to be mapped to this BaseDestin...
[ "Returns", "an", "array", "of", "all", "pseudoDestination", "UUIDs", "which", "should", "be", "mapped", "to", "this", "BaseDestinationHandler", ".", "This", "method", "is", "used", "by", "the", "DestinationManager", "to", "determine", "what", "pseudo", "references...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L1597-L1610
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.addPubSubLocalisation
protected void addPubSubLocalisation( LocalizationDefinition destinationLocalizationDefinition) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addPubSubLocalisation", new Object[] { ...
java
protected void addPubSubLocalisation( LocalizationDefinition destinationLocalizationDefinition) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addPubSubLocalisation", new Object[] { ...
[ "protected", "void", "addPubSubLocalisation", "(", "LocalizationDefinition", "destinationLocalizationDefinition", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(...
Add PubSubLocalisation.
[ "Add", "PubSubLocalisation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L2012-L2025
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.setRemote
public void setRemote(boolean hasRemote) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setRemote", Boolean.valueOf(hasRemote)); getLocalisationManager().setRemote(hasRemote); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
public void setRemote(boolean hasRemote) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setRemote", Boolean.valueOf(hasRemote)); getLocalisationManager().setRemote(hasRemote); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "public", "void", "setRemote", "(", "boolean", "hasRemote", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setRemote\"", ",", "Boolean...
Do we have a remote localisation?
[ "Do", "we", "have", "a", "remote", "localisation?" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L2144-L2153
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.setLocal
public void setLocal() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setLocal"); getLocalisationManager().setLocal(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setLocal"); }
java
public void setLocal() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setLocal"); getLocalisationManager().setLocal(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setLocal"); }
[ "public", "void", "setLocal", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setLocal\"", ")", ";", "getLocalisationManager", "("...
Do we have a local localisation?
[ "Do", "we", "have", "a", "local", "localisation?" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L2158-L2167
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.isToBeIgnored
public boolean isToBeIgnored() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "isToBeIgnored"); SibTr.exit(tc, "isToBeIgnored", Boolean.valueOf(_toBeIgnored)); } return _toBeIgnored; }
java
public boolean isToBeIgnored() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "isToBeIgnored"); SibTr.exit(tc, "isToBeIgnored", Boolean.valueOf(_toBeIgnored)); } return _toBeIgnored; }
[ "public", "boolean", "isToBeIgnored", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"isToBeIgnored\"", ")", ";", "SibTr", ...
Are we ignoring this destination handler due to corruption? @return
[ "Are", "we", "ignoring", "this", "destination", "handler", "due", "to", "corruption?" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L2211-L2220
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.getXmitQueuePoint
PtoPXmitMsgsItemStream getXmitQueuePoint(SIBUuid8 meUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getXmitQueuePoint", meUuid); PtoPXmitMsgsItemStream stream = getLocalisationManager().getXmitQueuePoint(meUuid); if (TraceComponent.isAn...
java
PtoPXmitMsgsItemStream getXmitQueuePoint(SIBUuid8 meUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getXmitQueuePoint", meUuid); PtoPXmitMsgsItemStream stream = getLocalisationManager().getXmitQueuePoint(meUuid); if (TraceComponent.isAn...
[ "PtoPXmitMsgsItemStream", "getXmitQueuePoint", "(", "SIBUuid8", "meUuid", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getXmitQueuePoint\"...
Return the itemstream representing a transmit queue to a remote ME @param meUuid @return
[ "Return", "the", "itemstream", "representing", "a", "transmit", "queue", "to", "a", "remote", "ME" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L3066-L3077
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.eventMessageExpiryNotification
private void eventMessageExpiryNotification( SIMPMessage msg, TransactionCommon tran) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( ...
java
private void eventMessageExpiryNotification( SIMPMessage msg, TransactionCommon tran) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( ...
[ "private", "void", "eventMessageExpiryNotification", "(", "SIMPMessage", "msg", ",", "TransactionCommon", "tran", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")...
This is a callback required for expiry notification. For example, we generate a report message here if expiry reports are requested. @param msg The expired message @param tran The transaction under which the message will be deleted Feature 179365.6
[ "This", "is", "a", "callback", "required", "for", "expiry", "notification", ".", "For", "example", "we", "generate", "a", "report", "message", "here", "if", "expiry", "reports", "are", "requested", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L3305-L3353
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.constructPseudoDurableDestName
public String constructPseudoDurableDestName(String subName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "constructPseudoDurableDestName", subName); String psuedoDestName = constructPseudoDurableDestName( ...
java
public String constructPseudoDurableDestName(String subName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "constructPseudoDurableDestName", subName); String psuedoDestName = constructPseudoDurableDestName( ...
[ "public", "String", "constructPseudoDurableDestName", "(", "String", "subName", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"constructPs...
Creates the pseudo destination name string for remote durable subscriptions. The case when this local ME is the DME. @param subName the durable sub name @return a string of the form "localME##subName"
[ "Creates", "the", "pseudo", "destination", "name", "string", "for", "remote", "durable", "subscriptions", ".", "The", "case", "when", "this", "local", "ME", "is", "the", "DME", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L3363-L3373
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.constructPseudoDurableDestName
public String constructPseudoDurableDestName(String meUUID, String durableName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "constructPseudoDurableDestName", new Object[] { meUUID, durableName }); String returnString = meUUID + "##" + durableName; ...
java
public String constructPseudoDurableDestName(String meUUID, String durableName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "constructPseudoDurableDestName", new Object[] { meUUID, durableName }); String returnString = meUUID + "##" + durableName; ...
[ "public", "String", "constructPseudoDurableDestName", "(", "String", "meUUID", ",", "String", "durableName", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "...
Creates the pseudo destination name string for remote durable subscriptions. The case when the the DME is remote to this ME. @param meUUID the durable home ME uuid @param subName the durable sub name @return a string of the form "localME##subName"
[ "Creates", "the", "pseudo", "destination", "name", "string", "for", "remote", "durable", "subscriptions", ".", "The", "case", "when", "the", "the", "DME", "is", "remote", "to", "this", "ME", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L3384-L3392
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.getAnycastOHForPseudoDest
public AnycastOutputHandler getAnycastOHForPseudoDest(String destName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getAnycastOHForPseudoDest", destName); AnycastOutputHandler returnAOH = _pubSubRealization. ...
java
public AnycastOutputHandler getAnycastOHForPseudoDest(String destName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getAnycastOHForPseudoDest", destName); AnycastOutputHandler returnAOH = _pubSubRealization. ...
[ "public", "AnycastOutputHandler", "getAnycastOHForPseudoDest", "(", "String", "destName", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"g...
Durable subscriptions homed on this ME but attached to from remote MEs have AnycastOutputHandlers mapped by their pseudo destination names. @return The AnycastOutput for this pseudo destination
[ "Durable", "subscriptions", "homed", "on", "this", "ME", "but", "attached", "to", "from", "remote", "MEs", "have", "AnycastOutputHandlers", "mapped", "by", "their", "pseudo", "destination", "names", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L3419-L3431
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.sendCODMessage
void sendCODMessage(SIMPMessage msg, TransactionCommon tran) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendCODMessage", new Object[] { msg, tran }); // If COD Report messages are required, this is when we need to creat...
java
void sendCODMessage(SIMPMessage msg, TransactionCommon tran) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendCODMessage", new Object[] { msg, tran }); // If COD Report messages are required, this is when we need to creat...
[ "void", "sendCODMessage", "(", "SIMPMessage", "msg", ",", "TransactionCommon", "tran", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", ...
Method sendCODMessage. Initializes the reportHandler and sends a COD message if appropriate @param msg @param transaction
[ "Method", "sendCODMessage", ".", "Initializes", "the", "reportHandler", "and", "sends", "a", "COD", "message", "if", "appropriate" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L3440-L3477
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.announceMPStopping
@Override public void announceMPStopping() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "announceMPStopping"); if (isPubSub()) { if (null != _pubSubRealization) { //doing a sanity check with checking for not null //si...
java
@Override public void announceMPStopping() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "announceMPStopping"); if (isPubSub()) { if (null != _pubSubRealization) { //doing a sanity check with checking for not null //si...
[ "@", "Override", "public", "void", "announceMPStopping", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"announceMPStopping\"", ")",...
MP is stopping. All mediation activity should stop also.
[ "MP", "is", "stopping", ".", "All", "mediation", "activity", "should", "stop", "also", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L3780-L3794
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.stop
@Override public void stop(int mode) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "stop", Integer.valueOf(mode)); // Deregister the destination deregisterDestination(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabl...
java
@Override public void stop(int mode) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "stop", Integer.valueOf(mode)); // Deregister the destination deregisterDestination(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabl...
[ "@", "Override", "public", "void", "stop", "(", "int", "mode", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"stop\"", ",", "Integ...
Stop anything that needs stopping, like mediations..etc.
[ "Stop", "anything", "that", "needs", "stopping", "like", "mediations", "..", "etc", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L3902-L3913
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.createDurableFromRemote
public int createDurableFromRemote( String subName, SelectionCriteria criteria, String user, boolean isCloned, boolean isNoLo...
java
public int createDurableFromRemote( String subName, SelectionCriteria criteria, String user, boolean isCloned, boolean isNoLo...
[ "public", "int", "createDurableFromRemote", "(", "String", "subName", ",", "SelectionCriteria", "criteria", ",", "String", "user", ",", "boolean", "isCloned", ",", "boolean", "isNoLocal", ",", "boolean", "isSIBServerSubject", ")", "{", "if", "(", "TraceComponent", ...
Handle a remote request to create a local durable subscription. @param subName The name of the durable subscription to create. @param criteria This wraps the topic (aka discriminator) for the durable subscription and its selector. @param user The name of the user associated with the durable subscription. @param isSIBS...
[ "Handle", "a", "remote", "request", "to", "create", "a", "local", "durable", "subscription", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L3956-L4013
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.getRoutingDestinationAddr
@Override public JsDestinationAddress getRoutingDestinationAddr(JsDestinationAddress inAddress, boolean fixedMessagePoint) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
@Override public JsDestinationAddress getRoutingDestinationAddr(JsDestinationAddress inAddress, boolean fixedMessagePoint) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "@", "Override", "public", "JsDestinationAddress", "getRoutingDestinationAddr", "(", "JsDestinationAddress", "inAddress", ",", "boolean", "fixedMessagePoint", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&...
Being a 'real' destination, there is no implicit need to add a routing destination address to any messages sent to this destination. However, if the sender is bound to a single message point then we need to set a routing destination so that a particular ME Uuid can be set into it. Another reason for setting a routing a...
[ "Being", "a", "real", "destination", "there", "is", "no", "implicit", "need", "to", "add", "a", "routing", "destination", "address", "to", "any", "messages", "sent", "to", "this", "destination", ".", "However", "if", "the", "sender", "is", "bound", "to", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L4289-L4330
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.deleteRemoteDurableDME
public void deleteRemoteDurableDME(String subName) throws SIRollbackException, SIConnectionLostException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, ...
java
public void deleteRemoteDurableDME(String subName) throws SIRollbackException, SIConnectionLostException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, ...
[ "public", "void", "deleteRemoteDurableDME", "(", "String", "subName", ")", "throws", "SIRollbackException", ",", "SIConnectionLostException", ",", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryE...
Clean up the local AnycastOutputHandler that was created to handle access to a locally homed durable subscription. This method should only be invoked as part of ConsumerDispatcher.deleteConsumerDispatcher. @param subName Name of the local durable subscription being removed.
[ "Clean", "up", "the", "local", "AnycastOutputHandler", "that", "was", "created", "to", "handle", "access", "to", "a", "locally", "homed", "durable", "subscription", ".", "This", "method", "should", "only", "be", "invoked", "as", "part", "of", "ConsumerDispatcher...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L4435-L4453
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.requestReallocation
public void requestReallocation() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "requestReallocation"); if (!isCorruptOrIndoubt()) { //PK73754 // Reset reallocation flag under lock on the BDH. synchronized (this) ...
java
public void requestReallocation() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "requestReallocation"); if (!isCorruptOrIndoubt()) { //PK73754 // Reset reallocation flag under lock on the BDH. synchronized (this) ...
[ "public", "void", "requestReallocation", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"requestReallocation\"", ")", ";", "if", "...
Request reallocation of transmitQs on the next asynch deletion thread run
[ "Request", "reallocation", "of", "transmitQs", "on", "the", "next", "asynch", "deletion", "thread", "run" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L4459-L4482
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.isTopicAccessCheckRequired
@Override public boolean isTopicAccessCheckRequired() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isTopicAccessCheckRequired"); if (!isPubSub() || isTemporary()) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabl...
java
@Override public boolean isTopicAccessCheckRequired() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isTopicAccessCheckRequired"); if (!isPubSub() || isTemporary()) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabl...
[ "@", "Override", "public", "boolean", "isTopicAccessCheckRequired", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"isTopicAccessCheck...
Override Method in AbstractBaseDestinationHandler
[ "Override", "Method", "in", "AbstractBaseDestinationHandler" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L4617-L4636
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.removeAnycastInputHandlerAndRCD
public boolean removeAnycastInputHandlerAndRCD(String key) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeAnycastInputHandlerAndRCD", key); boolean removed = _protoRealization. getRemoteSupport...
java
public boolean removeAnycastInputHandlerAndRCD(String key) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeAnycastInputHandlerAndRCD", key); boolean removed = _protoRealization. getRemoteSupport...
[ "public", "boolean", "removeAnycastInputHandlerAndRCD", "(", "String", "key", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "...
Removes the AIH and the RCD instances for a given dme ID. Also removes the itemStreams from the messageStore for the aiContainerItemStream and the rcdItemStream @param dmeID the uuid of the dme which the instances of the aih and rcd will be deleted. @throws SIResourceException if there was a problem with removing the ...
[ "Removes", "the", "AIH", "and", "the", "RCD", "instances", "for", "a", "given", "dme", "ID", ".", "Also", "removes", "the", "itemStreams", "from", "the", "messageStore", "for", "the", "aiContainerItemStream", "and", "the", "rcdItemStream" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L4665-L4678
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.closeRemoteConsumer
public void closeRemoteConsumer(SIBUuid8 dmeUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "closeRemoteConsumer", dmeUuid); _protoRealization. getRemoteSupport(). closeRemoteConsumers(dmeUuid); ...
java
public void closeRemoteConsumer(SIBUuid8 dmeUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "closeRemoteConsumer", dmeUuid); _protoRealization. getRemoteSupport(). closeRemoteConsumers(dmeUuid); ...
[ "public", "void", "closeRemoteConsumer", "(", "SIBUuid8", "dmeUuid", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"closeRemoteConsumer\""...
Close the remote consumers for a given remote ME @param remoteMEUuid @throws SIResourceException
[ "Close", "the", "remote", "consumers", "for", "a", "given", "remote", "ME" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L4718-L4731
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.getPubSubRealization
public PubSubRealization getPubSubRealization() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getPubSubRealization"); SibTr.exit(tc, "getPubSubRealization", _pubSubRealization); } return _pubSubRealization; }
java
public PubSubRealization getPubSubRealization() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getPubSubRealization"); SibTr.exit(tc, "getPubSubRealization", _pubSubRealization); } return _pubSubRealization; }
[ "public", "PubSubRealization", "getPubSubRealization", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getPubSubRealization\"", "...
Retrieve the PubSubRealization @return
[ "Retrieve", "the", "PubSubRealization" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L4949-L4957
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.getPtoPRealization
public PtoPRealization getPtoPRealization() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getPtoPRealization"); SibTr.exit(tc, "getPtoPRealization", _ptoPRealization); } return _ptoPRealization; }
java
public PtoPRealization getPtoPRealization() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getPtoPRealization"); SibTr.exit(tc, "getPtoPRealization", _ptoPRealization); } return _ptoPRealization; }
[ "public", "PtoPRealization", "getPtoPRealization", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getPtoPRealization\"", ")", ...
Retrieve the PtoPRealization @return
[ "Retrieve", "the", "PtoPRealization" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L4964-L4972
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.getProtocolRealization
public AbstractProtoRealization getProtocolRealization() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getProtocolRealization"); SibTr.exit(tc, "getProtocolRealization", _protoRealization); } return _protoRealization; ...
java
public AbstractProtoRealization getProtocolRealization() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getProtocolRealization"); SibTr.exit(tc, "getProtocolRealization", _protoRealization); } return _protoRealization; ...
[ "public", "AbstractProtoRealization", "getProtocolRealization", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getProtocolRealizat...
Retrieve the ProtocolRealization @return
[ "Retrieve", "the", "ProtocolRealization" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L4979-L4987
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java
BaseDestinationHandler.getLocalisationManager
public LocalisationManager getLocalisationManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getLocalisationManager", this); // Instantiate LocalisationManager to manage localisations and interface to WLM if (_localisationManager == nul...
java
public LocalisationManager getLocalisationManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getLocalisationManager", this); // Instantiate LocalisationManager to manage localisations and interface to WLM if (_localisationManager == nul...
[ "public", "LocalisationManager", "getLocalisationManager", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getLocalisationManager\"", ",...
Retrieve the LocalisationManager @return _localisationManager
[ "Retrieve", "the", "LocalisationManager" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BaseDestinationHandler.java#L4994-L5010
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderElement.java
HeaderElement.setByteArrayValue
protected void setByteArrayValue(byte[] input) { this.sValue = null; this.bValue = input; this.offset = 0; this.valueLength = input.length; if (ELEM_ADDED != this.status) { this.status = ELEM_CHANGED; } }
java
protected void setByteArrayValue(byte[] input) { this.sValue = null; this.bValue = input; this.offset = 0; this.valueLength = input.length; if (ELEM_ADDED != this.status) { this.status = ELEM_CHANGED; } }
[ "protected", "void", "setByteArrayValue", "(", "byte", "[", "]", "input", ")", "{", "this", ".", "sValue", "=", "null", ";", "this", ".", "bValue", "=", "input", ";", "this", ".", "offset", "=", "0", ";", "this", ".", "valueLength", "=", "input", "."...
Set the byte array value to the given input. @param input
[ "Set", "the", "byte", "array", "value", "to", "the", "given", "input", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderElement.java#L384-L392
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderElement.java
HeaderElement.setByteArrayValue
protected void setByteArrayValue(byte[] input, int offset, int length) { if ((offset + length) > input.length) { throw new IllegalArgumentException( "Invalid length: " + offset + "+" + length + " > " + input.length); } this.sValue = null; this.bVal...
java
protected void setByteArrayValue(byte[] input, int offset, int length) { if ((offset + length) > input.length) { throw new IllegalArgumentException( "Invalid length: " + offset + "+" + length + " > " + input.length); } this.sValue = null; this.bVal...
[ "protected", "void", "setByteArrayValue", "(", "byte", "[", "]", "input", ",", "int", "offset", ",", "int", "length", ")", "{", "if", "(", "(", "offset", "+", "length", ")", ">", "input", ".", "length", ")", "{", "throw", "new", "IllegalArgumentException...
Set the byte array value of this header based on the input array but starting at the input offset into that array and with the given length. @param input @param offset @param length @throws IllegalArgumentException if offset and length are incorrect
[ "Set", "the", "byte", "array", "value", "of", "this", "header", "based", "on", "the", "input", "array", "but", "starting", "at", "the", "input", "offset", "into", "that", "array", "and", "with", "the", "given", "length", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderElement.java#L403-L415
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderElement.java
HeaderElement.setStringValue
protected void setStringValue(String input) { this.bValue = null; this.sValue = input; this.offset = 0; this.valueLength = (null == input) ? 0 : input.length(); if (ELEM_ADDED != this.status) { this.status = ELEM_CHANGED; } }
java
protected void setStringValue(String input) { this.bValue = null; this.sValue = input; this.offset = 0; this.valueLength = (null == input) ? 0 : input.length(); if (ELEM_ADDED != this.status) { this.status = ELEM_CHANGED; } }
[ "protected", "void", "setStringValue", "(", "String", "input", ")", "{", "this", ".", "bValue", "=", "null", ";", "this", ".", "sValue", "=", "input", ";", "this", ".", "offset", "=", "0", ";", "this", ".", "valueLength", "=", "(", "null", "==", "inp...
Set the string value to the given input. @param input
[ "Set", "the", "string", "value", "to", "the", "given", "input", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderElement.java#L422-L430
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderElement.java
HeaderElement.updateLastCRLFInfo
protected void updateLastCRLFInfo(int index, int pos, boolean isCR) { this.lastCRLFBufferIndex = index; this.lastCRLFPosition = pos; this.lastCRLFisCR = isCR; }
java
protected void updateLastCRLFInfo(int index, int pos, boolean isCR) { this.lastCRLFBufferIndex = index; this.lastCRLFPosition = pos; this.lastCRLFisCR = isCR; }
[ "protected", "void", "updateLastCRLFInfo", "(", "int", "index", ",", "int", "pos", ",", "boolean", "isCR", ")", "{", "this", ".", "lastCRLFBufferIndex", "=", "index", ";", "this", ".", "lastCRLFPosition", "=", "pos", ";", "this", ".", "lastCRLFisCR", "=", ...
Set the relevant information for the CRLF position information from the parsing code. @param index @param pos @param isCR
[ "Set", "the", "relevant", "information", "for", "the", "CRLF", "position", "information", "from", "the", "parsing", "code", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderElement.java#L566-L570
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderElement.java
HeaderElement.destroy
protected void destroy() { this.nextSequence = null; this.prevSequence = null; this.bValue = null; this.sValue = null; this.buffIndex = -1; this.offset = 0; this.valueLength = 0; this.myHashCode = -1; this.lastCRLFBufferIndex = -1; this.las...
java
protected void destroy() { this.nextSequence = null; this.prevSequence = null; this.bValue = null; this.sValue = null; this.buffIndex = -1; this.offset = 0; this.valueLength = 0; this.myHashCode = -1; this.lastCRLFBufferIndex = -1; this.las...
[ "protected", "void", "destroy", "(", ")", "{", "this", ".", "nextSequence", "=", "null", ";", "this", ".", "prevSequence", "=", "null", ";", "this", ".", "bValue", "=", "null", ";", "this", ".", "sValue", "=", "null", ";", "this", ".", "buffIndex", "...
Perform cleanup when this object is no longer needed.
[ "Perform", "cleanup", "when", "this", "object", "is", "no", "longer", "needed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/HeaderElement.java#L610-L624
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/MergedRepository.java
MergedRepository.getHeader
public Properties getHeader(RepositoryLogRecord record) { if (!headerMap.containsKey(record)) { throw new IllegalArgumentException("Record was not return by an iterator over this instance"); } return headerMap.get(record); }
java
public Properties getHeader(RepositoryLogRecord record) { if (!headerMap.containsKey(record)) { throw new IllegalArgumentException("Record was not return by an iterator over this instance"); } return headerMap.get(record); }
[ "public", "Properties", "getHeader", "(", "RepositoryLogRecord", "record", ")", "{", "if", "(", "!", "headerMap", ".", "containsKey", "(", "record", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Record was not return by an iterator over this instanc...
Returns header information for the server this record was created on. @param record instance previously return by an iterator over this merged list. @return header corresponding to the <code>record</code>.
[ "Returns", "header", "information", "for", "the", "server", "this", "record", "was", "created", "on", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/MergedRepository.java#L160-L165
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container/src/com/ibm/ws/jpa/container/osgi/internal/url/WSJPAUrlUtils.java
WSJPAUrlUtils.createWSJPAURL
@Trivial public static URL createWSJPAURL(URL url) throws MalformedURLException { if (url == null) { return null; } // Encode the URL to be embedded into the wsjpa URL's path final String encodedURLPathStr = encode(url.toExternalForm()); URL returnURL; t...
java
@Trivial public static URL createWSJPAURL(URL url) throws MalformedURLException { if (url == null) { return null; } // Encode the URL to be embedded into the wsjpa URL's path final String encodedURLPathStr = encode(url.toExternalForm()); URL returnURL; t...
[ "@", "Trivial", "public", "static", "URL", "createWSJPAURL", "(", "URL", "url", ")", "throws", "MalformedURLException", "{", "if", "(", "url", "==", "null", ")", "{", "return", "null", ";", "}", "// Encode the URL to be embedded into the wsjpa URL's path", "final", ...
Encapsulates the specified URL within a wsjpa URL. @param url - the URL to encapsulate @return - a wsjpa URL encapsulating the argument URL @throws MalformedURLException
[ "Encapsulates", "the", "specified", "URL", "within", "a", "wsjpa", "URL", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container/src/com/ibm/ws/jpa/container/osgi/internal/url/WSJPAUrlUtils.java#L34-L57
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container/src/com/ibm/ws/jpa/container/osgi/internal/url/WSJPAUrlUtils.java
WSJPAUrlUtils.extractEmbeddedURL
@Trivial public static URL extractEmbeddedURL(URL url) throws MalformedURLException { if (url == null) { return null; } if (!url.getProtocol().equalsIgnoreCase(WSJPA_PROTOCOL_NAME)) { throw new IllegalArgumentException("The specified URL \"" + url + ...
java
@Trivial public static URL extractEmbeddedURL(URL url) throws MalformedURLException { if (url == null) { return null; } if (!url.getProtocol().equalsIgnoreCase(WSJPA_PROTOCOL_NAME)) { throw new IllegalArgumentException("The specified URL \"" + url + ...
[ "@", "Trivial", "public", "static", "URL", "extractEmbeddedURL", "(", "URL", "url", ")", "throws", "MalformedURLException", "{", "if", "(", "url", "==", "null", ")", "{", "return", "null", ";", "}", "if", "(", "!", "url", ".", "getProtocol", "(", ")", ...
Extracts the embedded URL from the provided wsjpa protocoled URL. @param url - the wsjpa URL from which to extract the embedded URL. @return - the URL embedded in the wsjpa URL argument. Returns null if provided a null URL argument. @throws MalformedURLException if the embedded URL is malformed, IllegalArgumentExcepti...
[ "Extracts", "the", "embedded", "URL", "from", "the", "provided", "wsjpa", "protocoled", "URL", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container/src/com/ibm/ws/jpa/container/osgi/internal/url/WSJPAUrlUtils.java#L67-L96
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container/src/com/ibm/ws/jpa/container/osgi/internal/url/WSJPAUrlUtils.java
WSJPAUrlUtils.encode
@Trivial private static String encode(String s) { if (s == null) { return null; } // Throw an IllegalArgumentException if "%21" is already present in the String if (s.contains("%21")) { throw new IllegalArgumentException("WSJPAURLUtils.encode() cannot encode ...
java
@Trivial private static String encode(String s) { if (s == null) { return null; } // Throw an IllegalArgumentException if "%21" is already present in the String if (s.contains("%21")) { throw new IllegalArgumentException("WSJPAURLUtils.encode() cannot encode ...
[ "@", "Trivial", "private", "static", "String", "encode", "(", "String", "s", ")", "{", "if", "(", "s", "==", "null", ")", "{", "return", "null", ";", "}", "// Throw an IllegalArgumentException if \"%21\" is already present in the String", "if", "(", "s", ".", "c...
Private method that substitutes "!" characters with its escaped code, "%21". @param s @return
[ "Private", "method", "that", "substitutes", "!", "characters", "with", "its", "escaped", "code", "%21", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container/src/com/ibm/ws/jpa/container/osgi/internal/url/WSJPAUrlUtils.java#L104-L115
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container/src/com/ibm/ws/jpa/container/osgi/internal/url/WSJPAUrlUtils.java
WSJPAUrlUtils.decode
@Trivial private static String decode(String s) { if (s == null) { return null; } return s.replace("%21", "!"); }
java
@Trivial private static String decode(String s) { if (s == null) { return null; } return s.replace("%21", "!"); }
[ "@", "Trivial", "private", "static", "String", "decode", "(", "String", "s", ")", "{", "if", "(", "s", "==", "null", ")", "{", "return", "null", ";", "}", "return", "s", ".", "replace", "(", "\"%21\"", ",", "\"!\"", ")", ";", "}" ]
Private method that substitutes the escape code "%21" with the "!" character. @param s @return
[ "Private", "method", "that", "substitutes", "the", "escape", "code", "%21", "with", "the", "!", "character", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container/src/com/ibm/ws/jpa/container/osgi/internal/url/WSJPAUrlUtils.java#L123-L129
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JaxbPUnit20.java
JaxbPUnit20.getValidationMode
@Override public ValidationMode getValidationMode() { // Convert this ValidationMode from the class defined // in JAXB (com.ibm.ws.jpa.pxml20.PersistenceUnitValidationModeType) // to JPA (javax.persistence.ValidationMode). ValidationMode rtnMode = null; PersistenceUnitV...
java
@Override public ValidationMode getValidationMode() { // Convert this ValidationMode from the class defined // in JAXB (com.ibm.ws.jpa.pxml20.PersistenceUnitValidationModeType) // to JPA (javax.persistence.ValidationMode). ValidationMode rtnMode = null; PersistenceUnitV...
[ "@", "Override", "public", "ValidationMode", "getValidationMode", "(", ")", "{", "// Convert this ValidationMode from the class defined", "// in JAXB (com.ibm.ws.jpa.pxml20.PersistenceUnitValidationModeType)", "// to JPA (javax.persistence.ValidationMode).", "ValidationMode", "rtnMode", "...
Gets the value of the validationMode property. @return value of the validationMode property.
[ "Gets", "the", "value", "of", "the", "validationMode", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JaxbPUnit20.java#L253-L278
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/spi/ServiceProviderFinderFactory.java
ServiceProviderFinderFactory.setServiceProviderFinder
public static void setServiceProviderFinder(ExternalContext ectx, ServiceProviderFinder slp) { ectx.getApplicationMap().put(SERVICE_PROVIDER_KEY, slp); }
java
public static void setServiceProviderFinder(ExternalContext ectx, ServiceProviderFinder slp) { ectx.getApplicationMap().put(SERVICE_PROVIDER_KEY, slp); }
[ "public", "static", "void", "setServiceProviderFinder", "(", "ExternalContext", "ectx", ",", "ServiceProviderFinder", "slp", ")", "{", "ectx", ".", "getApplicationMap", "(", ")", ".", "put", "(", "SERVICE_PROVIDER_KEY", ",", "slp", ")", ";", "}" ]
Set a ServiceProviderFinder to the current application, to locate SPI service providers used by MyFaces. This method should be called before the web application is initialized, specifically before AbstractFacesInitializer.initFaces(ServletContext) otherwise it will have no effect. @param ectx @param slp
[ "Set", "a", "ServiceProviderFinder", "to", "the", "current", "application", "to", "locate", "SPI", "service", "providers", "used", "by", "MyFaces", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/spi/ServiceProviderFinderFactory.java#L88-L91
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/spi/ServiceProviderFinderFactory.java
ServiceProviderFinderFactory._getServiceProviderFinderFromInitParam
private static ServiceProviderFinder _getServiceProviderFinderFromInitParam(ExternalContext context) { String initializerClassName = context.getInitParameter(SERVICE_PROVIDER_FINDER_PARAM); if (initializerClassName != null) { try { // get Class object ...
java
private static ServiceProviderFinder _getServiceProviderFinderFromInitParam(ExternalContext context) { String initializerClassName = context.getInitParameter(SERVICE_PROVIDER_FINDER_PARAM); if (initializerClassName != null) { try { // get Class object ...
[ "private", "static", "ServiceProviderFinder", "_getServiceProviderFinderFromInitParam", "(", "ExternalContext", "context", ")", "{", "String", "initializerClassName", "=", "context", ".", "getInitParameter", "(", "SERVICE_PROVIDER_FINDER_PARAM", ")", ";", "if", "(", "initia...
Gets a ServiceProviderFinder from the web.xml config param. @param context @return
[ "Gets", "a", "ServiceProviderFinder", "from", "the", "web", ".", "xml", "config", "param", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/spi/ServiceProviderFinderFactory.java#L103-L127
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java
DatabaseHelper.psSetBytes
public void psSetBytes(PreparedStatement pstmtImpl, int i, byte[] x) throws SQLException { pstmtImpl.setBytes(i, x); }
java
public void psSetBytes(PreparedStatement pstmtImpl, int i, byte[] x) throws SQLException { pstmtImpl.setBytes(i, x); }
[ "public", "void", "psSetBytes", "(", "PreparedStatement", "pstmtImpl", ",", "int", "i", ",", "byte", "[", "]", "x", ")", "throws", "SQLException", "{", "pstmtImpl", ".", "setBytes", "(", "i", ",", "x", ")", ";", "}" ]
Allow for special handling of Oracle prepared statement setBytes This method just does the normal setBytes call, Oracle helper overrides it
[ "Allow", "for", "special", "handling", "of", "Oracle", "prepared", "statement", "setBytes", "This", "method", "just", "does", "the", "normal", "setBytes", "call", "Oracle", "helper", "overrides", "it" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java#L615-L617
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java
DatabaseHelper.psSetString
public void psSetString(PreparedStatement pstmtImpl, int i, String x) throws SQLException { pstmtImpl.setString(i, x); }
java
public void psSetString(PreparedStatement pstmtImpl, int i, String x) throws SQLException { pstmtImpl.setString(i, x); }
[ "public", "void", "psSetString", "(", "PreparedStatement", "pstmtImpl", ",", "int", "i", ",", "String", "x", ")", "throws", "SQLException", "{", "pstmtImpl", ".", "setString", "(", "i", ",", "x", ")", ";", "}" ]
Allow for special handling of Oracle prepared statement setString This method just does the normal setString call, Oracle helper overrides it
[ "Allow", "for", "special", "handling", "of", "Oracle", "prepared", "statement", "setString", "This", "method", "just", "does", "the", "normal", "setString", "call", "Oracle", "helper", "overrides", "it" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java#L623-L625
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java
DatabaseHelper.resetClientInformation
public void resetClientInformation(WSRdbManagedConnectionImpl mc) throws SQLException { if (mc.mcf.jdbcDriverSpecVersion >= 40 && (mc.clientInfoExplicitlySet || mc.clientInfoImplicitlySet)) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, "resetCl...
java
public void resetClientInformation(WSRdbManagedConnectionImpl mc) throws SQLException { if (mc.mcf.jdbcDriverSpecVersion >= 40 && (mc.clientInfoExplicitlySet || mc.clientInfoImplicitlySet)) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, "resetCl...
[ "public", "void", "resetClientInformation", "(", "WSRdbManagedConnectionImpl", "mc", ")", "throws", "SQLException", "{", "if", "(", "mc", ".", "mcf", ".", "jdbcDriverSpecVersion", ">=", "40", "&&", "(", "mc", ".", "clientInfoExplicitlySet", "||", "mc", ".", "cli...
This method is used to reset the client information on the backend database connection. Information will be reset only if it has been set. @param mc WSRdbManagedConnectionImpl to reset the client information on @exception SQLException java.sql.SQLException if a problem happens during resetting the client information o...
[ "This", "method", "is", "used", "to", "reset", "the", "client", "information", "on", "the", "backend", "database", "connection", ".", "Information", "will", "be", "reset", "only", "if", "it", "has", "been", "set", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java#L706-L728
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java
DatabaseHelper.getPooledConnection
public ConnectionResults getPooledConnection(final CommonDataSource ds, String userName, String password, final boolean is2Phase, final WSConnectionRequestInfoImpl cri, boolean useKerberos, Object gssCredential) throws ResourceException { if (tc.isEntryEnabled()...
java
public ConnectionResults getPooledConnection(final CommonDataSource ds, String userName, String password, final boolean is2Phase, final WSConnectionRequestInfoImpl cri, boolean useKerberos, Object gssCredential) throws ResourceException { if (tc.isEntryEnabled()...
[ "public", "ConnectionResults", "getPooledConnection", "(", "final", "CommonDataSource", "ds", ",", "String", "userName", ",", "String", "password", ",", "final", "boolean", "is2Phase", ",", "final", "WSConnectionRequestInfoImpl", "cri", ",", "boolean", "useKerberos", ...
Get a Pooled or XA Connection from the specified DataSource. A null userName indicates that no user name or password should be provided. @param dataSource XADataSource or ConnectionPoolDataSource @param String userName to get the pooled connection @param String password to get the pooled connection @param is2Phase ind...
[ "Get", "a", "Pooled", "or", "XA", "Connection", "from", "the", "specified", "DataSource", ".", "A", "null", "userName", "indicates", "that", "no", "user", "name", "or", "password", "should", "be", "provided", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java#L924-L987
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java
DatabaseHelper.setClientRerouteData
public void setClientRerouteData(Object dataSource, String cRJNDIName, String cRAlternateServer, String cRAlternatePort, String cRPrimeServer, String cRPrimePort, Context jndiContext, String driverType) throws Throwable // add driverType { if (tc.isDebugEnabled()) { ...
java
public void setClientRerouteData(Object dataSource, String cRJNDIName, String cRAlternateServer, String cRAlternatePort, String cRPrimeServer, String cRPrimePort, Context jndiContext, String driverType) throws Throwable // add driverType { if (tc.isDebugEnabled()) { ...
[ "public", "void", "setClientRerouteData", "(", "Object", "dataSource", ",", "String", "cRJNDIName", ",", "String", "cRAlternateServer", ",", "String", "cRAlternatePort", ",", "String", "cRPrimeServer", ",", "String", "cRPrimePort", ",", "Context", "jndiContext", ",", ...
This method is used to set the client reroute options on the datasoruce Object. This method will be a no-op for all but the DB2 universal driver. @param dataSource : Datasource Object @param cRJNDIName : Client Reroute JNDI name to be set on the DataSource Object. @param cRAlternateServer : Client Reroute Alternate Se...
[ "This", "method", "is", "used", "to", "set", "the", "client", "reroute", "options", "on", "the", "datasoruce", "Object", ".", "This", "method", "will", "be", "a", "no", "-", "op", "for", "all", "but", "the", "DB2", "universal", "driver", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java#L1004-L1010
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java
DatabaseHelper.isAnAuthorizationException
public boolean isAnAuthorizationException(SQLException x) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "isAnAuthorizationException", x); boolean isAuthError = false; LinkedList<SQLException> stack ...
java
public boolean isAnAuthorizationException(SQLException x) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "isAnAuthorizationException", x); boolean isAuthError = false; LinkedList<SQLException> stack ...
[ "public", "boolean", "isAnAuthorizationException", "(", "SQLException", "x", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", ...
Method is used to see if the exception passed is an authorization exception or not. @param SQLException the exception to check. @return boolean true if determined to be an authorization exception, otherwise false.
[ "Method", "is", "used", "to", "see", "if", "the", "exception", "passed", "is", "an", "authorization", "exception", "or", "not", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java#L1018-L1045
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java
DatabaseHelper.reuseKerbrosConnection
public void reuseKerbrosConnection(Connection sqlConn, GSSCredential gssCred, Properties props) throws SQLException { // an exception would have been thrown earlier than this point, so adding the trace just in case. if (tc.isDebugEnabled()) { Tr.debug(this, tc, "Kerberos reuse is not support...
java
public void reuseKerbrosConnection(Connection sqlConn, GSSCredential gssCred, Properties props) throws SQLException { // an exception would have been thrown earlier than this point, so adding the trace just in case. if (tc.isDebugEnabled()) { Tr.debug(this, tc, "Kerberos reuse is not support...
[ "public", "void", "reuseKerbrosConnection", "(", "Connection", "sqlConn", ",", "GSSCredential", "gssCred", ",", "Properties", "props", ")", "throws", "SQLException", "{", "// an exception would have been thrown earlier than this point, so adding the trace just in case.", "if", "(...
Method used to reuse a connection using kerberos. This method will reset all connection properties, thus, after a reuse is called, connection should be treated as if it was a newly created connection @param java.sql.Connection conn @param GSSCredential gssCred @param Properties props @throws SQLException
[ "Method", "used", "to", "reuse", "a", "connection", "using", "kerberos", ".", "This", "method", "will", "reset", "all", "connection", "properties", "thus", "after", "a", "reuse", "is", "called", "connection", "should", "be", "treated", "as", "if", "it", "was...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java#L1073-L1078
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java
DatabaseHelper.branchCouplingSupported
public int branchCouplingSupported(int couplingType) { // Return -1 as we have no support for resref branch coupling if (couplingType == ResourceRefInfo.BRANCH_COUPLING_LOOSE || couplingType == ResourceRefInfo.BRANCH_COUPLING_TIGHT) { if (tc.isDebugEnabled()) { ...
java
public int branchCouplingSupported(int couplingType) { // Return -1 as we have no support for resref branch coupling if (couplingType == ResourceRefInfo.BRANCH_COUPLING_LOOSE || couplingType == ResourceRefInfo.BRANCH_COUPLING_TIGHT) { if (tc.isDebugEnabled()) { ...
[ "public", "int", "branchCouplingSupported", "(", "int", "couplingType", ")", "{", "// Return -1 as we have no support for resref branch coupling", "if", "(", "couplingType", "==", "ResourceRefInfo", ".", "BRANCH_COUPLING_LOOSE", "||", "couplingType", "==", "ResourceRefInfo", ...
This method checks if the connection supports loose or tight branch coupling @param couplingType @return xa_start flag value
[ "This", "method", "checks", "if", "the", "connection", "supports", "loose", "or", "tight", "branch", "coupling" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java#L1086-L1099
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authorization.jacc/src/com/ibm/ws/security/authorization/jacc/internal/JaccServiceImpl.java
JaccServiceImpl.loadClasses
public boolean loadClasses() { Boolean result = AccessController.doPrivileged(new PrivilegedAction<Boolean>() { @Override public Boolean run() { Policy policy = jaccProviderService.getService().getPolicy(); if (tc.isDebugEnabled()) Tr....
java
public boolean loadClasses() { Boolean result = AccessController.doPrivileged(new PrivilegedAction<Boolean>() { @Override public Boolean run() { Policy policy = jaccProviderService.getService().getPolicy(); if (tc.isDebugEnabled()) Tr....
[ "public", "boolean", "loadClasses", "(", ")", "{", "Boolean", "result", "=", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "Boolean", ">", "(", ")", "{", "@", "Override", "public", "Boolean", "run", "(", ")", "{", "Policy", ...
Loads the JACC Policy and Factory classes. @return true if the initialization was successful
[ "Loads", "the", "JACC", "Policy", "and", "Factory", "classes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.jacc/src/com/ibm/ws/security/authorization/jacc/internal/JaccServiceImpl.java#L234-L270
train
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceInjectionBinding.java
ResourceInjectionBinding.getResourceLookup
private static String getResourceLookup(Resource resource) // F743-16274.1 { if (svResourceLookupMethod == null) { return ""; } try { return (String) svResourceLookupMethod.invoke(resource, (Object[]) null); } catch (Exception ex) { ...
java
private static String getResourceLookup(Resource resource) // F743-16274.1 { if (svResourceLookupMethod == null) { return ""; } try { return (String) svResourceLookupMethod.invoke(resource, (Object[]) null); } catch (Exception ex) { ...
[ "private", "static", "String", "getResourceLookup", "(", "Resource", "resource", ")", "// F743-16274.1", "{", "if", "(", "svResourceLookupMethod", "==", "null", ")", "{", "return", "\"\"", ";", "}", "try", "{", "return", "(", "String", ")", "svResourceLookupMeth...
Returns the result of javax.annotation.Resource.lookup, or the empty string if that method is unavailable in the current JVM. @param resource the resource annotation @return the lookup string or the empty string
[ "Returns", "the", "result", "of", "javax", ".", "annotation", ".", "Resource", ".", "lookup", "or", "the", "empty", "string", "if", "that", "method", "is", "unavailable", "in", "the", "current", "JVM", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceInjectionBinding.java#L82-L96
train
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceInjectionBinding.java
ResourceInjectionBinding.setXMLType
private void setXMLType(String typeName, String element, String nameElement, String typeElement) // F743-32443 throws InjectionConfigurationException { if (ivNameSpaceConfig.getClassLoader() == null) { setInjectionClassTypeName(typeName); } else { ...
java
private void setXMLType(String typeName, String element, String nameElement, String typeElement) // F743-32443 throws InjectionConfigurationException { if (ivNameSpaceConfig.getClassLoader() == null) { setInjectionClassTypeName(typeName); } else { ...
[ "private", "void", "setXMLType", "(", "String", "typeName", ",", "String", "element", ",", "String", "nameElement", ",", "String", "typeElement", ")", "// F743-32443", "throws", "InjectionConfigurationException", "{", "if", "(", "ivNameSpaceConfig", ".", "getClassLoad...
Sets the injection type as specified in XML. @param typeName the type name specified in XML @param element the XML ref element @param nameElement the XML name element in the ref element @param typeElement the XML type element in the ref element @throws InjectionConfigurationException
[ "Sets", "the", "injection", "type", "as", "specified", "in", "XML", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceInjectionBinding.java#L1641-L1693
train
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceInjectionBinding.java
ResourceInjectionBinding.isEnvEntryTypeCompatible
private boolean isEnvEntryTypeCompatible(Object newType) // F743-32443 { Class<?> curType = getInjectionClassType(); if (curType == null) { return true; } return isClassesCompatible((Class<?>) newType, getInjectionClassType()); }
java
private boolean isEnvEntryTypeCompatible(Object newType) // F743-32443 { Class<?> curType = getInjectionClassType(); if (curType == null) { return true; } return isClassesCompatible((Class<?>) newType, getInjectionClassType()); }
[ "private", "boolean", "isEnvEntryTypeCompatible", "(", "Object", "newType", ")", "// F743-32443", "{", "Class", "<", "?", ">", "curType", "=", "getInjectionClassType", "(", ")", ";", "if", "(", "curType", "==", "null", ")", "{", "return", "true", ";", "}", ...
Checks if the specified type is compatible for merging with the type that has already specified for this binding. @param type a type object returned from {@link #getEnvEntryType}
[ "Checks", "if", "the", "specified", "type", "is", "compatible", "for", "merging", "with", "the", "type", "that", "has", "already", "specified", "for", "this", "binding", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceInjectionBinding.java#L1701-L1710
train
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceInjectionBinding.java
ResourceInjectionBinding.setEnvEntryType
public void setEnvEntryType(ResourceImpl annotation, Object type) // F743-32443 throws InjectionException { if (type instanceof String) { setInjectionClassTypeName((String) type); } else { Class<?> classType = (Class<?>) type; annotatio...
java
public void setEnvEntryType(ResourceImpl annotation, Object type) // F743-32443 throws InjectionException { if (type instanceof String) { setInjectionClassTypeName((String) type); } else { Class<?> classType = (Class<?>) type; annotatio...
[ "public", "void", "setEnvEntryType", "(", "ResourceImpl", "annotation", ",", "Object", "type", ")", "// F743-32443", "throws", "InjectionException", "{", "if", "(", "type", "instanceof", "String", ")", "{", "setInjectionClassTypeName", "(", "(", "String", ")", "ty...
Sets the type of this binding. @param annotation the merged data @param type a type object returned from {@link #getEnvEntryType}
[ "Sets", "the", "type", "of", "this", "binding", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceInjectionBinding.java#L1718-L1732
train
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceInjectionBinding.java
ResourceInjectionBinding.isEnvEntryType
private boolean isEnvEntryType(Class<?> resolverType) // F743-32443 { Class<?> injectType = getInjectionClassType(); return injectType == null ? resolverType.getName().equals(getInjectionClassTypeName()) : resolverType == injectType; }
java
private boolean isEnvEntryType(Class<?> resolverType) // F743-32443 { Class<?> injectType = getInjectionClassType(); return injectType == null ? resolverType.getName().equals(getInjectionClassTypeName()) : resolverType == injectType; }
[ "private", "boolean", "isEnvEntryType", "(", "Class", "<", "?", ">", "resolverType", ")", "// F743-32443", "{", "Class", "<", "?", ">", "injectType", "=", "getInjectionClassType", "(", ")", ";", "return", "injectType", "==", "null", "?", "resolverType", ".", ...
Checks if the type of this binding is the same as the specified type. @param resolverType the type used for resolving. @return
[ "Checks", "if", "the", "type", "of", "this", "binding", "is", "the", "same", "as", "the", "specified", "type", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceInjectionBinding.java#L1823-L1828
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java
RestClient.getAllAssets
@Override public List<Asset> getAllAssets() throws IOException, RequestFailureException { HttpURLConnection connection = createHttpURLConnectionToMassive("/assets"); connection.setRequestMethod("GET"); testResponseCode(connection); return JSONAssetConverter.readValues(connection.getI...
java
@Override public List<Asset> getAllAssets() throws IOException, RequestFailureException { HttpURLConnection connection = createHttpURLConnectionToMassive("/assets"); connection.setRequestMethod("GET"); testResponseCode(connection); return JSONAssetConverter.readValues(connection.getI...
[ "@", "Override", "public", "List", "<", "Asset", ">", "getAllAssets", "(", ")", "throws", "IOException", ",", "RequestFailureException", "{", "HttpURLConnection", "connection", "=", "createHttpURLConnectionToMassive", "(", "\"/assets\"", ")", ";", "connection", ".", ...
This method will issue a GET to all of the assets in massive @return A list of all of the assets in Massive @throws IOException @throws RequestFailureException
[ "This", "method", "will", "issue", "a", "GET", "to", "all", "of", "the", "assets", "in", "massive" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/RestClient.java#L98-L104
train