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
110,000
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoverableUnitImpl.java
RecoverableUnitImpl.payloadDeleted
protected void payloadDeleted(int totalPayloadSize, int unwrittenPayloadSize) { if (tc.isEntryEnabled()) Tr.entry(tc, "payloadDeleted", new Object[] { this, new Integer(totalPayloadSize), new Integer(unwrittenPayloadSize) }); // Track the payload decreases directly. We take no account f...
java
protected void payloadDeleted(int totalPayloadSize, int unwrittenPayloadSize) { if (tc.isEntryEnabled()) Tr.entry(tc, "payloadDeleted", new Object[] { this, new Integer(totalPayloadSize), new Integer(unwrittenPayloadSize) }); // Track the payload decreases directly. We take no account f...
[ "protected", "void", "payloadDeleted", "(", "int", "totalPayloadSize", ",", "int", "unwrittenPayloadSize", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"payloadDeleted\"", ",", "new", "Object", "[", ...
Informs the recoverable unit that data has been removed from one of its recoverable unit sections. At present this method is only invoked as a result of the SingleDataItem class removing existing payload before adding back additional payload for its replacement data data. The recoverable unit must use the supplied inf...
[ "Informs", "the", "recoverable", "unit", "that", "data", "has", "been", "removed", "from", "one", "of", "its", "recoverable", "unit", "sections", ".", "At", "present", "this", "method", "is", "only", "invoked", "as", "a", "result", "of", "the", "SingleDataIt...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoverableUnitImpl.java#L1765-L1798
110,001
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/cache/keyproviders/BasicAuthCacheKeyProvider.java
BasicAuthCacheKeyProvider.createLookupKey
public static String createLookupKey(String realm, String userid) { String key = null; if (realm != null && userid != null) { key = realm + KEY_SEPARATOR + userid; } return key; }
java
public static String createLookupKey(String realm, String userid) { String key = null; if (realm != null && userid != null) { key = realm + KEY_SEPARATOR + userid; } return key; }
[ "public", "static", "String", "createLookupKey", "(", "String", "realm", ",", "String", "userid", ")", "{", "String", "key", "=", "null", ";", "if", "(", "realm", "!=", "null", "&&", "userid", "!=", "null", ")", "{", "key", "=", "realm", "+", "KEY_SEPA...
Creates a key to be used with the AuthCacheService. The parameters must not be null, otherwise a null key is returned. @param realm @param userid @return
[ "Creates", "a", "key", "to", "be", "used", "with", "the", "AuthCacheService", ".", "The", "parameters", "must", "not", "be", "null", "otherwise", "a", "null", "key", "is", "returned", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/cache/keyproviders/BasicAuthCacheKeyProvider.java#L132-L138
110,002
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/ServerCommandListener.java
ServerCommandListener.close
public void close() { Thread responseThread = null; synchronized (this) { if (!closed) { closed = true; notifyAll(); if (listenForCommands) { listenForCommands = false; if (listeningThread != null) { ...
java
public void close() { Thread responseThread = null; synchronized (this) { if (!closed) { closed = true; notifyAll(); if (listenForCommands) { listenForCommands = false; if (listeningThread != null) { ...
[ "public", "void", "close", "(", ")", "{", "Thread", "responseThread", "=", "null", ";", "synchronized", "(", "this", ")", "{", "if", "(", "!", "closed", ")", "{", "closed", "=", "true", ";", "notifyAll", "(", ")", ";", "if", "(", "listenForCommands", ...
Finish any outstanding asynchronous responses, and close the server socket to prevent new command requests.
[ "Finish", "any", "outstanding", "asynchronous", "responses", "and", "close", "the", "server", "socket", "to", "prevent", "new", "command", "requests", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/ServerCommandListener.java#L279-L306
110,003
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/ServerCommandListener.java
ServerCommandListener.acceptAndExecuteCommand
@FFDCIgnore({ IOException.class }) private boolean acceptAndExecuteCommand() { boolean socketValid = false; try { //exceptions thrown by accept are assumed to mean the channel is no longer usable. SocketChannel sc = serverSocketChannel.accept(); socketValid = true...
java
@FFDCIgnore({ IOException.class }) private boolean acceptAndExecuteCommand() { boolean socketValid = false; try { //exceptions thrown by accept are assumed to mean the channel is no longer usable. SocketChannel sc = serverSocketChannel.accept(); socketValid = true...
[ "@", "FFDCIgnore", "(", "{", "IOException", ".", "class", "}", ")", "private", "boolean", "acceptAndExecuteCommand", "(", ")", "{", "boolean", "socketValid", "=", "false", ";", "try", "{", "//exceptions thrown by accept are assumed to mean the channel is no longer usable....
Read and execute a command from the server socket @throws IOException
[ "Read", "and", "execute", "a", "command", "from", "the", "server", "socket" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/ServerCommandListener.java#L332-L409
110,004
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/ServerCommandListener.java
ServerCommandListener.asyncResponse
private synchronized void asyncResponse(String command, SocketChannel sc) { if (closed) { Utils.tryToClose(sc); } else { Thread thread = new Thread(new ResponseThread(command, sc), "kernel-" + command + "-command-response"); // We allow a maximum of one outstanding s...
java
private synchronized void asyncResponse(String command, SocketChannel sc) { if (closed) { Utils.tryToClose(sc); } else { Thread thread = new Thread(new ResponseThread(command, sc), "kernel-" + command + "-command-response"); // We allow a maximum of one outstanding s...
[ "private", "synchronized", "void", "asyncResponse", "(", "String", "command", ",", "SocketChannel", "sc", ")", "{", "if", "(", "closed", ")", "{", "Utils", ".", "tryToClose", "(", "sc", ")", ";", "}", "else", "{", "Thread", "thread", "=", "new", "Thread"...
Creates a single thread to wait for the command to complete then respond.
[ "Creates", "a", "single", "thread", "to", "wait", "for", "the", "command", "to", "complete", "then", "respond", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/ServerCommandListener.java#L474-L488
110,005
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/ServerCommandListener.java
ServerCommandListener.writeResponse
private void writeResponse(SocketChannel sc, int rc) throws IOException { synchronized (responseLock) { write(sc, serverUUID + DELIM + rc); } }
java
private void writeResponse(SocketChannel sc, int rc) throws IOException { synchronized (responseLock) { write(sc, serverUUID + DELIM + rc); } }
[ "private", "void", "writeResponse", "(", "SocketChannel", "sc", ",", "int", "rc", ")", "throws", "IOException", "{", "synchronized", "(", "responseLock", ")", "{", "write", "(", "sc", ",", "serverUUID", "+", "DELIM", "+", "rc", ")", ";", "}", "}" ]
Write a response on a socket channel with response code.
[ "Write", "a", "response", "on", "a", "socket", "channel", "with", "response", "code", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/ServerCommandListener.java#L502-L506
110,006
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionFactoryImpl.java
JmsJcaConnectionFactoryImpl.createCoreConnection
SICoreConnection createCoreConnection(final String userName, final String password) throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "createCoreConnection", new Object[] { ...
java
SICoreConnection createCoreConnection(final String userName, final String password) throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "createCoreConnection", new Object[] { ...
[ "SICoreConnection", "createCoreConnection", "(", "final", "String", "userName", ",", "final", "String", "password", ")", "throws", "ResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(",...
Creates a core connection @param userName the username @param password the password @return the core connection @throws ResourceException if the creation fails Feature 169626.14
[ "Creates", "a", "core", "connection" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionFactoryImpl.java#L602-L692
110,007
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/GatheringConsumerDispatcher.java
GatheringConsumerDispatcher.getConsumerCount
public int getConsumerCount() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getConsumerCount"); int consumerCount; synchronized (consumerPoints) { consumerCount = consumerPoints.size(); } if (TraceComponent.isAnyTracingEnabled() && tc.isEntr...
java
public int getConsumerCount() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getConsumerCount"); int consumerCount; synchronized (consumerPoints) { consumerCount = consumerPoints.size(); } if (TraceComponent.isAnyTracingEnabled() && tc.isEntr...
[ "public", "int", "getConsumerCount", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getConsumerCount\"", ")", ";", "int", "consum...
No-op
[ "No", "-", "op" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/GatheringConsumerDispatcher.java#L525-L541
110,008
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/application/FacesServletMapping.java
FacesServletMapping.createPrefixMapping
public static FacesServletMapping createPrefixMapping(String path) { FacesServletMapping mapping = new FacesServletMapping(); mapping.setPrefix(path); return mapping; }
java
public static FacesServletMapping createPrefixMapping(String path) { FacesServletMapping mapping = new FacesServletMapping(); mapping.setPrefix(path); return mapping; }
[ "public", "static", "FacesServletMapping", "createPrefixMapping", "(", "String", "path", ")", "{", "FacesServletMapping", "mapping", "=", "new", "FacesServletMapping", "(", ")", ";", "mapping", ".", "setPrefix", "(", "path", ")", ";", "return", "mapping", ";", "...
Creates a new FacesServletMapping object using prefix mapping. @param path The path ("/faces", for example) which has been specified in the url-pattern of the FacesServlet mapping. @return a newly created FacesServletMapping
[ "Creates", "a", "new", "FacesServletMapping", "object", "using", "prefix", "mapping", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/application/FacesServletMapping.java#L47-L52
110,009
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/application/FacesServletMapping.java
FacesServletMapping.createExtensionMapping
public static FacesServletMapping createExtensionMapping( String extension) { FacesServletMapping mapping = new FacesServletMapping(); mapping.setExtension(extension); return mapping; }
java
public static FacesServletMapping createExtensionMapping( String extension) { FacesServletMapping mapping = new FacesServletMapping(); mapping.setExtension(extension); return mapping; }
[ "public", "static", "FacesServletMapping", "createExtensionMapping", "(", "String", "extension", ")", "{", "FacesServletMapping", "mapping", "=", "new", "FacesServletMapping", "(", ")", ";", "mapping", ".", "setExtension", "(", "extension", ")", ";", "return", "mapp...
Creates a new FacesServletMapping object using extension mapping. @param path The extension (".jsf", for example) which has been specified in the url-pattern of the FacesServlet mapping. @return a newly created FacesServletMapping
[ "Creates", "a", "new", "FacesServletMapping", "object", "using", "extension", "mapping", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/application/FacesServletMapping.java#L61-L67
110,010
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/websphere/security/web/WebSecurityHelper.java
WebSecurityHelper.getSSOCookieName
public static String getSSOCookieName() throws Exception { WebAppSecurityConfig config = WebSecurityHelperImpl.getWebAppSecurityConfig(); if (config != null) { return config.getSSOCookieName(); } return null; }
java
public static String getSSOCookieName() throws Exception { WebAppSecurityConfig config = WebSecurityHelperImpl.getWebAppSecurityConfig(); if (config != null) { return config.getSSOCookieName(); } return null; }
[ "public", "static", "String", "getSSOCookieName", "(", ")", "throws", "Exception", "{", "WebAppSecurityConfig", "config", "=", "WebSecurityHelperImpl", ".", "getWebAppSecurityConfig", "(", ")", ";", "if", "(", "config", "!=", "null", ")", "{", "return", "config", ...
Extracts the SSO cookie name for use on downstream web invocations. Return null when the service is not started or activated. @return a String.
[ "Extracts", "the", "SSO", "cookie", "name", "for", "use", "on", "downstream", "web", "invocations", ".", "Return", "null", "when", "the", "service", "is", "not", "started", "or", "activated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/websphere/security/web/WebSecurityHelper.java#L49-L55
110,011
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.service/src/com/ibm/ws/kernel/service/util/SecureAction.java
SecureAction.loadSystemClass
public Class<?> loadSystemClass(final String name) throws ClassNotFoundException { if (System.getSecurityManager() == null) { ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader(); return (systemClassLoader != null) ? systemClassLoader.loadClass(name) : bootClassLoader.loadC...
java
public Class<?> loadSystemClass(final String name) throws ClassNotFoundException { if (System.getSecurityManager() == null) { ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader(); return (systemClassLoader != null) ? systemClassLoader.loadClass(name) : bootClassLoader.loadC...
[ "public", "Class", "<", "?", ">", "loadSystemClass", "(", "final", "String", "name", ")", "throws", "ClassNotFoundException", "{", "if", "(", "System", ".", "getSecurityManager", "(", ")", "==", "null", ")", "{", "ClassLoader", "systemClassLoader", "=", "Class...
Returns a Class. Tries to load a class from the System ClassLoader or if that doesn't exist tries the boot ClassLoader @param name the name of the class. @return a Class @throws ClassNotFoundException
[ "Returns", "a", "Class", ".", "Tries", "to", "load", "a", "class", "from", "the", "System", "ClassLoader", "or", "if", "that", "doesn", "t", "exist", "tries", "the", "boot", "ClassLoader" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/ws/kernel/service/util/SecureAction.java#L497-L515
110,012
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.asString
public static final String asString(WsByteBuffer[] list) { byte[] data = asByteArray(list); return (null != data) ? new String(data) : null; }
java
public static final String asString(WsByteBuffer[] list) { byte[] data = asByteArray(list); return (null != data) ? new String(data) : null; }
[ "public", "static", "final", "String", "asString", "(", "WsByteBuffer", "[", "]", "list", ")", "{", "byte", "[", "]", "data", "=", "asByteArray", "(", "list", ")", ";", "return", "(", "null", "!=", "data", ")", "?", "new", "String", "(", "data", ")",...
Convert an array of buffers to a String. @param list @return String
[ "Convert", "an", "array", "of", "buffers", "to", "a", "String", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L92-L95
110,013
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.asString
public static final String asString(WsByteBuffer[] list, int[] positions, int[] limits) { byte[] data = asByteArray(list, positions, limits); return (null != data) ? new String(data) : null; }
java
public static final String asString(WsByteBuffer[] list, int[] positions, int[] limits) { byte[] data = asByteArray(list, positions, limits); return (null != data) ? new String(data) : null; }
[ "public", "static", "final", "String", "asString", "(", "WsByteBuffer", "[", "]", "list", ",", "int", "[", "]", "positions", ",", "int", "[", "]", "limits", ")", "{", "byte", "[", "]", "data", "=", "asByteArray", "(", "list", ",", "positions", ",", "...
Convert an array of buffers to a string using the input starting positions and ending limits. @param list @param positions @param limits @return String
[ "Convert", "an", "array", "of", "buffers", "to", "a", "string", "using", "the", "input", "starting", "positions", "and", "ending", "limits", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L106-L109
110,014
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.asString
public static final String asString(WsByteBuffer buff) { byte[] data = asByteArray(buff); return (null != data) ? new String(data) : null; }
java
public static final String asString(WsByteBuffer buff) { byte[] data = asByteArray(buff); return (null != data) ? new String(data) : null; }
[ "public", "static", "final", "String", "asString", "(", "WsByteBuffer", "buff", ")", "{", "byte", "[", "]", "data", "=", "asByteArray", "(", "buff", ")", ";", "return", "(", "null", "!=", "data", ")", "?", "new", "String", "(", "data", ")", ":", "nul...
Convert a buffer to a String. @param buff @return String
[ "Convert", "a", "buffer", "to", "a", "String", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L117-L120
110,015
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.asString
public static final String asString(WsByteBuffer buff, int position, int limit) { byte[] data = asByteArray(buff, position, limit); return (null != data) ? new String(data) : null; }
java
public static final String asString(WsByteBuffer buff, int position, int limit) { byte[] data = asByteArray(buff, position, limit); return (null != data) ? new String(data) : null; }
[ "public", "static", "final", "String", "asString", "(", "WsByteBuffer", "buff", ",", "int", "position", ",", "int", "limit", ")", "{", "byte", "[", "]", "data", "=", "asByteArray", "(", "buff", ",", "position", ",", "limit", ")", ";", "return", "(", "n...
Convert a buffer to a string using the input starting position and ending limit. @param buff @param position @param limit @return String
[ "Convert", "a", "buffer", "to", "a", "string", "using", "the", "input", "starting", "position", "and", "ending", "limit", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L131-L134
110,016
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.asStringBuffer
public static final StringBuffer asStringBuffer(WsByteBuffer[] list) { StringBuffer sb = new StringBuffer(); String data = asString(list); if (null != data) { sb.append(data); } return sb; }
java
public static final StringBuffer asStringBuffer(WsByteBuffer[] list) { StringBuffer sb = new StringBuffer(); String data = asString(list); if (null != data) { sb.append(data); } return sb; }
[ "public", "static", "final", "StringBuffer", "asStringBuffer", "(", "WsByteBuffer", "[", "]", "list", ")", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", ")", ";", "String", "data", "=", "asString", "(", "list", ")", ";", "if", "(", "null", ...
Convert a list of buffers to a StringBuffer. Null or empty data will result in an empty StringBuffer. @param list @return StringBuffer
[ "Convert", "a", "list", "of", "buffers", "to", "a", "StringBuffer", ".", "Null", "or", "empty", "data", "will", "result", "in", "an", "empty", "StringBuffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L191-L198
110,017
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.asInt
public static final int asInt(WsByteBuffer buff, int position, int limit) { return asInt(asByteArray(buff, position, limit)); }
java
public static final int asInt(WsByteBuffer buff, int position, int limit) { return asInt(asByteArray(buff, position, limit)); }
[ "public", "static", "final", "int", "asInt", "(", "WsByteBuffer", "buff", ",", "int", "position", ",", "int", "limit", ")", "{", "return", "asInt", "(", "asByteArray", "(", "buff", ",", "position", ",", "limit", ")", ")", ";", "}" ]
Convert a buffer to an int using the starting position and ending limit. @param buff @param position @param limit @return int
[ "Convert", "a", "buffer", "to", "an", "int", "using", "the", "starting", "position", "and", "ending", "limit", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L234-L236
110,018
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.asInt
public static final int asInt(WsByteBuffer[] list, int[] positions, int[] limits) { return asInt(asByteArray(list, positions, limits)); }
java
public static final int asInt(WsByteBuffer[] list, int[] positions, int[] limits) { return asInt(asByteArray(list, positions, limits)); }
[ "public", "static", "final", "int", "asInt", "(", "WsByteBuffer", "[", "]", "list", ",", "int", "[", "]", "positions", ",", "int", "[", "]", "limits", ")", "{", "return", "asInt", "(", "asByteArray", "(", "list", ",", "positions", ",", "limits", ")", ...
Convert a list of buffers to an int using the starting positions and ending limits. @param list @param positions @param limits @return int
[ "Convert", "a", "list", "of", "buffers", "to", "an", "int", "using", "the", "starting", "positions", "and", "ending", "limits", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L257-L259
110,019
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.asInt
public static final int asInt(byte[] data) { if (null == data) { return -1; } int start = 0; // skip leading whitespace for (; start < data.length; start++) { if (' ' != data[start] || '\t' == data[start]) { break; } } ...
java
public static final int asInt(byte[] data) { if (null == data) { return -1; } int start = 0; // skip leading whitespace for (; start < data.length; start++) { if (' ' != data[start] || '\t' == data[start]) { break; } } ...
[ "public", "static", "final", "int", "asInt", "(", "byte", "[", "]", "data", ")", "{", "if", "(", "null", "==", "data", ")", "{", "return", "-", "1", ";", "}", "int", "start", "=", "0", ";", "// skip leading whitespace", "for", "(", ";", "start", "<...
Convert a byte array to an int, trimming any whitespace. Null input will return a -1. Invalid numbers will throw a NumberFormatException. @param data @return int
[ "Convert", "a", "byte", "array", "to", "an", "int", "trimming", "any", "whitespace", ".", "Null", "input", "will", "return", "a", "-", "1", ".", "Invalid", "numbers", "will", "throw", "a", "NumberFormatException", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L268-L317
110,020
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.releaseBufferArray
public static void releaseBufferArray(WsByteBuffer[] list) { if (null == list) { return; } for (int i = 0; i < list.length; i++) { if (null != list[i]) { list[i].release(); list[i] = null; } } }
java
public static void releaseBufferArray(WsByteBuffer[] list) { if (null == list) { return; } for (int i = 0; i < list.length; i++) { if (null != list[i]) { list[i].release(); list[i] = null; } } }
[ "public", "static", "void", "releaseBufferArray", "(", "WsByteBuffer", "[", "]", "list", ")", "{", "if", "(", "null", "==", "list", ")", "{", "return", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "list", ".", "length", ";", "i", "+...
Helper function to release the buffers stored in a list. It will null out the buffer references in the list as it releases them. @param list
[ "Helper", "function", "to", "release", "the", "buffers", "stored", "in", "a", "list", ".", "It", "will", "null", "out", "the", "buffer", "references", "in", "the", "list", "as", "it", "releases", "them", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L325-L335
110,021
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.lengthOf
public static final int lengthOf(WsByteBuffer[] list) { if (null == list) { return 0; } int length = 0; for (int i = 0; i < list.length && null != list[i]; i++) { length += list[i].remaining(); } return length; }
java
public static final int lengthOf(WsByteBuffer[] list) { if (null == list) { return 0; } int length = 0; for (int i = 0; i < list.length && null != list[i]; i++) { length += list[i].remaining(); } return length; }
[ "public", "static", "final", "int", "lengthOf", "(", "WsByteBuffer", "[", "]", "list", ")", "{", "if", "(", "null", "==", "list", ")", "{", "return", "0", ";", "}", "int", "length", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<"...
Calculate the total length of actual content in the buffers in the input list. This will stop on the first null buffer or the end of the list. @param list @return int
[ "Calculate", "the", "total", "length", "of", "actual", "content", "in", "the", "buffers", "in", "the", "input", "list", ".", "This", "will", "stop", "on", "the", "first", "null", "buffer", "or", "the", "end", "of", "the", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L344-L353
110,022
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.flip
public static void flip(WsByteBuffer[] list) { if (list != null) { for (int i = 0; i < list.length; i++) { if (list[i] != null) { list[i].flip(); } } } }
java
public static void flip(WsByteBuffer[] list) { if (list != null) { for (int i = 0; i < list.length; i++) { if (list[i] != null) { list[i].flip(); } } } }
[ "public", "static", "void", "flip", "(", "WsByteBuffer", "[", "]", "list", ")", "{", "if", "(", "list", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "list", ".", "length", ";", "i", "++", ")", "{", "if", "(", "list...
Flip all non null buffers in the array. @param list
[ "Flip", "all", "non", "null", "buffers", "in", "the", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L360-L368
110,023
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.getTotalCapacity
public static final int getTotalCapacity(WsByteBuffer[] list) { if (null == list) { return 0; } int cap = 0; for (int i = 0; i < list.length; i++) { if (list[i] != null) { cap += list[i].capacity(); } } return cap; }
java
public static final int getTotalCapacity(WsByteBuffer[] list) { if (null == list) { return 0; } int cap = 0; for (int i = 0; i < list.length; i++) { if (list[i] != null) { cap += list[i].capacity(); } } return cap; }
[ "public", "static", "final", "int", "getTotalCapacity", "(", "WsByteBuffer", "[", "]", "list", ")", "{", "if", "(", "null", "==", "list", ")", "{", "return", "0", ";", "}", "int", "cap", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", ...
Find out the total capacity in an array of buffers. A null or empty list will return 0. @param list @return int
[ "Find", "out", "the", "total", "capacity", "in", "an", "array", "of", "buffers", ".", "A", "null", "or", "empty", "list", "will", "return", "0", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L377-L388
110,024
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.clearBufferArray
public static void clearBufferArray(WsByteBuffer[] list) { if (list != null) { for (int i = 0; i < list.length; ++i) { if (list[i] != null) list[i].clear(); } } }
java
public static void clearBufferArray(WsByteBuffer[] list) { if (list != null) { for (int i = 0; i < list.length; ++i) { if (list[i] != null) list[i].clear(); } } }
[ "public", "static", "void", "clearBufferArray", "(", "WsByteBuffer", "[", "]", "list", ")", "{", "if", "(", "list", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "list", ".", "length", ";", "++", "i", ")", "{", "if", ...
Clear each buffer in an array of them. @param list
[ "Clear", "each", "buffer", "in", "an", "array", "of", "them", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L395-L402
110,025
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java
WsByteBufferUtils.expandBufferArray
public static WsByteBuffer[] expandBufferArray(WsByteBuffer[] list, WsByteBuffer buffer) { if (null == buffer) return list; int len = (null != list ? list.length : 0); WsByteBuffer[] bb = new WsByteBuffer[len + 1]; if (0 < len) { System.arraycopy(list, 0, bb, 0, l...
java
public static WsByteBuffer[] expandBufferArray(WsByteBuffer[] list, WsByteBuffer buffer) { if (null == buffer) return list; int len = (null != list ? list.length : 0); WsByteBuffer[] bb = new WsByteBuffer[len + 1]; if (0 < len) { System.arraycopy(list, 0, bb, 0, l...
[ "public", "static", "WsByteBuffer", "[", "]", "expandBufferArray", "(", "WsByteBuffer", "[", "]", "list", ",", "WsByteBuffer", "buffer", ")", "{", "if", "(", "null", "==", "buffer", ")", "return", "list", ";", "int", "len", "=", "(", "null", "!=", "list"...
Expand an existing list of buffers to include one new buffer, if that buffer is null then the list is returned as-is. @param list @param buffer @return WsByteBuffer[]
[ "Expand", "an", "existing", "list", "of", "buffers", "to", "include", "one", "new", "buffer", "if", "that", "buffer", "is", "null", "then", "the", "list", "is", "returned", "as", "-", "is", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/bytebuffer/WsByteBufferUtils.java#L496-L506
110,026
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/utils/URBridgeEntity.java
URBridgeEntity.setSecurityNameProp
public void setSecurityNameProp(String securityName) { if (securityName != null) entity.getIdentifier().set(securityNameProp, securityName); }
java
public void setSecurityNameProp(String securityName) { if (securityName != null) entity.getIdentifier().set(securityNameProp, securityName); }
[ "public", "void", "setSecurityNameProp", "(", "String", "securityName", ")", "{", "if", "(", "securityName", "!=", "null", ")", "entity", ".", "getIdentifier", "(", ")", ".", "set", "(", "securityNameProp", ",", "securityName", ")", ";", "}" ]
Sets the securityNameProperty. This is useful when creating a new object and wanting to populate its attributes. Mainly because you need 1 attribute before you can retrieve others. @param securityName used to set the securityName property @Exception an error occurred in the underlying repository.
[ "Sets", "the", "securityNameProperty", ".", "This", "is", "useful", "when", "creating", "a", "new", "object", "and", "wanting", "to", "populate", "its", "attributes", ".", "Mainly", "because", "you", "need", "1", "attribute", "before", "you", "can", "retrieve"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/utils/URBridgeEntity.java#L142-L145
110,027
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/utils/URBridgeEntity.java
URBridgeEntity.getSecurityName
public String getSecurityName(boolean setAttr) throws Exception { String securityName = null; if (entity.getIdentifier().isSet(securityNameProp)) { securityName = (String) entity.getIdentifier().get(securityNameProp); } // Neither identifier is set. if (securityName ...
java
public String getSecurityName(boolean setAttr) throws Exception { String securityName = null; if (entity.getIdentifier().isSet(securityNameProp)) { securityName = (String) entity.getIdentifier().get(securityNameProp); } // Neither identifier is set. if (securityName ...
[ "public", "String", "getSecurityName", "(", "boolean", "setAttr", ")", "throws", "Exception", "{", "String", "securityName", "=", "null", ";", "if", "(", "entity", ".", "getIdentifier", "(", ")", ".", "isSet", "(", "securityNameProp", ")", ")", "{", "securit...
Returns the securityName of a user or a group. @param setAttr a boolean indicating whether to actually set the attribute in the entity or just perform a lookup. @return the user or group's securityName. @throws Exception identifier values are missing or the underlying registry threw an error.
[ "Returns", "the", "securityName", "of", "a", "user", "or", "a", "group", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/utils/URBridgeEntity.java#L161-L186
110,028
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/utils/URBridgeEntity.java
URBridgeEntity.getUniqueId
public String getUniqueId(boolean setAttr) throws Exception { String uniqueName = null; String uniqueId = null; if (entity.getIdentifier().isSet(uniqueIdProp)) { uniqueId = (String) entity.getIdentifier().get(uniqueIdProp); return uniqueId; } uniqueName = ...
java
public String getUniqueId(boolean setAttr) throws Exception { String uniqueName = null; String uniqueId = null; if (entity.getIdentifier().isSet(uniqueIdProp)) { uniqueId = (String) entity.getIdentifier().get(uniqueIdProp); return uniqueId; } uniqueName = ...
[ "public", "String", "getUniqueId", "(", "boolean", "setAttr", ")", "throws", "Exception", "{", "String", "uniqueName", "=", "null", ";", "String", "uniqueId", "=", "null", ";", "if", "(", "entity", ".", "getIdentifier", "(", ")", ".", "isSet", "(", "unique...
Returns the uniqueId of a user or a group. @param setAttr a boolean indicating whether to actually set the attribute in the entity or just perform a lookup. @return the user or group's uniqueId. @throws Exception identifier values are missing or the underlying registry threw an error.
[ "Returns", "the", "uniqueId", "of", "a", "user", "or", "a", "group", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/utils/URBridgeEntity.java#L206-L229
110,029
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/utils/URBridgeEntity.java
URBridgeEntity.getDisplayName
@SuppressWarnings("unchecked") public String getDisplayName(boolean setAttr) throws Exception { String displayName = null; String securityName = getSecurityName(false); displayName = getDisplayNameForEntity(securityName); if (!((displayName == null) || (displayName.trim().length() =...
java
@SuppressWarnings("unchecked") public String getDisplayName(boolean setAttr) throws Exception { String displayName = null; String securityName = getSecurityName(false); displayName = getDisplayNameForEntity(securityName); if (!((displayName == null) || (displayName.trim().length() =...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "String", "getDisplayName", "(", "boolean", "setAttr", ")", "throws", "Exception", "{", "String", "displayName", "=", "null", ";", "String", "securityName", "=", "getSecurityName", "(", "false", ")", ...
Returns the displayName of a user or a group. @param setAttr a boolean indicating whether to actually set the attribute in the entity or just perform a lookup. @return the user or group's displayName. @throws Exception identifier values are missing or the underlying registry threw an error.
[ "Returns", "the", "displayName", "of", "a", "user", "or", "a", "group", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/utils/URBridgeEntity.java#L240-L250
110,030
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/threadContext/ComponentMetaDataAccessorImpl.java
ComponentMetaDataAccessorImpl.beginContext
public Object beginContext(ComponentMetaData cmd) { // modified to return object d131914 if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { if (cmd != null) Tr.debug(tc, "begin context " + cmd.getJ2EEName()); else Tr.debug(tc, "NULL was pas...
java
public Object beginContext(ComponentMetaData cmd) { // modified to return object d131914 if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { if (cmd != null) Tr.debug(tc, "begin context " + cmd.getJ2EEName()); else Tr.debug(tc, "NULL was pas...
[ "public", "Object", "beginContext", "(", "ComponentMetaData", "cmd", ")", "{", "// modified to return object d131914", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "if", "(", "cmd", "!=...
Begin the context for the ComponentMetaData provided. @param ComponentMetaData It Must not be null. Tr.error will be logged if it is null. @return Previous Object, which was on the stack. It can be null.
[ "Begin", "the", "context", "for", "the", "ComponentMetaData", "provided", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/threadContext/ComponentMetaDataAccessorImpl.java#L83-L97
110,031
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/threadContext/ComponentMetaDataAccessorImpl.java
ComponentMetaDataAccessorImpl.endContext
public Object endContext() { // modified to return object d131914 if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ComponentMetaData cmd = getComponentMetaData(); Tr.debug(tc, "end context " + (cmd == null ? null : cmd.getJ2EEName())); } return threadCon...
java
public Object endContext() { // modified to return object d131914 if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ComponentMetaData cmd = getComponentMetaData(); Tr.debug(tc, "end context " + (cmd == null ? null : cmd.getJ2EEName())); } return threadCon...
[ "public", "Object", "endContext", "(", ")", "{", "// modified to return object d131914", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "ComponentMetaData", "cmd", "=", "getComponentMetaData"...
End the context for the current ComponentMetaData @return Object which was removed (pop) from the stack.
[ "End", "the", "context", "for", "the", "current", "ComponentMetaData" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/threadContext/ComponentMetaDataAccessorImpl.java#L113-L119
110,032
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/EmbeddableTransactionManagerFactory.java
EmbeddableTransactionManagerFactory.getTransactionManager
public static EmbeddableWebSphereTransactionManager getTransactionManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getTransactionManager"); if (_tranManager == null) { loadEmbeddableTranManager(tmImplFactoryKey); } if (T...
java
public static EmbeddableWebSphereTransactionManager getTransactionManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getTransactionManager"); if (_tranManager == null) { loadEmbeddableTranManager(tmImplFactoryKey); } if (T...
[ "public", "static", "EmbeddableWebSphereTransactionManager", "getTransactionManager", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getTr...
This method returns the underlying implementation of the TransactionManager. Use of this object replaces use of the old JTSXA instance and static methods.
[ "This", "method", "returns", "the", "underlying", "implementation", "of", "the", "TransactionManager", ".", "Use", "of", "this", "object", "replaces", "use", "of", "the", "old", "JTSXA", "instance", "and", "static", "methods", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/EmbeddableTransactionManagerFactory.java#L56-L67
110,033
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/EmbeddableTransactionManagerFactory.java
EmbeddableTransactionManagerFactory.getClientTransactionManager
public static ExtendedTransactionManager getClientTransactionManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getClientTransactionManager"); if (_tranManager == null) { loadEmbeddableTranManager(clientTMKey); } if (Trace...
java
public static ExtendedTransactionManager getClientTransactionManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getClientTransactionManager"); if (_tranManager == null) { loadEmbeddableTranManager(clientTMKey); } if (Trace...
[ "public", "static", "ExtendedTransactionManager", "getClientTransactionManager", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getClientT...
Must only be called in a client @return
[ "Must", "only", "be", "called", "in", "a", "client" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/EmbeddableTransactionManagerFactory.java#L127-L138
110,034
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSharedUtilsImpl.java
JmsSharedUtilsImpl.convertJSFeedbackToMQ
@Override public Integer convertJSFeedbackToMQ(Integer fb) { Integer result = null; if (SIApiConstants.REPORT_COA.equals(fb)) { result = Integer.valueOf(ApiJmsConstants.MQFB_COA); } else if (SIApiConstants.REPORT_COD.equals(fb)) { result = Integer.valueOf(Api...
java
@Override public Integer convertJSFeedbackToMQ(Integer fb) { Integer result = null; if (SIApiConstants.REPORT_COA.equals(fb)) { result = Integer.valueOf(ApiJmsConstants.MQFB_COA); } else if (SIApiConstants.REPORT_COD.equals(fb)) { result = Integer.valueOf(Api...
[ "@", "Override", "public", "Integer", "convertJSFeedbackToMQ", "(", "Integer", "fb", ")", "{", "Integer", "result", "=", "null", ";", "if", "(", "SIApiConstants", ".", "REPORT_COA", ".", "equals", "(", "fb", ")", ")", "{", "result", "=", "Integer", ".", ...
Convert from Jetstream feedback values to MQ values. @param fb A Jetstream feedback value @return The equivalent MQ value
[ "Convert", "from", "Jetstream", "feedback", "values", "to", "MQ", "values", "." ]
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/JmsSharedUtilsImpl.java#L147-L172
110,035
OpenLiberty/open-liberty
dev/com.ibm.ws.javaee.metadata.context/src/com/ibm/ws/javaee/metadata/context/internal/JEEMetadataContextImpl.java
JEEMetadataContextImpl.readObject
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { GetField fields = in.readFields(); beginDefaultContext = fields.get(BEGIN_DEFAULT, true); // Note that further processing is required in JEEMetadataContextProviderImpl.deserializeThreadContext ...
java
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { GetField fields = in.readFields(); beginDefaultContext = fields.get(BEGIN_DEFAULT, true); // Note that further processing is required in JEEMetadataContextProviderImpl.deserializeThreadContext ...
[ "private", "void", "readObject", "(", "java", ".", "io", ".", "ObjectInputStream", "in", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "GetField", "fields", "=", "in", ".", "readFields", "(", ")", ";", "beginDefaultContext", "=", "fields", ...
Reads and deserializes from the input stream. @param in The object input stream from which to deserialize. @throws IOException @throws ClassNotFoundException
[ "Reads", "and", "deserializes", "from", "the", "input", "stream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.metadata.context/src/com/ibm/ws/javaee/metadata/context/internal/JEEMetadataContextImpl.java#L160-L166
110,036
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/DeflateOutputHandler.java
DeflateOutputHandler.isIEBrowser
private boolean isIEBrowser(byte[] agent) { int end = agent.length - 4; for (int i = 0; i < end;) { // check for MSIE if ('M' == agent[i]) { if ('S' == agent[++i] && 'I' == agent[++i] && 'E' == agent[++i]) { return true; } ...
java
private boolean isIEBrowser(byte[] agent) { int end = agent.length - 4; for (int i = 0; i < end;) { // check for MSIE if ('M' == agent[i]) { if ('S' == agent[++i] && 'I' == agent[++i] && 'E' == agent[++i]) { return true; } ...
[ "private", "boolean", "isIEBrowser", "(", "byte", "[", "]", "agent", ")", "{", "int", "end", "=", "agent", ".", "length", "-", "4", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "end", ";", ")", "{", "// check for MSIE", "if", "(", "'", ...
Check the user-agent input header to see if it contains the IE browser marker. @param agent @return boolean
[ "Check", "the", "user", "-", "agent", "input", "header", "to", "see", "if", "it", "contains", "the", "IE", "browser", "marker", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/DeflateOutputHandler.java#L79-L93
110,037
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/DeflateOutputHandler.java
DeflateOutputHandler.compress
protected List<WsByteBuffer> compress(List<WsByteBuffer> list, WsByteBuffer buffer) { if (null == buffer) { return null; } int dataSize = buffer.remaining(); if (0 == dataSize) { return list; } byte[] input = null; int initOffset = 0; ...
java
protected List<WsByteBuffer> compress(List<WsByteBuffer> list, WsByteBuffer buffer) { if (null == buffer) { return null; } int dataSize = buffer.remaining(); if (0 == dataSize) { return list; } byte[] input = null; int initOffset = 0; ...
[ "protected", "List", "<", "WsByteBuffer", ">", "compress", "(", "List", "<", "WsByteBuffer", ">", "list", ",", "WsByteBuffer", "buffer", ")", "{", "if", "(", "null", "==", "buffer", ")", "{", "return", "null", ";", "}", "int", "dataSize", "=", "buffer", ...
Compress the given input buffer onto the output list. @param list @param buffer @return List<WsByteBuffer>
[ "Compress", "the", "given", "input", "buffer", "onto", "the", "output", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/DeflateOutputHandler.java#L188-L229
110,038
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointInfoImpl.java
EndPointInfoImpl.updateHost
public String updateHost(final String newHost) { validateHostName(newHost); String oldHost = this.host; this.host = newHost; if (!oldHost.equals(newHost)) { sendNotification(new AttributeChangeNotification(this, sequenceNum.incrementAndGet(), System.currentTimeMillis(), thi...
java
public String updateHost(final String newHost) { validateHostName(newHost); String oldHost = this.host; this.host = newHost; if (!oldHost.equals(newHost)) { sendNotification(new AttributeChangeNotification(this, sequenceNum.incrementAndGet(), System.currentTimeMillis(), thi...
[ "public", "String", "updateHost", "(", "final", "String", "newHost", ")", "{", "validateHostName", "(", "newHost", ")", ";", "String", "oldHost", "=", "this", ".", "host", ";", "this", ".", "host", "=", "newHost", ";", "if", "(", "!", "oldHost", ".", "...
Update the host value for this end point. Will emit an AttributeChangeNotification if the value changed. @param newHost The new (or current) host name value. If no change, no notification is sent. @return String The previous host value
[ "Update", "the", "host", "value", "for", "this", "end", "point", ".", "Will", "emit", "an", "AttributeChangeNotification", "if", "the", "value", "changed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointInfoImpl.java#L114-L126
110,039
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointInfoImpl.java
EndPointInfoImpl.updatePort
public int updatePort(final int newPort) { int oldPort = this.port; this.port = newPort; if (oldPort != newPort) { sendNotification(new AttributeChangeNotification(this, sequenceNum.incrementAndGet(), System.currentTimeMillis(), this.toString() ...
java
public int updatePort(final int newPort) { int oldPort = this.port; this.port = newPort; if (oldPort != newPort) { sendNotification(new AttributeChangeNotification(this, sequenceNum.incrementAndGet(), System.currentTimeMillis(), this.toString() ...
[ "public", "int", "updatePort", "(", "final", "int", "newPort", ")", "{", "int", "oldPort", "=", "this", ".", "port", ";", "this", ".", "port", "=", "newPort", ";", "if", "(", "oldPort", "!=", "newPort", ")", "{", "sendNotification", "(", "new", "Attrib...
Update the port value for this end point. Will emit an AttributeChangeNotification if the value changed. @param newPort The new (or current) port value. If no change, no notification is sent. @return int The previous port value
[ "Update", "the", "port", "value", "for", "this", "end", "point", ".", "Will", "emit", "an", "AttributeChangeNotification", "if", "the", "value", "changed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointInfoImpl.java#L141-L151
110,040
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/IdleConnectionPool.java
IdleConnectionPool.add
public void add(OutboundConnection outboundConnection, EndPointDescriptor descriptor) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "add", new Object[] {outboundConnection, descriptor}); if (connectionCloseTimeout == 0) { // Op...
java
public void add(OutboundConnection outboundConnection, EndPointDescriptor descriptor) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "add", new Object[] {outboundConnection, descriptor}); if (connectionCloseTimeout == 0) { // Op...
[ "public", "void", "add", "(", "OutboundConnection", "outboundConnection", ",", "EndPointDescriptor", "descriptor", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry...
Adds an outbound connection into the idle connection pool. This connection will remain in the pool until, either, it is removed via the "remove" method or remains idle long enough to be closed. @see IdleConnectionPool#remove(EndPointDescriptor) @param outboundConnection The connection to add to the pool. @param descri...
[ "Adds", "an", "outbound", "connection", "into", "the", "idle", "connection", "pool", ".", "This", "connection", "will", "remain", "in", "the", "pool", "until", "either", "it", "is", "removed", "via", "the", "remove", "method", "or", "remains", "idle", "long"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/IdleConnectionPool.java#L102-L161
110,041
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/IdleConnectionPool.java
IdleConnectionPool.remove
public synchronized OutboundConnection remove(EndPointDescriptor descriptor) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "remove", descriptor); final LinkedList connectionList = descriptorToConnectionListMap.get(descriptor); OutboundConnection connecti...
java
public synchronized OutboundConnection remove(EndPointDescriptor descriptor) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "remove", descriptor); final LinkedList connectionList = descriptorToConnectionListMap.get(descriptor); OutboundConnection connecti...
[ "public", "synchronized", "OutboundConnection", "remove", "(", "EndPointDescriptor", "descriptor", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ...
Attempts to remove a connection from the pool. If a connection is available for the specified endpoint descriptor, it is removed from the pool and returned. If no suitable connection is present, a value of null is returened. @param descriptor An endpoint descriptor which specifies the remote host to which the connecti...
[ "Attempts", "to", "remove", "a", "connection", "from", "the", "pool", ".", "If", "a", "connection", "is", "available", "for", "the", "specified", "endpoint", "descriptor", "it", "is", "removed", "from", "the", "pool", "and", "returned", ".", "If", "no", "s...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/IdleConnectionPool.java#L171-L196
110,042
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/IdleConnectionPool.java
IdleConnectionPool.alarm
public void alarm(Object alarmContext) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "alarm", alarmContext); boolean alarmValid = false; boolean presentInConnectionList = false; Object[] listEntry = null; // Take the pools monitor so that no-...
java
public void alarm(Object alarmContext) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "alarm", alarmContext); boolean alarmValid = false; boolean presentInConnectionList = false; Object[] listEntry = null; // Take the pools monitor so that no-...
[ "public", "void", "alarm", "(", "Object", "alarmContext", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"alarm\"", ",",...
AlarmListener fired when a connection may have been idle for too long. This listener is registered with the alarm manager every time a connection is added to the pool. When fired, it determines if the connection has remained idle and if so closes it. @see com.ibm.ejs.util.am.AlarmListener#alarm(java.lang.Object)
[ "AlarmListener", "fired", "when", "a", "connection", "may", "have", "been", "idle", "for", "too", "long", ".", "This", "listener", "is", "registered", "with", "the", "alarm", "manager", "every", "time", "a", "connection", "is", "added", "to", "the", "pool", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/octracker/IdleConnectionPool.java#L214-L250
110,043
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.resourcedefinition.jms.2.0/src/com/ibm/ws/jca/processor/jms/service/JMSConnectionFactoryResourceBuilder.java
JMSConnectionFactoryResourceBuilder.getDefaultProperties
private Dictionary<String, Object> getDefaultProperties(String resourceAdapter, String interfaceName) throws ConfigEvaluatorException, ResourceException { Bundle bundle = JMSResourceDefinitionHelper.getBundle(bundleContext, resourceAdapter); if (bundle != null) { MetaTypeInformation metaTy...
java
private Dictionary<String, Object> getDefaultProperties(String resourceAdapter, String interfaceName) throws ConfigEvaluatorException, ResourceException { Bundle bundle = JMSResourceDefinitionHelper.getBundle(bundleContext, resourceAdapter); if (bundle != null) { MetaTypeInformation metaTy...
[ "private", "Dictionary", "<", "String", ",", "Object", ">", "getDefaultProperties", "(", "String", "resourceAdapter", ",", "String", "interfaceName", ")", "throws", "ConfigEvaluatorException", ",", "ResourceException", "{", "Bundle", "bundle", "=", "JMSResourceDefinitio...
Get Properties only those have default value @param resourceAdapter type of the resource adapter @param interfaceName the resource type provided by the resource adapter @return properties which has default values. @throws ConfigEvaluatorException @throws ResourceException
[ "Get", "Properties", "only", "those", "have", "default", "value" ]
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/service/JMSConnectionFactoryResourceBuilder.java#L312-L335
110,044
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListSlowStr.java
FilterListSlowStr.findInList
private boolean findInList(String[] address, int index, FilterCellSlowStr cell, int endIndex) { if (cell.getWildcardCell() != null) { // a wildcard, match found return true; } // no wildcard so far, see if there is a still a path FilterCellSlowStr nextCell = cell...
java
private boolean findInList(String[] address, int index, FilterCellSlowStr cell, int endIndex) { if (cell.getWildcardCell() != null) { // a wildcard, match found return true; } // no wildcard so far, see if there is a still a path FilterCellSlowStr nextCell = cell...
[ "private", "boolean", "findInList", "(", "String", "[", "]", "address", ",", "int", "index", ",", "FilterCellSlowStr", "cell", ",", "int", "endIndex", ")", "{", "if", "(", "cell", ".", "getWildcardCell", "(", ")", "!=", "null", ")", "{", "// a wildcard, ma...
Determine, recursively, if an address is in the address tree. @param address address to look for as a string array. The 0th index of the array is the rightmost substring of the string and so on. Each substring is the chars between two periods (".") in a URL address. @param index the next index in the address array to ...
[ "Determine", "recursively", "if", "an", "address", "is", "in", "the", "address", "tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListSlowStr.java#L191-L210
110,045
OpenLiberty/open-liberty
dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/IndirectJndiLookupObjectFactory.java
IndirectJndiLookupObjectFactory.getObjectInstance
@FFDCIgnore(Exception.class) private Object getObjectInstance(Context c, Hashtable<?, ?> envmt, String className, String bindingName, ResourceInfo resourceRefInfo, IndirectReference ref) throws Exception { try { // References are supposed to always have a type, but we tolerate // ref...
java
@FFDCIgnore(Exception.class) private Object getObjectInstance(Context c, Hashtable<?, ?> envmt, String className, String bindingName, ResourceInfo resourceRefInfo, IndirectReference ref) throws Exception { try { // References are supposed to always have a type, but we tolerate // ref...
[ "@", "FFDCIgnore", "(", "Exception", ".", "class", ")", "private", "Object", "getObjectInstance", "(", "Context", "c", ",", "Hashtable", "<", "?", ",", "?", ">", "envmt", ",", "String", "className", ",", "String", "bindingName", ",", "ResourceInfo", "resourc...
Get an indirect object instance. @param c the context that originated this request, or null if the resource lookup is via injection rather than JNDI @param envmt the JNDI environment, or null if the resource lookup is via injection rather than JNDI @param className the type of the target resource, or null if the refer...
[ "Get", "an", "indirect", "object", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/IndirectJndiLookupObjectFactory.java#L117-L205
110,046
OpenLiberty/open-liberty
dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/IndirectJndiLookupObjectFactory.java
IndirectJndiLookupObjectFactory.createResource
private Object createResource(String refName, String className, String bindingName, ResourceInfo resourceRefInfo) throws Exception { String nameFilter = FilterUtils.createPropertyFilter(ResourceFactory.JNDI_NAME, bindingName); String createsFilter = className == null ? null : FilterUtils.createPropertyF...
java
private Object createResource(String refName, String className, String bindingName, ResourceInfo resourceRefInfo) throws Exception { String nameFilter = FilterUtils.createPropertyFilter(ResourceFactory.JNDI_NAME, bindingName); String createsFilter = className == null ? null : FilterUtils.createPropertyF...
[ "private", "Object", "createResource", "(", "String", "refName", ",", "String", "className", ",", "String", "bindingName", ",", "ResourceInfo", "resourceRefInfo", ")", "throws", "Exception", "{", "String", "nameFilter", "=", "FilterUtils", ".", "createPropertyFilter",...
Try to obtain an object instance by creating a resource using a ResourceFactory. @return the object instance, or null if an object could not be found
[ "Try", "to", "obtain", "an", "object", "instance", "by", "creating", "a", "resource", "using", "a", "ResourceFactory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/IndirectJndiLookupObjectFactory.java#L333-L339
110,047
OpenLiberty/open-liberty
dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/IndirectJndiLookupObjectFactory.java
IndirectJndiLookupObjectFactory.createDefaultResource
private Object createDefaultResource(String className, ResourceInfo resourceRefInfo) throws Exception { if (className != null) { String javaCompDefaultFilter = "(" + com.ibm.ws.resource.ResourceFactory.JAVA_COMP_DEFAULT_NAME + "=*)"; String createsFilter = FilterUtils.createPropertyFilte...
java
private Object createDefaultResource(String className, ResourceInfo resourceRefInfo) throws Exception { if (className != null) { String javaCompDefaultFilter = "(" + com.ibm.ws.resource.ResourceFactory.JAVA_COMP_DEFAULT_NAME + "=*)"; String createsFilter = FilterUtils.createPropertyFilte...
[ "private", "Object", "createDefaultResource", "(", "String", "className", ",", "ResourceInfo", "resourceRefInfo", ")", "throws", "Exception", "{", "if", "(", "className", "!=", "null", ")", "{", "String", "javaCompDefaultFilter", "=", "\"(\"", "+", "com", ".", "...
Try to obtain an object instance by creating a resource using a ResourceFactory for a default resource.
[ "Try", "to", "obtain", "an", "object", "instance", "by", "creating", "a", "resource", "using", "a", "ResourceFactory", "for", "a", "default", "resource", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/IndirectJndiLookupObjectFactory.java#L345-L353
110,048
OpenLiberty/open-liberty
dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/IndirectJndiLookupObjectFactory.java
IndirectJndiLookupObjectFactory.createResourceWithFilter
@FFDCIgnore(PrivilegedActionException.class) private Object createResourceWithFilter(final String filter, final ResourceInfo resourceRefInfo) throws Exception { try { return AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() { @Override public O...
java
@FFDCIgnore(PrivilegedActionException.class) private Object createResourceWithFilter(final String filter, final ResourceInfo resourceRefInfo) throws Exception { try { return AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() { @Override public O...
[ "@", "FFDCIgnore", "(", "PrivilegedActionException", ".", "class", ")", "private", "Object", "createResourceWithFilter", "(", "final", "String", "filter", ",", "final", "ResourceInfo", "resourceRefInfo", ")", "throws", "Exception", "{", "try", "{", "return", "Access...
Try to obtain an object instance by creating a resource using a ResourceFactory with the specified filter.
[ "Try", "to", "obtain", "an", "object", "instance", "by", "creating", "a", "resource", "using", "a", "ResourceFactory", "with", "the", "specified", "filter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/IndirectJndiLookupObjectFactory.java#L359-L375
110,049
OpenLiberty/open-liberty
dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/IndirectJndiLookupObjectFactory.java
IndirectJndiLookupObjectFactory.getBindingObjectInstance
private Object getBindingObjectInstance(Context c, Hashtable<?, ?> envmt, String className, ResourceInfo resourceRefInfo, Reference bindingRef, InjectionBinding<?> binding) throws Exception { Object bindingObject = binding.getBindingObject(); if (bindingObject instanceof Reference) { // Hand...
java
private Object getBindingObjectInstance(Context c, Hashtable<?, ?> envmt, String className, ResourceInfo resourceRefInfo, Reference bindingRef, InjectionBinding<?> binding) throws Exception { Object bindingObject = binding.getBindingObject(); if (bindingObject instanceof Reference) { // Hand...
[ "private", "Object", "getBindingObjectInstance", "(", "Context", "c", ",", "Hashtable", "<", "?", ",", "?", ">", "envmt", ",", "String", "className", ",", "ResourceInfo", "resourceRefInfo", ",", "Reference", "bindingRef", ",", "InjectionBinding", "<", "?", ">", ...
Try to obtain an object instance from an injection binding object. @return the object instance
[ "Try", "to", "obtain", "an", "object", "instance", "from", "an", "injection", "binding", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/IndirectJndiLookupObjectFactory.java#L460-L511
110,050
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/extension/WebExtensionProcessor.java
WebExtensionProcessor.createConfig
public IServletConfig createConfig(String servletName) throws ServletException { return (((WebApp) extensionContext).getWebExtensionProcessor().createConfig(servletName)); }
java
public IServletConfig createConfig(String servletName) throws ServletException { return (((WebApp) extensionContext).getWebExtensionProcessor().createConfig(servletName)); }
[ "public", "IServletConfig", "createConfig", "(", "String", "servletName", ")", "throws", "ServletException", "{", "return", "(", "(", "(", "WebApp", ")", "extensionContext", ")", ".", "getWebExtensionProcessor", "(", ")", ".", "createConfig", "(", "servletName", "...
A convenience method that creates a ServletConfig object. This also populates the necessary metaData which enables the Servlet associated with the returned config to correctly lookup NameSpace entries. It is highly recommended that extension processors use this method to create the config objects for the targets that t...
[ "A", "convenience", "method", "that", "creates", "a", "ServletConfig", "object", ".", "This", "also", "populates", "the", "necessary", "metaData", "which", "enables", "the", "Servlet", "associated", "with", "the", "returned", "config", "to", "correctly", "lookup",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/extension/WebExtensionProcessor.java#L68-L72
110,051
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcStatement.java
WSJdbcStatement.closeAndRemoveResultSets
final protected void closeAndRemoveResultSets(boolean closeWrapperOnly) { // Close and remove all the result sets in the childWrappers // - remove childWrappers.isEmpty() check since the precondition of this method // is that childWrappers have at least one element. for (int i = ...
java
final protected void closeAndRemoveResultSets(boolean closeWrapperOnly) { // Close and remove all the result sets in the childWrappers // - remove childWrappers.isEmpty() check since the precondition of this method // is that childWrappers have at least one element. for (int i = ...
[ "final", "protected", "void", "closeAndRemoveResultSets", "(", "boolean", "closeWrapperOnly", ")", "{", "// Close and remove all the result sets in the childWrappers", "// - remove childWrappers.isEmpty() check since the precondition of this method", "// is that childWrappers have at least o...
Close the ResultSet for this Statement, if it's still around. Close even if the execute is not a query, as stated in the java.sql.Statement API. @param closeWrapperOnly boolean flag to indicate that only wrapper-closure activities should be performed, but close of the underlying object is unnecessary. <p>When this me...
[ "Close", "the", "ResultSet", "for", "this", "Statement", "if", "it", "s", "still", "around", ".", "Close", "even", "if", "the", "execute", "is", "not", "a", "query", "as", "stated", "in", "the", "java", ".", "sql", ".", "Statement", "API", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcStatement.java#L282-L298
110,052
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcStatement.java
WSJdbcStatement.createResultSetWrapper
protected WSJdbcResultSet createResultSetWrapper(ResultSet rsetImplObject) { return rsetImplObject == null ? null : mcf.jdbcRuntime.newResultSet(rsetImplObject, this); }
java
protected WSJdbcResultSet createResultSetWrapper(ResultSet rsetImplObject) { return rsetImplObject == null ? null : mcf.jdbcRuntime.newResultSet(rsetImplObject, this); }
[ "protected", "WSJdbcResultSet", "createResultSetWrapper", "(", "ResultSet", "rsetImplObject", ")", "{", "return", "rsetImplObject", "==", "null", "?", "null", ":", "mcf", ".", "jdbcRuntime", ".", "newResultSet", "(", "rsetImplObject", ",", "this", ")", ";", "}" ]
Creates a wrapper for the supplied ResultSet object. @param rsetImplObject a ResultSet that needs a wrapper. @return the ResultSet wrapper if a valid ResultSet. Null if the ResultSet is null.
[ "Creates", "a", "wrapper", "for", "the", "supplied", "ResultSet", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcStatement.java#L346-L349
110,053
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcStatement.java
WSJdbcStatement.enforceStatementProperties
protected final void enforceStatementProperties() throws SQLException { // Synchronization not needed since this method will always be called from execute // methods which are already synchronized. // RRA does not support multithreaded access so synchronization is no // longer neede...
java
protected final void enforceStatementProperties() throws SQLException { // Synchronization not needed since this method will always be called from execute // methods which are already synchronized. // RRA does not support multithreaded access so synchronization is no // longer neede...
[ "protected", "final", "void", "enforceStatementProperties", "(", ")", "throws", "SQLException", "{", "// Synchronization not needed since this method will always be called from execute", "// methods which are already synchronized.", "// RRA does not support multithreaded access so synchronizat...
Update statement properties before executing the statement. This method syncs the query timeout to the transaction timeout when appropriate and updates the current fetchSize according to the requested fetchSize value, if needed. This method should be invoked before executing the statement. @throws SQLException if an e...
[ "Update", "statement", "properties", "before", "executing", "the", "statement", ".", "This", "method", "syncs", "the", "query", "timeout", "to", "the", "transaction", "timeout", "when", "appropriate", "and", "updates", "the", "current", "fetchSize", "according", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcStatement.java#L359-L419
110,054
OpenLiberty/open-liberty
dev/com.ibm.ws.javaee.ddmodel.wsbnd/src/com/ibm/ws/javaee/ddmodel/wsbnd/impl/ServiceRefType.java
ServiceRefType.handleAttribute
@Override public boolean handleAttribute(DDParser parser, String nsURI, String localName, int index) throws ParseException { boolean result = false; if (nsURI != null) { return result; } if (NAME_ATTRIBUTE_NAME.equals(localName)) { name = parser.parseStringA...
java
@Override public boolean handleAttribute(DDParser parser, String nsURI, String localName, int index) throws ParseException { boolean result = false; if (nsURI != null) { return result; } if (NAME_ATTRIBUTE_NAME.equals(localName)) { name = parser.parseStringA...
[ "@", "Override", "public", "boolean", "handleAttribute", "(", "DDParser", "parser", ",", "String", "nsURI", ",", "String", "localName", ",", "int", "index", ")", "throws", "ParseException", "{", "boolean", "result", "=", "false", ";", "if", "(", "nsURI", "!=...
parse the name and address attributes defined in the element.
[ "parse", "the", "name", "and", "address", "attributes", "defined", "in", "the", "element", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmodel.wsbnd/src/com/ibm/ws/javaee/ddmodel/wsbnd/impl/ServiceRefType.java#L85-L109
110,055
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/async/ServiceWrapper.java
ServiceWrapper.wrapAndRun
void wrapAndRun (Runnable runnable) { // PM90834 added method if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINEST)) { logger.entering(CLASS_NAME,"wrapAndRun",runnable); } try { this.popContextData(); if (com.ibm.ejs.ras.TraceCompon...
java
void wrapAndRun (Runnable runnable) { // PM90834 added method if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINEST)) { logger.entering(CLASS_NAME,"wrapAndRun",runnable); } try { this.popContextData(); if (com.ibm.ejs.ras.TraceCompon...
[ "void", "wrapAndRun", "(", "Runnable", "runnable", ")", "{", "// PM90834 added method", "if", "(", "com", ".", "ibm", ".", "ejs", ".", "ras", ".", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isLoggable", "(", "Level", ".", ...
Execute a runnable within some context. Other objects could call popContextData and resetContextData on their own, but this ensures that they are called in the right order. @param runnable
[ "Execute", "a", "runnable", "within", "some", "context", ".", "Other", "objects", "could", "call", "popContextData", "and", "resetContextData", "on", "their", "own", "but", "this", "ensures", "that", "they", "are", "called", "in", "the", "right", "order", "." ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/async/ServiceWrapper.java#L224-L250
110,056
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxb.tools.2.3/src/com/ibm/ws/jaxb/tools/internal/JaxbToolsUtil.java
JaxbToolsUtil.formatMessage
public static String formatMessage(String msgKey) { String msg; try { msg = JaxbToolsConstants.messages.getString(msgKey); } catch (Exception ex) { // no FFDC required return msgKey; } return msg; }
java
public static String formatMessage(String msgKey) { String msg; try { msg = JaxbToolsConstants.messages.getString(msgKey); } catch (Exception ex) { // no FFDC required return msgKey; } return msg; }
[ "public", "static", "String", "formatMessage", "(", "String", "msgKey", ")", "{", "String", "msg", ";", "try", "{", "msg", "=", "JaxbToolsConstants", ".", "messages", ".", "getString", "(", "msgKey", ")", ";", "}", "catch", "(", "Exception", "ex", ")", "...
get the localized message provided in the message files in the com.ibm.ws.jaxb.tools. @param msgKey @return
[ "get", "the", "localized", "message", "provided", "in", "the", "message", "files", "in", "the", "com", ".", "ibm", ".", "ws", ".", "jaxb", ".", "tools", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxb.tools.2.3/src/com/ibm/ws/jaxb/tools/internal/JaxbToolsUtil.java#L23-L33
110,057
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java
SibRaManagedConnection.destroy
public void destroy() throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "destroy"); } // In the event of an error the connection manager may call destroy // without calling cleanup. We need to do the cl...
java
public void destroy() throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "destroy"); } // In the event of an error the connection manager may call destroy // without calling cleanup. We need to do the cl...
[ "public", "void", "destroy", "(", ")", "throws", "ResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "TRACE", ",", ...
Destroys this managed connection. Invalidates any current connection handles and closes the core SPI connection.
[ "Destroys", "this", "managed", "connection", ".", "Invalidates", "any", "current", "connection", "handles", "and", "closes", "the", "core", "SPI", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java#L332-L399
110,058
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java
SibRaManagedConnection.cleanup
public void cleanup() throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "cleanup"); } // Invalidate any currently associated connections for (Iterator iterator = _connections.iterator(); iterator.hasNex...
java
public void cleanup() throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "cleanup"); } // Invalidate any currently associated connections for (Iterator iterator = _connections.iterator(); iterator.hasNex...
[ "public", "void", "cleanup", "(", ")", "throws", "ResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "TRACE", ",", ...
Cleans up this managed connection prior to returning it to the free pool. Invalidates any connection handles still associated with the managed connection as, in the normal case, they would all have been dissociated before cleanup was started.
[ "Cleans", "up", "this", "managed", "connection", "prior", "to", "returning", "it", "to", "the", "free", "pool", ".", "Invalidates", "any", "connection", "handles", "still", "associated", "with", "the", "managed", "connection", "as", "in", "the", "normal", "cas...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java#L407-L440
110,059
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java
SibRaManagedConnection.associateConnection
public void associateConnection(final Object connection) throws ResourceAdapterInternalException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "associateConnection", connection); } if (connection instanceof SibRaConnect...
java
public void associateConnection(final Object connection) throws ResourceAdapterInternalException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "associateConnection", connection); } if (connection instanceof SibRaConnect...
[ "public", "void", "associateConnection", "(", "final", "Object", "connection", ")", "throws", "ResourceAdapterInternalException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "Sib...
Associates an existing connection handle with this managed connection. The connection handle may still be associated with another managed connection or may be dissociated. @param connection the connection handle @throws ResourceAdapterInternalException if the connection does not belong to this resource adapter
[ "Associates", "an", "existing", "connection", "handle", "with", "this", "managed", "connection", ".", "The", "connection", "handle", "may", "still", "be", "associated", "with", "another", "managed", "connection", "or", "may", "be", "dissociated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java#L452-L491
110,060
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java
SibRaManagedConnection.addConnectionEventListener
public void addConnectionEventListener( final ConnectionEventListener listener) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "addConnectionEventListener", listener); } _eventListeners.add(listener); if (TraceC...
java
public void addConnectionEventListener( final ConnectionEventListener listener) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "addConnectionEventListener", listener); } _eventListeners.add(listener); if (TraceC...
[ "public", "void", "addConnectionEventListener", "(", "final", "ConnectionEventListener", "listener", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "("...
Adds a connection event listener. Typically the connection manager will register itself using this mechanism. @param listener the listener to add
[ "Adds", "a", "connection", "event", "listener", ".", "Typically", "the", "connection", "manager", "will", "register", "itself", "using", "this", "mechanism", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java#L500-L513
110,061
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java
SibRaManagedConnection.getMetaData
public ManagedConnectionMetaData getMetaData() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getMetaData"); } if (_metaData == null) { _metaData = new SibRaMetaData(); } if (TraceComponent.isAnyTracin...
java
public ManagedConnectionMetaData getMetaData() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getMetaData"); } if (_metaData == null) { _metaData = new SibRaMetaData(); } if (TraceComponent.isAnyTracin...
[ "public", "ManagedConnectionMetaData", "getMetaData", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "TRACE", ",", "\"getMet...
Gets the meta data for this managed connection. @return the meta data
[ "Gets", "the", "meta", "data", "for", "this", "managed", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java#L594-L610
110,062
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java
SibRaManagedConnection.dissociateConnections
public void dissociateConnections() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "dissociateConnections"); } for (Iterator iterator = _connections.iterator(); iterator.hasNext();) { final SibRaConnection connection = ...
java
public void dissociateConnections() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "dissociateConnections"); } for (Iterator iterator = _connections.iterator(); iterator.hasNext();) { final SibRaConnection connection = ...
[ "public", "void", "dissociateConnections", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "TRACE", ",", "\"dissociateConnect...
Called by the connection manager to dissociate all the current connection handles from this managed connection.
[ "Called", "by", "the", "connection", "manager", "to", "dissociate", "all", "the", "current", "connection", "handles", "from", "this", "managed", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java#L639-L659
110,063
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java
SibRaManagedConnection.getContainerTransaction
SITransaction getContainerTransaction( final ConnectionManager connectionManager) throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getContainerTransaction", connectionManager); } ...
java
SITransaction getContainerTransaction( final ConnectionManager connectionManager) throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getContainerTransaction", connectionManager); } ...
[ "SITransaction", "getContainerTransaction", "(", "final", "ConnectionManager", "connectionManager", ")", "throws", "ResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", ...
Returns the current container transaction. If we don't already have a transaction and the given connection manager supports it, perform a lazy enlist and then check again. @param connectionManager the connection manager @return the current container transaction @throws ResourceException if lazy enlistment fails
[ "Returns", "the", "current", "container", "transaction", ".", "If", "we", "don", "t", "already", "have", "a", "transaction", "and", "the", "given", "connection", "manager", "supports", "it", "perform", "a", "lazy", "enlist", "and", "then", "check", "again", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java#L716-L740
110,064
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java
SibRaManagedConnection.getCurrentTransaction
private SITransaction getCurrentTransaction() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getCurrentTransaction"); } SITransaction currentTransaction = null; // Is there a current local transaction? if (_localT...
java
private SITransaction getCurrentTransaction() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "getCurrentTransaction"); } SITransaction currentTransaction = null; // Is there a current local transaction? if (_localT...
[ "private", "SITransaction", "getCurrentTransaction", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "TRACE", ",", "\"getCurr...
Returns the current transaction associated with this managed connection. If the connection manager supports lazy enlistment then this may not represent the current transaction on the thread. @return the current transaction
[ "Returns", "the", "current", "transaction", "associated", "with", "this", "managed", "connection", ".", "If", "the", "connection", "manager", "supports", "lazy", "enlistment", "then", "this", "may", "not", "represent", "the", "current", "transaction", "on", "the",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java#L749-L780
110,065
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java
SibRaManagedConnection.localTransactionStarted
void localTransactionStarted(final SibRaConnection connection) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "localTransactionStarted", connection); } final ConnectionEvent event = new ConnectionEvent(this, Connecti...
java
void localTransactionStarted(final SibRaConnection connection) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "localTransactionStarted", connection); } final ConnectionEvent event = new ConnectionEvent(this, Connecti...
[ "void", "localTransactionStarted", "(", "final", "SibRaConnection", "connection", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", ...
Used to indicate that an application local transaction has been started. Notifies the connection event listeners. @param connection the connection on which the transaction was started
[ "Used", "to", "indicate", "that", "an", "application", "local", "transaction", "has", "been", "started", ".", "Notifies", "the", "connection", "event", "listeners", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java#L789-L810
110,066
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java
SibRaManagedConnection.localTransactionRolledBack
void localTransactionRolledBack(final SibRaConnection connection) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "localTransactionRolledBack", connection); } final ConnectionEvent event = new ConnectionEvent(this, Co...
java
void localTransactionRolledBack(final SibRaConnection connection) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "localTransactionRolledBack", connection); } final ConnectionEvent event = new ConnectionEvent(this, Co...
[ "void", "localTransactionRolledBack", "(", "final", "SibRaConnection", "connection", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",",...
Used to indicate that an application local transaction has been rolled back. Notifies the connection event listeners. @param connection the connection on which the transaction was started
[ "Used", "to", "indicate", "that", "an", "application", "local", "transaction", "has", "been", "rolled", "back", ".", "Notifies", "the", "connection", "event", "listeners", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java#L850-L872
110,067
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java
SibRaManagedConnection.connectionClosed
void connectionClosed(final SibRaConnection connection) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "connectionClosed", connection); } final ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNEC...
java
void connectionClosed(final SibRaConnection connection) { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "connectionClosed", connection); } final ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNEC...
[ "void", "connectionClosed", "(", "final", "SibRaConnection", "connection", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "TRACE"...
Used to indicate that a connection has been closed. Notifies the connection event listeners and removes the connection from the set of open connections. @param connection the connection being closed
[ "Used", "to", "indicate", "that", "a", "connection", "has", "been", "closed", ".", "Notifies", "the", "connection", "event", "listeners", "and", "removes", "the", "connection", "from", "the", "set", "of", "open", "connections", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java#L882-L906
110,068
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java
SibRaManagedConnection.connectionErrorOccurred
final void connectionErrorOccurred(final Exception exception, boolean callJCAListener) { final String methodName = "connectionErrorOccurred"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] {exception, Boolean.valueOf(c...
java
final void connectionErrorOccurred(final Exception exception, boolean callJCAListener) { final String methodName = "connectionErrorOccurred"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] {exception, Boolean.valueOf(c...
[ "final", "void", "connectionErrorOccurred", "(", "final", "Exception", "exception", ",", "boolean", "callJCAListener", ")", "{", "final", "String", "methodName", "=", "\"connectionErrorOccurred\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")"...
Notifies the connection even listeners that a connection error has occurred. @param exception the exception, if any, that is the cause of the error @param callJCAListener whether we shoud call the listeners or not
[ "Notifies", "the", "connection", "even", "listeners", "that", "a", "connection", "error", "has", "occurred", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaManagedConnection.java#L916-L959
110,069
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleConfigParser.java
ModuleConfigParser.main
public static void main(String[] args) throws Exception { ModuleConfigParser mParser = new ModuleConfigParser(); mParser.parse("/com/ibm/websphere/pmi/custom/test/PmiServletModule1.xml", true); }
java
public static void main(String[] args) throws Exception { ModuleConfigParser mParser = new ModuleConfigParser(); mParser.parse("/com/ibm/websphere/pmi/custom/test/PmiServletModule1.xml", true); }
[ "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "throws", "Exception", "{", "ModuleConfigParser", "mParser", "=", "new", "ModuleConfigParser", "(", ")", ";", "mParser", ".", "parse", "(", "\"/com/ibm/websphere/pmi/custom/test/PmiServletModu...
a test driver - it should be removed after testing
[ "a", "test", "driver", "-", "it", "should", "be", "removed", "after", "testing" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleConfigParser.java#L585-L588
110,070
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/internal/HttpServiceContainer.java
HttpServiceContainer.activate
protected void activate(ComponentContext context) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "Activating"); } processConfig(context.getProperties()); SystemLogger.setLogService(logService); }
java
protected void activate(ComponentContext context) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "Activating"); } processConfig(context.getProperties()); SystemLogger.setLogService(logService); }
[ "protected", "void", "activate", "(", "ComponentContext", "context", ")", "throws", "Exception", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "{", "Tr", ".", "event", "(", "this", ...
Activate this DS component. @param context @throws Exception
[ "Activate", "this", "DS", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/internal/HttpServiceContainer.java#L68-L76
110,071
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/internal/HttpServiceContainer.java
HttpServiceContainer.deactivate
protected void deactivate(ComponentContext context, int reason) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "Deactivating, reason=" + reason); } this.registry.removeAll(); }
java
protected void deactivate(ComponentContext context, int reason) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "Deactivating, reason=" + reason); } this.registry.removeAll(); }
[ "protected", "void", "deactivate", "(", "ComponentContext", "context", ",", "int", "reason", ")", "throws", "Exception", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "{", "Tr", ".",...
Deactivate this DS component. @param context @throws Exception
[ "Deactivate", "this", "DS", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/internal/HttpServiceContainer.java#L84-L90
110,072
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/internal/HttpServiceContainer.java
HttpServiceContainer.setVirtualHost
protected synchronized void setVirtualHost(VirtualHost virtualHost) { this.virtualHost = virtualHost; if (!activeContextRoots.isEmpty()) { for (String contextRoot : activeContextRoots) { virtualHost.addContextRoot(contextRoot, this); } } if (TraceC...
java
protected synchronized void setVirtualHost(VirtualHost virtualHost) { this.virtualHost = virtualHost; if (!activeContextRoots.isEmpty()) { for (String contextRoot : activeContextRoots) { virtualHost.addContextRoot(contextRoot, this); } } if (TraceC...
[ "protected", "synchronized", "void", "setVirtualHost", "(", "VirtualHost", "virtualHost", ")", "{", "this", ".", "virtualHost", "=", "virtualHost", ";", "if", "(", "!", "activeContextRoots", ".", "isEmpty", "(", ")", ")", "{", "for", "(", "String", "contextRoo...
Required static reference
[ "Required", "static", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/internal/HttpServiceContainer.java#L102-L112
110,073
OpenLiberty/open-liberty
dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/InfoVisitor.java
InfoVisitor.visitAnnotation
@Override public AnnotationVisitor visitAnnotation(String desc, boolean visible) { AnnotationInfoVisitor av = visitAnnotation(getInfo(), desc, visible); annotationInfos.add(av.getAnnotationInfo()); return av; }
java
@Override public AnnotationVisitor visitAnnotation(String desc, boolean visible) { AnnotationInfoVisitor av = visitAnnotation(getInfo(), desc, visible); annotationInfos.add(av.getAnnotationInfo()); return av; }
[ "@", "Override", "public", "AnnotationVisitor", "visitAnnotation", "(", "String", "desc", ",", "boolean", "visible", ")", "{", "AnnotationInfoVisitor", "av", "=", "visitAnnotation", "(", "getInfo", "(", ")", ",", "desc", ",", "visible", ")", ";", "annotationInfo...
See the class comment for details of annotation processing.
[ "See", "the", "class", "comment", "for", "details", "of", "annotation", "processing", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/InfoVisitor.java#L463-L468
110,074
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.iiop/src/com/ibm/ws/transport/iiop/yoko/helper/SocketFactoryHelper.java
SocketFactoryHelper.init
@FFDCIgnore({ UnknownEncoding.class, InvalidName.class }) @Override public void init(ORB orb, String configName) { this.orb = orb; try { this.codec = CodecFactoryHelper.narrow(orb.resolve_initial_references("CodecFactory")).create_codec(CDR_1_2_ENCODING); } catch (UnknownEnco...
java
@FFDCIgnore({ UnknownEncoding.class, InvalidName.class }) @Override public void init(ORB orb, String configName) { this.orb = orb; try { this.codec = CodecFactoryHelper.narrow(orb.resolve_initial_references("CodecFactory")).create_codec(CDR_1_2_ENCODING); } catch (UnknownEnco...
[ "@", "FFDCIgnore", "(", "{", "UnknownEncoding", ".", "class", ",", "InvalidName", ".", "class", "}", ")", "@", "Override", "public", "void", "init", "(", "ORB", "orb", ",", "String", "configName", ")", "{", "this", ".", "orb", "=", "orb", ";", "try", ...
Initialize the socket factory instance. @param orb The hosting ORB. @param configName The initialization parameter passed to the socket factor. This contains the abstract name of our configurator, which we retrieve from a registry.
[ "Initialize", "the", "socket", "factory", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.iiop/src/com/ibm/ws/transport/iiop/yoko/helper/SocketFactoryHelper.java#L170-L187
110,075
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpResponseImpl.java
HttpResponseImpl.init
public void init(HttpInboundServiceContext context) { this.isc = context; this.message = context.getResponse(); this.body = null; }
java
public void init(HttpInboundServiceContext context) { this.isc = context; this.message = context.getResponse(); this.body = null; }
[ "public", "void", "init", "(", "HttpInboundServiceContext", "context", ")", "{", "this", ".", "isc", "=", "context", ";", "this", ".", "message", "=", "context", ".", "getResponse", "(", ")", ";", "this", ".", "body", "=", "null", ";", "}" ]
Initialize with a new wrapped message. @param context
[ "Initialize", "with", "a", "new", "wrapped", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpResponseImpl.java#L58-L62
110,076
OpenLiberty/open-liberty
dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/TokenManagerImpl.java
TokenManagerImpl.getTokenServiceForType
private TokenService getTokenServiceForType(String tokenType) { TokenService service = services.getService(tokenType); if (service != null) { return service; } else { Tr.error(tc, "TOKEN_SERVICE_CONFIG_ERROR_NO_SUCH_SERVICE_TYPE", tokenType); String formattedM...
java
private TokenService getTokenServiceForType(String tokenType) { TokenService service = services.getService(tokenType); if (service != null) { return service; } else { Tr.error(tc, "TOKEN_SERVICE_CONFIG_ERROR_NO_SUCH_SERVICE_TYPE", tokenType); String formattedM...
[ "private", "TokenService", "getTokenServiceForType", "(", "String", "tokenType", ")", "{", "TokenService", "service", "=", "services", ".", "getService", "(", "tokenType", ")", ";", "if", "(", "service", "!=", "null", ")", "{", "return", "service", ";", "}", ...
Get the TokenService object which provides for the specified tokenType. @param tokenType @return TokenService which handles the specified tokenType. Will not return {@code null}. @throws IllegalArgumentException if there is no available service for the specified tokenType
[ "Get", "the", "TokenService", "object", "which", "provides", "for", "the", "specified", "tokenType", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/TokenManagerImpl.java#L164-L178
110,077
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/BufferDump.java
BufferDump.formatLineId
static private StringBuilder formatLineId(StringBuilder buffer, int value) { char[] chars = new char[4]; for (int i = 3; i >= 0; i--) { chars[i] = (char) HEX_BYTES[(value % 16) & 0xF]; value >>= 4; } return buffer.append(chars); }
java
static private StringBuilder formatLineId(StringBuilder buffer, int value) { char[] chars = new char[4]; for (int i = 3; i >= 0; i--) { chars[i] = (char) HEX_BYTES[(value % 16) & 0xF]; value >>= 4; } return buffer.append(chars); }
[ "static", "private", "StringBuilder", "formatLineId", "(", "StringBuilder", "buffer", ",", "int", "value", ")", "{", "char", "[", "]", "chars", "=", "new", "char", "[", "4", "]", ";", "for", "(", "int", "i", "=", "3", ";", "i", ">=", "0", ";", "i",...
Format the input value as a four digit hex number, padding with zeros. @param buffer @param value @return StringBuilder
[ "Format", "the", "input", "value", "as", "a", "four", "digit", "hex", "number", "padding", "with", "zeros", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/BufferDump.java#L94-L101
110,078
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/impl/JFapChannelOutbound.java
JFapChannelOutbound.update
public void update(ChannelData cc) // F177053 { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "update", cc); // F177053 // TODO: decide what to do if we are notified our configuration has changed. if (tc.isEntryEnabled()) SibTr.exit(this, tc, "update"); // F177053 this.chfwConfig=cc; }
java
public void update(ChannelData cc) // F177053 { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "update", cc); // F177053 // TODO: decide what to do if we are notified our configuration has changed. if (tc.isEntryEnabled()) SibTr.exit(this, tc, "update"); // F177053 this.chfwConfig=cc; }
[ "public", "void", "update", "(", "ChannelData", "cc", ")", "// F177053", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"update\"", ",", "cc", ")", ";", "// F177053", "// TODO: decide wha...
Notification that the channel configuration has been updated.
[ "Notification", "that", "the", "channel", "configuration", "has", "been", "updated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/impl/JFapChannelOutbound.java#L75-L81
110,079
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/BufferedServletOutputStream.java
BufferedServletOutputStream.write
public void write(int b) throws IOException { //PK89810, If WCCustomProperties.FINISH_RESPONSE_ON_CLOSE is set and stream is already obtained and closed. // User will not be allowed to write more data if the above case is met, outputstreamClosed will be true and default is false. if (!(WCCustomProperties.FINISH...
java
public void write(int b) throws IOException { //PK89810, If WCCustomProperties.FINISH_RESPONSE_ON_CLOSE is set and stream is already obtained and closed. // User will not be allowed to write more data if the above case is met, outputstreamClosed will be true and default is false. if (!(WCCustomProperties.FINISH...
[ "public", "void", "write", "(", "int", "b", ")", "throws", "IOException", "{", "//PK89810, If WCCustomProperties.FINISH_RESPONSE_ON_CLOSE is set and stream is already obtained and closed. ", "// User will not be allowed to write more data if the above case is met, outputstreamClosed will be tr...
Writes a byte. This method will block until the byte is actually written. @param b the byte @exception IOException if an I/O error has occurred
[ "Writes", "a", "byte", ".", "This", "method", "will", "block", "until", "the", "byte", "is", "actually", "written", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/BufferedServletOutputStream.java#L257-L300
110,080
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/BufferedServletOutputStream.java
BufferedServletOutputStream.write
public void write(byte[] b, int off, int len) throws IOException { //PK89810, If WCCustomProperties.FINISH_RESPONSE_ON_CLOSE is set and stream is already obtained and closed. // User will not be allowed to write more data if the above case is met, outputstreamClosed will be true and default is false. if (!(WCCu...
java
public void write(byte[] b, int off, int len) throws IOException { //PK89810, If WCCustomProperties.FINISH_RESPONSE_ON_CLOSE is set and stream is already obtained and closed. // User will not be allowed to write more data if the above case is met, outputstreamClosed will be true and default is false. if (!(WCCu...
[ "public", "void", "write", "(", "byte", "[", "]", "b", ",", "int", "off", ",", "int", "len", ")", "throws", "IOException", "{", "//PK89810, If WCCustomProperties.FINISH_RESPONSE_ON_CLOSE is set and stream is already obtained and closed. ", "// User will not be allowed to write ...
Writes an array of bytes. This method will block until all the bytes are actually written. @param b the data to be written @param off the start offset of the data @param len the number of bytes to write @exception IOException if an I/O error has occurred
[ "Writes", "an", "array", "of", "bytes", ".", "This", "method", "will", "block", "until", "all", "the", "bytes", "are", "actually", "written", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/BufferedServletOutputStream.java#L309-L370
110,081
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/BufferedServletOutputStream.java
BufferedServletOutputStream.flushBytes
private void flushBytes() throws IOException { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.logp(Level.FINE, CLASS_NAME,"flushBytes", "flushBytes"); } if (!committed) { if (!_hasFlushed && obs != null) { _hasFlushed = true; ...
java
private void flushBytes() throws IOException { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.logp(Level.FINE, CLASS_NAME,"flushBytes", "flushBytes"); } if (!committed) { if (!_hasFlushed && obs != null) { _hasFlushed = true; ...
[ "private", "void", "flushBytes", "(", ")", "throws", "IOException", "{", "if", "(", "com", ".", "ibm", ".", "ejs", ".", "ras", ".", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isLoggable", "(", "Level", ".", "FINE", ")",...
Flushes the output stream bytes.
[ "Flushes", "the", "output", "stream", "bytes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/BufferedServletOutputStream.java#L384-L428
110,082
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionFactory.java
ExtendedJTATransactionFactory.getObjectInstance
@Override public Object getObjectInstance(Object refObj, Name name, Context nameCtx, Hashtable env) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "getObjectInstance", "" + name); } ExtendedJTATransaction extJTATran = null; ...
java
@Override public Object getObjectInstance(Object refObj, Name name, Context nameCtx, Hashtable env) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "getObjectInstance", "" + name); } ExtendedJTATransaction extJTATran = null; ...
[ "@", "Override", "public", "Object", "getObjectInstance", "(", "Object", "refObj", ",", "Name", "name", ",", "Context", "nameCtx", ",", "Hashtable", "env", ")", "throws", "Exception", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&"...
Return the ExtendedJTATransaction object.
[ "Return", "the", "ExtendedJTATransaction", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionFactory.java#L53-L72
110,083
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionFactory.java
ExtendedJTATransactionFactory.getExtendedJTATransaction
public static ExtendedJTATransaction getExtendedJTATransaction() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "getExtendedJTATransaction", instance); } return instance; }
java
public static ExtendedJTATransaction getExtendedJTATransaction() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "getExtendedJTATransaction", instance); } return instance; }
[ "public", "static", "ExtendedJTATransaction", "getExtendedJTATransaction", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"getExtend...
Get the singleton instance of ExtendedJTATransaction
[ "Get", "the", "singleton", "instance", "of", "ExtendedJTATransaction" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionFactory.java#L105-L110
110,084
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IntArray.java
IntArray.add
public void add(int anInt) { if (tc.isEntryEnabled()) SibTr.entry(tc, "add"); if (tc.isDebugEnabled()) SibTr.debug(tc, "Params: int", anInt); // Have we filled up the current array? if (currentCursor == arraySize) { // Stash it in the Vector ...
java
public void add(int anInt) { if (tc.isEntryEnabled()) SibTr.entry(tc, "add"); if (tc.isDebugEnabled()) SibTr.debug(tc, "Params: int", anInt); // Have we filled up the current array? if (currentCursor == arraySize) { // Stash it in the Vector ...
[ "public", "void", "add", "(", "int", "anInt", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"add\"", ")", ";", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "SibTr", ".", "debug...
Adds an int to the array. @param anInt
[ "Adds", "an", "int", "to", "the", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IntArray.java#L95-L125
110,085
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IntArray.java
IntArray.get
public int get(int index) throws NoSuchElementException { if (tc.isEntryEnabled()) SibTr.entry(tc, "get"); int retValue = 0; // We need to work out which array this item will be in int arrayNumber = index / arraySize; // Bounds check if ((index + 1) > eleme...
java
public int get(int index) throws NoSuchElementException { if (tc.isEntryEnabled()) SibTr.entry(tc, "get"); int retValue = 0; // We need to work out which array this item will be in int arrayNumber = index / arraySize; // Bounds check if ((index + 1) > eleme...
[ "public", "int", "get", "(", "int", "index", ")", "throws", "NoSuchElementException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"get\"", ")", ";", "int", "retValue", "=", "0", ";", "// We need ...
Gets an int from the array. @param index @return Returns the int @throws NoSuchElementException if the element does not exist
[ "Gets", "an", "int", "from", "the", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IntArray.java#L135-L167
110,086
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IntArray.java
IntArray.length
public int length() { if (tc.isEntryEnabled()) SibTr.entry(tc, "length"); if (tc.isDebugEnabled()) SibTr.debug(tc, "rc=", elements); if (tc.isEntryEnabled()) SibTr.exit(tc, "length"); return elements; }
java
public int length() { if (tc.isEntryEnabled()) SibTr.entry(tc, "length"); if (tc.isDebugEnabled()) SibTr.debug(tc, "rc=", elements); if (tc.isEntryEnabled()) SibTr.exit(tc, "length"); return elements; }
[ "public", "int", "length", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"length\"", ")", ";", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "SibTr", ".", "debug", "(", "tc...
Returns the number of elements in the array @return int
[ "Returns", "the", "number", "of", "elements", "in", "the", "array" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IntArray.java#L174-L183
110,087
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointImpl.java
CFEndPointImpl.determineChannelAccessor
private void determineChannelAccessor() throws ChannelFrameworkException, ChannelFactoryException { // Extract the factory class from the application side channel definition. OutboundChannelDefinition first = this.outboundChannelDefs.getFirst(); Class<?> factoryClass = first.getOutboundFactory()...
java
private void determineChannelAccessor() throws ChannelFrameworkException, ChannelFactoryException { // Extract the factory class from the application side channel definition. OutboundChannelDefinition first = this.outboundChannelDefs.getFirst(); Class<?> factoryClass = first.getOutboundFactory()...
[ "private", "void", "determineChannelAccessor", "(", ")", "throws", "ChannelFrameworkException", ",", "ChannelFactoryException", "{", "// Extract the factory class from the application side channel definition.", "OutboundChannelDefinition", "first", "=", "this", ".", "outboundChannelD...
Identify the channel accessor class based on the application side outbound channel definition array. @throws ChannelFrameworkException @throws ChannelFactoryException
[ "Identify", "the", "channel", "accessor", "class", "based", "on", "the", "application", "side", "outbound", "channel", "definition", "array", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointImpl.java#L181-L195
110,088
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointImpl.java
CFEndPointImpl.determineIsSSLEnabled
private void determineIsSSLEnabled() { // Loop through each channel in the outbound chain represented by this // endpoint int i = 0; for (OutboundChannelDefinition def : this.outboundChannelDefs) { // Look for the SSL channel factory. if (SSLChannelFactory.class.i...
java
private void determineIsSSLEnabled() { // Loop through each channel in the outbound chain represented by this // endpoint int i = 0; for (OutboundChannelDefinition def : this.outboundChannelDefs) { // Look for the SSL channel factory. if (SSLChannelFactory.class.i...
[ "private", "void", "determineIsSSLEnabled", "(", ")", "{", "// Loop through each channel in the outbound chain represented by this", "// endpoint", "int", "i", "=", "0", ";", "for", "(", "OutboundChannelDefinition", "def", ":", "this", ".", "outboundChannelDefs", ")", "{"...
Identify if one of the outbound channel definitions has a factory that implements the SSLChannelFactory.
[ "Identify", "if", "one", "of", "the", "outbound", "channel", "definitions", "has", "a", "factory", "that", "implements", "the", "SSLChannelFactory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointImpl.java#L202-L218
110,089
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointImpl.java
CFEndPointImpl.determineIsLocal
private void determineIsLocal() { // Loop through each channel in the outbound chain represented by this // endpoint int i = 0; for (OutboundChannelDefinition def : this.outboundChannelDefs) { if (LocalChannelFactory.class.isAssignableFrom(def.getOutboundFactory())) { ...
java
private void determineIsLocal() { // Loop through each channel in the outbound chain represented by this // endpoint int i = 0; for (OutboundChannelDefinition def : this.outboundChannelDefs) { if (LocalChannelFactory.class.isAssignableFrom(def.getOutboundFactory())) { ...
[ "private", "void", "determineIsLocal", "(", ")", "{", "// Loop through each channel in the outbound chain represented by this", "// endpoint", "int", "i", "=", "0", ";", "for", "(", "OutboundChannelDefinition", "def", ":", "this", ".", "outboundChannelDefs", ")", "{", "...
Identify if one of the outbound channel definitions has a factory that implements the LocalChannelFactory.
[ "Identify", "if", "one", "of", "the", "outbound", "channel", "definitions", "has", "a", "factory", "that", "implements", "the", "LocalChannelFactory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointImpl.java#L225-L240
110,090
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointImpl.java
CFEndPointImpl.assignAddress
private void assignAddress(String addressString) throws ChannelFrameworkException, UnknownHostException { if (addressString == null) { // No address found in properties. No CFEndPoint can be created. throw new ChannelFrameworkException("No address available in properties."); } ...
java
private void assignAddress(String addressString) throws ChannelFrameworkException, UnknownHostException { if (addressString == null) { // No address found in properties. No CFEndPoint can be created. throw new ChannelFrameworkException("No address available in properties."); } ...
[ "private", "void", "assignAddress", "(", "String", "addressString", ")", "throws", "ChannelFrameworkException", ",", "UnknownHostException", "{", "if", "(", "addressString", "==", "null", ")", "{", "// No address found in properties. No CFEndPoint can be created.", "throw", ...
Assign the value of address based on the String parameter. @param addressString @throws ChannelFrameworkException @throws UnknownHostException
[ "Assign", "the", "value", "of", "address", "based", "on", "the", "String", "parameter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/CFEndPointImpl.java#L249-L260
110,091
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/application/viewstate/CounterKeyFactory.java
CounterKeyFactory.generateKey
@Override public Integer generateKey(FacesContext facesContext) { ExternalContext externalContext = facesContext.getExternalContext(); Object sessionObj = externalContext.getSession(true); Integer sequence = null; // synchronized to increase sequence if multiple requests ...
java
@Override public Integer generateKey(FacesContext facesContext) { ExternalContext externalContext = facesContext.getExternalContext(); Object sessionObj = externalContext.getSession(true); Integer sequence = null; // synchronized to increase sequence if multiple requests ...
[ "@", "Override", "public", "Integer", "generateKey", "(", "FacesContext", "facesContext", ")", "{", "ExternalContext", "externalContext", "=", "facesContext", ".", "getExternalContext", "(", ")", ";", "Object", "sessionObj", "=", "externalContext", ".", "getSession", ...
Take the counter from session scope and increment @param facesContext @return
[ "Take", "the", "counter", "from", "session", "scope", "and", "increment" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/application/viewstate/CounterKeyFactory.java#L38-L61
110,092
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/StatefulSessionActivationStrategy.java
StatefulSessionActivationStrategy.cacheInsert
private void cacheInsert(MasterKey key, StatefulBeanO sfbean) { CacheElement cacheElement = cache.insert(key, sfbean); sfbean.ivCacheElement = cacheElement; sfbean.ivCacheKey = key; if (!sfbean.getHome().getBeanMetaData().isPassivationCapable()) { cache.markElementEvictionIn...
java
private void cacheInsert(MasterKey key, StatefulBeanO sfbean) { CacheElement cacheElement = cache.insert(key, sfbean); sfbean.ivCacheElement = cacheElement; sfbean.ivCacheKey = key; if (!sfbean.getHome().getBeanMetaData().isPassivationCapable()) { cache.markElementEvictionIn...
[ "private", "void", "cacheInsert", "(", "MasterKey", "key", ",", "StatefulBeanO", "sfbean", ")", "{", "CacheElement", "cacheElement", "=", "cache", ".", "insert", "(", "key", ",", "sfbean", ")", ";", "sfbean", ".", "ivCacheElement", "=", "cacheElement", ";", ...
Insert a stateful bean with the specified key into the cache. The caller must be holding the lock associated with the key.
[ "Insert", "a", "stateful", "bean", "with", "the", "specified", "key", "into", "the", "cache", ".", "The", "caller", "must", "be", "holding", "the", "lock", "associated", "with", "the", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/StatefulSessionActivationStrategy.java#L93-L101
110,093
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/StatefulSessionActivationStrategy.java
StatefulSessionActivationStrategy.atPassivate
@Override public void atPassivate(BeanId beanId) throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "atPassivate " + beanId); BeanO bean = null; MasterKey key = new MasterKey(bea...
java
@Override public void atPassivate(BeanId beanId) throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "atPassivate " + beanId); BeanO bean = null; MasterKey key = new MasterKey(bea...
[ "@", "Override", "public", "void", "atPassivate", "(", "BeanId", "beanId", ")", "throws", "RemoteException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEnt...
This method will be invoked when the server invokes one of passivate or passivateAll on the ManagedContainer interface. On z/OS, this method will be invoked when the server invokes one of passivateAll on the ManagedContainer interface or during normal server stop, starting at EJSContainer.stopBean->Activator.uninstall...
[ "This", "method", "will", "be", "invoked", "when", "the", "server", "invokes", "one", "of", "passivate", "or", "passivateAll", "on", "the", "ManagedContainer", "interface", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/StatefulSessionActivationStrategy.java#L849-L885
110,094
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/DelegatingBatchArtifactFactoryImpl.java
DelegatingBatchArtifactFactoryImpl.setCDIBatchArtifactFactory
@Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY) protected void setCDIBatchArtifactFactory(CDIBatchArtifactFactory preferredArtifactFactory) { this.cdiBatchArtifactFactory = preferredArtifactFactory; }
java
@Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY) protected void setCDIBatchArtifactFactory(CDIBatchArtifactFactory preferredArtifactFactory) { this.cdiBatchArtifactFactory = preferredArtifactFactory; }
[ "@", "Reference", "(", "cardinality", "=", "ReferenceCardinality", ".", "OPTIONAL", ",", "policy", "=", "ReferencePolicy", ".", "DYNAMIC", ",", "policyOption", "=", "ReferencePolicyOption", ".", "GREEDY", ")", "protected", "void", "setCDIBatchArtifactFactory", "(", ...
DS injection.
[ "DS", "injection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/DelegatingBatchArtifactFactoryImpl.java#L57-L60
110,095
OpenLiberty/open-liberty
dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/AnnotationInfoImpl.java
AnnotationInfoImpl.addAnnotationValue
public AnnotationValueImpl addAnnotationValue(String name, Object value) { AnnotationValueImpl annotationValue = new AnnotationValueImpl(value); addAnnotationValue(name, annotationValue); return annotationValue; }
java
public AnnotationValueImpl addAnnotationValue(String name, Object value) { AnnotationValueImpl annotationValue = new AnnotationValueImpl(value); addAnnotationValue(name, annotationValue); return annotationValue; }
[ "public", "AnnotationValueImpl", "addAnnotationValue", "(", "String", "name", ",", "Object", "value", ")", "{", "AnnotationValueImpl", "annotationValue", "=", "new", "AnnotationValueImpl", "(", "value", ")", ";", "addAnnotationValue", "(", "name", ",", "annotationValu...
base value.
[ "base", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/AnnotationInfoImpl.java#L225-L231
110,096
OpenLiberty/open-liberty
dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/AnnotationInfoImpl.java
AnnotationInfoImpl.addAnnotationValue
public AnnotationValueImpl addAnnotationValue(String name, String enumClassName, String enumName) { AnnotationValueImpl annotationValue = new AnnotationValueImpl(enumClassName, enumName); addAnnotationValue(name, annotationValue); return annotationValue; }
java
public AnnotationValueImpl addAnnotationValue(String name, String enumClassName, String enumName) { AnnotationValueImpl annotationValue = new AnnotationValueImpl(enumClassName, enumName); addAnnotationValue(name, annotationValue); return annotationValue; }
[ "public", "AnnotationValueImpl", "addAnnotationValue", "(", "String", "name", ",", "String", "enumClassName", ",", "String", "enumName", ")", "{", "AnnotationValueImpl", "annotationValue", "=", "new", "AnnotationValueImpl", "(", "enumClassName", ",", "enumName", ")", ...
the enumeration class name and the enumeration literal value.
[ "the", "enumeration", "class", "name", "and", "the", "enumeration", "literal", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/AnnotationInfoImpl.java#L237-L243
110,097
OpenLiberty/open-liberty
dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/AnnotationInfoImpl.java
AnnotationInfoImpl.log
@Trivial public void log(TraceComponent logger) { Tr.debug(logger, MessageFormat.format("Annotation [ {0} ]", getAnnotationClassName())); // Only log the non-defaulted values. for (String valueName : this.values.keySet()) { AnnotationValueImpl nextValue = getValue(valueName); ...
java
@Trivial public void log(TraceComponent logger) { Tr.debug(logger, MessageFormat.format("Annotation [ {0} ]", getAnnotationClassName())); // Only log the non-defaulted values. for (String valueName : this.values.keySet()) { AnnotationValueImpl nextValue = getValue(valueName); ...
[ "@", "Trivial", "public", "void", "log", "(", "TraceComponent", "logger", ")", "{", "Tr", ".", "debug", "(", "logger", ",", "MessageFormat", ".", "format", "(", "\"Annotation [ {0} ]\"", ",", "getAnnotationClassName", "(", ")", ")", ")", ";", "// Only log the ...
because of the global state access.
[ "because", "of", "the", "global", "state", "access", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/AnnotationInfoImpl.java#L333-L355
110,098
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/impl/WSJobRepositoryImpl.java
WSJobRepositoryImpl.updateJobExecutionAndInstanceNotSetToServerYet
@Override public WSJobExecution updateJobExecutionAndInstanceNotSetToServerYet( long jobExecutionId, Date date) throws ExecutionAssignedToServerException { return updateJobExecutionAndInstanceOnStopBeforeServerAssigned(jobExecutionId, ...
java
@Override public WSJobExecution updateJobExecutionAndInstanceNotSetToServerYet( long jobExecutionId, Date date) throws ExecutionAssignedToServerException { return updateJobExecutionAndInstanceOnStopBeforeServerAssigned(jobExecutionId, ...
[ "@", "Override", "public", "WSJobExecution", "updateJobExecutionAndInstanceNotSetToServerYet", "(", "long", "jobExecutionId", ",", "Date", "date", ")", "throws", "ExecutionAssignedToServerException", "{", "return", "updateJobExecutionAndInstanceOnStopBeforeServerAssigned", "(", "...
DELETE ME - rename to better name
[ "DELETE", "ME", "-", "rename", "to", "better", "name" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/impl/WSJobRepositoryImpl.java#L357-L361
110,099
OpenLiberty/open-liberty
dev/com.ibm.ws.beanvalidation.core/src/com/ibm/ws/beanvalidation/config/ValidationConfigurator.java
ValidationConfigurator.setupData
private void setupData(ValidationConfig config, ClassLoader classLoader) { // A config object is always used to use a common code path, so the parsed // ValidationConfig may be null if a validation.xml wasn't found. if (config != null) { versionID = config.getVersionID(); ...
java
private void setupData(ValidationConfig config, ClassLoader classLoader) { // A config object is always used to use a common code path, so the parsed // ValidationConfig may be null if a validation.xml wasn't found. if (config != null) { versionID = config.getVersionID(); ...
[ "private", "void", "setupData", "(", "ValidationConfig", "config", ",", "ClassLoader", "classLoader", ")", "{", "// A config object is always used to use a common code path, so the parsed", "// ValidationConfig may be null if a validation.xml wasn't found.", "if", "(", "config", "!="...
Internal method to set up the object's data
[ "Internal", "method", "to", "set", "up", "the", "object", "s", "data" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.beanvalidation.core/src/com/ibm/ws/beanvalidation/config/ValidationConfigurator.java#L106-L129