id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
111,000
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/LogQueryBean.java
LogQueryBean.setTime
public void setTime(Date minTime, Date maxTime) throws IllegalArgumentException { if (minTime != null && maxTime != null && minTime.after(maxTime)) { throw new IllegalArgumentException("Value of the minTime parameter should specify time before the time specified by the value of the maxTime parameter...
java
public void setTime(Date minTime, Date maxTime) throws IllegalArgumentException { if (minTime != null && maxTime != null && minTime.after(maxTime)) { throw new IllegalArgumentException("Value of the minTime parameter should specify time before the time specified by the value of the maxTime parameter...
[ "public", "void", "setTime", "(", "Date", "minTime", ",", "Date", "maxTime", ")", "throws", "IllegalArgumentException", "{", "if", "(", "minTime", "!=", "null", "&&", "maxTime", "!=", "null", "&&", "minTime", ".", "after", "(", "maxTime", ")", ")", "{", ...
sets the current value for the minimum and maximum time @param minTime minimum time @param maxTime maximum time @throws IllegalArgumentException if minTime is later than maxTime
[ "sets", "the", "current", "value", "for", "the", "minimum", "and", "maximum", "time" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/LogQueryBean.java#L70-L76
111,001
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/LogQueryBean.java
LogQueryBean.setLevels
public void setLevels(Level minLevel, Level maxLevel) throws IllegalArgumentException { if (minLevel != null && maxLevel != null && minLevel.intValue() > maxLevel.intValue()) { throw new IllegalArgumentException("Value of the minLevel parameter should specify level not larger than the value of the m...
java
public void setLevels(Level minLevel, Level maxLevel) throws IllegalArgumentException { if (minLevel != null && maxLevel != null && minLevel.intValue() > maxLevel.intValue()) { throw new IllegalArgumentException("Value of the minLevel parameter should specify level not larger than the value of the m...
[ "public", "void", "setLevels", "(", "Level", "minLevel", ",", "Level", "maxLevel", ")", "throws", "IllegalArgumentException", "{", "if", "(", "minLevel", "!=", "null", "&&", "maxLevel", "!=", "null", "&&", "minLevel", ".", "intValue", "(", ")", ">", "maxLeve...
sets the current value for the minimum and maximum levels @param minLevel minimum level @throws IllegalArgumentException if minLevel is bigger than maxLevel
[ "sets", "the", "current", "value", "for", "the", "minimum", "and", "maximum", "levels" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/LogQueryBean.java#L102-L108
111,002
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/LogQueryBean.java
LogQueryBean.compile
public static Pattern compile(String pattern) throws IllegalArgumentException { if (pattern == null) { throw new IllegalArgumentException("Pattern can not be null"); } if (pattern.startsWith("/") && pattern.endsWith("/") && pattern.length() > 1) { // This is a regular ex...
java
public static Pattern compile(String pattern) throws IllegalArgumentException { if (pattern == null) { throw new IllegalArgumentException("Pattern can not be null"); } if (pattern.startsWith("/") && pattern.endsWith("/") && pattern.length() > 1) { // This is a regular ex...
[ "public", "static", "Pattern", "compile", "(", "String", "pattern", ")", "throws", "IllegalArgumentException", "{", "if", "(", "pattern", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Pattern can not be null\"", ")", ";", "}", "if", ...
compiles pattern string into regular expression Pattern object. @param pattern string containing WebSphere console specific pattern @return compiled version of the string @throws IllegalArgumentException if pattern is null or contains an illegal pattern.
[ "compiles", "pattern", "string", "into", "regular", "expression", "Pattern", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/LogQueryBean.java#L215-L249
111,003
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/LogQueryBean.java
LogQueryBean.setThreadIDs
public void setThreadIDs(String[] threadIDs) throws IllegalArgumentException { int[] threads = null; if (threadIDs != null) { threads = new int[threadIDs.length]; try { for (int i = 0; i < threads.length; i++) { threads[i] = Integer.parseInt(th...
java
public void setThreadIDs(String[] threadIDs) throws IllegalArgumentException { int[] threads = null; if (threadIDs != null) { threads = new int[threadIDs.length]; try { for (int i = 0; i < threads.length; i++) { threads[i] = Integer.parseInt(th...
[ "public", "void", "setThreadIDs", "(", "String", "[", "]", "threadIDs", ")", "throws", "IllegalArgumentException", "{", "int", "[", "]", "threads", "=", "null", ";", "if", "(", "threadIDs", "!=", "null", ")", "{", "threads", "=", "new", "int", "[", "thre...
sets string array, each string representing the hex value of a thread to search on @param threadIDs array of thread ids (hex) (null if not filtering on threadId) @throws IllegalArgumentException if strings contain something other than hexadecimal values.
[ "sets", "string", "array", "each", "string", "representing", "the", "hex", "value", "of", "a", "thread", "to", "search", "on" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/LogQueryBean.java#L275-L288
111,004
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.monitor/src/com/ibm/ws/webcontainer/monitor/ServletPmiModule.java
ServletPmiModule.decRequests
final public void decRequests(long execTime, String url) { long lst = 0; if(responseTime != null && execTime >= 0) { lst = System.currentTimeMillis(); responseTime.add(lst, execTime); } if(currentReques...
java
final public void decRequests(long execTime, String url) { long lst = 0; if(responseTime != null && execTime >= 0) { lst = System.currentTimeMillis(); responseTime.add(lst, execTime); } if(currentReques...
[ "final", "public", "void", "decRequests", "(", "long", "execTime", ",", "String", "url", ")", "{", "long", "lst", "=", "0", ";", "if", "(", "responseTime", "!=", "null", "&&", "execTime", ">=", "0", ")", "{", "lst", "=", "System", ".", "currentTimeMill...
use tmp var to avoid possible problem due to multithreads
[ "use", "tmp", "var", "to", "avoid", "possible", "problem", "due", "to", "multithreads" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.monitor/src/com/ibm/ws/webcontainer/monitor/ServletPmiModule.java#L115-L147
111,005
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.resourcedefinition.jms.2.0/src/com/ibm/ws/jca/processor/jms/util/JMSResourceDefinitionHelper.java
JMSResourceDefinitionHelper.getBundle
public static Bundle getBundle(BundleContext bundleContext, String resourceAdapter) throws ConfigEvaluatorException { Bundle bundle = null; if (JMSResourceDefinitionConstants.RESOURCE_ADAPTER_WASJMS.equals(resourceAdapter) || JMSResourceDefinitionConstants.RESOURCE_ADAPTER_WMQJMS.equals(re...
java
public static Bundle getBundle(BundleContext bundleContext, String resourceAdapter) throws ConfigEvaluatorException { Bundle bundle = null; if (JMSResourceDefinitionConstants.RESOURCE_ADAPTER_WASJMS.equals(resourceAdapter) || JMSResourceDefinitionConstants.RESOURCE_ADAPTER_WMQJMS.equals(re...
[ "public", "static", "Bundle", "getBundle", "(", "BundleContext", "bundleContext", ",", "String", "resourceAdapter", ")", "throws", "ConfigEvaluatorException", "{", "Bundle", "bundle", "=", "null", ";", "if", "(", "JMSResourceDefinitionConstants", ".", "RESOURCE_ADAPTER_...
Get the bundle where the resource adapter's Metatype Information exists. @param resourceAdapter @return @throws ConfigEvaluatorException
[ "Get", "the", "bundle", "where", "the", "resource", "adapter", "s", "Metatype", "Information", "exists", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.resourcedefinition.jms.2.0/src/com/ibm/ws/jca/processor/jms/util/JMSResourceDefinitionHelper.java#L34-L53
111,006
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/ConnectionListenerImpl.java
ConnectionListenerImpl.commsFailure
public void commsFailure(SICoreConnection conn, SIConnectionLostException exception) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "commsFailure", new Object[]{conn, exception}); JMSException jmse = (JMSException)JmsErrorUtils.newThrowable(JMSException.class, ...
java
public void commsFailure(SICoreConnection conn, SIConnectionLostException exception) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "commsFailure", new Object[]{conn, exception}); JMSException jmse = (JMSException)JmsErrorUtils.newThrowable(JMSException.class, ...
[ "public", "void", "commsFailure", "(", "SICoreConnection", "conn", ",", "SIConnectionLostException", "exception", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry"...
This method is called when a connection is closed due to a communications failure. Examine the SICommsException to determine the nature of the failure. <p>The conn parameter is ignored. The JMS API uses a 1 to 1 mapping of ConnectionListenerImpl to JMS Connection instances, so we should only ever receive calls for our...
[ "This", "method", "is", "called", "when", "a", "connection", "is", "closed", "due", "to", "a", "communications", "failure", ".", "Examine", "the", "SICommsException", "to", "determine", "the", "nature", "of", "the", "failure", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/ConnectionListenerImpl.java#L99-L111
111,007
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/ConnectionListenerImpl.java
ConnectionListenerImpl.meTerminated
public void meTerminated(SICoreConnection conn) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "meTerminated", conn); JMSException jmse = (JMSException)JmsErrorUtils.newThrowable(JMSException.class, "ME_T...
java
public void meTerminated(SICoreConnection conn) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "meTerminated", conn); JMSException jmse = (JMSException)JmsErrorUtils.newThrowable(JMSException.class, "ME_T...
[ "public", "void", "meTerminated", "(", "SICoreConnection", "conn", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"meTermi...
This method is called when a connection is closed because the Messaging Engine has terminated. <p>The conn parameter is ignored. The JMS API uses a 1 to 1 mapping of ConnectionListenerImpl to JMS Connection instances, so we should only ever receive calls for our own connection. @see com.ibm.wsspi.sib.core.SICoreConne...
[ "This", "method", "is", "called", "when", "a", "connection", "is", "closed", "because", "the", "Messaging", "Engine", "has", "terminated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/ConnectionListenerImpl.java#L122-L131
111,008
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.shutDownSSLEngine
public static void shutDownSSLEngine(SSLConnectionLink connLink, boolean isServer, boolean isConnected) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "shutDownSSLEngine: isServer: " + isServer + " isConnected: " + isConnected + " " + connL...
java
public static void shutDownSSLEngine(SSLConnectionLink connLink, boolean isServer, boolean isConnected) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "shutDownSSLEngine: isServer: " + isServer + " isConnected: " + isConnected + " " + connL...
[ "public", "static", "void", "shutDownSSLEngine", "(", "SSLConnectionLink", "connLink", ",", "boolean", "isServer", ",", "boolean", "isConnected", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ...
Shut down the engine for the given SSL connection link. @param connLink @param isServer @param isConnected
[ "Shut", "down", "the", "engine", "for", "the", "given", "SSL", "connection", "link", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L67-L115
111,009
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.getWrappedByteBuffers
public static ByteBuffer[] getWrappedByteBuffers(WsByteBuffer wsbuffers[]) { // Create the buffer array to return. ByteBuffer buffers[] = new ByteBuffer[wsbuffers.length]; boolean foundNullBuffer = false; int i = 0; // Loop through each buffer of the input array. for (i =...
java
public static ByteBuffer[] getWrappedByteBuffers(WsByteBuffer wsbuffers[]) { // Create the buffer array to return. ByteBuffer buffers[] = new ByteBuffer[wsbuffers.length]; boolean foundNullBuffer = false; int i = 0; // Loop through each buffer of the input array. for (i =...
[ "public", "static", "ByteBuffer", "[", "]", "getWrappedByteBuffers", "(", "WsByteBuffer", "wsbuffers", "[", "]", ")", "{", "// Create the buffer array to return.", "ByteBuffer", "buffers", "[", "]", "=", "new", "ByteBuffer", "[", "wsbuffers", ".", "length", "]", "...
Return the underlying ByteBuffer array associated with the input WsByteBuffer array. @param wsbuffers @return ByteBuffer[]
[ "Return", "the", "underlying", "ByteBuffer", "array", "associated", "with", "the", "input", "WsByteBuffer", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L244-L272
111,010
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.flipBuffers
public static void flipBuffers(WsByteBuffer[] buffers, int totalSize) { int size = 0; boolean overLimit = false; for (int i = 0; i < buffers.length && null != buffers[i]; i++) { if (overLimit) { buffers[i].limit(buffers[i].position()); } else { ...
java
public static void flipBuffers(WsByteBuffer[] buffers, int totalSize) { int size = 0; boolean overLimit = false; for (int i = 0; i < buffers.length && null != buffers[i]; i++) { if (overLimit) { buffers[i].limit(buffers[i].position()); } else { ...
[ "public", "static", "void", "flipBuffers", "(", "WsByteBuffer", "[", "]", "buffers", ",", "int", "totalSize", ")", "{", "int", "size", "=", "0", ";", "boolean", "overLimit", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "buffers...
Flip the input list of buffers, walking through the list until the flipped amount equals the input total size, mark the rest of the buffers as empty. @param buffers @param totalSize
[ "Flip", "the", "input", "list", "of", "buffers", "walking", "through", "the", "list", "until", "the", "flipped", "amount", "equals", "the", "input", "total", "size", "mark", "the", "rest", "of", "the", "buffers", "as", "empty", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L355-L367
111,011
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.copyBuffer
public static void copyBuffer(WsByteBuffer src, WsByteBuffer dst) { copyBuffer(src, dst, src.remaining()); }
java
public static void copyBuffer(WsByteBuffer src, WsByteBuffer dst) { copyBuffer(src, dst, src.remaining()); }
[ "public", "static", "void", "copyBuffer", "(", "WsByteBuffer", "src", ",", "WsByteBuffer", "dst", ")", "{", "copyBuffer", "(", "src", ",", "dst", ",", "src", ".", "remaining", "(", ")", ")", ";", "}" ]
Simlified method call for copyBuffer which sets length to copy at src.remaining. @param src @param dst
[ "Simlified", "method", "call", "for", "copyBuffer", "which", "sets", "length", "to", "copy", "at", "src", ".", "remaining", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L375-L377
111,012
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.copyBuffer
public static void copyBuffer(WsByteBuffer src, WsByteBuffer dst, int length) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "copyBuffer: length=" + length + "\r\n\tsrc: " + getBufferTraceInfo(src) + "\r\n\tdst: " +...
java
public static void copyBuffer(WsByteBuffer src, WsByteBuffer dst, int length) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "copyBuffer: length=" + length + "\r\n\tsrc: " + getBufferTraceInfo(src) + "\r\n\tdst: " +...
[ "public", "static", "void", "copyBuffer", "(", "WsByteBuffer", "src", ",", "WsByteBuffer", "dst", ",", "int", "length", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr"...
Copy all the contents of the source buffer into the destination buffer. The contents copied from the source buffer will be from its position. The data will be copied into the destination buffer starting at its current position. @param src @param dst @param length
[ "Copy", "all", "the", "contents", "of", "the", "source", "buffer", "into", "the", "destination", "buffer", ".", "The", "contents", "copied", "from", "the", "source", "buffer", "will", "be", "from", "its", "position", ".", "The", "data", "will", "be", "copi...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L388-L419
111,013
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.allocateByteBuffer
public static WsByteBuffer allocateByteBuffer(int size, boolean allocateDirect) { WsByteBuffer newBuffer = null; // Allocate based on the input parameter. if (allocateDirect) { newBuffer = ChannelFrameworkFactory.getBufferManager().allocateDirect(size); } else { n...
java
public static WsByteBuffer allocateByteBuffer(int size, boolean allocateDirect) { WsByteBuffer newBuffer = null; // Allocate based on the input parameter. if (allocateDirect) { newBuffer = ChannelFrameworkFactory.getBufferManager().allocateDirect(size); } else { n...
[ "public", "static", "WsByteBuffer", "allocateByteBuffer", "(", "int", "size", ",", "boolean", "allocateDirect", ")", "{", "WsByteBuffer", "newBuffer", "=", "null", ";", "// Allocate based on the input parameter.", "if", "(", "allocateDirect", ")", "{", "newBuffer", "=...
Allocate a ByteBuffer per the SSL config at least as big as the input size. @param size Minimum size of the resulting buffer. @param allocateDirect flag to indicate if allocation should be done with direct byte buffers. @return Newly allocated ByteBuffer
[ "Allocate", "a", "ByteBuffer", "per", "the", "SSL", "config", "at", "least", "as", "big", "as", "the", "input", "size", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L428-L439
111,014
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.getBufferTraceInfo
public static String getBufferTraceInfo(WsByteBuffer buffers[]) { if (null == buffers) { return "Null buffer array"; } StringBuilder sb = new StringBuilder(32 + (64 * buffers.length)); for (int i = 0; i < buffers.length; i++) { sb.append("\r\n\t Buffer ["); ...
java
public static String getBufferTraceInfo(WsByteBuffer buffers[]) { if (null == buffers) { return "Null buffer array"; } StringBuilder sb = new StringBuilder(32 + (64 * buffers.length)); for (int i = 0; i < buffers.length; i++) { sb.append("\r\n\t Buffer ["); ...
[ "public", "static", "String", "getBufferTraceInfo", "(", "WsByteBuffer", "buffers", "[", "]", ")", "{", "if", "(", "null", "==", "buffers", ")", "{", "return", "\"Null buffer array\"", ";", "}", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", "32", ...
This method is called for tracing in various places. It returns a string that represents all the buffers in the array including hashcode, position, limit, and capacity. @param buffers array of buffers to get debug info on @return string representing the buffer array
[ "This", "method", "is", "called", "for", "tracing", "in", "various", "places", ".", "It", "returns", "a", "string", "that", "represents", "all", "the", "buffers", "in", "the", "array", "including", "hashcode", "position", "limit", "and", "capacity", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L448-L460
111,015
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.showBufferContents
public static String showBufferContents(WsByteBuffer buffers[]) { if (null == buffers || 0 == buffers.length) { return "null"; } StringBuilder sb = new StringBuilder(); for (int i = 0; i < buffers.length; i++) { sb.append("Buffer ["); sb.append(i); ...
java
public static String showBufferContents(WsByteBuffer buffers[]) { if (null == buffers || 0 == buffers.length) { return "null"; } StringBuilder sb = new StringBuilder(); for (int i = 0; i < buffers.length; i++) { sb.append("Buffer ["); sb.append(i); ...
[ "public", "static", "String", "showBufferContents", "(", "WsByteBuffer", "buffers", "[", "]", ")", "{", "if", "(", "null", "==", "buffers", "||", "0", "==", "buffers", ".", "length", ")", "{", "return", "\"null\"", ";", "}", "StringBuilder", "sb", "=", "...
Return a String containing all the data in the buffers provided between their respective positions and limits. @param buffers @return String
[ "Return", "a", "String", "containing", "all", "the", "data", "in", "the", "buffers", "provided", "between", "their", "respective", "positions", "and", "limits", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L508-L525
111,016
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.allocateByteBuffers
public static WsByteBuffer[] allocateByteBuffers(int requestedBufferSize, long totalDataSize, boolean allocateDirect, boolean enforceRequestedSize) { if ...
java
public static WsByteBuffer[] allocateByteBuffers(int requestedBufferSize, long totalDataSize, boolean allocateDirect, boolean enforceRequestedSize) { if ...
[ "public", "static", "WsByteBuffer", "[", "]", "allocateByteBuffers", "(", "int", "requestedBufferSize", ",", "long", "totalDataSize", ",", "boolean", "allocateDirect", ",", "boolean", "enforceRequestedSize", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEna...
Allocate a buffer array large enough to contain totalDataSize bytes, but with the limit of perBufferSize bytes per buffer. @param requestedBufferSize size of the buffers that will be created. @param totalDataSize minimum bytes required in resulting buffer array @param allocateDirect type of allocation to do @param enf...
[ "Allocate", "a", "buffer", "array", "large", "enough", "to", "contain", "totalDataSize", "bytes", "but", "with", "the", "limit", "of", "perBufferSize", "bytes", "per", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L537-L585
111,017
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.anyPositionsNonZero
public static boolean anyPositionsNonZero(WsByteBuffer buffers[]) { if (buffers != null) { // Loop through all buffers in the array. for (int i = 0; i < buffers.length; i++) { // Verify buffer is non null and check for nonzero position if ((buffers[i] != n...
java
public static boolean anyPositionsNonZero(WsByteBuffer buffers[]) { if (buffers != null) { // Loop through all buffers in the array. for (int i = 0; i < buffers.length; i++) { // Verify buffer is non null and check for nonzero position if ((buffers[i] != n...
[ "public", "static", "boolean", "anyPositionsNonZero", "(", "WsByteBuffer", "buffers", "[", "]", ")", "{", "if", "(", "buffers", "!=", "null", ")", "{", "// Loop through all buffers in the array.", "for", "(", "int", "i", "=", "0", ";", "i", "<", "buffers", "...
Search for any buffer in the array that has a position that isn't zero. If found, return true, otherwise false. @param buffers @return boolean
[ "Search", "for", "any", "buffer", "in", "the", "array", "that", "has", "a", "position", "that", "isn", "t", "zero", ".", "If", "found", "return", "true", "otherwise", "false", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L594-L607
111,018
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.getOutboundSSLEngine
public static SSLEngine getOutboundSSLEngine(SSLContext context, SSLLinkConfig config, String host, int port, SSLConnectionLink connLink) { // PK46069 - use engine that allows session id re-use if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled...
java
public static SSLEngine getOutboundSSLEngine(SSLContext context, SSLLinkConfig config, String host, int port, SSLConnectionLink connLink) { // PK46069 - use engine that allows session id re-use if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled...
[ "public", "static", "SSLEngine", "getOutboundSSLEngine", "(", "SSLContext", "context", ",", "SSLLinkConfig", "config", ",", "String", "host", ",", "int", "port", ",", "SSLConnectionLink", "connLink", ")", "{", "// PK46069 - use engine that allows session id re-use", "if",...
Create an SSL engine with the input parameters. The host and port values allow the re-use of possible cached SSL session ids. @param context @param config @param host @param port @param connLink @return SSLEngine
[ "Create", "an", "SSL", "engine", "with", "the", "input", "parameters", ".", "The", "host", "and", "port", "values", "allow", "the", "re", "-", "use", "of", "possible", "cached", "SSL", "session", "ids", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L1132-L1145
111,019
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.getSSLEngine
public static SSLEngine getSSLEngine(SSLContext context, FlowType type, SSLLinkConfig config, SSLConnectionLink connLink) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "getSSLEngine"); } // Create a new SSL engine for this connection. SSLEn...
java
public static SSLEngine getSSLEngine(SSLContext context, FlowType type, SSLLinkConfig config, SSLConnectionLink connLink) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "getSSLEngine"); } // Create a new SSL engine for this connection. SSLEn...
[ "public", "static", "SSLEngine", "getSSLEngine", "(", "SSLContext", "context", ",", "FlowType", "type", ",", "SSLLinkConfig", "config", ",", "SSLConnectionLink", "connLink", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ...
Setup the SSL engine for the given context. @param context used to build the engine @param type to determine if connection is inbound or outbound @param config SSL channel configuration @param connLink @return SSLEngine
[ "Setup", "the", "SSL", "engine", "for", "the", "given", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L1156-L1168
111,020
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.configureEngine
private static void configureEngine(SSLEngine engine, FlowType type, SSLLinkConfig config, SSLConnectionLink connLink) { // Update the engine with the latest config parameters. engine.setEnabledCipherSuites(config.getEnabledCipherSuites(engine)); //Set the configured protocol on the SSLEngine ...
java
private static void configureEngine(SSLEngine engine, FlowType type, SSLLinkConfig config, SSLConnectionLink connLink) { // Update the engine with the latest config parameters. engine.setEnabledCipherSuites(config.getEnabledCipherSuites(engine)); //Set the configured protocol on the SSLEngine ...
[ "private", "static", "void", "configureEngine", "(", "SSLEngine", "engine", ",", "FlowType", "type", ",", "SSLLinkConfig", "config", ",", "SSLConnectionLink", "connLink", ")", "{", "// Update the engine with the latest config parameters.", "engine", ".", "setEnabledCipherSu...
Configure the new engine based on the input flow type and configuration. @param engine @param type @param config @param connLink
[ "Configure", "the", "new", "engine", "based", "on", "the", "input", "flow", "type", "and", "configuration", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L1178-L1261
111,021
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.adjustBuffersForJSSE
public static int[] adjustBuffersForJSSE(WsByteBuffer[] buffers, int maxBufferSize) { int[] limitInfo = null; int dataAmount = 0; for (int i = 0; i < buffers.length && null != buffers[i]; i++) { // Valid buffer. Tally up how much data is in the buffer array so far. dataAm...
java
public static int[] adjustBuffersForJSSE(WsByteBuffer[] buffers, int maxBufferSize) { int[] limitInfo = null; int dataAmount = 0; for (int i = 0; i < buffers.length && null != buffers[i]; i++) { // Valid buffer. Tally up how much data is in the buffer array so far. dataAm...
[ "public", "static", "int", "[", "]", "adjustBuffersForJSSE", "(", "WsByteBuffer", "[", "]", "buffers", ",", "int", "maxBufferSize", ")", "{", "int", "[", "]", "limitInfo", "=", "null", ";", "int", "dataAmount", "=", "0", ";", "for", "(", "int", "i", "=...
The purpose of this method is to prepare the input buffers to be sent into a call to wrap or unwrap in the JSSE considering the limitations about how much data can be present in each buffer. This amount is determined by the amount of data between position and limit. @param buffers array of buffers being examined which...
[ "The", "purpose", "of", "this", "method", "is", "to", "prepare", "the", "input", "buffers", "to", "be", "sent", "into", "a", "call", "to", "wrap", "or", "unwrap", "in", "the", "JSSE", "considering", "the", "limitations", "about", "how", "much", "data", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L1276-L1302
111,022
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.adjustBufferForJSSE
public static int adjustBufferForJSSE(WsByteBuffer buffer, int maxBufferSize) { int limit = -1; if (null != buffer) { int size = buffer.remaining(); if (maxBufferSize < size) { limit = buffer.limit(); // Adjust the limit to the max allowed. ...
java
public static int adjustBufferForJSSE(WsByteBuffer buffer, int maxBufferSize) { int limit = -1; if (null != buffer) { int size = buffer.remaining(); if (maxBufferSize < size) { limit = buffer.limit(); // Adjust the limit to the max allowed. ...
[ "public", "static", "int", "adjustBufferForJSSE", "(", "WsByteBuffer", "buffer", ",", "int", "maxBufferSize", ")", "{", "int", "limit", "=", "-", "1", ";", "if", "(", "null", "!=", "buffer", ")", "{", "int", "size", "=", "buffer", ".", "remaining", "(", ...
The purpose of this method is to prepare the input buffer to be sent into a call to wrap or unwrap in the JSSE considering the limitations about how much data can be present in each buffer. This amount is determined by the amount of data between position and limit. @param buffer being examined which will be sent into ...
[ "The", "purpose", "of", "this", "method", "is", "to", "prepare", "the", "input", "buffer", "to", "be", "sent", "into", "a", "call", "to", "wrap", "or", "unwrap", "in", "the", "JSSE", "considering", "the", "limitations", "about", "how", "much", "data", "c...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L1314-L1329
111,023
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.resetBuffersAfterJSSE
public static void resetBuffersAfterJSSE(WsByteBuffer[] buffers, int[] limitInfo) { // Handle case where not changes were made in recent call to adjustBuffersForJSSE if (limitInfo == null) { return; } int bufferIndex = limitInfo[0]; int bufferLimit = limitInfo[1]; ...
java
public static void resetBuffersAfterJSSE(WsByteBuffer[] buffers, int[] limitInfo) { // Handle case where not changes were made in recent call to adjustBuffersForJSSE if (limitInfo == null) { return; } int bufferIndex = limitInfo[0]; int bufferLimit = limitInfo[1]; ...
[ "public", "static", "void", "resetBuffersAfterJSSE", "(", "WsByteBuffer", "[", "]", "buffers", ",", "int", "[", "]", "limitInfo", ")", "{", "// Handle case where not changes were made in recent call to adjustBuffersForJSSE", "if", "(", "limitInfo", "==", "null", ")", "{...
This method is called after a call is made to adjustBuffersForJSSE followed by a call to wrap or unwrap in the JSSE. It restores the saved limit in the buffer that was modified. A few extra checks are done here to prevent any problems during odd code paths in the future. @param buffers array of buffers containing the ...
[ "This", "method", "is", "called", "after", "a", "call", "is", "made", "to", "adjustBuffersForJSSE", "followed", "by", "a", "call", "to", "wrap", "or", "unwrap", "in", "the", "JSSE", ".", "It", "restores", "the", "saved", "limit", "in", "the", "buffer", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L1341-L1362
111,024
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.getBufferLimits
public static void getBufferLimits(WsByteBuffer[] buffers, int[] limits) { // Double check that the parameters are non null. if ((buffers != null) && (limits != null)) { // Loop through the buffers. // In case of errant parameters, protect from array out of bounds. fo...
java
public static void getBufferLimits(WsByteBuffer[] buffers, int[] limits) { // Double check that the parameters are non null. if ((buffers != null) && (limits != null)) { // Loop through the buffers. // In case of errant parameters, protect from array out of bounds. fo...
[ "public", "static", "void", "getBufferLimits", "(", "WsByteBuffer", "[", "]", "buffers", ",", "int", "[", "]", "limits", ")", "{", "// Double check that the parameters are non null.", "if", "(", "(", "buffers", "!=", "null", ")", "&&", "(", "limits", "!=", "nu...
Assign an array of limits associated with the passed in buffer array. @param buffers @param limits
[ "Assign", "an", "array", "of", "limits", "associated", "with", "the", "passed", "in", "buffer", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L1370-L1392
111,025
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.setBufferLimits
public static void setBufferLimits(WsByteBuffer[] buffers, int[] limits) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "setBufferLimits"); } // Double check that parameters are not null. if ((buffers != null) && (limits != null)) { ...
java
public static void setBufferLimits(WsByteBuffer[] buffers, int[] limits) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "setBufferLimits"); } // Double check that parameters are not null. if ((buffers != null) && (limits != null)) { ...
[ "public", "static", "void", "setBufferLimits", "(", "WsByteBuffer", "[", "]", "buffers", ",", "int", "[", "]", "limits", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "...
Assign the limits of the passed in buffers to the specified values in the int array. The lengths of both arrays are expected to be similar. The limits are expected to be settable. IE, the respective buffers should have capacity >= to the limit. @param buffers @param limits
[ "Assign", "the", "limits", "of", "the", "passed", "in", "buffers", "to", "the", "specified", "values", "in", "the", "int", "array", ".", "The", "lengths", "of", "both", "arrays", "are", "expected", "to", "be", "similar", ".", "The", "limits", "are", "exp...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L1402-L1439
111,026
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.lengthOf
public static int lengthOf(WsByteBuffer[] src, int startIndex) { int length = 0; if (null != src) { for (int i = startIndex; i < src.length && null != src[i]; i++) { length += src[i].remaining(); } } return length; }
java
public static int lengthOf(WsByteBuffer[] src, int startIndex) { int length = 0; if (null != src) { for (int i = startIndex; i < src.length && null != src[i]; i++) { length += src[i].remaining(); } } return length; }
[ "public", "static", "int", "lengthOf", "(", "WsByteBuffer", "[", "]", "src", ",", "int", "startIndex", ")", "{", "int", "length", "=", "0", ";", "if", "(", "null", "!=", "src", ")", "{", "for", "(", "int", "i", "=", "startIndex", ";", "i", "<", "...
Find the amount of data in the source buffers, starting at the input index. @param src @param startIndex @return int
[ "Find", "the", "amount", "of", "data", "in", "the", "source", "buffers", "starting", "at", "the", "input", "index", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L1448-L1456
111,027
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java
SSLUtils.compressBuffers
public static WsByteBuffer[] compressBuffers(WsByteBuffer[] src, boolean releaseEmpty) { List<WsByteBuffer> output = new LinkedList<WsByteBuffer>(); boolean first = true; int size = 0; for (int i = 0; i < src.length; i++) { if (null == src[i]) { continue; ...
java
public static WsByteBuffer[] compressBuffers(WsByteBuffer[] src, boolean releaseEmpty) { List<WsByteBuffer> output = new LinkedList<WsByteBuffer>(); boolean first = true; int size = 0; for (int i = 0; i < src.length; i++) { if (null == src[i]) { continue; ...
[ "public", "static", "WsByteBuffer", "[", "]", "compressBuffers", "(", "WsByteBuffer", "[", "]", "src", ",", "boolean", "releaseEmpty", ")", "{", "List", "<", "WsByteBuffer", ">", "output", "=", "new", "LinkedList", "<", "WsByteBuffer", ">", "(", ")", ";", ...
Take the source buffers and extract all non-null, non-empty buffers into a new list. If the releaseEmpty flag is true, then it will release the empty buffers. @param src @param releaseEmpty @return WsByteBuffer[], null if no buffers existed with data
[ "Take", "the", "source", "buffers", "and", "extract", "all", "non", "-", "null", "non", "-", "empty", "buffers", "into", "a", "new", "list", ".", "If", "the", "releaseEmpty", "flag", "is", "true", "then", "it", "will", "release", "the", "empty", "buffers...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLUtils.java#L1467-L1496
111,028
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java
AbstractRasMethodAdapter.visitCode
@Override public void visitCode() { if (injectedTraceAnnotationVisitor == null && classAdapter.isInjectedTraceAnnotationRequired()) { AnnotationVisitor av = visitAnnotation(INJECTED_TRACE_TYPE.getDescriptor(), true); av.visitEnd(); } super.visitCode(); // La...
java
@Override public void visitCode() { if (injectedTraceAnnotationVisitor == null && classAdapter.isInjectedTraceAnnotationRequired()) { AnnotationVisitor av = visitAnnotation(INJECTED_TRACE_TYPE.getDescriptor(), true); av.visitEnd(); } super.visitCode(); // La...
[ "@", "Override", "public", "void", "visitCode", "(", ")", "{", "if", "(", "injectedTraceAnnotationVisitor", "==", "null", "&&", "classAdapter", ".", "isInjectedTraceAnnotationRequired", "(", ")", ")", "{", "AnnotationVisitor", "av", "=", "visitAnnotation", "(", "I...
Begin processing a method. This is called when the instruction stream for a method is first encountered. Since this is the first callback, we use this to add the byte codes required for entry tracing.
[ "Begin", "processing", "a", "method", ".", "This", "is", "called", "when", "the", "instruction", "stream", "for", "a", "method", "is", "first", "encountered", ".", "Since", "this", "is", "the", "first", "callback", "we", "use", "this", "to", "add", "the", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java#L370-L392
111,029
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java
AbstractRasMethodAdapter.visitFrameAfterOnMethodEntry
private void visitFrameAfterOnMethodEntry() { if (!visitFramesAfterCallbacks) return; // The frame that is required after the trace guard must be // fully specified as 'this' is no longer an 'uninitialized this' if (isConstructor()) { List<Object> stackLocals = n...
java
private void visitFrameAfterOnMethodEntry() { if (!visitFramesAfterCallbacks) return; // The frame that is required after the trace guard must be // fully specified as 'this' is no longer an 'uninitialized this' if (isConstructor()) { List<Object> stackLocals = n...
[ "private", "void", "visitFrameAfterOnMethodEntry", "(", ")", "{", "if", "(", "!", "visitFramesAfterCallbacks", ")", "return", ";", "// The frame that is required after the trace guard must be", "// fully specified as 'this' is no longer an 'uninitialized this'", "if", "(", "isConst...
Inject a simple stack map frame and a PUSH NULL, POP. This method assumes that the onMethodEntry modified code and returned immediately after visiting the target label of a trace guard.
[ "Inject", "a", "simple", "stack", "map", "frame", "and", "a", "PUSH", "NULL", "POP", ".", "This", "method", "assumes", "that", "the", "onMethodEntry", "modified", "code", "and", "returned", "immediately", "after", "visiting", "the", "target", "label", "of", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java#L399-L438
111,030
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java
AbstractRasMethodAdapter.visitFrameAfterMethodReturnCallback
private void visitFrameAfterMethodReturnCallback() { if (!visitFramesAfterCallbacks) return; Type returnType = getReturnTypeForTrace(); if (!Type.VOID_TYPE.equals(getReturnTypeForTrace()) && !isConstructor()) { Object typeDescriptor = null; switch (returnType...
java
private void visitFrameAfterMethodReturnCallback() { if (!visitFramesAfterCallbacks) return; Type returnType = getReturnTypeForTrace(); if (!Type.VOID_TYPE.equals(getReturnTypeForTrace()) && !isConstructor()) { Object typeDescriptor = null; switch (returnType...
[ "private", "void", "visitFrameAfterMethodReturnCallback", "(", ")", "{", "if", "(", "!", "visitFramesAfterCallbacks", ")", "return", ";", "Type", "returnType", "=", "getReturnTypeForTrace", "(", ")", ";", "if", "(", "!", "Type", ".", "VOID_TYPE", ".", "equals", ...
Generate the stack frame that's needed after visiting the method exit trace guard target injected by tracing adapters.
[ "Generate", "the", "stack", "frame", "that", "s", "needed", "after", "visiting", "the", "method", "exit", "trace", "guard", "target", "injected", "by", "tracing", "adapters", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java#L947-L979
111,031
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java
AbstractRasMethodAdapter.visitTryCatchBlock
@Override public void visitTryCatchBlock(Label start, Label end, Label handler, String type) { if (type != null) { handlers.put(handler, type); } super.visitTryCatchBlock(start, end, handler, type); }
java
@Override public void visitTryCatchBlock(Label start, Label end, Label handler, String type) { if (type != null) { handlers.put(handler, type); } super.visitTryCatchBlock(start, end, handler, type); }
[ "@", "Override", "public", "void", "visitTryCatchBlock", "(", "Label", "start", ",", "Label", "end", ",", "Label", "handler", ",", "String", "type", ")", "{", "if", "(", "type", "!=", "null", ")", "{", "handlers", ".", "put", "(", "handler", ",", "type...
Visit a try catch block. We will use this to determine the exception handler labels for the try block. @param start the beginning of the try block @param end the end of the try block @param handler the exception handler @param type the internal name of the throwable being handled
[ "Visit", "a", "try", "catch", "block", ".", "We", "will", "use", "this", "to", "determine", "the", "exception", "handler", "labels", "for", "the", "try", "block", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java#L1006-L1012
111,032
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java
AbstractRasMethodAdapter.visitLabel
@Override public void visitLabel(Label label) { super.visitLabel(label); if (waitingForSuper) { // Get what should be the shape of the stack in the handler. // Not all labels are branch targets so only deal with targets if (branchTargets.containsKey(label)) { ...
java
@Override public void visitLabel(Label label) { super.visitLabel(label); if (waitingForSuper) { // Get what should be the shape of the stack in the handler. // Not all labels are branch targets so only deal with targets if (branchTargets.containsKey(label)) { ...
[ "@", "Override", "public", "void", "visitLabel", "(", "Label", "label", ")", "{", "super", ".", "visitLabel", "(", "label", ")", ";", "if", "(", "waitingForSuper", ")", "{", "// Get what should be the shape of the stack in the handler.", "// Not all labels are branch ta...
Visit a label. We will use this to determine when we've reached an exception handler block. @param label the label to visit
[ "Visit", "a", "label", ".", "We", "will", "use", "this", "to", "determine", "when", "we", "ve", "reached", "an", "exception", "handler", "block", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java#L1021-L1034
111,033
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java
AbstractRasMethodAdapter.visitFrame
@Override public void visitFrame(int type, int numLocals, Object[] locals, int stackSize, Object[] stack) { if (!isVisitFrameRequired()) return; super.visitFrame(type, numLocals, locals, stackSize, stack); }
java
@Override public void visitFrame(int type, int numLocals, Object[] locals, int stackSize, Object[] stack) { if (!isVisitFrameRequired()) return; super.visitFrame(type, numLocals, locals, stackSize, stack); }
[ "@", "Override", "public", "void", "visitFrame", "(", "int", "type", ",", "int", "numLocals", ",", "Object", "[", "]", "locals", ",", "int", "stackSize", ",", "Object", "[", "]", "stack", ")", "{", "if", "(", "!", "isVisitFrameRequired", "(", ")", ")",...
Visit a stack map frame.
[ "Visit", "a", "stack", "map", "frame", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java#L1039-L1045
111,034
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java
AbstractRasMethodAdapter.visitLocalVariable
@Override public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) { if (index < firstNonParameterSlot) { start = methodEntryLabel; } super.visitLocalVariable(name, desc, signature, start, end, index); }
java
@Override public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) { if (index < firstNonParameterSlot) { start = methodEntryLabel; } super.visitLocalVariable(name, desc, signature, start, end, index); }
[ "@", "Override", "public", "void", "visitLocalVariable", "(", "String", "name", ",", "String", "desc", ",", "String", "signature", ",", "Label", "start", ",", "Label", "end", ",", "int", "index", ")", "{", "if", "(", "index", "<", "firstNonParameterSlot", ...
Visit a local variable. We will use this to change the start label for method parameters references.
[ "Visit", "a", "local", "variable", ".", "We", "will", "use", "this", "to", "change", "the", "start", "label", "for", "method", "parameters", "references", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java#L1062-L1068
111,035
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java
AbstractRasMethodAdapter.createTraceArrayForParameters
protected void createTraceArrayForParameters() { // Static methods don't have an implicit "this" argment so start // working with local var 0 instead of 1 for the parm list. int localVarOffset = isStatic ? 0 : 1; int syntheticArgs = 0; // Use an heuristic to guess when we're in ...
java
protected void createTraceArrayForParameters() { // Static methods don't have an implicit "this" argment so start // working with local var 0 instead of 1 for the parm list. int localVarOffset = isStatic ? 0 : 1; int syntheticArgs = 0; // Use an heuristic to guess when we're in ...
[ "protected", "void", "createTraceArrayForParameters", "(", ")", "{", "// Static methods don't have an implicit \"this\" argment so start", "// working with local var 0 instead of 1 for the parm list.", "int", "localVarOffset", "=", "isStatic", "?", "0", ":", "1", ";", "int", "syn...
Create an object array that contains references to the method parameters. Primitives will be boxed and parameters that have been annotated as sensitive will only have their class type traced. On exit, the Object array will be on the top of the stack.
[ "Create", "an", "object", "array", "that", "contains", "references", "to", "the", "method", "parameters", ".", "Primitives", "will", "be", "boxed", "and", "parameters", "that", "have", "been", "annotated", "as", "sensitive", "will", "only", "have", "their", "c...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java#L1092-L1126
111,036
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java
AbstractRasMethodAdapter.boxLocalVar
protected void boxLocalVar(final Type type, final int slot, final boolean isSensitive) { visitVarInsn(type.getOpcode(ILOAD), slot); box(type, isSensitive); }
java
protected void boxLocalVar(final Type type, final int slot, final boolean isSensitive) { visitVarInsn(type.getOpcode(ILOAD), slot); box(type, isSensitive); }
[ "protected", "void", "boxLocalVar", "(", "final", "Type", "type", ",", "final", "int", "slot", ",", "final", "boolean", "isSensitive", ")", "{", "visitVarInsn", "(", "type", ".", "getOpcode", "(", "ILOAD", ")", ",", "slot", ")", ";", "box", "(", "type", ...
Generate the instruction sequence needed to "box" the local variable if required. @param type the <code>Type</code> of the object in the specified local variable slot on the stack. @param slot the local variable slot to box. @param isSensitive indication that the variable is sensitive and should not be traced as is.
[ "Generate", "the", "instruction", "sequence", "needed", "to", "box", "the", "local", "variable", "if", "required", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java#L1141-L1144
111,037
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java
AbstractRasMethodAdapter.visitGetTraceObjectField
protected void visitGetTraceObjectField() { visitFieldInsn( GETSTATIC, classAdapter.getClassInternalName(), classAdapter.getTraceObjectFieldName(), classAdapter.getTraceObjectFieldType().getDescriptor()); }
java
protected void visitGetTraceObjectField() { visitFieldInsn( GETSTATIC, classAdapter.getClassInternalName(), classAdapter.getTraceObjectFieldName(), classAdapter.getTraceObjectFieldType().getDescriptor()); }
[ "protected", "void", "visitGetTraceObjectField", "(", ")", "{", "visitFieldInsn", "(", "GETSTATIC", ",", "classAdapter", ".", "getClassInternalName", "(", ")", ",", "classAdapter", ".", "getTraceObjectFieldName", "(", ")", ",", "classAdapter", ".", "getTraceObjectFiel...
Load the trace object field onto the top of the stack.
[ "Load", "the", "trace", "object", "field", "onto", "the", "top", "of", "the", "stack", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java#L1214-L1220
111,038
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java
AbstractRasMethodAdapter.visitSetTraceObjectField
protected void visitSetTraceObjectField() { visitFieldInsn( PUTSTATIC, classAdapter.getClassInternalName(), classAdapter.getTraceObjectFieldName(), classAdapter.getTraceObjectFieldType().getDescriptor()); }
java
protected void visitSetTraceObjectField() { visitFieldInsn( PUTSTATIC, classAdapter.getClassInternalName(), classAdapter.getTraceObjectFieldName(), classAdapter.getTraceObjectFieldType().getDescriptor()); }
[ "protected", "void", "visitSetTraceObjectField", "(", ")", "{", "visitFieldInsn", "(", "PUTSTATIC", ",", "classAdapter", ".", "getClassInternalName", "(", ")", ",", "classAdapter", ".", "getTraceObjectFieldName", "(", ")", ",", "classAdapter", ".", "getTraceObjectFiel...
Set the trace object field from the reference on the top of the stack.
[ "Set", "the", "trace", "object", "field", "from", "the", "reference", "on", "the", "top", "of", "the", "stack", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java#L1225-L1231
111,039
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java
AbstractRasMethodAdapter.isArgumentSensitive
protected boolean isArgumentSensitive(int index) { if (methodInfo != null) { return methodInfo.isArgSensitive(index); } Set<Type> parameterAnnotations = observedParameterAnnotations.get(index); if (parameterAnnotations != null) { return parameterAnnotations.contai...
java
protected boolean isArgumentSensitive(int index) { if (methodInfo != null) { return methodInfo.isArgSensitive(index); } Set<Type> parameterAnnotations = observedParameterAnnotations.get(index); if (parameterAnnotations != null) { return parameterAnnotations.contai...
[ "protected", "boolean", "isArgumentSensitive", "(", "int", "index", ")", "{", "if", "(", "methodInfo", "!=", "null", ")", "{", "return", "methodInfo", ".", "isArgSensitive", "(", "index", ")", ";", "}", "Set", "<", "Type", ">", "parameterAnnotations", "=", ...
Determine if the introspection or trace configuration for this method indicates that the specified method parameter is sensitive. @param index the 0 origin parameter index @return true if the method config implies this class is sensitive
[ "Determine", "if", "the", "introspection", "or", "trace", "configuration", "for", "this", "method", "indicates", "that", "the", "specified", "method", "parameter", "is", "sensitive", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java#L1399-L1408
111,040
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java
AbstractRasMethodAdapter.isMethodInstrumentedByThisAdapter
protected boolean isMethodInstrumentedByThisAdapter() { if (injectedTraceAnnotationVisitor == null) { return false; } List<String> visitedMethodAdapters = injectedTraceAnnotationVisitor.getMethodAdapters(); return visitedMethodAdapters.contains(getClass().getName()); }
java
protected boolean isMethodInstrumentedByThisAdapter() { if (injectedTraceAnnotationVisitor == null) { return false; } List<String> visitedMethodAdapters = injectedTraceAnnotationVisitor.getMethodAdapters(); return visitedMethodAdapters.contains(getClass().getName()); }
[ "protected", "boolean", "isMethodInstrumentedByThisAdapter", "(", ")", "{", "if", "(", "injectedTraceAnnotationVisitor", "==", "null", ")", "{", "return", "false", ";", "}", "List", "<", "String", ">", "visitedMethodAdapters", "=", "injectedTraceAnnotationVisitor", "....
Determine if the method being processed has already had trace points automatically injected by this method adapter. @return true if the method being processed has already been instrumented with trace
[ "Determine", "if", "the", "method", "being", "processed", "has", "already", "had", "trace", "points", "automatically", "injected", "by", "this", "method", "adapter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/bci/AbstractRasMethodAdapter.java#L1449-L1456
111,041
OpenLiberty/open-liberty
dev/com.ibm.ws.context/src/com/ibm/ws/context/service/serializable/ThreadContextManager.java
ThreadContextManager.setThreadContextProvider
@Reference(name = THREAD_CONTEXT_PROVIDER, service = ThreadContextProvider.class, cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY) protected void setThreadContextProvider(ServiceRef...
java
@Reference(name = THREAD_CONTEXT_PROVIDER, service = ThreadContextProvider.class, cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY) protected void setThreadContextProvider(ServiceRef...
[ "@", "Reference", "(", "name", "=", "THREAD_CONTEXT_PROVIDER", ",", "service", "=", "ThreadContextProvider", ".", "class", ",", "cardinality", "=", "ReferenceCardinality", ".", "MULTIPLE", ",", "policy", "=", "ReferencePolicy", ".", "DYNAMIC", ",", "policyOption", ...
Declarative Services method for adding a thread context provider. @param ref reference to the service
[ "Declarative", "Services", "method", "for", "adding", "a", "thread", "context", "provider", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.context/src/com/ibm/ws/context/service/serializable/ThreadContextManager.java#L234-L244
111,042
OpenLiberty/open-liberty
dev/com.ibm.ws.context/src/com/ibm/ws/context/service/serializable/ThreadContextManager.java
ThreadContextManager.unsetThreadContextProvider
protected void unsetThreadContextProvider(ServiceReference<ThreadContextProvider> ref) { String threadContextProviderName = (String) ref.getProperty(COMPONENT_NAME); if (threadContextProviders.removeReference(threadContextProviderName, ref) && Boolean.TRUE.equals(ref.getProperty(ThreadContex...
java
protected void unsetThreadContextProvider(ServiceReference<ThreadContextProvider> ref) { String threadContextProviderName = (String) ref.getProperty(COMPONENT_NAME); if (threadContextProviders.removeReference(threadContextProviderName, ref) && Boolean.TRUE.equals(ref.getProperty(ThreadContex...
[ "protected", "void", "unsetThreadContextProvider", "(", "ServiceReference", "<", "ThreadContextProvider", ">", "ref", ")", "{", "String", "threadContextProviderName", "=", "(", "String", ")", "ref", ".", "getProperty", "(", "COMPONENT_NAME", ")", ";", "if", "(", "...
Declarative Services method for removing a thread context provider. @param ref reference to the service
[ "Declarative", "Services", "method", "for", "removing", "a", "thread", "context", "provider", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.context/src/com/ibm/ws/context/service/serializable/ThreadContextManager.java#L260-L265
111,043
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/ContentTypeUtils.java
ContentTypeUtils.containsContentType
public static boolean containsContentType(String contentType, String[] allowedContentTypes) { if (allowedContentTypes == null) { return false; } for (int i = 0; i < allowedContentTypes.length; i++) { if (allowedContentTypes[i].indexOf(contentType) != -...
java
public static boolean containsContentType(String contentType, String[] allowedContentTypes) { if (allowedContentTypes == null) { return false; } for (int i = 0; i < allowedContentTypes.length; i++) { if (allowedContentTypes[i].indexOf(contentType) != -...
[ "public", "static", "boolean", "containsContentType", "(", "String", "contentType", ",", "String", "[", "]", "allowedContentTypes", ")", "{", "if", "(", "allowedContentTypes", "==", "null", ")", "{", "return", "false", ";", "}", "for", "(", "int", "i", "=", ...
Indicate if the passes content type match one of the options passed.
[ "Indicate", "if", "the", "passes", "content", "type", "match", "one", "of", "the", "options", "passed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/ContentTypeUtils.java#L48-L62
111,044
OpenLiberty/open-liberty
dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAConfigurationImpl.java
LTPAConfigurationImpl.createFileMonitor
private void createFileMonitor() { try { ltpaFileMonitor = new SecurityFileMonitor(this); setFileMonitorRegistration(ltpaFileMonitor.monitorFiles(Arrays.asList(keyImportFile), monitorInterval)); } catch (Exception e) { if (TraceComponent.isAnyTracingEnabled() && tc.is...
java
private void createFileMonitor() { try { ltpaFileMonitor = new SecurityFileMonitor(this); setFileMonitorRegistration(ltpaFileMonitor.monitorFiles(Arrays.asList(keyImportFile), monitorInterval)); } catch (Exception e) { if (TraceComponent.isAnyTracingEnabled() && tc.is...
[ "private", "void", "createFileMonitor", "(", ")", "{", "try", "{", "ltpaFileMonitor", "=", "new", "SecurityFileMonitor", "(", "this", ")", ";", "setFileMonitorRegistration", "(", "ltpaFileMonitor", ".", "monitorFiles", "(", "Arrays", ".", "asList", "(", "keyImport...
Handles the creation of the LTPA file monitor.
[ "Handles", "the", "creation", "of", "the", "LTPA", "file", "monitor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAConfigurationImpl.java#L156-L165
111,045
OpenLiberty/open-liberty
dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAConfigurationImpl.java
LTPAConfigurationImpl.performFileBasedAction
@Override public void performFileBasedAction(Collection<File> files) { Tr.audit(tc, "LTPA_KEYS_TO_LOAD", keyImportFile); submitTaskToCreateLTPAKeys(); }
java
@Override public void performFileBasedAction(Collection<File> files) { Tr.audit(tc, "LTPA_KEYS_TO_LOAD", keyImportFile); submitTaskToCreateLTPAKeys(); }
[ "@", "Override", "public", "void", "performFileBasedAction", "(", "Collection", "<", "File", ">", "files", ")", "{", "Tr", ".", "audit", "(", "tc", ",", "\"LTPA_KEYS_TO_LOAD\"", ",", "keyImportFile", ")", ";", "submitTaskToCreateLTPAKeys", "(", ")", ";", "}" ]
Submits an asynchronous task to load the LTPA keys based on the current configuration state. This method might also be called by the file monitor when there is an update to the LTPA keys file or when the file is recreated after it is deleted.
[ "Submits", "an", "asynchronous", "task", "to", "load", "the", "LTPA", "keys", "based", "on", "the", "current", "configuration", "state", ".", "This", "method", "might", "also", "be", "called", "by", "the", "file", "monitor", "when", "there", "is", "an", "u...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAConfigurationImpl.java#L172-L176
111,046
OpenLiberty/open-liberty
dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAConfigurationImpl.java
LTPAConfigurationImpl.isKeysConfigChanged
private boolean isKeysConfigChanged(String oldKeyImportFile, Long oldKeyTokenExpiration) { return ((oldKeyImportFile.equals(keyImportFile) == false) || (oldKeyTokenExpiration != keyTokenExpiration)); }
java
private boolean isKeysConfigChanged(String oldKeyImportFile, Long oldKeyTokenExpiration) { return ((oldKeyImportFile.equals(keyImportFile) == false) || (oldKeyTokenExpiration != keyTokenExpiration)); }
[ "private", "boolean", "isKeysConfigChanged", "(", "String", "oldKeyImportFile", ",", "Long", "oldKeyTokenExpiration", ")", "{", "return", "(", "(", "oldKeyImportFile", ".", "equals", "(", "keyImportFile", ")", "==", "false", ")", "||", "(", "oldKeyTokenExpiration", ...
The keys config is changed if the file or expiration were modified. Changing the password by itself must not be considered a config change that should trigger a keys reload.
[ "The", "keys", "config", "is", "changed", "if", "the", "file", "or", "expiration", "were", "modified", ".", "Changing", "the", "password", "by", "itself", "must", "not", "be", "considered", "a", "config", "change", "that", "should", "trigger", "a", "keys", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAConfigurationImpl.java#L214-L216
111,047
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/deliverydelay/DeliveryDelayIndex.java
DeliveryDelayIndex.put
public boolean put(DeliveryDelayableReference deliveryDelayableReference) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", "ObjId=" + deliveryDelayableReference.getID() + " ET=" + deliveryDelayableReference.getDeliveryDelayTime()); boolean ...
java
public boolean put(DeliveryDelayableReference deliveryDelayableReference) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", "ObjId=" + deliveryDelayableReference.getID() + " ET=" + deliveryDelayableReference.getDeliveryDelayTime()); boolean ...
[ "public", "boolean", "put", "(", "DeliveryDelayableReference", "deliveryDelayableReference", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", ...
Add an DeliveryDelayableReference to the DeliveryDelay index. @param deliveryDelayableReference an DeliveryDelayableReference. @return true if the object was added to the index successfully.
[ "Add", "an", "DeliveryDelayableReference", "to", "the", "DeliveryDelay", "index", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/deliverydelay/DeliveryDelayIndex.java#L60-L74
111,048
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/SuspendableXAResource.java
SuspendableXAResource.isSameRM
public boolean isSameRM(XAResource xares) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isSameRM", xares); XAResource actualXARes = xares; if (xares instanceof SuspendableXAResource) { actualXARes = ((SuspendableXAResourc...
java
public boolean isSameRM(XAResource xares) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isSameRM", xares); XAResource actualXARes = xares; if (xares instanceof SuspendableXAResource) { actualXARes = ((SuspendableXAResourc...
[ "public", "boolean", "isSameRM", "(", "XAResource", "xares", ")", "throws", "XAException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "t...
In this method we must ensure that we unpack the appropriate XAResource if appropriate from the SuspendableXAResource instance if one was passed in. @see javax.transaction.xa.XAResource#isSameRM(javax.transaction.xa.XAResource)
[ "In", "this", "method", "we", "must", "ensure", "that", "we", "unpack", "the", "appropriate", "XAResource", "if", "appropriate", "from", "the", "SuspendableXAResource", "instance", "if", "one", "was", "passed", "in", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/SuspendableXAResource.java#L352-L363
111,049
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperProxyState.java
WrapperProxyState.getWrapperProxyState
public static WrapperProxyState getWrapperProxyState(Object proxy) { // A business interface proxy. if (proxy instanceof BusinessLocalWrapperProxy) { return ((BusinessLocalWrapperProxy) proxy).ivState; } // An EJBLocalHome or EJBLocalObject proxy. if (pro...
java
public static WrapperProxyState getWrapperProxyState(Object proxy) { // A business interface proxy. if (proxy instanceof BusinessLocalWrapperProxy) { return ((BusinessLocalWrapperProxy) proxy).ivState; } // An EJBLocalHome or EJBLocalObject proxy. if (pro...
[ "public", "static", "WrapperProxyState", "getWrapperProxyState", "(", "Object", "proxy", ")", "{", "// A business interface proxy.", "if", "(", "proxy", "instanceof", "BusinessLocalWrapperProxy", ")", "{", "return", "(", "(", "BusinessLocalWrapperProxy", ")", "proxy", "...
Return the state for a wrapper proxy. @param proxy the {@link WrapperProxy} @return the wrapper proxy state
[ "Return", "the", "state", "for", "a", "wrapper", "proxy", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperProxyState.java#L44-L72
111,050
OpenLiberty/open-liberty
dev/com.ibm.ws.security.audit.source/src/com/ibm/ws/security/audit/source/AuditServiceImpl.java
AuditServiceImpl.map2GenericData
private GenericData map2GenericData(GenericData gdo, Map<String, Object> map) { for (Entry<String, Object> entry : map.entrySet()) { if (entry.getValue() == null) { if (entry.getKey().equals(AuditEvent.TARGET_APPNAME)) { gdo.addPair(entry.getKey(), AuditUtils.getJ...
java
private GenericData map2GenericData(GenericData gdo, Map<String, Object> map) { for (Entry<String, Object> entry : map.entrySet()) { if (entry.getValue() == null) { if (entry.getKey().equals(AuditEvent.TARGET_APPNAME)) { gdo.addPair(entry.getKey(), AuditUtils.getJ...
[ "private", "GenericData", "map2GenericData", "(", "GenericData", "gdo", ",", "Map", "<", "String", ",", "Object", ">", "map", ")", "{", "for", "(", "Entry", "<", "String", ",", "Object", ">", "entry", ":", "map", ".", "entrySet", "(", ")", ")", "{", ...
Given a Map, add the corresponding audit data to the given GenericData object. @param gdo - GenericData object @param map - Java Map object
[ "Given", "a", "Map", "add", "the", "corresponding", "audit", "data", "to", "the", "given", "GenericData", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.audit.source/src/com/ibm/ws/security/audit/source/AuditServiceImpl.java#L416-L430
111,051
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelHelper.java
HpelHelper.setCustomHeaderFormat
public static void setCustomHeaderFormat(String[] headerFormat) { customFormat = new String[headerFormat.length]; System.arraycopy(headerFormat, 0, customFormat, 0, headerFormat.length); }
java
public static void setCustomHeaderFormat(String[] headerFormat) { customFormat = new String[headerFormat.length]; System.arraycopy(headerFormat, 0, customFormat, 0, headerFormat.length); }
[ "public", "static", "void", "setCustomHeaderFormat", "(", "String", "[", "]", "headerFormat", ")", "{", "customFormat", "=", "new", "String", "[", "headerFormat", ".", "length", "]", ";", "System", ".", "arraycopy", "(", "headerFormat", ",", "0", ",", "custo...
Set custom format to use printing header information. @param headerFormat array of string representing header lines.
[ "Set", "custom", "format", "to", "use", "printing", "header", "information", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelHelper.java#L93-L96
111,052
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelHelper.java
HpelHelper.getHeaderAsProperties
public static Properties getHeaderAsProperties() { Properties result = new Properties(); if (customProps != null) { result.putAll(customProps); } result.put(ServerInstanceLogRecordList.HEADER_PROCESSID, processId); result.put(ServerInstanceLogRecordList.HEADER_SERVE...
java
public static Properties getHeaderAsProperties() { Properties result = new Properties(); if (customProps != null) { result.putAll(customProps); } result.put(ServerInstanceLogRecordList.HEADER_PROCESSID, processId); result.put(ServerInstanceLogRecordList.HEADER_SERVE...
[ "public", "static", "Properties", "getHeaderAsProperties", "(", ")", "{", "Properties", "result", "=", "new", "Properties", "(", ")", ";", "if", "(", "customProps", "!=", "null", ")", "{", "result", ".", "putAll", "(", "customProps", ")", ";", "}", "result...
Gets Header information as a Propeties instance. @return new Properties instance filled with necessary information.
[ "Gets", "Header", "information", "as", "a", "Propeties", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelHelper.java#L107-L165
111,053
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelHelper.java
HpelHelper.printStackTrace
private final static void printStackTrace(Throwable t, PrintWriter p) { if (t == null) { p.println("none"); return; } // Capture any exceptions while printing stack so we return what we have // so far try { // Print the stack trace of the Thro...
java
private final static void printStackTrace(Throwable t, PrintWriter p) { if (t == null) { p.println("none"); return; } // Capture any exceptions while printing stack so we return what we have // so far try { // Print the stack trace of the Thro...
[ "private", "final", "static", "void", "printStackTrace", "(", "Throwable", "t", ",", "PrintWriter", "p", ")", "{", "if", "(", "t", "==", "null", ")", "{", "p", ".", "println", "(", "\"none\"", ")", ";", "return", ";", "}", "// Capture any exceptions while ...
Format the backtrace for the given Throwable onto the given PrintWriter.
[ "Format", "the", "backtrace", "for", "the", "given", "Throwable", "onto", "the", "given", "PrintWriter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelHelper.java#L222-L349
111,054
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelHelper.java
HpelHelper.threadIdToString
public static String threadIdToString(int threadId) { StringBuffer buffer = new StringBuffer(8); // pad the HexString ThreadId so that it is always 8 characters long. for (int shift = 7; shift >= 0; shift--) { buffer.append(hexChars[(threadId >> (shift << 2)) & 0xF]); } ...
java
public static String threadIdToString(int threadId) { StringBuffer buffer = new StringBuffer(8); // pad the HexString ThreadId so that it is always 8 characters long. for (int shift = 7; shift >= 0; shift--) { buffer.append(hexChars[(threadId >> (shift << 2)) & 0xF]); } ...
[ "public", "static", "String", "threadIdToString", "(", "int", "threadId", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "8", ")", ";", "// pad the HexString ThreadId so that it is always 8 characters long.", "for", "(", "int", "shift", "=", "7",...
Converts provided thread id into eight character hexadecimal string @param threadId id to convert @return String representation of the thread id
[ "Converts", "provided", "thread", "id", "into", "eight", "character", "hexadecimal", "string" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelHelper.java#L389-L398
111,055
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelHelper.java
HpelHelper.escape
private final static String escape(String src) { if (src == null) { return ""; } StringBuffer result = null; for (int i = 0, max = src.length(), delta = 0; i < max; i++) { char c = src.charAt(i); if (!Character.isWhitespace(c) && Character.isISOControl...
java
private final static String escape(String src) { if (src == null) { return ""; } StringBuffer result = null; for (int i = 0, max = src.length(), delta = 0; i < max; i++) { char c = src.charAt(i); if (!Character.isWhitespace(c) && Character.isISOControl...
[ "private", "final", "static", "String", "escape", "(", "String", "src", ")", "{", "if", "(", "src", "==", "null", ")", "{", "return", "\"\"", ";", "}", "StringBuffer", "result", "=", "null", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", ...
D512713 - method to convert non-printable chars into a printable string for the log.
[ "D512713", "-", "method", "to", "convert", "non", "-", "printable", "chars", "into", "a", "printable", "string", "for", "the", "log", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelHelper.java#L455-L477
111,056
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelHelper.java
HpelHelper.getBasicDateFormatter
static DateFormat getBasicDateFormatter() { String pattern; int patternLength; int endOfSecsIndex; // Retrieve a standard Java DateFormat object with desired format. DateFormat formatter = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM); if (formatter ...
java
static DateFormat getBasicDateFormatter() { String pattern; int patternLength; int endOfSecsIndex; // Retrieve a standard Java DateFormat object with desired format. DateFormat formatter = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM); if (formatter ...
[ "static", "DateFormat", "getBasicDateFormatter", "(", ")", "{", "String", "pattern", ";", "int", "patternLength", ";", "int", "endOfSecsIndex", ";", "// Retrieve a standard Java DateFormat object with desired format.", "DateFormat", "formatter", "=", "DateFormat", ".", "get...
Return a DateFormat object that can be used to format timestamps in the System.out, System.err and TraceOutput logs.
[ "Return", "a", "DateFormat", "object", "that", "can", "be", "used", "to", "format", "timestamps", "in", "the", "System", ".", "out", "System", ".", "err", "and", "TraceOutput", "logs", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/HpelHelper.java#L760-L793
111,057
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.createXAException
public static XAException createXAException(String key, Object args, int xaErrorCode) { XAException xaX = new XAException( args == null ? getNLSMessage(key) : getNLSMessage(key, args)); xaX.errorCode...
java
public static XAException createXAException(String key, Object args, int xaErrorCode) { XAException xaX = new XAException( args == null ? getNLSMessage(key) : getNLSMessage(key, args)); xaX.errorCode...
[ "public", "static", "XAException", "createXAException", "(", "String", "key", ",", "Object", "args", ",", "int", "xaErrorCode", ")", "{", "XAException", "xaX", "=", "new", "XAException", "(", "args", "==", "null", "?", "getNLSMessage", "(", "key", ")", ":", ...
Create an XAException with a translated error message and an XA error code. The XAException constructors provided by the XAException API allow only for either an error message or an XA error code to be specified. This method constructs an XAException with both. The error message is created from the NLS key and argument...
[ "Create", "an", "XAException", "with", "a", "translated", "error", "message", "and", "an", "XA", "error", "code", ".", "The", "XAException", "constructors", "provided", "by", "the", "XAException", "API", "allow", "only", "for", "either", "an", "error", "messag...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L142-L151
111,058
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getConcurrencyModeString
public static String getConcurrencyModeString(int concurrency) { switch (concurrency) { case ResultSet.CONCUR_READ_ONLY: return "CONCUR READ ONLY (" + concurrency + ')'; case ResultSet.CONCUR_UPDATABLE: return "CONCUR UPDATABLE (" + concurrency + ')'; ...
java
public static String getConcurrencyModeString(int concurrency) { switch (concurrency) { case ResultSet.CONCUR_READ_ONLY: return "CONCUR READ ONLY (" + concurrency + ')'; case ResultSet.CONCUR_UPDATABLE: return "CONCUR UPDATABLE (" + concurrency + ')'; ...
[ "public", "static", "String", "getConcurrencyModeString", "(", "int", "concurrency", ")", "{", "switch", "(", "concurrency", ")", "{", "case", "ResultSet", ".", "CONCUR_READ_ONLY", ":", "return", "\"CONCUR READ ONLY (\"", "+", "concurrency", "+", "'", "'", ";", ...
Display the java.sql.ResultSet concurrency mode constant corresponding to the value supplied. @param level a valid java.sql.ResultSet concurrency mode constant. @return the name of the constant, or a string indicating the constant is unknown.
[ "Display", "the", "java", ".", "sql", ".", "ResultSet", "concurrency", "mode", "constant", "corresponding", "to", "the", "value", "supplied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L202-L218
111,059
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getConnectionEventString
public static String getConnectionEventString(int eventID) { switch (eventID) { case ConnectionEvent.CONNECTION_CLOSED: return "CONNECTION CLOSED (" + eventID + ')'; case ConnectionEvent.LOCAL_TRANSACTION_STARTED: return "LOCAL TRANSACTION STARTED (" ...
java
public static String getConnectionEventString(int eventID) { switch (eventID) { case ConnectionEvent.CONNECTION_CLOSED: return "CONNECTION CLOSED (" + eventID + ')'; case ConnectionEvent.LOCAL_TRANSACTION_STARTED: return "LOCAL TRANSACTION STARTED (" ...
[ "public", "static", "String", "getConnectionEventString", "(", "int", "eventID", ")", "{", "switch", "(", "eventID", ")", "{", "case", "ConnectionEvent", ".", "CONNECTION_CLOSED", ":", "return", "\"CONNECTION CLOSED (\"", "+", "eventID", "+", "'", "'", ";", "cas...
Display the name of the ConnectionEvent constant given the event id. @param eventID a valid ConnectionEvent constant value. @return The name of the ConnectionEvent constant, or a string indicating the constant is unknown.
[ "Display", "the", "name", "of", "the", "ConnectionEvent", "constant", "given", "the", "event", "id", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L228-L254
111,060
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getFetchDirectionString
public static String getFetchDirectionString(int direction) { switch (direction) { case ResultSet.FETCH_FORWARD: return "FETCH FORWARD (" + direction + ')'; case ResultSet.FETCH_REVERSE: return "FETCH REVERSE (" + direction + ')'; case Resu...
java
public static String getFetchDirectionString(int direction) { switch (direction) { case ResultSet.FETCH_FORWARD: return "FETCH FORWARD (" + direction + ')'; case ResultSet.FETCH_REVERSE: return "FETCH REVERSE (" + direction + ')'; case Resu...
[ "public", "static", "String", "getFetchDirectionString", "(", "int", "direction", ")", "{", "switch", "(", "direction", ")", "{", "case", "ResultSet", ".", "FETCH_FORWARD", ":", "return", "\"FETCH FORWARD (\"", "+", "direction", "+", "'", "'", ";", "case", "Re...
Display the java.sql.ResultSet fetch direction constant corresponding to the value supplied. @param level a valid java.sql.ResultSet fetch direction constant. @return the name of the constant, or a string indicating the constant is unknown.
[ "Display", "the", "java", ".", "sql", ".", "ResultSet", "fetch", "direction", "constant", "corresponding", "to", "the", "value", "supplied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L264-L277
111,061
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getIsolationLevelString
public static String getIsolationLevelString(int level) { switch (level) { case Connection.TRANSACTION_NONE: return "NONE (" + level + ')'; case Connection.TRANSACTION_READ_UNCOMMITTED: return "READ UNCOMMITTED (" + level + ')'; case Connec...
java
public static String getIsolationLevelString(int level) { switch (level) { case Connection.TRANSACTION_NONE: return "NONE (" + level + ')'; case Connection.TRANSACTION_READ_UNCOMMITTED: return "READ UNCOMMITTED (" + level + ')'; case Connec...
[ "public", "static", "String", "getIsolationLevelString", "(", "int", "level", ")", "{", "switch", "(", "level", ")", "{", "case", "Connection", ".", "TRANSACTION_NONE", ":", "return", "\"NONE (\"", "+", "level", "+", "'", "'", ";", "case", "Connection", ".",...
Display the java.sql.Connection isolation level constant corresponding to the value supplied. @param level a valid java.sql.Connection transaction isolation level constant. @return the name of the constant, or a string indicating the constant is unknown.
[ "Display", "the", "java", ".", "sql", ".", "Connection", "isolation", "level", "constant", "corresponding", "to", "the", "value", "supplied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L287-L310
111,062
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getNLSMessage
public static final String getNLSMessage(String key, Object... args) { return Tr.formatMessage(tc, key, args); }
java
public static final String getNLSMessage(String key, Object... args) { return Tr.formatMessage(tc, key, args); }
[ "public", "static", "final", "String", "getNLSMessage", "(", "String", "key", ",", "Object", "...", "args", ")", "{", "return", "Tr", ".", "formatMessage", "(", "tc", ",", "key", ",", "args", ")", ";", "}" ]
Retrieve the message corresponding to the supplied key from the IBMDataStoreAdapterNLS properties file. If the message cannot be found, the key is returned. @param key a valid message key from IBMDataStoreAdapterNLS.properties. @param args a list of parameters to include in the translatable message. @return a transla...
[ "Retrieve", "the", "message", "corresponding", "to", "the", "supplied", "key", "from", "the", "IBMDataStoreAdapterNLS", "properties", "file", ".", "If", "the", "message", "cannot", "be", "found", "the", "key", "is", "returned", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L333-L335
111,063
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getResultSetTypeString
public static String getResultSetTypeString(int type) { switch (type) { case ResultSet.TYPE_FORWARD_ONLY: return "TYPE FORWARD ONLY (" + type + ')'; case ResultSet.TYPE_SCROLL_INSENSITIVE: return "TYPE SCROLL INSENSITIVE (" + type + ')'; ca...
java
public static String getResultSetTypeString(int type) { switch (type) { case ResultSet.TYPE_FORWARD_ONLY: return "TYPE FORWARD ONLY (" + type + ')'; case ResultSet.TYPE_SCROLL_INSENSITIVE: return "TYPE SCROLL INSENSITIVE (" + type + ')'; ca...
[ "public", "static", "String", "getResultSetTypeString", "(", "int", "type", ")", "{", "switch", "(", "type", ")", "{", "case", "ResultSet", ".", "TYPE_FORWARD_ONLY", ":", "return", "\"TYPE FORWARD ONLY (\"", "+", "type", "+", "'", "'", ";", "case", "ResultSet"...
Display the java.sql.ResultSet result set type constant corresponding to the value supplied. @param level a valid java.sql.ResultSet result set type constant. @return the name of the constant, or a string indicating the constant is unknown.
[ "Display", "the", "java", ".", "sql", ".", "ResultSet", "result", "set", "type", "constant", "corresponding", "to", "the", "value", "supplied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L345-L367
111,064
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getSQLTypeString
public static String getSQLTypeString(int sqlType) { switch (sqlType) { case Types.ARRAY: return "ARRAY (" + sqlType + ')'; case Types.BIGINT: return "BIGINT (" + sqlType + ')'; case Types.BINARY: return "BINARY (" + sqlType...
java
public static String getSQLTypeString(int sqlType) { switch (sqlType) { case Types.ARRAY: return "ARRAY (" + sqlType + ')'; case Types.BIGINT: return "BIGINT (" + sqlType + ')'; case Types.BINARY: return "BINARY (" + sqlType...
[ "public", "static", "String", "getSQLTypeString", "(", "int", "sqlType", ")", "{", "switch", "(", "sqlType", ")", "{", "case", "Types", ".", "ARRAY", ":", "return", "\"ARRAY (\"", "+", "sqlType", "+", "'", "'", ";", "case", "Types", ".", "BIGINT", ":", ...
Display the java.sql.Types SQL Type constant corresponding to the value supplied. @param level a valid java.sql.Types SQL Type constant. @return the name of the constant, or a string indicating the constant is unknown.
[ "Display", "the", "java", ".", "sql", ".", "Types", "SQL", "Type", "constant", "corresponding", "to", "the", "value", "supplied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L376-L488
111,065
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getXAExceptionCodeString
public static String getXAExceptionCodeString(int code) { // Note, two cases are commented out below. This is because in the implementation of // XAException, they have defined two constants to be the same int (or so it would // seem). // This is because XA_RBBASE and XA_RBEND define ...
java
public static String getXAExceptionCodeString(int code) { // Note, two cases are commented out below. This is because in the implementation of // XAException, they have defined two constants to be the same int (or so it would // seem). // This is because XA_RBBASE and XA_RBEND define ...
[ "public", "static", "String", "getXAExceptionCodeString", "(", "int", "code", ")", "{", "// Note, two cases are commented out below. This is because in the implementation of", "// XAException, they have defined two constants to be the same int (or so it would", "// seem).", "// This is beca...
Used by trace facilities to print out XAException code as a string @param code a valid javax.transaction.xa.XAException error code constant. @return the name of the constant, or a string indicating the constant is unknown.
[ "Used", "by", "trace", "facilities", "to", "print", "out", "XAException", "code", "as", "a", "string" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L497-L560
111,066
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getXAResourceEndFlagString
public static String getXAResourceEndFlagString(int flag) { switch (flag) { case XAResource.TMFAIL: return "TMFAIL (" + flag + ')'; case XAResource.TMSUCCESS: return "TMSUCCESS (" + flag + ')'; case XAResource.TMSUSPEND: ret...
java
public static String getXAResourceEndFlagString(int flag) { switch (flag) { case XAResource.TMFAIL: return "TMFAIL (" + flag + ')'; case XAResource.TMSUCCESS: return "TMSUCCESS (" + flag + ')'; case XAResource.TMSUSPEND: ret...
[ "public", "static", "String", "getXAResourceEndFlagString", "(", "int", "flag", ")", "{", "switch", "(", "flag", ")", "{", "case", "XAResource", ".", "TMFAIL", ":", "return", "\"TMFAIL (\"", "+", "flag", "+", "'", "'", ";", "case", "XAResource", ".", "TMSU...
Display the javax.xa.XAResource end flag constant corresponding to the value supplied. @param level a valid javax.xa.XAResource end flag constant. @return the name of the constant, or a string indicating the constant is unknown.
[ "Display", "the", "javax", ".", "xa", ".", "XAResource", "end", "flag", "constant", "corresponding", "to", "the", "value", "supplied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L570-L583
111,067
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getXAResourceRecoverFlagString
public static String getXAResourceRecoverFlagString(int flag) { switch (flag) { case XAResource.TMENDRSCAN: return "TMENDRSCAN (" + flag + ')'; case XAResource.TMNOFLAGS: return "TMNOFLAGS (" + flag + ')'; case XAResource.TMSTARTRSCAN: ...
java
public static String getXAResourceRecoverFlagString(int flag) { switch (flag) { case XAResource.TMENDRSCAN: return "TMENDRSCAN (" + flag + ')'; case XAResource.TMNOFLAGS: return "TMNOFLAGS (" + flag + ')'; case XAResource.TMSTARTRSCAN: ...
[ "public", "static", "String", "getXAResourceRecoverFlagString", "(", "int", "flag", ")", "{", "switch", "(", "flag", ")", "{", "case", "XAResource", ".", "TMENDRSCAN", ":", "return", "\"TMENDRSCAN (\"", "+", "flag", "+", "'", "'", ";", "case", "XAResource", ...
Display the javax.xa.XAResource recover flag constant corresponding to the value supplied. @param level a valid javax.xa.XAResource recover flag constant. @return the name of the constant, or a string indicating the constant is unknown.
[ "Display", "the", "javax", ".", "xa", ".", "XAResource", "recover", "flag", "constant", "corresponding", "to", "the", "value", "supplied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L593-L610
111,068
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getXAResourceStartFlagString
public static String getXAResourceStartFlagString(int flag) { switch (flag) { case XAResource.TMJOIN: return "TMJOIN (" + flag + ')'; case XAResource.TMNOFLAGS: return "TMNOFLAGS (" + flag + ')'; case XAResource.TMRESUME: re...
java
public static String getXAResourceStartFlagString(int flag) { switch (flag) { case XAResource.TMJOIN: return "TMJOIN (" + flag + ')'; case XAResource.TMNOFLAGS: return "TMNOFLAGS (" + flag + ')'; case XAResource.TMRESUME: re...
[ "public", "static", "String", "getXAResourceStartFlagString", "(", "int", "flag", ")", "{", "switch", "(", "flag", ")", "{", "case", "XAResource", ".", "TMJOIN", ":", "return", "\"TMJOIN (\"", "+", "flag", "+", "'", "'", ";", "case", "XAResource", ".", "TM...
Display the javax.xa.XAResource start flag constant corresponding to the value supplied. @param level a valid javax.xa.XAResource start flag constant. @return the name of the constant, or a string indicating the constant is unknown.
[ "Display", "the", "javax", ".", "xa", ".", "XAResource", "start", "flag", "constant", "corresponding", "to", "the", "value", "supplied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L620-L633
111,069
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getXAResourceVoteString
public static String getXAResourceVoteString(int vote) { switch (vote) { case XAResource.XA_OK: return "XA_OK (" + vote + ')'; case XAResource.XA_RDONLY: return "XA_RDONLY (" + vote + ')'; } return "UNKNOWN XA RESOURCE VOTE (" + vote + ...
java
public static String getXAResourceVoteString(int vote) { switch (vote) { case XAResource.XA_OK: return "XA_OK (" + vote + ')'; case XAResource.XA_RDONLY: return "XA_RDONLY (" + vote + ')'; } return "UNKNOWN XA RESOURCE VOTE (" + vote + ...
[ "public", "static", "String", "getXAResourceVoteString", "(", "int", "vote", ")", "{", "switch", "(", "vote", ")", "{", "case", "XAResource", ".", "XA_OK", ":", "return", "\"XA_OK (\"", "+", "vote", "+", "'", "'", ";", "case", "XAResource", ".", "XA_RDONLY...
Display the javax.xa.XAResource Resource Manager vote constant corresponding to the value supplied. @param level a valid javax.xa.XAResource vote constant. @return the name of the constant, or a string indicating the constant is unknown.
[ "Display", "the", "javax", ".", "xa", ".", "XAResource", "Resource", "Manager", "vote", "constant", "corresponding", "to", "the", "value", "supplied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L643-L653
111,070
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.notSupportedX
public static final SQLException notSupportedX(String operation, Throwable cause) { SQLException sqlX = new SQLFeatureNotSupportedException( getNLSMessage("FEATURE_NOT_IMPLEMENTED", operation)); if (cause != null) sqlX.initCause(cause); return sqlX; }
java
public static final SQLException notSupportedX(String operation, Throwable cause) { SQLException sqlX = new SQLFeatureNotSupportedException( getNLSMessage("FEATURE_NOT_IMPLEMENTED", operation)); if (cause != null) sqlX.initCause(cause); return sqlX; }
[ "public", "static", "final", "SQLException", "notSupportedX", "(", "String", "operation", ",", "Throwable", "cause", ")", "{", "SQLException", "sqlX", "=", "new", "SQLFeatureNotSupportedException", "(", "getNLSMessage", "(", "\"FEATURE_NOT_IMPLEMENTED\"", ",", "operatio...
Creates an exception indicating the requested operation is not supported. @param operation the name of the operation that isn't supported. @param cause the error that allowed us to determine the operation is not supported, or NULL, if determined by some other mechanism. The error is chained to the exception created by...
[ "Creates", "an", "exception", "indicating", "the", "requested", "operation", "is", "not", "supported", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L697-L703
111,071
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.suppressBeginAndEndRequest
public static final void suppressBeginAndEndRequest() { if (!warnedAboutBeginAndEndRequest) { warnedAboutBeginAndEndRequest = true; StringBuilder stack = new StringBuilder(); for (StackTraceElement frame : new Exception().getStackTrace()) stack.append(EOLN).a...
java
public static final void suppressBeginAndEndRequest() { if (!warnedAboutBeginAndEndRequest) { warnedAboutBeginAndEndRequest = true; StringBuilder stack = new StringBuilder(); for (StackTraceElement frame : new Exception().getStackTrace()) stack.append(EOLN).a...
[ "public", "static", "final", "void", "suppressBeginAndEndRequest", "(", ")", "{", "if", "(", "!", "warnedAboutBeginAndEndRequest", ")", "{", "warnedAboutBeginAndEndRequest", "=", "true", ";", "StringBuilder", "stack", "=", "new", "StringBuilder", "(", ")", ";", "f...
Logs a warning message indicating that Connection.beginRequest and Connection.endRequest methods are suppressed.
[ "Logs", "a", "warning", "message", "indicating", "that", "Connection", ".", "beginRequest", "and", "Connection", ".", "endRequest", "methods", "are", "suppressed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L740-L750
111,072
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.translateSQLException
public static ResourceException translateSQLException( SQLException se, Object mapper, boolean sendEvent, ...
java
public static ResourceException translateSQLException( SQLException se, Object mapper, boolean sendEvent, ...
[ "public", "static", "ResourceException", "translateSQLException", "(", "SQLException", "se", ",", "Object", "mapper", ",", "boolean", "sendEvent", ",", "Class", "<", "?", ">", "caller", ")", "{", "return", "(", "ResourceException", ")", "mapException", "(", "new...
Translates a SQLException from the database. The exception mapping methods have been rewritten to account for the error detection model and to consolidate the RRA exception mapping routines into a single place. See the AdapterUtil.mapException method. @param SQLException se - the SQLException from the database @param ...
[ "Translates", "a", "SQLException", "from", "the", "database", ".", "The", "exception", "mapping", "methods", "have", "been", "rewritten", "to", "account", "for", "the", "error", "detection", "model", "and", "to", "consolidate", "the", "RRA", "exception", "mappin...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L768-L778
111,073
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.toSQLException
public static SQLException toSQLException(ResourceException resX) { if (tc.isEntryEnabled()) Tr.entry(tc, "toSQLException", resX); SQLException sqlX = null; for (Throwable linkedX = resX; linkedX != null; linkedX = getChainedException(linkedX)) { if (linkedX instanc...
java
public static SQLException toSQLException(ResourceException resX) { if (tc.isEntryEnabled()) Tr.entry(tc, "toSQLException", resX); SQLException sqlX = null; for (Throwable linkedX = resX; linkedX != null; linkedX = getChainedException(linkedX)) { if (linkedX instanc...
[ "public", "static", "SQLException", "toSQLException", "(", "ResourceException", "resX", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"toSQLException\"", ",", "resX", ")", ";", "SQLException", "sqlX", ...
Converts a ResourceException to a SQLException. Returns the first chained exception found to be a SQLException or ConnectionWaitTimeoutException. If none of the chained chained exceptions are SQLExceptions or ConnectionWaitTimeoutExceptions, a new SQLException is created containing information from the ResourceExceptio...
[ "Converts", "a", "ResourceException", "to", "a", "SQLException", ".", "Returns", "the", "first", "chained", "exception", "found", "to", "be", "a", "SQLException", "or", "ConnectionWaitTimeoutException", ".", "If", "none", "of", "the", "chained", "chained", "except...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L809-L849
111,074
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.toSQLException
public static SQLException toSQLException(Throwable ex) { if (ex == null) return null; if (ex instanceof SQLException) return (SQLException) ex; if (ex instanceof ResourceException) return toSQLException((ResourceException) ex); // Link the origina...
java
public static SQLException toSQLException(Throwable ex) { if (ex == null) return null; if (ex instanceof SQLException) return (SQLException) ex; if (ex instanceof ResourceException) return toSQLException((ResourceException) ex); // Link the origina...
[ "public", "static", "SQLException", "toSQLException", "(", "Throwable", "ex", ")", "{", "if", "(", "ex", "==", "null", ")", "return", "null", ";", "if", "(", "ex", "instanceof", "SQLException", ")", "return", "(", "SQLException", ")", "ex", ";", "if", "(...
Converts any generic Exception to a SQLException. @param ex the exception to convert. @return SQLException containing the original Exception class, message, and stack trace.
[ "Converts", "any", "generic", "Exception", "to", "a", "SQLException", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L858-L874
111,075
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getStackTraceWithState
public static StringBuilder getStackTraceWithState(SQLException sqle) { SQLException sqlX = sqle; boolean isLinkedThrowable = false; StringBuilder trace = new StringBuilder(EOLN); SQLException tempSqlX; do { StringWriter s = new StringWriter(); PrintWri...
java
public static StringBuilder getStackTraceWithState(SQLException sqle) { SQLException sqlX = sqle; boolean isLinkedThrowable = false; StringBuilder trace = new StringBuilder(EOLN); SQLException tempSqlX; do { StringWriter s = new StringWriter(); PrintWri...
[ "public", "static", "StringBuilder", "getStackTraceWithState", "(", "SQLException", "sqle", ")", "{", "SQLException", "sqlX", "=", "sqle", ";", "boolean", "isLinkedThrowable", "=", "false", ";", "StringBuilder", "trace", "=", "new", "StringBuilder", "(", "EOLN", "...
This method returns a StringBuffer which includes SQL state, error code and stack trace of the passed-in SQLException and all its linked exception. @return StringBuffer a StringBuffer which includes SQL state, error code and stack trace
[ "This", "method", "returns", "a", "StringBuffer", "which", "includes", "SQL", "state", "error", "code", "and", "stack", "trace", "of", "the", "passed", "-", "in", "SQLException", "and", "all", "its", "linked", "exception", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L996-L1028
111,076
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getResultSetCloseString
public static String getResultSetCloseString(int value) { switch (value) { case Statement.CLOSE_ALL_RESULTS: return "CLOSE ALL RESULTS (" + value + ')'; case Statement.CLOSE_CURRENT_RESULT: return "CLOSE CURRENT RESULT (" + value + ')'; cas...
java
public static String getResultSetCloseString(int value) { switch (value) { case Statement.CLOSE_ALL_RESULTS: return "CLOSE ALL RESULTS (" + value + ')'; case Statement.CLOSE_CURRENT_RESULT: return "CLOSE CURRENT RESULT (" + value + ')'; cas...
[ "public", "static", "String", "getResultSetCloseString", "(", "int", "value", ")", "{", "switch", "(", "value", ")", "{", "case", "Statement", ".", "CLOSE_ALL_RESULTS", ":", "return", "\"CLOSE ALL RESULTS (\"", "+", "value", "+", "'", "'", ";", "case", "Statem...
Display the java.sql.Statement ResultSet close constant corresponding to the value supplied. @param value a valid ResultSet close value @return the name of the constant, or a string indicating the constant is unknown.
[ "Display", "the", "java", ".", "sql", ".", "Statement", "ResultSet", "close", "constant", "corresponding", "to", "the", "value", "supplied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L1038-L1051
111,077
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getCursorHoldabilityString
public static String getCursorHoldabilityString(int value) { switch (value) { case ResultSet.CLOSE_CURSORS_AT_COMMIT: return "CLOSE CURSORS AT COMMIT (" + value + ')'; case ResultSet.HOLD_CURSORS_OVER_COMMIT: return "HOLD CURSORS OVER COMMIT (" + value +...
java
public static String getCursorHoldabilityString(int value) { switch (value) { case ResultSet.CLOSE_CURSORS_AT_COMMIT: return "CLOSE CURSORS AT COMMIT (" + value + ')'; case ResultSet.HOLD_CURSORS_OVER_COMMIT: return "HOLD CURSORS OVER COMMIT (" + value +...
[ "public", "static", "String", "getCursorHoldabilityString", "(", "int", "value", ")", "{", "switch", "(", "value", ")", "{", "case", "ResultSet", ".", "CLOSE_CURSORS_AT_COMMIT", ":", "return", "\"CLOSE CURSORS AT COMMIT (\"", "+", "value", "+", "'", "'", ";", "c...
Display the java.sql.ResultSet cursor holdability constant corresponding to the value supplied. @param value a valid cursor holdability value @return the name of the constant, or a string indicating the constant is unknown.
[ "Display", "the", "java", ".", "sql", ".", "ResultSet", "cursor", "holdability", "constant", "corresponding", "to", "the", "value", "supplied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L1061-L1074
111,078
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.getAutoGeneratedKeyString
public static String getAutoGeneratedKeyString(int autoGeneratedKey) { switch (autoGeneratedKey) { case Statement.NO_GENERATED_KEYS: return "NO GENERATED KEYS (" + autoGeneratedKey + ')'; case Statement.RETURN_GENERATED_KEYS: return "RETURN GENERATED KEY...
java
public static String getAutoGeneratedKeyString(int autoGeneratedKey) { switch (autoGeneratedKey) { case Statement.NO_GENERATED_KEYS: return "NO GENERATED KEYS (" + autoGeneratedKey + ')'; case Statement.RETURN_GENERATED_KEYS: return "RETURN GENERATED KEY...
[ "public", "static", "String", "getAutoGeneratedKeyString", "(", "int", "autoGeneratedKey", ")", "{", "switch", "(", "autoGeneratedKey", ")", "{", "case", "Statement", ".", "NO_GENERATED_KEYS", ":", "return", "\"NO GENERATED KEYS (\"", "+", "autoGeneratedKey", "+", "'"...
Display the auto genereated key constant corresponding to the value supplied. @param value a auto genereated key value @return the name of the constant, or a string indicating the constant is unknown.
[ "Display", "the", "auto", "genereated", "key", "constant", "corresponding", "to", "the", "value", "supplied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L1085-L1094
111,079
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.mapSQLException
public static SQLException mapSQLException(SQLException se, Object mapper) { return (SQLException) mapException(se, null, mapper, true); }
java
public static SQLException mapSQLException(SQLException se, Object mapper) { return (SQLException) mapException(se, null, mapper, true); }
[ "public", "static", "SQLException", "mapSQLException", "(", "SQLException", "se", ",", "Object", "mapper", ")", "{", "return", "(", "SQLException", ")", "mapException", "(", "se", ",", "null", ",", "mapper", ",", "true", ")", ";", "}" ]
Translates a SQLException from the database. Exception mapping code is now consolidated into AdapterUtil.mapException. @param SQLException se - the SQLException from the database @param mapper the managed connection or managed connection factory capable of mapping the exception. If this value is NULL, then exception ...
[ "Translates", "a", "SQLException", "from", "the", "database", ".", "Exception", "mapping", "code", "is", "now", "consolidated", "into", "AdapterUtil", ".", "mapException", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L1257-L1259
111,080
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java
AdapterUtil.isUnsupportedException
public static boolean isUnsupportedException(SQLException sqle){ if(sqle instanceof SQLFeatureNotSupportedException) return true; String state = sqle.getSQLState() == null ? "" : sqle.getSQLState(); int code = sqle.getErrorCode(); return state.startsWith("0A") || 0x...
java
public static boolean isUnsupportedException(SQLException sqle){ if(sqle instanceof SQLFeatureNotSupportedException) return true; String state = sqle.getSQLState() == null ? "" : sqle.getSQLState(); int code = sqle.getErrorCode(); return state.startsWith("0A") || 0x...
[ "public", "static", "boolean", "isUnsupportedException", "(", "SQLException", "sqle", ")", "{", "if", "(", "sqle", "instanceof", "SQLFeatureNotSupportedException", ")", "return", "true", ";", "String", "state", "=", "sqle", ".", "getSQLState", "(", ")", "==", "n...
Identifies if an exception indicates an unsupported operation. @param sqle the exception. @return true if unsupported, otherwise false.
[ "Identifies", "if", "an", "exception", "indicates", "an", "unsupported", "operation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/AdapterUtil.java#L1348-L1358
111,081
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/internal/RepositoryUtils.java
RepositoryUtils.setLocale
public static void setLocale(Locale locale) { if (RepositoryUtils.locale == null) { RepositoryUtils.locale = locale; } else { if (RepositoryUtils.locale != locale) { RepositoryUtils.locale = locale; messages = null; installMessages ...
java
public static void setLocale(Locale locale) { if (RepositoryUtils.locale == null) { RepositoryUtils.locale = locale; } else { if (RepositoryUtils.locale != locale) { RepositoryUtils.locale = locale; messages = null; installMessages ...
[ "public", "static", "void", "setLocale", "(", "Locale", "locale", ")", "{", "if", "(", "RepositoryUtils", ".", "locale", "==", "null", ")", "{", "RepositoryUtils", ".", "locale", "=", "locale", ";", "}", "else", "{", "if", "(", "RepositoryUtils", ".", "l...
This method sets the Locale value for the repository based on input. @param locale - object that represents a specific geographical, political, or cultural region
[ "This", "method", "sets", "the", "Locale", "value", "for", "the", "repository", "based", "on", "input", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/internal/RepositoryUtils.java#L46-L56
111,082
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/internal/RepositoryUtils.java
RepositoryUtils.getMessage
public static String getMessage(String key, Object... args) { if (messages == null) { if (locale == null) locale = Locale.getDefault(); messages = ResourceBundle.getBundle("com.ibm.ws.install.internal.resources.Repository", locale); } String message = mess...
java
public static String getMessage(String key, Object... args) { if (messages == null) { if (locale == null) locale = Locale.getDefault(); messages = ResourceBundle.getBundle("com.ibm.ws.install.internal.resources.Repository", locale); } String message = mess...
[ "public", "static", "String", "getMessage", "(", "String", "key", ",", "Object", "...", "args", ")", "{", "if", "(", "messages", "==", "null", ")", "{", "if", "(", "locale", "==", "null", ")", "locale", "=", "Locale", ".", "getDefault", "(", ")", ";"...
Get the message corresponding to the key and Repository locale. @param key @param args @return formatted message associated with key input
[ "Get", "the", "message", "corresponding", "to", "the", "key", "and", "Repository", "locale", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/internal/RepositoryUtils.java#L65-L76
111,083
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/internal/RepositoryUtils.java
RepositoryUtils.matchAppliesTo
public static boolean matchAppliesTo(String assetType, String assetName, String fileName, String appliesTo, String productId, String productVersion, String productInstallType, String productLcenseType, String productEdition) { if (appliesTo == null) return tr...
java
public static boolean matchAppliesTo(String assetType, String assetName, String fileName, String appliesTo, String productId, String productVersion, String productInstallType, String productLcenseType, String productEdition) { if (appliesTo == null) return tr...
[ "public", "static", "boolean", "matchAppliesTo", "(", "String", "assetType", ",", "String", "assetName", ",", "String", "fileName", ",", "String", "appliesTo", ",", "String", "productId", ",", "String", "productVersion", ",", "String", "productInstallType", ",", "...
Parses through the appliesTo header and checks if all parameters of the header matches the input values. @param assetType - type of asset @param assetName - name of asset @param fileName - name of file @param appliesTo - appliesTo header @param productId - id of product @param productVersion - version of product @para...
[ "Parses", "through", "the", "appliesTo", "header", "and", "checks", "if", "all", "parameters", "of", "the", "header", "matches", "the", "input", "values", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/internal/RepositoryUtils.java#L112-L154
111,084
OpenLiberty/open-liberty
dev/com.ibm.ws.rest.handler.config/src/com/ibm/ws/rest/handler/config/internal/ConfigRESTHandler.java
ConfigRESTHandler.getJSONValue
@Trivial // generates too much trace private Object getJSONValue(Object value, Set<String> processed) throws IOException { if (value instanceof String) { String s = (String) value; if (s.matches(".*_\\d+")) { // If a value ends with _<numbers> assume it's a PID and tr...
java
@Trivial // generates too much trace private Object getJSONValue(Object value, Set<String> processed) throws IOException { if (value instanceof String) { String s = (String) value; if (s.matches(".*_\\d+")) { // If a value ends with _<numbers> assume it's a PID and tr...
[ "@", "Trivial", "// generates too much trace", "private", "Object", "getJSONValue", "(", "Object", "value", ",", "Set", "<", "String", ">", "processed", ")", "throws", "IOException", "{", "if", "(", "value", "instanceof", "String", ")", "{", "String", "s", "="...
Converts the specified value to one that can be included in JSON @param value the value to convert @param processed configurations that have already been processed -- to prevent stack overflow from circular dependencies in errant config. @return a String, primitive wrapper, JSONArray, or JSONObject. @throws IOExce...
[ "Converts", "the", "specified", "value", "to", "one", "that", "can", "be", "included", "in", "JSON" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.rest.handler.config/src/com/ibm/ws/rest/handler/config/internal/ConfigRESTHandler.java#L310-L352
111,085
OpenLiberty/open-liberty
dev/com.ibm.ws.rest.handler.config/src/com/ibm/ws/rest/handler/config/internal/ConfigRESTHandler.java
ConfigRESTHandler.getUID
@Trivial private static final String getUID(String configDisplayId, String id) { return id == null || configDisplayId.matches(".*/.*\\[.*\\].*") ? configDisplayId : id; }
java
@Trivial private static final String getUID(String configDisplayId, String id) { return id == null || configDisplayId.matches(".*/.*\\[.*\\].*") ? configDisplayId : id; }
[ "@", "Trivial", "private", "static", "final", "String", "getUID", "(", "String", "configDisplayId", ",", "String", "id", ")", "{", "return", "id", "==", "null", "||", "configDisplayId", ".", "matches", "(", "\".*/.*\\\\[.*\\\\].*\"", ")", "?", "configDisplayId",...
Compute the unique identifier from the id and config.displayId. If a top level configuration element has an id, the id is the unique identifier. Otherwise, the config.displayId is the unique identifier. @param configDisplayId config.displayId of configuration element. @param id id of configuration element...
[ "Compute", "the", "unique", "identifier", "from", "the", "id", "and", "config", ".", "displayId", ".", "If", "a", "top", "level", "configuration", "element", "has", "an", "id", "the", "id", "is", "the", "unique", "identifier", ".", "Otherwise", "the", "con...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.rest.handler.config/src/com/ibm/ws/rest/handler/config/internal/ConfigRESTHandler.java#L363-L366
111,086
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/destination/JSPtoPRealization.java
JSPtoPRealization.reconstituteMQLink
private void reconstituteMQLink(int startMode) throws MessageStoreException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "reconstituteMQLink", new Object[] { Integer.valueOf(startMode), this }); int localisationCount = 0; ...
java
private void reconstituteMQLink(int startMode) throws MessageStoreException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "reconstituteMQLink", new Object[] { Integer.valueOf(startMode), this }); int localisationCount = 0; ...
[ "private", "void", "reconstituteMQLink", "(", "int", "startMode", ")", "throws", "MessageStoreException", ",", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr",...
Reconstitute the MQLink itemstream if it exists. @return Success of failure of reconstitution of the MQLink itemstream
[ "Reconstitute", "the", "MQLink", "itemstream", "if", "it", "exists", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/destination/JSPtoPRealization.java#L253-L329
111,087
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/destination/JSPtoPRealization.java
JSPtoPRealization.reconstituteLocalQueuePoint
private void reconstituteLocalQueuePoint(int startMode, boolean isSystem) throws MessageStoreException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, ...
java
private void reconstituteLocalQueuePoint(int startMode, boolean isSystem) throws MessageStoreException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, ...
[ "private", "void", "reconstituteLocalQueuePoint", "(", "int", "startMode", ",", "boolean", "isSystem", ")", "throws", "MessageStoreException", ",", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEnt...
Reconstitute the local queue point if it exists. @return Success of failure of reconstitution of the local queue point
[ "Reconstitute", "the", "local", "queue", "point", "if", "it", "exists", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/destination/JSPtoPRealization.java#L336-L435
111,088
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/destination/JSPtoPRealization.java
JSPtoPRealization.reconstituteRemoteQueuePoints
private void reconstituteRemoteQueuePoints(int startMode, boolean isSystem) throws SIDiscriminatorSyntaxException, MessageStoreException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibT...
java
private void reconstituteRemoteQueuePoints(int startMode, boolean isSystem) throws SIDiscriminatorSyntaxException, MessageStoreException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibT...
[ "private", "void", "reconstituteRemoteQueuePoints", "(", "int", "startMode", ",", "boolean", "isSystem", ")", "throws", "SIDiscriminatorSyntaxException", ",", "MessageStoreException", ",", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", ...
Reconstitute any remote queue points.
[ "Reconstitute", "any", "remote", "queue", "points", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/destination/JSPtoPRealization.java#L440-L516
111,089
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/destination/JSPtoPRealization.java
JSPtoPRealization.clearLocalisingUuidsSet
@Override public void clearLocalisingUuidsSet() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "clearLocalisingUuidsSet", this); _localisationManager.clearLocalisingUuidsSet(); _pToPLocalMsgsItemStream = null; if (TraceComponent....
java
@Override public void clearLocalisingUuidsSet() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "clearLocalisingUuidsSet", this); _localisationManager.clearLocalisingUuidsSet(); _pToPLocalMsgsItemStream = null; if (TraceComponent....
[ "@", "Override", "public", "void", "clearLocalisingUuidsSet", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"clearLocalisingUuidsSet\...
Method clearLocalisingUuidsSet. Clear the set of ME's that localise the destination
[ "Method", "clearLocalisingUuidsSet", ".", "Clear", "the", "set", "of", "ME", "s", "that", "localise", "the", "destination" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/destination/JSPtoPRealization.java#L1048-L1061
111,090
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/destination/JSPtoPRealization.java
JSPtoPRealization.runtimeEventOccurred
@Override public void runtimeEventOccurred(MPRuntimeEvent event) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "runtimeEventOccurred", new Object[] { event, this }); // A local q point, fire against the control adapter belonging to the //...
java
@Override public void runtimeEventOccurred(MPRuntimeEvent event) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "runtimeEventOccurred", new Object[] { event, this }); // A local q point, fire against the control adapter belonging to the //...
[ "@", "Override", "public", "void", "runtimeEventOccurred", "(", "MPRuntimeEvent", "event", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", ...
Method runtimeEventOccurred. @param pevent
[ "Method", "runtimeEventOccurred", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/destination/JSPtoPRealization.java#L1363-L1385
111,091
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TickRange.java
TickRange.isReallocationRequired
public boolean isReallocationRequired() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "isReallocationRequired"); SibTr.exit(tc, "isReallocationRequired", Boolean.valueOf(reallocateOnCommit)); } return reallocateOnCommit; }
java
public boolean isReallocationRequired() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "isReallocationRequired"); SibTr.exit(tc, "isReallocationRequired", Boolean.valueOf(reallocateOnCommit)); } return reallocateOnCommit; }
[ "public", "boolean", "isReallocationRequired", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"isReallocationRequi...
Is reallocation of the msg required on its postcommit callback @return boolean
[ "Is", "reallocation", "of", "the", "msg", "required", "on", "its", "postcommit", "callback" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/TickRange.java#L138-L147
111,092
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Handler.java
POP3Handler.println
public void println(final String str) throws IOException { this.writer.print(str); this.writer.print("\r\n"); this.writer.flush(); }
java
public void println(final String str) throws IOException { this.writer.print(str); this.writer.print("\r\n"); this.writer.flush(); }
[ "public", "void", "println", "(", "final", "String", "str", ")", "throws", "IOException", "{", "this", ".", "writer", ".", "print", "(", "str", ")", ";", "this", ".", "writer", ".", "print", "(", "\"\\r\\n\"", ")", ";", "this", ".", "writer", ".", "f...
Send String to socket. @param str String to send @throws IOException unable to write to socket
[ "Send", "String", "to", "socket", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Handler.java#L132-L136
111,093
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Handler.java
POP3Handler.handleCommand
public void handleCommand() throws IOException { this.currentLine = this.reader.readLine(); if (this.currentLine == null) { LOGGER.severe("Current line is null!"); this.exit(); return; } final StringTokenizer st = new StringTokenizer(this.currentLine...
java
public void handleCommand() throws IOException { this.currentLine = this.reader.readLine(); if (this.currentLine == null) { LOGGER.severe("Current line is null!"); this.exit(); return; } final StringTokenizer st = new StringTokenizer(this.currentLine...
[ "public", "void", "handleCommand", "(", ")", "throws", "IOException", "{", "this", ".", "currentLine", "=", "this", ".", "reader", ".", "readLine", "(", ")", ";", "if", "(", "this", ".", "currentLine", "==", "null", ")", "{", "LOGGER", ".", "severe", "...
Handle command. @throws IOException unable to read/write to socket
[ "Handle", "command", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Handler.java#L144-L190
111,094
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Handler.java
POP3Handler.list
public void list() throws IOException { this.writer.println("+OK"); this.writer.println("1 " + msg1.length()); this.writer.println("2 " + msg2.length()); this.println("."); }
java
public void list() throws IOException { this.writer.println("+OK"); this.writer.println("1 " + msg1.length()); this.writer.println("2 " + msg2.length()); this.println("."); }
[ "public", "void", "list", "(", ")", "throws", "IOException", "{", "this", ".", "writer", ".", "println", "(", "\"+OK\"", ")", ";", "this", ".", "writer", ".", "println", "(", "\"1 \"", "+", "msg1", ".", "length", "(", ")", ")", ";", "this", ".", "w...
LIST command. @throws IOException unable to read/write to socket
[ "LIST", "command", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Handler.java#L208-L213
111,095
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Handler.java
POP3Handler.retr
public void retr(String arg) throws IOException { String msg; if (arg.equals("1")) msg = msg1; else msg = msg2; this.println("+OK " + msg.length() + " octets"); this.writer.write(msg); this.println("."); }
java
public void retr(String arg) throws IOException { String msg; if (arg.equals("1")) msg = msg1; else msg = msg2; this.println("+OK " + msg.length() + " octets"); this.writer.write(msg); this.println("."); }
[ "public", "void", "retr", "(", "String", "arg", ")", "throws", "IOException", "{", "String", "msg", ";", "if", "(", "arg", ".", "equals", "(", "\"1\"", ")", ")", "msg", "=", "msg1", ";", "else", "msg", "=", "msg2", ";", "this", ".", "println", "(",...
RETR command. @throws IOException unable to read/write to socket
[ "RETR", "command", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Handler.java#L221-L230
111,096
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Handler.java
POP3Handler.top
public void top(String arg) throws IOException { String top; if (arg.equals("1")) top = top1; else top = top2; this.println("+OK " + top.length() + " octets"); this.writer.write(top); this.println("."); }
java
public void top(String arg) throws IOException { String top; if (arg.equals("1")) top = top1; else top = top2; this.println("+OK " + top.length() + " octets"); this.writer.write(top); this.println("."); }
[ "public", "void", "top", "(", "String", "arg", ")", "throws", "IOException", "{", "String", "top", ";", "if", "(", "arg", ".", "equals", "(", "\"1\"", ")", ")", "top", "=", "top1", ";", "else", "top", "=", "top2", ";", "this", ".", "println", "(", ...
TOP command. XXX - ignores number of lines argument @throws IOException unable to read/write to socket
[ "TOP", "command", ".", "XXX", "-", "ignores", "number", "of", "lines", "argument" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6_fat/fat/src/com/ibm/ws/javamail/fat/POP3Handler.java#L280-L289
111,097
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ParsedScheduleExpression.java
ParsedScheduleExpression.getFirstTimeout
public long getFirstTimeout() { long lastTimeout = Math.max(System.currentTimeMillis(), start); // d666295 // If we're already past the end date, then there is no timeout. if (lastTimeout > end) { return -1; } return getTimeout(lastTimeout, false); }
java
public long getFirstTimeout() { long lastTimeout = Math.max(System.currentTimeMillis(), start); // d666295 // If we're already past the end date, then there is no timeout. if (lastTimeout > end) { return -1; } return getTimeout(lastTimeout, false); }
[ "public", "long", "getFirstTimeout", "(", ")", "{", "long", "lastTimeout", "=", "Math", ".", "max", "(", "System", ".", "currentTimeMillis", "(", ")", ",", "start", ")", ";", "// d666295", "// If we're already past the end date, then there is no timeout.", "if", "("...
Determines the first timeout of the schedule expression. @return the first timeout in milliseconds, or -1 if there are no timeouts for the expression
[ "Determines", "the", "first", "timeout", "of", "the", "schedule", "expression", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ParsedScheduleExpression.java#L444-L455
111,098
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ParsedScheduleExpression.java
ParsedScheduleExpression.createCalendar
private Calendar createCalendar(long time) { // The specification accounts for gregorian dates only. Calendar cal = new GregorianCalendar(timeZone); // d639610 cal.setTimeInMillis(time); return cal; }
java
private Calendar createCalendar(long time) { // The specification accounts for gregorian dates only. Calendar cal = new GregorianCalendar(timeZone); // d639610 cal.setTimeInMillis(time); return cal; }
[ "private", "Calendar", "createCalendar", "(", "long", "time", ")", "{", "// The specification accounts for gregorian dates only.", "Calendar", "cal", "=", "new", "GregorianCalendar", "(", "timeZone", ")", ";", "// d639610", "cal", ".", "setTimeInMillis", "(", "time", ...
Creates a calendar object for the specified time using the time zone of the schedule expression. @param the time in milliseconds @return a calendar object
[ "Creates", "a", "calendar", "object", "for", "the", "specified", "time", "using", "the", "time", "zone", "of", "the", "schedule", "expression", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ParsedScheduleExpression.java#L496-L503
111,099
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ParsedScheduleExpression.java
ParsedScheduleExpression.advance
private static void advance(Calendar cal, int field, int nextField, long haystack, int needle) { long higher = higher(haystack, needle); if (higher != 0) { cal.set(field, first(higher)); } else { cal.set(field, first(haystack)); cal...
java
private static void advance(Calendar cal, int field, int nextField, long haystack, int needle) { long higher = higher(haystack, needle); if (higher != 0) { cal.set(field, first(higher)); } else { cal.set(field, first(haystack)); cal...
[ "private", "static", "void", "advance", "(", "Calendar", "cal", ",", "int", "field", ",", "int", "nextField", ",", "long", "haystack", ",", "int", "needle", ")", "{", "long", "higher", "=", "higher", "(", "haystack", ",", "needle", ")", ";", "if", "(",...
Moves the value of the specified field forward in time to satisfy constraints of the specified bitmask. If a position higher than needle is found in haystack, then that higher position is set as the value in field. Otherwise, the lowest value in haystack is set as the value in field, and the value in nextField is incre...
[ "Moves", "the", "value", "of", "the", "specified", "field", "forward", "in", "time", "to", "satisfy", "constraints", "of", "the", "specified", "bitmask", ".", "If", "a", "position", "higher", "than", "needle", "is", "found", "in", "haystack", "then", "that",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ParsedScheduleExpression.java#L892-L904