repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/ConnectorService.java
ConnectorService.logMessage
public static final void logMessage(Level level, String key, Object... args) { if (WsLevel.AUDIT.equals(level)) Tr.audit(tc, key, args); else if (WsLevel.ERROR.equals(level)) Tr.error(tc, key, args); else if (Level.INFO.equals(level)) Tr.info(tc, key, args); ...
java
public static final void logMessage(Level level, String key, Object... args) { if (WsLevel.AUDIT.equals(level)) Tr.audit(tc, key, args); else if (WsLevel.ERROR.equals(level)) Tr.error(tc, key, args); else if (Level.INFO.equals(level)) Tr.info(tc, key, args); ...
[ "public", "static", "final", "void", "logMessage", "(", "Level", "level", ",", "String", "key", ",", "Object", "...", "args", ")", "{", "if", "(", "WsLevel", ".", "AUDIT", ".", "equals", "(", "level", ")", ")", "Tr", ".", "audit", "(", "tc", ",", "...
Logs a message from the J2CAMessages file. @param key message key. @param args message parameters
[ "Logs", "a", "message", "from", "the", "J2CAMessages", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/ConnectorService.java#L118-L129
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.audit.source/src/com/ibm/ws/security/audit/utils/AuditUtils.java
AuditUtils.getSessionID
public static String getSessionID(HttpServletRequest req) { String sessionID = null; final HttpServletRequest f_req = req; try { sessionID = AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws E...
java
public static String getSessionID(HttpServletRequest req) { String sessionID = null; final HttpServletRequest f_req = req; try { sessionID = AccessController.doPrivileged(new PrivilegedExceptionAction<String>() { @Override public String run() throws E...
[ "public", "static", "String", "getSessionID", "(", "HttpServletRequest", "req", ")", "{", "String", "sessionID", "=", "null", ";", "final", "HttpServletRequest", "f_req", "=", "req", ";", "try", "{", "sessionID", "=", "AccessController", ".", "doPrivileged", "("...
Return the session id if the request has an HttpSession, otherwise return null. @param req @return session id or null
[ "Return", "the", "session", "id", "if", "the", "request", "has", "an", "HttpSession", "otherwise", "return", "null", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.audit.source/src/com/ibm/ws/security/audit/utils/AuditUtils.java#L77-L138
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.audit.source/src/com/ibm/ws/security/audit/utils/AuditUtils.java
AuditUtils.getRequestScheme
public static String getRequestScheme(HttpServletRequest req) { String scheme; if (req.getScheme() != null) scheme = req.getScheme().toUpperCase(); else scheme = AuditEvent.REASON_TYPE_HTTP; return scheme; }
java
public static String getRequestScheme(HttpServletRequest req) { String scheme; if (req.getScheme() != null) scheme = req.getScheme().toUpperCase(); else scheme = AuditEvent.REASON_TYPE_HTTP; return scheme; }
[ "public", "static", "String", "getRequestScheme", "(", "HttpServletRequest", "req", ")", "{", "String", "scheme", ";", "if", "(", "req", ".", "getScheme", "(", ")", "!=", "null", ")", "scheme", "=", "req", ".", "getScheme", "(", ")", ".", "toUpperCase", ...
Get the scheme from the request - generally "HTTP" or HTTPS" @param req @return the scheme
[ "Get", "the", "scheme", "from", "the", "request", "-", "generally", "HTTP", "or", "HTTPS" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.audit.source/src/com/ibm/ws/security/audit/utils/AuditUtils.java#L146-L153
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.audit.source/src/com/ibm/ws/security/audit/utils/AuditUtils.java
AuditUtils.getRequestMethod
public static String getRequestMethod(HttpServletRequest req) { String method; if (req.getMethod() != null) method = req.getMethod().toUpperCase(); else method = AuditEvent.TARGET_METHOD_GET; return method; }
java
public static String getRequestMethod(HttpServletRequest req) { String method; if (req.getMethod() != null) method = req.getMethod().toUpperCase(); else method = AuditEvent.TARGET_METHOD_GET; return method; }
[ "public", "static", "String", "getRequestMethod", "(", "HttpServletRequest", "req", ")", "{", "String", "method", ";", "if", "(", "req", ".", "getMethod", "(", ")", "!=", "null", ")", "method", "=", "req", ".", "getMethod", "(", ")", ".", "toUpperCase", ...
Get the method from the request - generally "GET" or "POST" @param req @return the method
[ "Get", "the", "method", "from", "the", "request", "-", "generally", "GET", "or", "POST" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.audit.source/src/com/ibm/ws/security/audit/utils/AuditUtils.java#L171-L178
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/CircularObjectPool.java
CircularObjectPool.get
@Override public Object get() { Object oObject = null; synchronized (this) { // Check if any are free in the free hashtable if (lastEntry > -1) { // Free array has entries, get the last one. // remove last one for best performance ...
java
@Override public Object get() { Object oObject = null; synchronized (this) { // Check if any are free in the free hashtable if (lastEntry > -1) { // Free array has entries, get the last one. // remove last one for best performance ...
[ "@", "Override", "public", "Object", "get", "(", ")", "{", "Object", "oObject", "=", "null", ";", "synchronized", "(", "this", ")", "{", "// Check if any are free in the free hashtable", "if", "(", "lastEntry", ">", "-", "1", ")", "{", "// Free array has entries...
Gets an Object from the pool and returns it. If there are currently no entries in the pool then a new object will be created. @return Object from the pool
[ "Gets", "an", "Object", "from", "the", "pool", "and", "returns", "it", ".", "If", "there", "are", "currently", "no", "entries", "in", "the", "pool", "then", "a", "new", "object", "will", "be", "created", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/CircularObjectPool.java#L89-L116
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/CircularObjectPool.java
CircularObjectPool.put
@Override public Object put(Object object) { Object returnVal = null; long currentTime = CHFWBundle.getApproxTime(); synchronized (this) { // get next free position, or oldest position if none free lastEntry++; // If last entry is past end of array, go ba...
java
@Override public Object put(Object object) { Object returnVal = null; long currentTime = CHFWBundle.getApproxTime(); synchronized (this) { // get next free position, or oldest position if none free lastEntry++; // If last entry is past end of array, go ba...
[ "@", "Override", "public", "Object", "put", "(", "Object", "object", ")", "{", "Object", "returnVal", "=", "null", ";", "long", "currentTime", "=", "CHFWBundle", ".", "getApproxTime", "(", ")", ";", "synchronized", "(", "this", ")", "{", "// get next free po...
Puts an Object into the free pool. If the free pool is full then this object will overlay the oldest object in the pool. @param object to be put in the pool.
[ "Puts", "an", "Object", "into", "the", "free", "pool", ".", "If", "the", "free", "pool", "is", "full", "then", "this", "object", "will", "overlay", "the", "oldest", "object", "in", "the", "pool", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/CircularObjectPool.java#L125-L179
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/CircularObjectPool.java
CircularObjectPool.putBatch
protected void putBatch(Object[] objectArray) { int index = 0; synchronized (this) { while (index < objectArray.length && objectArray[index] != null) { put(objectArray[index]); index++; } } return; }
java
protected void putBatch(Object[] objectArray) { int index = 0; synchronized (this) { while (index < objectArray.length && objectArray[index] != null) { put(objectArray[index]); index++; } } return; }
[ "protected", "void", "putBatch", "(", "Object", "[", "]", "objectArray", ")", "{", "int", "index", "=", "0", ";", "synchronized", "(", "this", ")", "{", "while", "(", "index", "<", "objectArray", ".", "length", "&&", "objectArray", "[", "index", "]", "...
Puts a set of Objects into the free pool. If the free pool is full then this object will overlay the oldest object in the pool. @param objectArray list of objects to put into the pool
[ "Puts", "a", "set", "of", "Objects", "into", "the", "free", "pool", ".", "If", "the", "free", "pool", "is", "full", "then", "this", "object", "will", "overlay", "the", "oldest", "object", "in", "the", "pool", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/CircularObjectPool.java#L221-L231
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageFactoryImpl.java
JsJmsMessageFactoryImpl.createJmsMessage
public JsJmsMessage createJmsMessage() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsMessage"); JsJmsMessage msg = null; try { msg = new JsJmsMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); } catch (MessageDecodeFa...
java
public JsJmsMessage createJmsMessage() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsMessage"); JsJmsMessage msg = null; try { msg = new JsJmsMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); } catch (MessageDecodeFa...
[ "public", "JsJmsMessage", "createJmsMessage", "(", ")", "throws", "MessageCreateFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "...
Create a new, empty null-bodied JMS Message. To be called by the API component. @return The new JsJmsMessage @exception MessageCreateFailedException Thrown if such a message can not be created
[ "Create", "a", "new", "empty", "null", "-", "bodied", "JMS", "Message", ".", "To", "be", "called", "by", "the", "API", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageFactoryImpl.java#L38-L51
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageFactoryImpl.java
JsJmsMessageFactoryImpl.createJmsBytesMessage
public JsJmsBytesMessage createJmsBytesMessage() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsBytesMessage"); JsJmsBytesMessage msg = null; try { msg = new JsJmsBytesMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); } ...
java
public JsJmsBytesMessage createJmsBytesMessage() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsBytesMessage"); JsJmsBytesMessage msg = null; try { msg = new JsJmsBytesMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); } ...
[ "public", "JsJmsBytesMessage", "createJmsBytesMessage", "(", ")", "throws", "MessageCreateFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ...
Create a new, empty JMS BytesMessage. To be called by the API component. @return The new JsJmsBytesMessage @exception MessageCreateFailedException Thrown if such a message can not be created
[ "Create", "a", "new", "empty", "JMS", "BytesMessage", ".", "To", "be", "called", "by", "the", "API", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageFactoryImpl.java#L61-L74
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageFactoryImpl.java
JsJmsMessageFactoryImpl.createJmsMapMessage
public JsJmsMapMessage createJmsMapMessage() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsMapMessage"); JsJmsMapMessage msg = null; try { msg = new JsJmsMapMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); } catch (...
java
public JsJmsMapMessage createJmsMapMessage() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsMapMessage"); JsJmsMapMessage msg = null; try { msg = new JsJmsMapMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); } catch (...
[ "public", "JsJmsMapMessage", "createJmsMapMessage", "(", ")", "throws", "MessageCreateFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",...
Create a new, empty JMS MapMessage. To be called by the API component. @return The new JsJmsMapMessage @exception MessageCreateFailedException Thrown if such a message can not be created
[ "Create", "a", "new", "empty", "JMS", "MapMessage", ".", "To", "be", "called", "by", "the", "API", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageFactoryImpl.java#L84-L97
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageFactoryImpl.java
JsJmsMessageFactoryImpl.createJmsObjectMessage
public JsJmsObjectMessage createJmsObjectMessage() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsObjectMessage"); JsJmsObjectMessage msg = null; try { msg = new JsJmsObjectMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); ...
java
public JsJmsObjectMessage createJmsObjectMessage() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsObjectMessage"); JsJmsObjectMessage msg = null; try { msg = new JsJmsObjectMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); ...
[ "public", "JsJmsObjectMessage", "createJmsObjectMessage", "(", ")", "throws", "MessageCreateFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc"...
Create a new, empty JMS ObjectMessage. To be called by the API component. @return The new JsJmsObjectMessage @exception MessageCreateFailedException Thrown if such a message can not be created
[ "Create", "a", "new", "empty", "JMS", "ObjectMessage", ".", "To", "be", "called", "by", "the", "API", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageFactoryImpl.java#L107-L120
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageFactoryImpl.java
JsJmsMessageFactoryImpl.createJmsStreamMessage
public JsJmsStreamMessage createJmsStreamMessage() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsStreamMessage"); JsJmsStreamMessage msg = null; try { msg = new JsJmsStreamMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); ...
java
public JsJmsStreamMessage createJmsStreamMessage() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsStreamMessage"); JsJmsStreamMessage msg = null; try { msg = new JsJmsStreamMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); ...
[ "public", "JsJmsStreamMessage", "createJmsStreamMessage", "(", ")", "throws", "MessageCreateFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc"...
Create a new, empty JMS StreamMessage. To be called by the API component. @return The new JsJmsStreamMessage @exception MessageCreateFailedException Thrown if such a message can not be created
[ "Create", "a", "new", "empty", "JMS", "StreamMessage", ".", "To", "be", "called", "by", "the", "API", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageFactoryImpl.java#L130-L143
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageFactoryImpl.java
JsJmsMessageFactoryImpl.createJmsTextMessage
public JsJmsTextMessage createJmsTextMessage() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsTextMessage"); JsJmsTextMessage msg = null; try { msg = new JsJmsTextMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); } ca...
java
public JsJmsTextMessage createJmsTextMessage() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsTextMessage"); JsJmsTextMessage msg = null; try { msg = new JsJmsTextMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); } ca...
[ "public", "JsJmsTextMessage", "createJmsTextMessage", "(", ")", "throws", "MessageCreateFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ...
Create a new, empty JMS TextMessage. To be called by the API component. @return The new JsJmsTextMessage @exception MessageCreateFailedException Thrown if such a message can not be created
[ "Create", "a", "new", "empty", "JMS", "TextMessage", ".", "To", "be", "called", "by", "the", "API", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageFactoryImpl.java#L153-L166
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java
SSLReadServiceContext.saveDecryptedPositions
private void saveDecryptedPositions() { for (int i = 0; i < decryptedNetPosInfo.length; i++) { decryptedNetPosInfo[i] = 0; } if (null != getBuffers()) { WsByteBuffer[] buffers = getBuffers(); if (buffers.length > decryptedNetPosInfo.length) { d...
java
private void saveDecryptedPositions() { for (int i = 0; i < decryptedNetPosInfo.length; i++) { decryptedNetPosInfo[i] = 0; } if (null != getBuffers()) { WsByteBuffer[] buffers = getBuffers(); if (buffers.length > decryptedNetPosInfo.length) { d...
[ "private", "void", "saveDecryptedPositions", "(", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "decryptedNetPosInfo", ".", "length", ";", "i", "++", ")", "{", "decryptedNetPosInfo", "[", "i", "]", "=", "0", ";", "}", "if", "(", "null", ...
Save the starting positions of the output buffers so that we can properly calculate the amount of data being returned by the read.
[ "Save", "the", "starting", "positions", "of", "the", "output", "buffers", "so", "that", "we", "can", "properly", "calculate", "the", "amount", "of", "data", "being", "returned", "by", "the", "read", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java#L100-L113
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java
SSLReadServiceContext.read
@Override public VirtualConnection read(long numBytes, TCPReadCompletedCallback userCallback, boolean forceQueue, int timeout) { // Call the async read with a flag showing this was not done from a queued request. return read(numBytes, userCallback, forceQueue, timeout, false); }
java
@Override public VirtualConnection read(long numBytes, TCPReadCompletedCallback userCallback, boolean forceQueue, int timeout) { // Call the async read with a flag showing this was not done from a queued request. return read(numBytes, userCallback, forceQueue, timeout, false); }
[ "@", "Override", "public", "VirtualConnection", "read", "(", "long", "numBytes", ",", "TCPReadCompletedCallback", "userCallback", ",", "boolean", "forceQueue", ",", "int", "timeout", ")", "{", "// Call the async read with a flag showing this was not done from a queued request."...
Note, a separate thread is not spawned to handle the decryption. The asynchronous behavior of this call will take place when the device side channel makes a nonblocking IO call and the request is potentially moved to a separate thread. The buffers potentially set from the calling application will be used to store the ...
[ "Note", "a", "separate", "thread", "is", "not", "spawned", "to", "handle", "the", "decryption", ".", "The", "asynchronous", "behavior", "of", "this", "call", "will", "take", "place", "when", "the", "device", "side", "channel", "makes", "a", "nonblocking", "I...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java#L359-L363
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java
SSLReadServiceContext.handleAsyncComplete
private void handleAsyncComplete(boolean forceQueue, TCPReadCompletedCallback inCallback) { boolean fireHere = true; if (forceQueue) { // Complete must be returned on a separate thread. // Reuse queuedWork object (performance), but reset the error parameters. queuedWo...
java
private void handleAsyncComplete(boolean forceQueue, TCPReadCompletedCallback inCallback) { boolean fireHere = true; if (forceQueue) { // Complete must be returned on a separate thread. // Reuse queuedWork object (performance), but reset the error parameters. queuedWo...
[ "private", "void", "handleAsyncComplete", "(", "boolean", "forceQueue", ",", "TCPReadCompletedCallback", "inCallback", ")", "{", "boolean", "fireHere", "=", "true", ";", "if", "(", "forceQueue", ")", "{", "// Complete must be returned on a separate thread.", "// Reuse que...
This method handles calling the complete method of the callback as required by an async read. Appropriate action is taken based on the setting of the forceQueue parameter. If it is true, the complete callback is called on a separate thread. Otherwise it is called right here. @param forceQueue @param inCallback
[ "This", "method", "handles", "calling", "the", "complete", "method", "of", "the", "callback", "as", "required", "by", "an", "async", "read", ".", "Appropriate", "action", "is", "taken", "based", "on", "the", "setting", "of", "the", "forceQueue", "parameter", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java#L576-L600
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java
SSLReadServiceContext.handleAsyncError
private void handleAsyncError(boolean forceQueue, IOException exception, TCPReadCompletedCallback inCallback) { boolean fireHere = true; if (forceQueue) { // Error must be returned on a separate thread. // Reuse queuedWork object (performance), but reset the error parameters. ...
java
private void handleAsyncError(boolean forceQueue, IOException exception, TCPReadCompletedCallback inCallback) { boolean fireHere = true; if (forceQueue) { // Error must be returned on a separate thread. // Reuse queuedWork object (performance), but reset the error parameters. ...
[ "private", "void", "handleAsyncError", "(", "boolean", "forceQueue", ",", "IOException", "exception", ",", "TCPReadCompletedCallback", "inCallback", ")", "{", "boolean", "fireHere", "=", "true", ";", "if", "(", "forceQueue", ")", "{", "// Error must be returned on a s...
This method handles errors when they occur during the code path of an async read. It takes appropriate action based on the setting of the forceQueue parameter. If it is true, the error callback is called on a separate thread. Otherwise it is called right here. @param forceQueue @param exception @param inCallback
[ "This", "method", "handles", "errors", "when", "they", "occur", "during", "the", "code", "path", "of", "an", "async", "read", ".", "It", "takes", "appropriate", "action", "based", "on", "the", "setting", "of", "the", "forceQueue", "parameter", ".", "If", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java#L611-L636
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java
SSLReadServiceContext.readUnconsumedDecData
public long readUnconsumedDecData() { long totalBytesRead = 0L; // Determine if data is left over from a former read request. if (unconsumedDecData != null) { // Left over data exists. Is there enough to satisfy the request? if (getBuffer() == null) { // ...
java
public long readUnconsumedDecData() { long totalBytesRead = 0L; // Determine if data is left over from a former read request. if (unconsumedDecData != null) { // Left over data exists. Is there enough to satisfy the request? if (getBuffer() == null) { // ...
[ "public", "long", "readUnconsumedDecData", "(", ")", "{", "long", "totalBytesRead", "=", "0L", ";", "// Determine if data is left over from a former read request.", "if", "(", "unconsumedDecData", "!=", "null", ")", "{", "// Left over data exists. Is there enough to satisfy the...
This method is called when a read is requested. It checks to see if any data is left over from the previous read, but there wasn't space in the buffers to store the result. @return number of bytes copied from the left over buffer
[ "This", "method", "is", "called", "when", "a", "read", "is", "requested", ".", "It", "checks", "to", "see", "if", "any", "data", "is", "left", "over", "from", "the", "previous", "read", "but", "there", "wasn", "t", "space", "in", "the", "buffers", "to"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java#L699-L745
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java
SSLReadServiceContext.getNetworkBuffer
protected void getNetworkBuffer(long requestedSize) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "getNetworkBuffer: size=" + requestedSize); } // Reset the netBuffer mark. this.netBufferMark = 0; int allocationSize = getConnLink()....
java
protected void getNetworkBuffer(long requestedSize) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "getNetworkBuffer: size=" + requestedSize); } // Reset the netBuffer mark. this.netBufferMark = 0; int allocationSize = getConnLink()....
[ "protected", "void", "getNetworkBuffer", "(", "long", "requestedSize", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "tc", ",", "\"getNetworkBuffer...
Get the buffers that the device channel should read into. These buffers get reused over the course of multiple reads. The size of the buffers are determined by either the allocation size specified by the application channel or, if that wasn't set, the max packet buffer size specified in the SSL engine. @param requeste...
[ "Get", "the", "buffers", "that", "the", "device", "channel", "should", "read", "into", ".", "These", "buffers", "get", "reused", "over", "the", "course", "of", "multiple", "reads", ".", "The", "size", "of", "the", "buffers", "are", "determined", "by", "eit...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java#L756-L811
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java
SSLReadServiceContext.cleanupDecBuffers
private void cleanupDecBuffers() { // if we have decrypted buffers and they are either JIT created or made // during decryption/expansion (user buffers too small) then release them // here and dereference if (null != this.decryptedNetBuffers && (callerRequiredAllocation || de...
java
private void cleanupDecBuffers() { // if we have decrypted buffers and they are either JIT created or made // during decryption/expansion (user buffers too small) then release them // here and dereference if (null != this.decryptedNetBuffers && (callerRequiredAllocation || de...
[ "private", "void", "cleanupDecBuffers", "(", ")", "{", "// if we have decrypted buffers and they are either JIT created or made", "// during decryption/expansion (user buffers too small) then release them", "// here and dereference", "if", "(", "null", "!=", "this", ".", "decryptedNetB...
Utility method to handle releasing the decrypted network buffers that we may or may not own at this point.
[ "Utility", "method", "to", "handle", "releasing", "the", "decrypted", "network", "buffers", "that", "we", "may", "or", "may", "not", "own", "at", "this", "point", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java#L1091-L1100
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java
SSLReadServiceContext.close
public void close() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "close, vc=" + getVCHash()); } synchronized (closeSync) { if (closeCalled) { return; } closeCalled = true; if (null ...
java
public void close() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "close, vc=" + getVCHash()); } synchronized (closeSync) { if (closeCalled) { return; } closeCalled = true; if (null ...
[ "public", "void", "close", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "tc", ",", "\"close, vc=\"", "+", "getVCHash", "(", ")", ")", ...
Release the potential buffer that were created
[ "Release", "the", "potential", "buffer", "that", "were", "created" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java#L1105-L1139
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java
SSLReadServiceContext.doHandshake
private SSLEngineResult doHandshake(boolean async) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "doHandshake"); } SSLEngineResult sslResult; // Line up all the buffers needed for the SSL handshake. Temporary so ...
java
private SSLEngineResult doHandshake(boolean async) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "doHandshake"); } SSLEngineResult sslResult; // Line up all the buffers needed for the SSL handshake. Temporary so ...
[ "private", "SSLEngineResult", "doHandshake", "(", "boolean", "async", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "tc", ...
When data is read, there is always the change the a renegotiation will take place. If so, this method will be called. Note, it is used by both the sync and async writes. @param async @return result of the handshake @throws IOException
[ "When", "data", "is", "read", "there", "is", "always", "the", "change", "the", "a", "renegotiation", "will", "take", "place", ".", "If", "so", "this", "method", "will", "be", "called", ".", "Note", "it", "is", "used", "by", "both", "the", "sync", "and"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLReadServiceContext.java#L1489-L1543
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/flow/cdi/FlowScopedContextImpl.java
FlowScopedContextImpl.getContextualStorage
protected ContextualStorage getContextualStorage(boolean createIfNotExist, String clientWindowFlowId) { //FacesContext facesContext = FacesContext.getCurrentInstance(); //String clientWindowFlowId = getCurrentClientWindowFlowId(facesContext); if (clientWindowFlowId == null) { ...
java
protected ContextualStorage getContextualStorage(boolean createIfNotExist, String clientWindowFlowId) { //FacesContext facesContext = FacesContext.getCurrentInstance(); //String clientWindowFlowId = getCurrentClientWindowFlowId(facesContext); if (clientWindowFlowId == null) { ...
[ "protected", "ContextualStorage", "getContextualStorage", "(", "boolean", "createIfNotExist", ",", "String", "clientWindowFlowId", ")", "{", "//FacesContext facesContext = FacesContext.getCurrentInstance();", "//String clientWindowFlowId = getCurrentClientWindowFlowId(facesContext);", "if"...
An implementation has to return the underlying storage which contains the items held in the Context. @param createIfNotExist whether a ContextualStorage shall get created if it doesn't yet exist. @return the underlying storage
[ "An", "implementation", "has", "to", "return", "the", "underlying", "storage", "which", "contains", "the", "items", "held", "in", "the", "Context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/flow/cdi/FlowScopedContextImpl.java#L125-L142
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPProxyResponse.java
TCPProxyResponse.proxyReadHandshake
protected void proxyReadHandshake() { // setup the read buffer - use JIT on the first read attempt. If it // works, then any subsequent reads will use that same buffer. connLink.getReadInterface().setJITAllocateSize(1024); // reader.setBuffer(WsByteBufferPoolManagerImpl.getRef().allocat...
java
protected void proxyReadHandshake() { // setup the read buffer - use JIT on the first read attempt. If it // works, then any subsequent reads will use that same buffer. connLink.getReadInterface().setJITAllocateSize(1024); // reader.setBuffer(WsByteBufferPoolManagerImpl.getRef().allocat...
[ "protected", "void", "proxyReadHandshake", "(", ")", "{", "// setup the read buffer - use JIT on the first read attempt. If it", "// works, then any subsequent reads will use that same buffer.", "connLink", ".", "getReadInterface", "(", ")", ".", "setJITAllocateSize", "(", "1024", ...
Complete the proxy connect handshake by reading for the response and validating any data.
[ "Complete", "the", "proxy", "connect", "handshake", "by", "reading", "for", "the", "response", "and", "validating", "any", "data", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPProxyResponse.java#L96-L126
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPProxyResponse.java
TCPProxyResponse.checkResponse
protected int checkResponse(TCPReadRequestContext rsc) { // Parse the proxy server response // WsByteBuffer[] buffers = rsc.getBuffers(); // check if the correct response was received if (null == buffers) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnable...
java
protected int checkResponse(TCPReadRequestContext rsc) { // Parse the proxy server response // WsByteBuffer[] buffers = rsc.getBuffers(); // check if the correct response was received if (null == buffers) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnable...
[ "protected", "int", "checkResponse", "(", "TCPReadRequestContext", "rsc", ")", "{", "// Parse the proxy server response", "//", "WsByteBuffer", "[", "]", "buffers", "=", "rsc", ".", "getBuffers", "(", ")", ";", "// check if the correct response was received", "if", "(",...
Check for a proxy handshake response. @param rsc @return int (status code)
[ "Check", "for", "a", "proxy", "handshake", "response", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPProxyResponse.java#L134-L151
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPProxyResponse.java
TCPProxyResponse.releaseProxyWriteBuffer
protected void releaseProxyWriteBuffer() { WsByteBuffer buffer = connLink.getWriteInterface().getBuffer(); if (null != buffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Releasing proxy write buffer: " + buffer); } ...
java
protected void releaseProxyWriteBuffer() { WsByteBuffer buffer = connLink.getWriteInterface().getBuffer(); if (null != buffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Releasing proxy write buffer: " + buffer); } ...
[ "protected", "void", "releaseProxyWriteBuffer", "(", ")", "{", "WsByteBuffer", "buffer", "=", "connLink", ".", "getWriteInterface", "(", ")", ".", "getBuffer", "(", ")", ";", "if", "(", "null", "!=", "buffer", ")", "{", "if", "(", "TraceComponent", ".", "i...
Release the proxy connect write buffer.
[ "Release", "the", "proxy", "connect", "write", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPProxyResponse.java#L181-L190
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPProxyResponse.java
TCPProxyResponse.releaseProxyReadBuffer
protected void releaseProxyReadBuffer() { WsByteBuffer buffer = connLink.getReadInterface().getBuffer(); if (null != buffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Releasing proxy read buffer: " + buffer); } ...
java
protected void releaseProxyReadBuffer() { WsByteBuffer buffer = connLink.getReadInterface().getBuffer(); if (null != buffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Releasing proxy read buffer: " + buffer); } ...
[ "protected", "void", "releaseProxyReadBuffer", "(", ")", "{", "WsByteBuffer", "buffer", "=", "connLink", ".", "getReadInterface", "(", ")", ".", "getBuffer", "(", ")", ";", "if", "(", "null", "!=", "buffer", ")", "{", "if", "(", "TraceComponent", ".", "isA...
Release the proxy connect read buffer.
[ "Release", "the", "proxy", "connect", "read", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPProxyResponse.java#L195-L204
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPProxyResponse.java
TCPProxyResponse.containsHTTP200
protected boolean containsHTTP200(byte[] data) { boolean rc = true; // byte comparison to check for HTTP and 200 in the response // this code is not pretty, it is designed to be fast // code assumes that HTTP/1.0 200 will be contained in one buffer // if (data.length < ...
java
protected boolean containsHTTP200(byte[] data) { boolean rc = true; // byte comparison to check for HTTP and 200 in the response // this code is not pretty, it is designed to be fast // code assumes that HTTP/1.0 200 will be contained in one buffer // if (data.length < ...
[ "protected", "boolean", "containsHTTP200", "(", "byte", "[", "]", "data", ")", "{", "boolean", "rc", "=", "true", ";", "// byte comparison to check for HTTP and 200 in the response", "// this code is not pretty, it is designed to be fast", "// code assumes that HTTP/1.0 200 will be...
Checks if the byte array contains "HTTP 200" in a byte array. @param data search byte array @return true if found; false if not
[ "Checks", "if", "the", "byte", "array", "contains", "HTTP", "200", "in", "a", "byte", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPProxyResponse.java#L340-L356
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPProxyResponse.java
TCPProxyResponse.readProxyResponse
protected void readProxyResponse(VirtualConnection inVC) { int size = 1; if (!this.isProxyResponseValid) { // we need at least 12 bytes for the first line size = 12; } if (connLink.isAsyncConnect()) { VirtualConnection vcRC = connLink.getReadInterface...
java
protected void readProxyResponse(VirtualConnection inVC) { int size = 1; if (!this.isProxyResponseValid) { // we need at least 12 bytes for the first line size = 12; } if (connLink.isAsyncConnect()) { VirtualConnection vcRC = connLink.getReadInterface...
[ "protected", "void", "readProxyResponse", "(", "VirtualConnection", "inVC", ")", "{", "int", "size", "=", "1", ";", "if", "(", "!", "this", ".", "isProxyResponseValid", ")", "{", "// we need at least 12 bytes for the first line", "size", "=", "12", ";", "}", "if...
Start a read for the response from the target proxy, this is either the first read or possibly secondary ones if necessary. @param inVC
[ "Start", "a", "read", "for", "the", "response", "from", "the", "target", "proxy", "this", "is", "either", "the", "first", "read", "or", "possibly", "secondary", "ones", "if", "necessary", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPProxyResponse.java#L516-L540
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/BaseMessageItemStream.java
BaseMessageItemStream.setDefaultDestLimits
public synchronized void setDefaultDestLimits() throws MessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setDefaultDestLimits"); // Defaults are based on those defined to the ME, the low is 80% of the high // Use setDestLim...
java
public synchronized void setDefaultDestLimits() throws MessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setDefaultDestLimits"); // Defaults are based on those defined to the ME, the low is 80% of the high // Use setDestLim...
[ "public", "synchronized", "void", "setDefaultDestLimits", "(", ")", "throws", "MessageStoreException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", "...
Set the default limits for this itemstream
[ "Set", "the", "default", "limits", "for", "this", "itemstream" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/BaseMessageItemStream.java#L142-L155
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/BaseMessageItemStream.java
BaseMessageItemStream.getDestHighMsgs
public long getDestHighMsgs() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getDestHighMsgs"); SibTr.exit(tc, "getDestHighMsgs", Long.valueOf(_destHighMsgs)); } return _destHighMsgs; }
java
public long getDestHighMsgs() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getDestHighMsgs"); SibTr.exit(tc, "getDestHighMsgs", Long.valueOf(_destHighMsgs)); } return _destHighMsgs; }
[ "public", "long", "getDestHighMsgs", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getDestHighMsgs\"", ")", ";", "SibTr", ...
Gets the destination high messages limit currently being used by this localization. @return
[ "Gets", "the", "destination", "high", "messages", "limit", "currently", "being", "used", "by", "this", "localization", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/BaseMessageItemStream.java#L162-L170
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/BaseMessageItemStream.java
BaseMessageItemStream.getDestLowMsgs
public long getDestLowMsgs() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getDestLowMsgs"); SibTr.exit(tc, "getDestLowMsgs", Long.valueOf(_destLowMsgs)); } return _destLowMsgs; }
java
public long getDestLowMsgs() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getDestLowMsgs"); SibTr.exit(tc, "getDestLowMsgs", Long.valueOf(_destLowMsgs)); } return _destLowMsgs; }
[ "public", "long", "getDestLowMsgs", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getDestLowMsgs\"", ")", ";", "SibTr", "...
Gets the destination low messages limit currently being used by this localization. @return
[ "Gets", "the", "destination", "low", "messages", "limit", "currently", "being", "used", "by", "this", "localization", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/BaseMessageItemStream.java#L177-L185
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/BaseMessageItemStream.java
BaseMessageItemStream.fireDepthThresholdReachedEvent
public void fireDepthThresholdReachedEvent(ControlAdapter cAdapter, boolean reachedHigh, long numMsgs, long msgLimit) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "...
java
public void fireDepthThresholdReachedEvent(ControlAdapter cAdapter, boolean reachedHigh, long numMsgs, long msgLimit) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "...
[ "public", "void", "fireDepthThresholdReachedEvent", "(", "ControlAdapter", "cAdapter", ",", "boolean", "reachedHigh", ",", "long", "numMsgs", ",", "long", "msgLimit", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "...
Fire an event notification of type TYPE_SIB_MESSAGEPOINT_DEPTH_THRESHOLD_REACHED @param newState
[ "Fire", "an", "event", "notification", "of", "type", "TYPE_SIB_MESSAGEPOINT_DEPTH_THRESHOLD_REACHED" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/BaseMessageItemStream.java#L751-L828
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/FFDCJanitor.java
FFDCJanitor.reschedule
private void reschedule() { // set up a daily roll Calendar cal = Calendar.getInstance(); long today = cal.getTimeInMillis(); // adjust to somewhere after midnight of the next day cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.add(Calendar.DAT...
java
private void reschedule() { // set up a daily roll Calendar cal = Calendar.getInstance(); long today = cal.getTimeInMillis(); // adjust to somewhere after midnight of the next day cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.add(Calendar.DAT...
[ "private", "void", "reschedule", "(", ")", "{", "// set up a daily roll", "Calendar", "cal", "=", "Calendar", ".", "getInstance", "(", ")", ";", "long", "today", "=", "cal", ".", "getTimeInMillis", "(", ")", ";", "// adjust to somewhere after midnight of the next da...
Reschedule the task for midnight-ish the next day.
[ "Reschedule", "the", "task", "for", "midnight", "-", "ish", "the", "next", "day", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/FFDCJanitor.java#L60-L74
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/TimerNpRunnable.java
TimerNpRunnable.run
@Override public void run() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) // F743-425.CodRev Tr.entry(tc, "run: " + ivTimer.ivTaskId); // F743-425.CodRev if (serverStopping) { if (isTraceOn && tc.isEntryEnable...
java
@Override public void run() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) // F743-425.CodRev Tr.entry(tc, "run: " + ivTimer.ivTaskId); // F743-425.CodRev if (serverStopping) { if (isTraceOn && tc.isEntryEnable...
[ "@", "Override", "public", "void", "run", "(", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "// F743-425.CodRev", "Tr", ...
Executes the timer work with configured retries. The EJB 3.1 spec, section 18.4.3 says, "If the transaction fails or is rolled back, the container must retry the timeout at least once." We allow the user to configure a retry count of 0, which will cause NO retries to be performed. If the retry count is not set, we wil...
[ "Executes", "the", "timer", "work", "with", "configured", "retries", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/TimerNpRunnable.java#L70-L146
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/xml/ParserFactory.java
ParserFactory.parseDocument
public static Document parseDocument(DocumentBuilder builder, File file) throws IOException, SAXException { final DocumentBuilder docBuilder = builder; final File parsingFile = file; try { return (Document) AccessController.doPrivileged(new PrivilegedExceptionAction() { ...
java
public static Document parseDocument(DocumentBuilder builder, File file) throws IOException, SAXException { final DocumentBuilder docBuilder = builder; final File parsingFile = file; try { return (Document) AccessController.doPrivileged(new PrivilegedExceptionAction() { ...
[ "public", "static", "Document", "parseDocument", "(", "DocumentBuilder", "builder", ",", "File", "file", ")", "throws", "IOException", ",", "SAXException", "{", "final", "DocumentBuilder", "docBuilder", "=", "builder", ";", "final", "File", "parsingFile", "=", "fi...
D190462 - START
[ "D190462", "-", "START" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/xml/ParserFactory.java#L286-L312
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInputStreamImpl.java
HttpInputStreamImpl.checkBuffer
protected boolean checkBuffer() throws IOException { if (!enableMultiReadofPostData) { if (null != this.buffer) { if (this.buffer.hasRemaining()) { return true; } this.buffer.release(); this.buffer = null; ...
java
protected boolean checkBuffer() throws IOException { if (!enableMultiReadofPostData) { if (null != this.buffer) { if (this.buffer.hasRemaining()) { return true; } this.buffer.release(); this.buffer = null; ...
[ "protected", "boolean", "checkBuffer", "(", ")", "throws", "IOException", "{", "if", "(", "!", "enableMultiReadofPostData", ")", "{", "if", "(", "null", "!=", "this", ".", "buffer", ")", "{", "if", "(", "this", ".", "buffer", ".", "hasRemaining", "(", ")...
Check the input buffer for data. If necessary, attempt a read for a new buffer. @return boolean - true means data is ready @throws IOException
[ "Check", "the", "input", "buffer", "for", "data", ".", "If", "necessary", "attempt", "a", "read", "for", "a", "new", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInputStreamImpl.java#L105-L130
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInputStreamImpl.java
HttpInputStreamImpl.checkMultiReadBuffer
private boolean checkMultiReadBuffer() throws IOException { //first check existing buffer if (null != this.buffer) { if (this.buffer.hasRemaining()) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "checkMultiReadBuffer, re...
java
private boolean checkMultiReadBuffer() throws IOException { //first check existing buffer if (null != this.buffer) { if (this.buffer.hasRemaining()) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "checkMultiReadBuffer, re...
[ "private", "boolean", "checkMultiReadBuffer", "(", ")", "throws", "IOException", "{", "//first check existing buffer", "if", "(", "null", "!=", "this", ".", "buffer", ")", "{", "if", "(", "this", ".", "buffer", ".", "hasRemaining", "(", ")", ")", "{", "if", ...
Check the input buffer for data. If necessary, attempt a read for a new buffer and store it. @return @throws IOException
[ "Check", "the", "input", "buffer", "for", "data", ".", "If", "necessary", "attempt", "a", "read", "for", "a", "new", "buffer", "and", "store", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpInputStreamImpl.java#L139-L201
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/internal/EsaSubsystemFeatureDefinitionImpl.java
EsaSubsystemFeatureDefinitionImpl.constructInstance
public static EsaSubsystemFeatureDefinitionImpl constructInstance(File esa) throws ZipException, IOException { // Find the manifest - case isn't guaranteed so do a search ZipFile zip = new ZipFile(esa); Enumeration<? extends ZipEntry> zipEntries = zip.entries(); ZipEntry subsystemEntry =...
java
public static EsaSubsystemFeatureDefinitionImpl constructInstance(File esa) throws ZipException, IOException { // Find the manifest - case isn't guaranteed so do a search ZipFile zip = new ZipFile(esa); Enumeration<? extends ZipEntry> zipEntries = zip.entries(); ZipEntry subsystemEntry =...
[ "public", "static", "EsaSubsystemFeatureDefinitionImpl", "constructInstance", "(", "File", "esa", ")", "throws", "ZipException", ",", "IOException", "{", "// Find the manifest - case isn't guaranteed so do a search", "ZipFile", "zip", "=", "new", "ZipFile", "(", "esa", ")",...
Create a new instance of this class for the supplied ESA file. @param esa The ESA to load @return The {@link EsaSubsystemFeatureDefinitionImpl} for working with the properties of the ESA @throws ZipException @throws IOException
[ "Create", "a", "new", "instance", "of", "this", "class", "for", "the", "supplied", "ESA", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/internal/EsaSubsystemFeatureDefinitionImpl.java#L43-L55
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IncidentLogger.java
IncidentLogger.formatTime
static String formatTime() { Date date = new Date(); DateFormat formatter = BaseTraceFormatter.useIsoDateFormat ? new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ") : DateFormatProvider.getDateFormat(); StringBuffer answer = new StringBuffer(); answer.append('['); formatter.forma...
java
static String formatTime() { Date date = new Date(); DateFormat formatter = BaseTraceFormatter.useIsoDateFormat ? new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ") : DateFormatProvider.getDateFormat(); StringBuffer answer = new StringBuffer(); answer.append('['); formatter.forma...
[ "static", "String", "formatTime", "(", ")", "{", "Date", "date", "=", "new", "Date", "(", ")", ";", "DateFormat", "formatter", "=", "BaseTraceFormatter", ".", "useIsoDateFormat", "?", "new", "SimpleDateFormat", "(", "\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\"", ")", ":", "D...
Return the current time formatted in a standard way @return The current time
[ "Return", "the", "current", "time", "formatted", "in", "a", "standard", "way" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IncidentLogger.java#L114-L122
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IncidentLogger.java
IncidentLogger.getCallStackFromStackTraceElement
private static String[] getCallStackFromStackTraceElement(StackTraceElement[] exceptionCallStack) { if (exceptionCallStack == null) return null; String[] answer = new String[exceptionCallStack.length]; for (int i = 0; i < exceptionCallStack.length; i++) { answer[exceptio...
java
private static String[] getCallStackFromStackTraceElement(StackTraceElement[] exceptionCallStack) { if (exceptionCallStack == null) return null; String[] answer = new String[exceptionCallStack.length]; for (int i = 0; i < exceptionCallStack.length; i++) { answer[exceptio...
[ "private", "static", "String", "[", "]", "getCallStackFromStackTraceElement", "(", "StackTraceElement", "[", "]", "exceptionCallStack", ")", "{", "if", "(", "exceptionCallStack", "==", "null", ")", "return", "null", ";", "String", "[", "]", "answer", "=", "new",...
Create the call stack array expected by diagnostic modules from an array of StackTraceElements @param exceptionCallStack The stack trace elements @return The call stack
[ "Create", "the", "call", "stack", "array", "expected", "by", "diagnostic", "modules", "from", "an", "array", "of", "StackTraceElements" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IncidentLogger.java#L171-L180
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IncidentLogger.java
IncidentLogger.getPackageName
private static String getPackageName(String className) { int end = className.lastIndexOf('.'); return (end > 0) ? className.substring(0, end) : ""; }
java
private static String getPackageName(String className) { int end = className.lastIndexOf('.'); return (end > 0) ? className.substring(0, end) : ""; }
[ "private", "static", "String", "getPackageName", "(", "String", "className", ")", "{", "int", "end", "=", "className", ".", "lastIndexOf", "(", "'", "'", ")", ";", "return", "(", "end", ">", "0", ")", "?", "className", ".", "substring", "(", "0", ",", ...
Return the package name of a given class name @param className The class name from which to find the package name @return The package name of the class (the empty string is returned for the default package
[ "Return", "the", "package", "name", "of", "a", "given", "class", "name" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/IncidentLogger.java#L190-L193
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwtsso/src/com/ibm/ws/security/jwtsso/utils/ConfigUtils.java
ConfigUtils.validateCookieName
public String validateCookieName(String cookieName, boolean quiet) { if (cookieName == null || cookieName.length() == 0) { if (!quiet) { Tr.error(tc, "COOKIE_NAME_CANT_BE_EMPTY"); } return CFG_DEFAULT_COOKIENAME; } String cookieNameUc = cookieName.toUpperCase(); boolean valid = true; for (int i =...
java
public String validateCookieName(String cookieName, boolean quiet) { if (cookieName == null || cookieName.length() == 0) { if (!quiet) { Tr.error(tc, "COOKIE_NAME_CANT_BE_EMPTY"); } return CFG_DEFAULT_COOKIENAME; } String cookieNameUc = cookieName.toUpperCase(); boolean valid = true; for (int i =...
[ "public", "String", "validateCookieName", "(", "String", "cookieName", ",", "boolean", "quiet", ")", "{", "if", "(", "cookieName", "==", "null", "||", "cookieName", ".", "length", "(", ")", "==", "0", ")", "{", "if", "(", "!", "quiet", ")", "{", "Tr", ...
reset cookieName to default value if it is not valid @param cookieName @param quiet don't emit any error messages @return original name or default if original was invalid
[ "reset", "cookieName", "to", "default", "value", "if", "it", "is", "not", "valid" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwtsso/src/com/ibm/ws/security/jwtsso/utils/ConfigUtils.java#L30-L53
train
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredSyncs.java
RegisteredSyncs.distributeBefore
public void distributeBefore() { if (tc.isEntryEnabled()) Tr.entry(tc, "distributeBefore", this); boolean setRollback = false; try { coreDistributeBefore(); } catch (Throwable exc) { // No FFDC Code Needed. Tr.error(tc, "WT...
java
public void distributeBefore() { if (tc.isEntryEnabled()) Tr.entry(tc, "distributeBefore", this); boolean setRollback = false; try { coreDistributeBefore(); } catch (Throwable exc) { // No FFDC Code Needed. Tr.error(tc, "WT...
[ "public", "void", "distributeBefore", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"distributeBefore\"", ",", "this", ")", ";", "boolean", "setRollback", "=", "false", ";", "try", "{", "cor...
Distributes before completion operations to all registered Synchronization objects. If a synchronization raises an exception, mark transaction for rollback.
[ "Distributes", "before", "completion", "operations", "to", "all", "registered", "Synchronization", "objects", ".", "If", "a", "synchronization", "raises", "an", "exception", "mark", "transaction", "for", "rollback", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredSyncs.java#L141-L205
train
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredSyncs.java
RegisteredSyncs.distributeAfter
public void distributeAfter(int status) { if (tc.isEntryEnabled()) Tr.entry(tc, "distributeAfter", new Object[] { this, status}); // Issue the RRS syncs first - these need to be as close to the completion as possible final List RRSsyncs = _syncs[SYNC_TIER_RRS]; ...
java
public void distributeAfter(int status) { if (tc.isEntryEnabled()) Tr.entry(tc, "distributeAfter", new Object[] { this, status}); // Issue the RRS syncs first - these need to be as close to the completion as possible final List RRSsyncs = _syncs[SYNC_TIER_RRS]; ...
[ "public", "void", "distributeAfter", "(", "int", "status", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"distributeAfter\"", ",", "new", "Object", "[", "]", "{", "this", ",", "status", "}", ")...
Distributes after completion operations to all registered Synchronization objects. @param status Indicates whether the transaction committed.
[ "Distributes", "after", "completion", "operations", "to", "all", "registered", "Synchronization", "objects", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredSyncs.java#L261-L293
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/UDPBufferFactory.java
UDPBufferFactory.getRef
public static UDPBufferFactory getRef() { if (null == ofInstance) { synchronized (UDPBufferFactory.class) { if (null == ofInstance) { ofInstance = new UDPBufferFactory(); } } } return ofInstance; }
java
public static UDPBufferFactory getRef() { if (null == ofInstance) { synchronized (UDPBufferFactory.class) { if (null == ofInstance) { ofInstance = new UDPBufferFactory(); } } } return ofInstance; }
[ "public", "static", "UDPBufferFactory", "getRef", "(", ")", "{", "if", "(", "null", "==", "ofInstance", ")", "{", "synchronized", "(", "UDPBufferFactory", ".", "class", ")", "{", "if", "(", "null", "==", "ofInstance", ")", "{", "ofInstance", "=", "new", ...
Get a reference to the singleton instance of this class. @return UDPBufferFactory
[ "Get", "a", "reference", "to", "the", "singleton", "instance", "of", "this", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/UDPBufferFactory.java#L37-L46
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/UDPBufferFactory.java
UDPBufferFactory.getUDPBuffer
public static UDPBufferImpl getUDPBuffer(WsByteBuffer buffer, SocketAddress address) { UDPBufferImpl udpBuffer = getRef().getUDPBufferImpl(); udpBuffer.set(buffer, address); return udpBuffer; }
java
public static UDPBufferImpl getUDPBuffer(WsByteBuffer buffer, SocketAddress address) { UDPBufferImpl udpBuffer = getRef().getUDPBufferImpl(); udpBuffer.set(buffer, address); return udpBuffer; }
[ "public", "static", "UDPBufferImpl", "getUDPBuffer", "(", "WsByteBuffer", "buffer", ",", "SocketAddress", "address", ")", "{", "UDPBufferImpl", "udpBuffer", "=", "getRef", "(", ")", ".", "getUDPBufferImpl", "(", ")", ";", "udpBuffer", ".", "set", "(", "buffer", ...
Get a UDPBuffer that will encapsulate the provided information. @param buffer @param address @return UDPBufferImpl
[ "Get", "a", "UDPBuffer", "that", "will", "encapsulate", "the", "provided", "information", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/UDPBufferFactory.java#L64-L68
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/UDPBufferFactory.java
UDPBufferFactory.getUDPBufferImpl
protected UDPBufferImpl getUDPBufferImpl() { UDPBufferImpl ret = (UDPBufferImpl) udpBufferObjectPool.get(); if (ret == null) { ret = new UDPBufferImpl(this); } return ret; }
java
protected UDPBufferImpl getUDPBufferImpl() { UDPBufferImpl ret = (UDPBufferImpl) udpBufferObjectPool.get(); if (ret == null) { ret = new UDPBufferImpl(this); } return ret; }
[ "protected", "UDPBufferImpl", "getUDPBufferImpl", "(", ")", "{", "UDPBufferImpl", "ret", "=", "(", "UDPBufferImpl", ")", "udpBufferObjectPool", ".", "get", "(", ")", ";", "if", "(", "ret", "==", "null", ")", "{", "ret", "=", "new", "UDPBufferImpl", "(", "t...
Retrieve an UDPBuffer object from the factory. @return UDPBufferImpl
[ "Retrieve", "an", "UDPBuffer", "object", "from", "the", "factory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/UDPBufferFactory.java#L84-L90
train
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/FileLogProperties.java
FileLogProperties.logDirectory
public String logDirectory() { if (tc.isEntryEnabled()) Tr.entry(tc, "logDirectory", this); if (tc.isEntryEnabled()) Tr.exit(tc, "logDirectory", _logDirectory); return _logDirectory; }
java
public String logDirectory() { if (tc.isEntryEnabled()) Tr.entry(tc, "logDirectory", this); if (tc.isEntryEnabled()) Tr.exit(tc, "logDirectory", _logDirectory); return _logDirectory; }
[ "public", "String", "logDirectory", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"logDirectory\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", "....
Returns the physical location where a recovery log constructed from the target object will reside. @return String The phyisical log directory path
[ "Returns", "the", "physical", "location", "where", "a", "recovery", "log", "constructed", "from", "the", "target", "object", "will", "reside", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/FileLogProperties.java#L304-L311
train
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/FileLogProperties.java
FileLogProperties.logDirectoryStem
public String logDirectoryStem() { if (tc.isEntryEnabled()) Tr.entry(tc, "logDirectoryStem", this); if (tc.isEntryEnabled()) Tr.exit(tc, "logDirectoryStem", _logDirectoryStem); return _logDirectoryStem; }
java
public String logDirectoryStem() { if (tc.isEntryEnabled()) Tr.entry(tc, "logDirectoryStem", this); if (tc.isEntryEnabled()) Tr.exit(tc, "logDirectoryStem", _logDirectoryStem); return _logDirectoryStem; }
[ "public", "String", "logDirectoryStem", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"logDirectoryStem\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "T...
Returns the stem of the location where a recovery log constructed from the target object will reside. @return String The stem of the log directory path
[ "Returns", "the", "stem", "of", "the", "location", "where", "a", "recovery", "log", "constructed", "from", "the", "target", "object", "will", "reside", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/FileLogProperties.java#L322-L329
train
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/FileLogProperties.java
FileLogProperties.logFileSize
public int logFileSize() { if (tc.isEntryEnabled()) Tr.entry(tc, "logFileSize", this); if (tc.isEntryEnabled()) Tr.exit(tc, "logFileSize", new Integer(_logFileSize)); return _logFileSize; }
java
public int logFileSize() { if (tc.isEntryEnabled()) Tr.entry(tc, "logFileSize", this); if (tc.isEntryEnabled()) Tr.exit(tc, "logFileSize", new Integer(_logFileSize)); return _logFileSize; }
[ "public", "int", "logFileSize", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"logFileSize\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", ...
Returns the physical log size of a recovery log constructed from the target object. @return int The phyisical log size (in kilobytes)
[ "Returns", "the", "physical", "log", "size", "of", "a", "recovery", "log", "constructed", "from", "the", "target", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/FileLogProperties.java#L340-L347
train
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/FileLogProperties.java
FileLogProperties.maxLogFileSize
public int maxLogFileSize() { if (tc.isEntryEnabled()) Tr.entry(tc, "maxLogFileSize", this); if (tc.isEntryEnabled()) Tr.exit(tc, "maxLogFileSize", new Integer(_maxLogFileSize)); return _maxLogFileSize; }
java
public int maxLogFileSize() { if (tc.isEntryEnabled()) Tr.entry(tc, "maxLogFileSize", this); if (tc.isEntryEnabled()) Tr.exit(tc, "maxLogFileSize", new Integer(_maxLogFileSize)); return _maxLogFileSize; }
[ "public", "int", "maxLogFileSize", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"maxLogFileSize\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", "...
Returns the maximum physical log size of a recovery log constructed from the target object. @return int The maximum phyisical log size (in kilobytes)
[ "Returns", "the", "maximum", "physical", "log", "size", "of", "a", "recovery", "log", "constructed", "from", "the", "target", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/FileLogProperties.java#L358-L365
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading.bells/src/com/ibm/ws/classloading/bells/internal/Bell.java
Bell.unregister
void unregister() { trackerLock.lock(); try { if (tracker != null) { // simply closing the tracker causes the services to be unregistered tracker.close(); tracker = null; } } finally { trackerLock.unlock(); ...
java
void unregister() { trackerLock.lock(); try { if (tracker != null) { // simply closing the tracker causes the services to be unregistered tracker.close(); tracker = null; } } finally { trackerLock.unlock(); ...
[ "void", "unregister", "(", ")", "{", "trackerLock", ".", "lock", "(", ")", ";", "try", "{", "if", "(", "tracker", "!=", "null", ")", "{", "// simply closing the tracker causes the services to be unregistered", "tracker", ".", "close", "(", ")", ";", "tracker", ...
Unregisters all OSGi services associated with this bell
[ "Unregisters", "all", "OSGi", "services", "associated", "with", "this", "bell" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading.bells/src/com/ibm/ws/classloading/bells/internal/Bell.java#L117-L128
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading.bells/src/com/ibm/ws/classloading/bells/internal/Bell.java
Bell.update
void update() { final BundleContext context = componentContext.getBundleContext(); // determine the service filter to use for discovering the Library service this bell is for String libraryRef = library.id(); // it is unclear if only looking at the id would work here. // other ex...
java
void update() { final BundleContext context = componentContext.getBundleContext(); // determine the service filter to use for discovering the Library service this bell is for String libraryRef = library.id(); // it is unclear if only looking at the id would work here. // other ex...
[ "void", "update", "(", ")", "{", "final", "BundleContext", "context", "=", "componentContext", ".", "getBundleContext", "(", ")", ";", "// determine the service filter to use for discovering the Library service this bell is for", "String", "libraryRef", "=", "library", ".", ...
Configures this bell with a specific library and a possible set of service names @param context the bundle context @param executor the executor service @param config the configuration settings
[ "Configures", "this", "bell", "with", "a", "specific", "library", "and", "a", "possible", "set", "of", "service", "names" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading.bells/src/com/ibm/ws/classloading/bells/internal/Bell.java#L137-L195
train
OpenLiberty/open-liberty
dev/com.ibm.websphere.org.eclipse.microprofile.openapi.1.0/src/org/eclipse/microprofile/openapi/OASFactory.java
OASFactory.createObject
public static <T extends Constructible> T createObject(Class<T> clazz) { return OASFactoryResolver.instance().createObject(clazz); }
java
public static <T extends Constructible> T createObject(Class<T> clazz) { return OASFactoryResolver.instance().createObject(clazz); }
[ "public", "static", "<", "T", "extends", "Constructible", ">", "T", "createObject", "(", "Class", "<", "T", ">", "clazz", ")", "{", "return", "OASFactoryResolver", ".", "instance", "(", ")", ".", "createObject", "(", "clazz", ")", ";", "}" ]
This method creates a new instance of a constructible element from the OpenAPI model tree. <br><br>Example: <pre><code>OASFactory.createObject(Info.class).title("Airlines").description("Airlines APIs").version("1.0.0"); </code></pre> @param <T> describes the type parameter @param clazz represents a model which extends...
[ "This", "method", "creates", "a", "new", "instance", "of", "a", "constructible", "element", "from", "the", "OpenAPI", "model", "tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.org.eclipse.microprofile.openapi.1.0/src/org/eclipse/microprofile/openapi/OASFactory.java#L48-L50
train
OpenLiberty/open-liberty
dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/validator/EmbeddedXMLConfigValidator.java
EmbeddedXMLConfigValidator.printErrorMessage
private void printErrorMessage(String key, Object... substitutions) { Tr.error(tc, key, substitutions); errorMsgIssued = true; }
java
private void printErrorMessage(String key, Object... substitutions) { Tr.error(tc, key, substitutions); errorMsgIssued = true; }
[ "private", "void", "printErrorMessage", "(", "String", "key", ",", "Object", "...", "substitutions", ")", "{", "Tr", ".", "error", "(", "tc", ",", "key", ",", "substitutions", ")", ";", "errorMsgIssued", "=", "true", ";", "}" ]
Prints the specified error message. @param key The resource bundle key for the message. @param substitutions The values to be substituted for the tokens in the message skeleton.
[ "Prints", "the", "specified", "error", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/validator/EmbeddedXMLConfigValidator.java#L371-L374
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/ELHelper.java
ELHelper.evaluateElExpression
@Trivial protected Object evaluateElExpression(String expression, boolean mask) { final String methodName = "evaluateElExpression"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, methodName, new Object[] { (expression == null) ? null : mask ? OBFUSCATED_S...
java
@Trivial protected Object evaluateElExpression(String expression, boolean mask) { final String methodName = "evaluateElExpression"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, methodName, new Object[] { (expression == null) ? null : mask ? OBFUSCATED_S...
[ "@", "Trivial", "protected", "Object", "evaluateElExpression", "(", "String", "expression", ",", "boolean", "mask", ")", "{", "final", "String", "methodName", "=", "\"evaluateElExpression\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ...
Evaluate a possible EL expression. @param expression The expression to evaluate. @param mask Set whether to mask the expression and result. Useful for when passwords might be contained in either the expression or the result. @return The evaluated expression.
[ "Evaluate", "a", "possible", "EL", "expression", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/ELHelper.java#L60-L74
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/ELHelper.java
ELHelper.isImmediateExpression
@Trivial static boolean isImmediateExpression(String expression, boolean mask) { final String methodName = "isImmediateExpression"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, methodName, new Object[] { (expression == null) ? null : mask ? OBFUSCATED_S...
java
@Trivial static boolean isImmediateExpression(String expression, boolean mask) { final String methodName = "isImmediateExpression"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, methodName, new Object[] { (expression == null) ? null : mask ? OBFUSCATED_S...
[ "@", "Trivial", "static", "boolean", "isImmediateExpression", "(", "String", "expression", ",", "boolean", "mask", ")", "{", "final", "String", "methodName", "=", "\"isImmediateExpression\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ...
Return whether the expression is an immediate EL expression. @param expression The expression to evaluate. @param mask Set whether to mask the expression and result. Useful for when passwords might be contained in either the expression or the result. @return True if the expression is an immediate EL expression.
[ "Return", "whether", "the", "expression", "is", "an", "immediate", "EL", "expression", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/ELHelper.java#L118-L131
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/ELHelper.java
ELHelper.removeBrackets
@Trivial static String removeBrackets(String expression, boolean mask) { final String methodName = "removeBrackets"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, methodName, new Object[] { (expression == null) ? null : mask ? OBFUSCATED_STRING : express...
java
@Trivial static String removeBrackets(String expression, boolean mask) { final String methodName = "removeBrackets"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, methodName, new Object[] { (expression == null) ? null : mask ? OBFUSCATED_STRING : express...
[ "@", "Trivial", "static", "String", "removeBrackets", "(", "String", "expression", ",", "boolean", "mask", ")", "{", "final", "String", "methodName", "=", "\"removeBrackets\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ...
Remove the brackets from an EL expression. @param expression The expression to remove the brackets from. @param mask Set whether to mask the expression and result. Useful for when passwords might be contained in either the expression or the result. @return The EL expression without the brackets.
[ "Remove", "the", "brackets", "from", "an", "EL", "expression", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/ELHelper.java#L459-L475
train
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/model/AbstractResourceInfo.java
AbstractResourceInfo.getProxySet
@SuppressWarnings("unchecked") private ThreadLocalProxyCopyOnWriteArraySet<ThreadLocalProxy<?>> getProxySet() { Object property = null; property = bus.getProperty(PROXY_SET); if (property == null) { ThreadLocalProxyCopyOnWriteArraySet<ThreadLocalProxy<?>> proxyMap = new ThreadLoc...
java
@SuppressWarnings("unchecked") private ThreadLocalProxyCopyOnWriteArraySet<ThreadLocalProxy<?>> getProxySet() { Object property = null; property = bus.getProperty(PROXY_SET); if (property == null) { ThreadLocalProxyCopyOnWriteArraySet<ThreadLocalProxy<?>> proxyMap = new ThreadLoc...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "ThreadLocalProxyCopyOnWriteArraySet", "<", "ThreadLocalProxy", "<", "?", ">", ">", "getProxySet", "(", ")", "{", "Object", "property", "=", "null", ";", "property", "=", "bus", ".", "getProperty", "...
Create a CopyOnWriteArraySet to store the ThreadLocalProxy objects for convenience of clearance
[ "Create", "a", "CopyOnWriteArraySet", "to", "store", "the", "ThreadLocalProxy", "objects", "for", "convenience", "of", "clearance" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/model/AbstractResourceInfo.java#L247-L258
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.instrument.serialfilter/src/com/ibm/ws/kernel/instrument/serialfilter/util/CallStackWalker.java
CallStackWalker.skipClasslessStackFrames
private void skipClasslessStackFrames() { // skip over any stack trace elements that are unmatched in the classes array if (classes.isEmpty()) return; while (elements.size() > 0 && !!!elements.peek().getClassName().equals(classes.peek().getName())) { elements.pop(); } }
java
private void skipClasslessStackFrames() { // skip over any stack trace elements that are unmatched in the classes array if (classes.isEmpty()) return; while (elements.size() > 0 && !!!elements.peek().getClassName().equals(classes.peek().getName())) { elements.pop(); } }
[ "private", "void", "skipClasslessStackFrames", "(", ")", "{", "// skip over any stack trace elements that are unmatched in the classes array", "if", "(", "classes", ".", "isEmpty", "(", ")", ")", "return", ";", "while", "(", "elements", ".", "size", "(", ")", ">", "...
Call after any advancement to bring this.elements into line with this.classes.
[ "Call", "after", "any", "advancement", "to", "bring", "this", ".", "elements", "into", "line", "with", "this", ".", "classes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.instrument.serialfilter/src/com/ibm/ws/kernel/instrument/serialfilter/util/CallStackWalker.java#L51-L57
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/websphere/logging/hpel/LogRecordContext.java
LogRecordContext.unregisterExtension
public static boolean unregisterExtension(String key) { if (key == null) { throw new IllegalArgumentException( "Parameter 'key' can not be null"); } w.lock(); try { return extensionMap.remove(key) != null; } finally { ...
java
public static boolean unregisterExtension(String key) { if (key == null) { throw new IllegalArgumentException( "Parameter 'key' can not be null"); } w.lock(); try { return extensionMap.remove(key) != null; } finally { ...
[ "public", "static", "boolean", "unregisterExtension", "(", "String", "key", ")", "{", "if", "(", "key", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Parameter 'key' can not be null\"", ")", ";", "}", "w", ".", "lock", "(", ")", ...
Removes context extension registration. @param key String key associated with the registered extension. @return <code>true</code> if key had extension associated with it. @throws IllegalArgumentException if parameter <code>key</code> is <code>null</code>.
[ "Removes", "context", "extension", "registration", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/logging/hpel/LogRecordContext.java#L267-L278
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/websphere/logging/hpel/LogRecordContext.java
LogRecordContext.getExtensions
public static void getExtensions(Map<String, String> map) throws IllegalArgumentException { if (map == null) { throw new IllegalArgumentException( "Parameter 'map' can not be null."); } if (recursion.get() == Boolean.TRUE) { ...
java
public static void getExtensions(Map<String, String> map) throws IllegalArgumentException { if (map == null) { throw new IllegalArgumentException( "Parameter 'map' can not be null."); } if (recursion.get() == Boolean.TRUE) { ...
[ "public", "static", "void", "getExtensions", "(", "Map", "<", "String", ",", "String", ">", "map", ")", "throws", "IllegalArgumentException", "{", "if", "(", "map", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Parameter 'map' can n...
Retrieves values for all registered context extensions. @param map {@link Map} instance to populate with key-value pairs of the context extensions. @throws IllegalArgumentException if parameter <code>map</code> is <code>null</code>
[ "Retrieves", "values", "for", "all", "registered", "context", "extensions", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/logging/hpel/LogRecordContext.java#L289-L342
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/AbstractJPAProviderIntegration.java
AbstractJPAProviderIntegration.logProviderInfo
@FFDCIgnore(Exception.class) private void logProviderInfo(String providerName, ClassLoader loader) { try { if (PROVIDER_ECLIPSELINK.equals(providerName)) { // org.eclipse.persistence.Version.getVersion(): 2.6.4.v20160829-44060b6 Class<?> Version = loadClass(loader...
java
@FFDCIgnore(Exception.class) private void logProviderInfo(String providerName, ClassLoader loader) { try { if (PROVIDER_ECLIPSELINK.equals(providerName)) { // org.eclipse.persistence.Version.getVersion(): 2.6.4.v20160829-44060b6 Class<?> Version = loadClass(loader...
[ "@", "FFDCIgnore", "(", "Exception", ".", "class", ")", "private", "void", "logProviderInfo", "(", "String", "providerName", ",", "ClassLoader", "loader", ")", "{", "try", "{", "if", "(", "PROVIDER_ECLIPSELINK", ".", "equals", "(", "providerName", ")", ")", ...
Log version information about the specified persistence provider, if it can be determined. @param providerName fully qualified class name of JPA persistence provider @param loader class loader with access to the JPA provider classes
[ "Log", "version", "information", "about", "the", "specified", "persistence", "provider", "if", "it", "can", "be", "determined", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/AbstractJPAProviderIntegration.java#L68-L95
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/ProvisionerImpl.java
ProvisionerImpl.checkStartStatus
protected void checkStartStatus(BundleStartStatus startStatus) throws InvalidBundleContextException { final String m = "checkInstallStatus"; if (startStatus.startExceptions()) { Map<Bundle, Throwable> startExceptions = startStatus.getStartExceptions(); for (Entry<Bundle, Throwabl...
java
protected void checkStartStatus(BundleStartStatus startStatus) throws InvalidBundleContextException { final String m = "checkInstallStatus"; if (startStatus.startExceptions()) { Map<Bundle, Throwable> startExceptions = startStatus.getStartExceptions(); for (Entry<Bundle, Throwabl...
[ "protected", "void", "checkStartStatus", "(", "BundleStartStatus", "startStatus", ")", "throws", "InvalidBundleContextException", "{", "final", "String", "m", "=", "\"checkInstallStatus\"", ";", "if", "(", "startStatus", ".", "startExceptions", "(", ")", ")", "{", "...
Check the passed in start status for exceptions starting bundles, and issue appropriate diagnostics & messages for this environment. @param startStatus @throws InvalidBundleContextException
[ "Check", "the", "passed", "in", "start", "status", "for", "exceptions", "starting", "bundles", "and", "issue", "appropriate", "diagnostics", "&", "messages", "for", "this", "environment", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/ProvisionerImpl.java#L139-L154
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/ProvisionerImpl.java
ProvisionerImpl.installBundles
protected BundleInstallStatus installBundles(BootstrapConfig config) throws InvalidBundleContextException { BundleInstallStatus installStatus = new BundleInstallStatus(); KernelResolver resolver = config.getKernelResolver(); ContentBasedLocalBundleRepository repo = BundleRepositoryRegistry.getI...
java
protected BundleInstallStatus installBundles(BootstrapConfig config) throws InvalidBundleContextException { BundleInstallStatus installStatus = new BundleInstallStatus(); KernelResolver resolver = config.getKernelResolver(); ContentBasedLocalBundleRepository repo = BundleRepositoryRegistry.getI...
[ "protected", "BundleInstallStatus", "installBundles", "(", "BootstrapConfig", "config", ")", "throws", "InvalidBundleContextException", "{", "BundleInstallStatus", "installStatus", "=", "new", "BundleInstallStatus", "(", ")", ";", "KernelResolver", "resolver", "=", "config"...
Install framework bundles. @param bundleList Properties describing the bundles to install @oaran config Bootstrap configuration containing information about initial configuration parameters and file locations @return BundleInstallStatus containing details about the bundles installed, exceptions that occurred, bundles ...
[ "Install", "framework", "bundles", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/ProvisionerImpl.java#L220-L241
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/dispatcher/SpillDispatcher.java
SpillDispatcher.isHealthy
public synchronized boolean isHealthy() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isHealthy"); boolean retval = _running && !_stopRequested && (_threadWriteErrorsOutstanding == 0); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled...
java
public synchronized boolean isHealthy() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isHealthy"); boolean retval = _running && !_stopRequested && (_threadWriteErrorsOutstanding == 0); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled...
[ "public", "synchronized", "boolean", "isHealthy", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"isHealthy\"", ")", ...
Used as a quick way to check the health of a dispatcher before giving it work in situations in which the work cannot be rejected. For example, for a transaction which requires both synchronous and asynchronous persistence, once we've done the synchronous persistence, a transient persistence problem from a dispatcher wi...
[ "Used", "as", "a", "quick", "way", "to", "check", "the", "health", "of", "a", "dispatcher", "before", "giving", "it", "work", "in", "situations", "in", "which", "the", "work", "cannot", "be", "rejected", ".", "For", "example", "for", "a", "transaction", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/dispatcher/SpillDispatcher.java#L177-L185
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.audit.file/src/com/ibm/ws/security/audit/file/AuditFileHandler.java
AuditFileHandler.getLogDir
private String getLogDir() { StringBuffer output = new StringBuffer(); WsLocationAdmin locationAdmin = locationAdminRef.getService(); output.append(locationAdmin.resolveString("${server.output.dir}").replace('\\', '/')).append("/logs"); return output.toString(); }
java
private String getLogDir() { StringBuffer output = new StringBuffer(); WsLocationAdmin locationAdmin = locationAdminRef.getService(); output.append(locationAdmin.resolveString("${server.output.dir}").replace('\\', '/')).append("/logs"); return output.toString(); }
[ "private", "String", "getLogDir", "(", ")", "{", "StringBuffer", "output", "=", "new", "StringBuffer", "(", ")", ";", "WsLocationAdmin", "locationAdmin", "=", "locationAdminRef", ".", "getService", "(", ")", ";", "output", ".", "append", "(", "locationAdmin", ...
Get the default directory for logs @return full path String of logs directory
[ "Get", "the", "default", "directory", "for", "logs" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.audit.file/src/com/ibm/ws/security/audit/file/AuditFileHandler.java#L380-L385
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.audit.file/src/com/ibm/ws/security/audit/file/AuditFileHandler.java
AuditFileHandler.mapToJSONString
private String mapToJSONString(Map<String, Object> eventMap) { JSONObject jsonEvent = new JSONObject(); String jsonString = null; map2JSON(jsonEvent, eventMap); try { if (!compact) { jsonString = jsonEvent.serialize(true).replaceAll("\\\\/", "/"); ...
java
private String mapToJSONString(Map<String, Object> eventMap) { JSONObject jsonEvent = new JSONObject(); String jsonString = null; map2JSON(jsonEvent, eventMap); try { if (!compact) { jsonString = jsonEvent.serialize(true).replaceAll("\\\\/", "/"); ...
[ "private", "String", "mapToJSONString", "(", "Map", "<", "String", ",", "Object", ">", "eventMap", ")", "{", "JSONObject", "jsonEvent", "=", "new", "JSONObject", "(", ")", ";", "String", "jsonString", "=", "null", ";", "map2JSON", "(", "jsonEvent", ",", "e...
Produce a JSON String for the given audit event @return
[ "Produce", "a", "JSON", "String", "for", "the", "given", "audit", "event" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.audit.file/src/com/ibm/ws/security/audit/file/AuditFileHandler.java#L392-L408
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.audit.file/src/com/ibm/ws/security/audit/file/AuditFileHandler.java
AuditFileHandler.array2JSON
private JSONArray array2JSON(JSONArray ja, Object[] array) { for (int i = 0; i < array.length; i++) { // array entry is a Map if (array[i] instanceof Map) { //if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { // Tr.debug(tc, "array entr...
java
private JSONArray array2JSON(JSONArray ja, Object[] array) { for (int i = 0; i < array.length; i++) { // array entry is a Map if (array[i] instanceof Map) { //if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { // Tr.debug(tc, "array entr...
[ "private", "JSONArray", "array2JSON", "(", "JSONArray", "ja", ",", "Object", "[", "]", "array", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "array", ".", "length", ";", "i", "++", ")", "{", "// array entry is a Map", "if", "(", "array"...
Given a Java array, add the corresponding JSON to the given JSONArray object @param ja - JSONArray object @param array - Java array object
[ "Given", "a", "Java", "array", "add", "the", "corresponding", "JSON", "to", "the", "given", "JSONArray", "object" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.audit.file/src/com/ibm/ws/security/audit/file/AuditFileHandler.java#L482-L507
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.fat.common/src/com/ibm/ws/security/fat/common/servers/ServerBootstrapUtils.java
ServerBootstrapUtils.writeBootstrapProperty
public void writeBootstrapProperty(LibertyServer server, String propKey, String propValue) throws Exception { String bootProps = getBootstrapPropertiesFilePath(server); appendBootstrapPropertyToFile(bootProps, propKey, propValue); }
java
public void writeBootstrapProperty(LibertyServer server, String propKey, String propValue) throws Exception { String bootProps = getBootstrapPropertiesFilePath(server); appendBootstrapPropertyToFile(bootProps, propKey, propValue); }
[ "public", "void", "writeBootstrapProperty", "(", "LibertyServer", "server", ",", "String", "propKey", ",", "String", "propValue", ")", "throws", "Exception", "{", "String", "bootProps", "=", "getBootstrapPropertiesFilePath", "(", "server", ")", ";", "appendBootstrapPr...
Writes the specified bootstrap property and value to the provided server's bootstrap.properties file.
[ "Writes", "the", "specified", "bootstrap", "property", "and", "value", "to", "the", "provided", "server", "s", "bootstrap", ".", "properties", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.fat.common/src/com/ibm/ws/security/fat/common/servers/ServerBootstrapUtils.java#L21-L24
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.fat.common/src/com/ibm/ws/security/fat/common/servers/ServerBootstrapUtils.java
ServerBootstrapUtils.writeBootstrapProperties
public void writeBootstrapProperties(LibertyServer server, Map<String, String> miscParms) throws Exception { String thisMethod = "writeBootstrapProperties"; loggingUtils.printMethodName(thisMethod); if (miscParms == null) { return; } String bootPropFilePath = getBoot...
java
public void writeBootstrapProperties(LibertyServer server, Map<String, String> miscParms) throws Exception { String thisMethod = "writeBootstrapProperties"; loggingUtils.printMethodName(thisMethod); if (miscParms == null) { return; } String bootPropFilePath = getBoot...
[ "public", "void", "writeBootstrapProperties", "(", "LibertyServer", "server", ",", "Map", "<", "String", ",", "String", ">", "miscParms", ")", "throws", "Exception", "{", "String", "thisMethod", "=", "\"writeBootstrapProperties\"", ";", "loggingUtils", ".", "printMe...
Writes each of the specified bootstrap properties and values to the provided server's bootstrap.properties file.
[ "Writes", "each", "of", "the", "specified", "bootstrap", "properties", "and", "values", "to", "the", "provided", "server", "s", "bootstrap", ".", "properties", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.fat.common/src/com/ibm/ws/security/fat/common/servers/ServerBootstrapUtils.java#L29-L40
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/WSATRecoveryCoordinator.java
WSATRecoveryCoordinator.fromLogData
public static WSATRecoveryCoordinator fromLogData(byte[] bytes) throws SystemException { if (tc.isEntryEnabled()) Tr.entry(tc, "fromLogData", bytes); WSATRecoveryCoordinator wsatRC = null; final ByteArrayInputStream bais = new ByteArrayInputStream(bytes); try { f...
java
public static WSATRecoveryCoordinator fromLogData(byte[] bytes) throws SystemException { if (tc.isEntryEnabled()) Tr.entry(tc, "fromLogData", bytes); WSATRecoveryCoordinator wsatRC = null; final ByteArrayInputStream bais = new ByteArrayInputStream(bytes); try { f...
[ "public", "static", "WSATRecoveryCoordinator", "fromLogData", "(", "byte", "[", "]", "bytes", ")", "throws", "SystemException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"fromLogData\"", ",", "bytes", ...
As called after recovery on distributed platform
[ "As", "called", "after", "recovery", "on", "distributed", "platform" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/WSATRecoveryCoordinator.java#L60-L82
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/jaxrs2/DefaultParameterExtension.java
DefaultParameterExtension.handleAdditionalAnnotation
private boolean handleAdditionalAnnotation(List<Parameter> parameters, Annotation annotation, final Type type, Set<Type> typesToSkip, javax.ws.rs.Consumes classConsumes, javax.ws.rs.Consumes methodConsumes, Components componen...
java
private boolean handleAdditionalAnnotation(List<Parameter> parameters, Annotation annotation, final Type type, Set<Type> typesToSkip, javax.ws.rs.Consumes classConsumes, javax.ws.rs.Consumes methodConsumes, Components componen...
[ "private", "boolean", "handleAdditionalAnnotation", "(", "List", "<", "Parameter", ">", "parameters", ",", "Annotation", "annotation", ",", "final", "Type", "type", ",", "Set", "<", "Type", ">", "typesToSkip", ",", "javax", ".", "ws", ".", "rs", ".", "Consum...
Adds additional annotation processing support @param parameters @param annotation @param type @param typesToSkip
[ "Adds", "additional", "annotation", "processing", "support" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/jaxrs2/DefaultParameterExtension.java#L153-L241
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/modelresolver/impl/AbstractPropertyResolver.java
AbstractPropertyResolver.replaceAllProperties
protected String replaceAllProperties(String str, final Properties submittedProps, final Properties xmlProperties) { int startIndex = 0; NextProperty nextProp = this.findNextProperty(str, startIndex); while (nextProp != null) { // get the start index past this property for the next property in //...
java
protected String replaceAllProperties(String str, final Properties submittedProps, final Properties xmlProperties) { int startIndex = 0; NextProperty nextProp = this.findNextProperty(str, startIndex); while (nextProp != null) { // get the start index past this property for the next property in //...
[ "protected", "String", "replaceAllProperties", "(", "String", "str", ",", "final", "Properties", "submittedProps", ",", "final", "Properties", "xmlProperties", ")", "{", "int", "startIndex", "=", "0", ";", "NextProperty", "nextProp", "=", "this", ".", "findNextPro...
Replace all the properties in String str. @param str @param submittedProps @param xmlProperties @return
[ "Replace", "all", "the", "properties", "in", "String", "str", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/modelresolver/impl/AbstractPropertyResolver.java#L108-L166
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/modelresolver/impl/AbstractPropertyResolver.java
AbstractPropertyResolver.resolvePropertyValue
private String resolvePropertyValue(final String name, PROPERTY_TYPE propType, final Properties submittedProperties, final Properties xmlProperties) { String value = null; switch(propType) { case JOB_PARAMETERS: if (submittedProperties != null) { value = submittedProperties.getProperty(name)...
java
private String resolvePropertyValue(final String name, PROPERTY_TYPE propType, final Properties submittedProperties, final Properties xmlProperties) { String value = null; switch(propType) { case JOB_PARAMETERS: if (submittedProperties != null) { value = submittedProperties.getProperty(name)...
[ "private", "String", "resolvePropertyValue", "(", "final", "String", "name", ",", "PROPERTY_TYPE", "propType", ",", "final", "Properties", "submittedProperties", ",", "final", "Properties", "xmlProperties", ")", "{", "String", "value", "=", "null", ";", "switch", ...
Gets the value of a property using the property type If the property 'propname' is not defined the String 'null' (without quotes) is returned as the value @param name @return
[ "Gets", "the", "value", "of", "a", "property", "using", "the", "property", "type" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/modelresolver/impl/AbstractPropertyResolver.java#L177-L221
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/modelresolver/impl/AbstractPropertyResolver.java
AbstractPropertyResolver.inheritProperties
private Properties inheritProperties(final Properties parentProps, final Properties childProps) { if (parentProps == null) { return childProps; } if (childProps == null) { return parentProps; } for (final String parentKey : parentProps.stringPropertyNames()) { // Add the parent property to the ...
java
private Properties inheritProperties(final Properties parentProps, final Properties childProps) { if (parentProps == null) { return childProps; } if (childProps == null) { return parentProps; } for (final String parentKey : parentProps.stringPropertyNames()) { // Add the parent property to the ...
[ "private", "Properties", "inheritProperties", "(", "final", "Properties", "parentProps", ",", "final", "Properties", "childProps", ")", "{", "if", "(", "parentProps", "==", "null", ")", "{", "return", "childProps", ";", "}", "if", "(", "childProps", "==", "nul...
Merge the parent properties that are already set into the child properties. Child properties always override parent values. @param parentProps A set of already resolved parent properties @param childProps A set of already resolved child properties @return
[ "Merge", "the", "parent", "properties", "that", "are", "already", "set", "into", "the", "child", "properties", ".", "Child", "properties", "always", "override", "parent", "values", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/modelresolver/impl/AbstractPropertyResolver.java#L233-L255
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/BufferedWriter.java
BufferedWriter.isCommitted
public boolean isCommitted() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { // 306998.15 Tr.debug(tc, "isCommitted: " + committed); } return committed; }
java
public boolean isCommitted() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { // 306998.15 Tr.debug(tc, "isCommitted: " + committed); } return committed; }
[ "public", "boolean", "isCommitted", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "// 306998.15", "Tr", ".", "debug", "(", "tc", ",", "\"isCommitted: \"", "+", "comm...
Returns whether the output has been committed or not.
[ "Returns", "whether", "the", "output", "has", "been", "committed", "or", "not", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/BufferedWriter.java#L265-L272
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/BufferedWriter.java
BufferedWriter.write
public void write(int c) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { // 306998.15 Tr.debug(tc, "write --> " + c); } if (!_hasWritten && obs != null) { _hasWritten = true; obs.alertFirstWrite(); ...
java
public void write(int c) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { // 306998.15 Tr.debug(tc, "write --> " + c); } if (!_hasWritten && obs != null) { _hasWritten = true; obs.alertFirstWrite(); ...
[ "public", "void", "write", "(", "int", "c", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "// 306998.15", "Tr", ".", "debug", "(", "tc", ",", ...
Writes a char. This method will block until the char is actually written. @param b the char @exception IOException if an I/O error has occurred
[ "Writes", "a", "char", ".", "This", "method", "will", "block", "until", "the", "char", "is", "actually", "written", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/BufferedWriter.java#L300-L328
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/BufferedWriter.java
BufferedWriter.flushChars
protected void flushChars() throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { // 306998.15 Tr.debug(tc, "flushChars"); } if (!committed) { if (!_hasFlushed && obs != null) { _hasFlushed...
java
protected void flushChars() throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { // 306998.15 Tr.debug(tc, "flushChars"); } if (!committed) { if (!_hasFlushed && obs != null) { _hasFlushed...
[ "protected", "void", "flushChars", "(", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "// 306998.15", "Tr", ".", "debug", "(", "tc", ",", "\"flus...
Flushes the writer chars.
[ "Flushes", "the", "writer", "chars", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/BufferedWriter.java#L495-L540
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterList.java
FilterList.addAddressToList
private void addAddressToList(String newAddress, boolean validateOnly) { int start = 0; char delimiter = '.'; String sub; int radix = 10; // Address initially set to all zeroes int addressToAdd[] = new int[IP_ADDR_NUMBERS]; for (int i = 0; i < IP_ADDR_NUMBERS; i+...
java
private void addAddressToList(String newAddress, boolean validateOnly) { int start = 0; char delimiter = '.'; String sub; int radix = 10; // Address initially set to all zeroes int addressToAdd[] = new int[IP_ADDR_NUMBERS]; for (int i = 0; i < IP_ADDR_NUMBERS; i+...
[ "private", "void", "addAddressToList", "(", "String", "newAddress", ",", "boolean", "validateOnly", ")", "{", "int", "start", "=", "0", ";", "char", "delimiter", "=", "'", "'", ";", "String", "sub", ";", "int", "radix", "=", "10", ";", "// Address initiall...
Add one IPv4 or IPv6 address to the tree. The address is passed in as a string and converted to an integer array by this routine. Another method is then called to put it into the tree @param newAddress address to add
[ "Add", "one", "IPv4", "or", "IPv6", "address", "to", "the", "tree", ".", "The", "address", "is", "passed", "in", "as", "a", "string", "and", "converted", "to", "an", "integer", "array", "by", "this", "routine", ".", "Another", "method", "is", "then", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterList.java#L79-L126
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterList.java
FilterList.findInList
public boolean findInList(byte[] address) { int len = address.length; int a[] = new int[len]; for (int i = 0; i < len; i++) { // convert possible negative byte value to positive int a[i] = address[i] & 0x00FF; } return findInList(a); }
java
public boolean findInList(byte[] address) { int len = address.length; int a[] = new int[len]; for (int i = 0; i < len; i++) { // convert possible negative byte value to positive int a[i] = address[i] & 0x00FF; } return findInList(a); }
[ "public", "boolean", "findInList", "(", "byte", "[", "]", "address", ")", "{", "int", "len", "=", "address", ".", "length", ";", "int", "a", "[", "]", "=", "new", "int", "[", "len", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "...
Determine if an address, represented by a byte array, is in the address tree @param address byte array representing the address, leftmost number in the address should start at array offset 0. @return true if this address is found in the address tree, false if it is not.
[ "Determine", "if", "an", "address", "represented", "by", "a", "byte", "array", "is", "in", "the", "address", "tree" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterList.java#L175-L185
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterList.java
FilterList.findInList6
public boolean findInList6(byte[] address) { int len = address.length; int a[] = new int[len / 2]; // IPv6, need to combine every two bytes to the ints int j = 0; int highOrder = 0; int lowOrder = 0; for (int i = 0; i < len; i += 2) { // convert possi...
java
public boolean findInList6(byte[] address) { int len = address.length; int a[] = new int[len / 2]; // IPv6, need to combine every two bytes to the ints int j = 0; int highOrder = 0; int lowOrder = 0; for (int i = 0; i < len; i += 2) { // convert possi...
[ "public", "boolean", "findInList6", "(", "byte", "[", "]", "address", ")", "{", "int", "len", "=", "address", ".", "length", ";", "int", "a", "[", "]", "=", "new", "int", "[", "len", "/", "2", "]", ";", "// IPv6, need to combine every two bytes to the ints...
Determine if an IPv6 address, represented by a byte array, is in the address tree @param address byte array representing the address, leftmost number in the address should start at array offset 0. Two bytes form 1 number of the address, bytes assumed to be in network order @return true if this address is found in the ...
[ "Determine", "if", "an", "IPv6", "address", "represented", "by", "a", "byte", "array", "is", "in", "the", "address", "tree" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterList.java#L199-L216
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterList.java
FilterList.findInList
public boolean findInList(int[] address) { int len = address.length; if (len < IP_ADDR_NUMBERS) { int j = IP_ADDR_NUMBERS - 1; // for performace, hard code the size here int a[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; // int a[] = new int[IP_ADDR_NUMBERS]; ...
java
public boolean findInList(int[] address) { int len = address.length; if (len < IP_ADDR_NUMBERS) { int j = IP_ADDR_NUMBERS - 1; // for performace, hard code the size here int a[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; // int a[] = new int[IP_ADDR_NUMBERS]; ...
[ "public", "boolean", "findInList", "(", "int", "[", "]", "address", ")", "{", "int", "len", "=", "address", ".", "length", ";", "if", "(", "len", "<", "IP_ADDR_NUMBERS", ")", "{", "int", "j", "=", "IP_ADDR_NUMBERS", "-", "1", ";", "// for performace, har...
Determine if an address, represented by an integer array, is in the address tree @param address integer array representing the address, leftmost number in the address should start at array offset 0. @return true if this address is found in the address tree, false if it is not.
[ "Determine", "if", "an", "address", "represented", "by", "an", "integer", "array", "is", "in", "the", "address", "tree" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterList.java#L228-L249
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterList.java
FilterList.findInList
private boolean findInList(int[] address, int index, FilterCell cell, int endIndex) { if (cell.getWildcardCell() != null) { // first look at wildcard slot if (index == endIndex) { // at the end, so we found a match, unwind returning true return true; ...
java
private boolean findInList(int[] address, int index, FilterCell cell, int endIndex) { if (cell.getWildcardCell() != null) { // first look at wildcard slot if (index == endIndex) { // at the end, so we found a match, unwind returning true return true; ...
[ "private", "boolean", "findInList", "(", "int", "[", "]", "address", ",", "int", "index", ",", "FilterCell", "cell", ",", "int", "endIndex", ")", "{", "if", "(", "cell", ".", "getWildcardCell", "(", ")", "!=", "null", ")", "{", "// first look at wildcard s...
Determine, recursively, if an address, represented by an integer array, is in the address tree @param address integer array representing the address, leftmost number in the address should start at array offset 0. IPv4 address should be padded LEFT with zeroes. @param index the next index in the address array of the nu...
[ "Determine", "recursively", "if", "an", "address", "represented", "by", "an", "integer", "array", "is", "in", "the", "address", "tree" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterList.java#L270-L311
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/CheckInstrumentableClassAdapter.java
CheckInstrumentableClassAdapter.isInstrumentableMethod
public boolean isInstrumentableMethod(int access, String methodName, String descriptor) { if ((access & Opcodes.ACC_SYNTHETIC) != 0) { return false; } if ((access & Opcodes.ACC_NATIVE) != 0) { return false; } if ((access & Opcodes.ACC_ABSTRACT) != 0) { ...
java
public boolean isInstrumentableMethod(int access, String methodName, String descriptor) { if ((access & Opcodes.ACC_SYNTHETIC) != 0) { return false; } if ((access & Opcodes.ACC_NATIVE) != 0) { return false; } if ((access & Opcodes.ACC_ABSTRACT) != 0) { ...
[ "public", "boolean", "isInstrumentableMethod", "(", "int", "access", ",", "String", "methodName", ",", "String", "descriptor", ")", "{", "if", "(", "(", "access", "&", "Opcodes", ".", "ACC_SYNTHETIC", ")", "!=", "0", ")", "{", "return", "false", ";", "}", ...
Indicate whether or not the target method is instrumentable. @param access the method property flags @param methodName the name of the method @return true if the method is not synthetic, is not native, and is not named toString or hashCode.
[ "Indicate", "whether", "or", "not", "the", "target", "method", "is", "instrumentable", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/CheckInstrumentableClassAdapter.java#L108-L125
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtBadMPConfigAsSystemProperties.java
MPJwtBadMPConfigAsSystemProperties.MPJwtBadMPConfigAsSystemProperties_GoodMpJwtConfigSpecifiedInServerXml
@Mode(TestMode.LITE) @Test public void MPJwtBadMPConfigAsSystemProperties_GoodMpJwtConfigSpecifiedInServerXml() throws Exception { resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_AltConfigNotInApp_goodServerXmlConfig.xml"); standardTestFlow(resourceServer, MpJwt...
java
@Mode(TestMode.LITE) @Test public void MPJwtBadMPConfigAsSystemProperties_GoodMpJwtConfigSpecifiedInServerXml() throws Exception { resourceServer.reconfigureServerUsingExpandedConfiguration(_testName, "rs_server_AltConfigNotInApp_goodServerXmlConfig.xml"); standardTestFlow(resourceServer, MpJwt...
[ "@", "Mode", "(", "TestMode", ".", "LITE", ")", "@", "Test", "public", "void", "MPJwtBadMPConfigAsSystemProperties_GoodMpJwtConfigSpecifiedInServerXml", "(", ")", "throws", "Exception", "{", "resourceServer", ".", "reconfigureServerUsingExpandedConfiguration", "(", "_testNa...
The server will be started with all mp-config properties incorrectly configured in the jvm.options file. The server.xml has a valid mp_jwt config specified. The config settings should come from server.xml. The test should run successfully . @throws Exception
[ "The", "server", "will", "be", "started", "with", "all", "mp", "-", "config", "properties", "incorrectly", "configured", "in", "the", "jvm", ".", "options", "file", ".", "The", "server", ".", "xml", "has", "a", "valid", "mp_jwt", "config", "specified", "."...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtBadMPConfigAsSystemProperties.java#L67-L75
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java
PartitionedStepControllerImpl.stop
@Override @FFDCIgnore(JobExecutionNotRunningException.class) public void stop() { StopLock stopLock = getStopLock(); // Store in local variable to facilitate Ctrl+Shift+G search in Eclipse synchronized (stopLock) { if (isStepStartingOrStarted()) { updateStepBatchSta...
java
@Override @FFDCIgnore(JobExecutionNotRunningException.class) public void stop() { StopLock stopLock = getStopLock(); // Store in local variable to facilitate Ctrl+Shift+G search in Eclipse synchronized (stopLock) { if (isStepStartingOrStarted()) { updateStepBatchSta...
[ "@", "Override", "@", "FFDCIgnore", "(", "JobExecutionNotRunningException", ".", "class", ")", "public", "void", "stop", "(", ")", "{", "StopLock", "stopLock", "=", "getStopLock", "(", ")", ";", "// Store in local variable to facilitate Ctrl+Shift+G search in Eclipse", ...
The body of this method is synchronized with startPartition to close timing windows so that a new partition doesn't get started after this method has gone thru and stopped all currently running partitions.
[ "The", "body", "of", "this", "method", "is", "synchronized", "with", "startPartition", "to", "close", "timing", "windows", "so", "that", "a", "new", "partition", "doesn", "t", "get", "started", "after", "this", "method", "has", "gone", "thru", "and", "stoppe...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java#L194-L227
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java
PartitionedStepControllerImpl.setExecutionTypeIfNotSet
private void setExecutionTypeIfNotSet(ExecutionType executionType) { if (this.executionType == null) { logger.finer("Setting initial execution type value"); this.executionType = executionType; } else { logger.finer("Not setting execution type value since it's already ...
java
private void setExecutionTypeIfNotSet(ExecutionType executionType) { if (this.executionType == null) { logger.finer("Setting initial execution type value"); this.executionType = executionType; } else { logger.finer("Not setting execution type value since it's already ...
[ "private", "void", "setExecutionTypeIfNotSet", "(", "ExecutionType", "executionType", ")", "{", "if", "(", "this", ".", "executionType", "==", "null", ")", "{", "logger", ".", "finer", "(", "\"Setting initial execution type value\"", ")", ";", "this", ".", "execut...
We could be more aggressive about validating illegal states and throwing exceptions here.
[ "We", "could", "be", "more", "aggressive", "about", "validating", "illegal", "states", "and", "throwing", "exceptions", "here", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java#L380-L387
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java
PartitionedStepControllerImpl.validatePlanNumberOfPartitions
private void validatePlanNumberOfPartitions(PartitionPlanDescriptor currentPlan) { int numPreviousPartitions = getTopLevelStepInstance().getPartitionPlanSize(); int numCurrentPartitions = currentPlan.getNumPartitionsInPlan(); if (logger.isLoggable(Level.FINE)) { logger.fine("For st...
java
private void validatePlanNumberOfPartitions(PartitionPlanDescriptor currentPlan) { int numPreviousPartitions = getTopLevelStepInstance().getPartitionPlanSize(); int numCurrentPartitions = currentPlan.getNumPartitionsInPlan(); if (logger.isLoggable(Level.FINE)) { logger.fine("For st...
[ "private", "void", "validatePlanNumberOfPartitions", "(", "PartitionPlanDescriptor", "currentPlan", ")", "{", "int", "numPreviousPartitions", "=", "getTopLevelStepInstance", "(", ")", ".", "getPartitionPlanSize", "(", ")", ";", "int", "numCurrentPartitions", "=", "current...
Verify the number of partitions in the plan makes sense. @throws IllegalArgumentException if it doesn't make sense.
[ "Verify", "the", "number", "of", "partitions", "in", "the", "plan", "makes", "sense", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java#L465-L486
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java
PartitionedStepControllerImpl.isStoppingStoppedOrFailed
private boolean isStoppingStoppedOrFailed() { BatchStatus jobBatchStatus = runtimeWorkUnitExecution.getBatchStatus(); if (jobBatchStatus.equals(BatchStatus.STOPPING) || jobBatchStatus.equals(BatchStatus.STOPPED) || jobBatchStatus.equals(BatchStatus.FAILED)) { return true; } ...
java
private boolean isStoppingStoppedOrFailed() { BatchStatus jobBatchStatus = runtimeWorkUnitExecution.getBatchStatus(); if (jobBatchStatus.equals(BatchStatus.STOPPING) || jobBatchStatus.equals(BatchStatus.STOPPED) || jobBatchStatus.equals(BatchStatus.FAILED)) { return true; } ...
[ "private", "boolean", "isStoppingStoppedOrFailed", "(", ")", "{", "BatchStatus", "jobBatchStatus", "=", "runtimeWorkUnitExecution", ".", "getBatchStatus", "(", ")", ";", "if", "(", "jobBatchStatus", ".", "equals", "(", "BatchStatus", ".", "STOPPING", ")", "||", "j...
Today we know the PartitionedStepControllerImpl always runs in the JVM of the top-level job, and so will be notified on the top-level stop. Doing xJVM split-flow would be more complicated, since not only do we lose the single JVM for the top-level job, the split and the child flows........we also can't count on the to...
[ "Today", "we", "know", "the", "PartitionedStepControllerImpl", "always", "runs", "in", "the", "JVM", "of", "the", "top", "-", "level", "job", "and", "so", "will", "be", "notified", "on", "the", "top", "-", "level", "stop", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java#L567-L574
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java
PartitionedStepControllerImpl.partitionFinished
private void partitionFinished(PartitionReplyMsg msg) { JoblogUtil.logToJobLogAndTraceOnly(Level.FINE, "partition.ended", new Object[] { msg.getPartitionPlanConfig().getPartitionNumber(), ...
java
private void partitionFinished(PartitionReplyMsg msg) { JoblogUtil.logToJobLogAndTraceOnly(Level.FINE, "partition.ended", new Object[] { msg.getPartitionPlanConfig().getPartitionNumber(), ...
[ "private", "void", "partitionFinished", "(", "PartitionReplyMsg", "msg", ")", "{", "JoblogUtil", ".", "logToJobLogAndTraceOnly", "(", "Level", ".", "FINE", ",", "\"partition.ended\"", ",", "new", "Object", "[", "]", "{", "msg", ".", "getPartitionPlanConfig", "(", ...
Issue message for partition finished and add it to the finishedWork list.
[ "Issue", "message", "for", "partition", "finished", "and", "add", "it", "to", "the", "finishedWork", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java#L666-L678
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java
PartitionedStepControllerImpl.waitForNextPartitionToFinish
private void waitForNextPartitionToFinish(List<Throwable> analyzerExceptions, List<Integer> finishedPartitions) throws JobStoppingException { //Use this counter to count the number of cycles we recieve jms reply message boolean isStoppingStoppedOrFailed = false; PartitionReplyMsg msg = null; ...
java
private void waitForNextPartitionToFinish(List<Throwable> analyzerExceptions, List<Integer> finishedPartitions) throws JobStoppingException { //Use this counter to count the number of cycles we recieve jms reply message boolean isStoppingStoppedOrFailed = false; PartitionReplyMsg msg = null; ...
[ "private", "void", "waitForNextPartitionToFinish", "(", "List", "<", "Throwable", ">", "analyzerExceptions", ",", "List", "<", "Integer", ">", "finishedPartitions", ")", "throws", "JobStoppingException", "{", "//Use this counter to count the number of cycles we recieve jms repl...
Wait and process the data sent back by the partitions. This method returns as soon as the next partition sends back an "i'm finished" message. @param analyzerExceptions collects any exceptions thrown by the user-supplied Analyzer @param finishedPartitions @return the partition number of the finished partition
[ "Wait", "and", "process", "the", "data", "sent", "back", "by", "the", "partitions", ".", "This", "method", "returns", "as", "soon", "as", "the", "next", "partition", "sends", "back", "an", "i", "m", "finished", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java#L754-L821
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java
PartitionedStepControllerImpl.executeAndWaitForCompletion
@FFDCIgnore(JobStoppingException.class) private void executeAndWaitForCompletion(PartitionPlanDescriptor currentPlan) throws JobRestartException { if (isStoppingStoppedOrFailed()) { logger.fine("Job already in " + runtimeWorkUnitExecution.getWorkUnitJobContext().getBatchS...
java
@FFDCIgnore(JobStoppingException.class) private void executeAndWaitForCompletion(PartitionPlanDescriptor currentPlan) throws JobRestartException { if (isStoppingStoppedOrFailed()) { logger.fine("Job already in " + runtimeWorkUnitExecution.getWorkUnitJobContext().getBatchS...
[ "@", "FFDCIgnore", "(", "JobStoppingException", ".", "class", ")", "private", "void", "executeAndWaitForCompletion", "(", "PartitionPlanDescriptor", "currentPlan", ")", "throws", "JobRestartException", "{", "if", "(", "isStoppingStoppedOrFailed", "(", ")", ")", "{", "...
Spawn the partitions and wait for them to complete.
[ "Spawn", "the", "partitions", "and", "wait", "for", "them", "to", "complete", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java#L858-L900
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java
PartitionedStepControllerImpl.checkFinishedPartitions
private void checkFinishedPartitions() { List<String> failingPartitionSeen = new ArrayList<String>(); boolean stoppedPartitionSeen = false; for (PartitionReplyMsg replyMsg : finishedWork) { BatchStatus batchStatus = replyMsg.getBatchStatus(); if (logger.isLoggable(Leve...
java
private void checkFinishedPartitions() { List<String> failingPartitionSeen = new ArrayList<String>(); boolean stoppedPartitionSeen = false; for (PartitionReplyMsg replyMsg : finishedWork) { BatchStatus batchStatus = replyMsg.getBatchStatus(); if (logger.isLoggable(Leve...
[ "private", "void", "checkFinishedPartitions", "(", ")", "{", "List", "<", "String", ">", "failingPartitionSeen", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "boolean", "stoppedPartitionSeen", "=", "false", ";", "for", "(", "PartitionReplyMsg", ...
check the batch status of each subJob after it's done to see if we need to issue a rollback start rollback if any have stopped or failed
[ "check", "the", "batch", "status", "of", "each", "subJob", "after", "it", "s", "done", "to", "see", "if", "we", "need", "to", "issue", "a", "rollback", "start", "rollback", "if", "any", "have", "stopped", "or", "failed" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java#L906-L956
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java
PartitionedStepControllerImpl.invokePreStepArtifacts
@Override protected void invokePreStepArtifacts() { if (stepListeners != null) { for (StepListenerProxy listenerProxy : stepListeners) { // Call beforeStep on all the step listeners listenerProxy.beforeStep(); } } // Invoke the reduce...
java
@Override protected void invokePreStepArtifacts() { if (stepListeners != null) { for (StepListenerProxy listenerProxy : stepListeners) { // Call beforeStep on all the step listeners listenerProxy.beforeStep(); } } // Invoke the reduce...
[ "@", "Override", "protected", "void", "invokePreStepArtifacts", "(", ")", "{", "if", "(", "stepListeners", "!=", "null", ")", "{", "for", "(", "StepListenerProxy", "listenerProxy", ":", "stepListeners", ")", "{", "// Call beforeStep on all the step listeners", "listen...
Invoke the StepListeners and PartitionReducer.
[ "Invoke", "the", "StepListeners", "and", "PartitionReducer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/PartitionedStepControllerImpl.java#L1018-L1033
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ResourceUtils.java
ResourceUtils.getClassNameandPath
private static String getClassNameandPath (String className, Path path) { if (path == null) { return getClassNameandPath(className, "/"); } else { return getClassNameandPath(className, path.value()); } }
java
private static String getClassNameandPath (String className, Path path) { if (path == null) { return getClassNameandPath(className, "/"); } else { return getClassNameandPath(className, path.value()); } }
[ "private", "static", "String", "getClassNameandPath", "(", "String", "className", ",", "Path", "path", ")", "{", "if", "(", "path", "==", "null", ")", "{", "return", "getClassNameandPath", "(", "className", ",", "\"/\"", ")", ";", "}", "else", "{", "return...
start Liberty change
[ "start", "Liberty", "change" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ResourceUtils.java#L549-L555
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ResourceUtils.java
ResourceUtils.checkMethodDispatcher
private static boolean checkMethodDispatcher(ClassResourceInfo cr) { if (cr.getMethodDispatcher().getOperationResourceInfos().isEmpty()) { LOG.warning(new org.apache.cxf.common.i18n.Message("NO_RESOURCE_OP_EXC", BUNDLE, ...
java
private static boolean checkMethodDispatcher(ClassResourceInfo cr) { if (cr.getMethodDispatcher().getOperationResourceInfos().isEmpty()) { LOG.warning(new org.apache.cxf.common.i18n.Message("NO_RESOURCE_OP_EXC", BUNDLE, ...
[ "private", "static", "boolean", "checkMethodDispatcher", "(", "ClassResourceInfo", "cr", ")", "{", "if", "(", "cr", ".", "getMethodDispatcher", "(", ")", ".", "getOperationResourceInfos", "(", ")", ".", "isEmpty", "(", ")", ")", "{", "LOG", ".", "warning", "...
end Liberty change
[ "end", "Liberty", "change" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/utils/ResourceUtils.java#L575-L583
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/PoolManagerImpl.java
PoolManagerImpl.run
public void run() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.entry(tc, "run"); int numPools; synchronized (this) { if (ivIsCanceled) { return; } ...
java
public void run() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.entry(tc, "run"); int numPools; synchronized (this) { if (ivIsCanceled) { return; } ...
[ "public", "void", "run", "(", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"...
Handle the scavenger alarm. Scan the list of pools and drain all inactive ones.
[ "Handle", "the", "scavenger", "alarm", ".", "Scan", "the", "list", "of", "pools", "and", "drain", "all", "inactive", "ones", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/PoolManagerImpl.java#L61-L129
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcPreparedStatement.java
WSJdbcPreparedStatement.addBatch
private Object addBatch(Object implObject, Method method, Object[] args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, SQLException { Object sqljPstmt = args[0]; final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); ...
java
private Object addBatch(Object implObject, Method method, Object[] args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, SQLException { Object sqljPstmt = args[0]; final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); ...
[ "private", "Object", "addBatch", "(", "Object", "implObject", ",", "Method", "method", ",", "Object", "[", "]", "args", ")", "throws", "IllegalAccessException", ",", "IllegalArgumentException", ",", "InvocationTargetException", ",", "SQLException", "{", "Object", "s...
Invokes addBatch after replacing the parameter with the DB2 impl object if proxied. @param implObject the instance on which the operation is invoked. @param method the method that is invoked. @param args the parameters to the method. @throws IllegalAccessException if the method is inaccessible. @throws IllegalArgumen...
[ "Invokes", "addBatch", "after", "replacing", "the", "parameter", "with", "the", "DB2", "impl", "object", "if", "proxied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcPreparedStatement.java#L201-L219
train