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
109,900
OpenLiberty/open-liberty
dev/com.ibm.ws.managedobject/src/com/ibm/ws/managedobject/internal/ManagedObjectFactoryImpl.java
ManagedObjectFactoryImpl.getConstructor
@Override public Constructor<T> getConstructor() { if (this.constructor == null) { try { this.constructor = this.managedClass.getConstructor((Class<?>[]) null); } catch (NoSuchMethodException e) { throw new IllegalStateException(e); } ...
java
@Override public Constructor<T> getConstructor() { if (this.constructor == null) { try { this.constructor = this.managedClass.getConstructor((Class<?>[]) null); } catch (NoSuchMethodException e) { throw new IllegalStateException(e); } ...
[ "@", "Override", "public", "Constructor", "<", "T", ">", "getConstructor", "(", ")", "{", "if", "(", "this", ".", "constructor", "==", "null", ")", "{", "try", "{", "this", ".", "constructor", "=", "this", ".", "managedClass", ".", "getConstructor", "(",...
Returns the constructor that will be used by this factory to create the managed object.
[ "Returns", "the", "constructor", "that", "will", "be", "used", "by", "this", "factory", "to", "create", "the", "managed", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.managedobject/src/com/ibm/ws/managedobject/internal/ManagedObjectFactoryImpl.java#L50-L60
109,901
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/VirtualHostConfiguration.java
VirtualHostConfiguration.setConfiguration
public void setConfiguration(VirtualHost config) { this.config = config; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setConfiguration", "config set ->"+ this.config); } }
java
public void setConfiguration(VirtualHost config) { this.config = config; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setConfiguration", "config set ->"+ this.config); } }
[ "public", "void", "setConfiguration", "(", "VirtualHost", "config", ")", "{", "this", ".", "config", "=", "config", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", ...
Set or replace the underlying VirtualHost that provides host aliases and default mime type configuration. @param config VirtualHost object representing the new/updated VirtualHost configuration
[ "Set", "or", "replace", "the", "underlying", "VirtualHost", "that", "provides", "host", "aliases", "and", "default", "mime", "type", "configuration", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/VirtualHostConfiguration.java#L71-L76
109,902
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/StaticCATBrowser.java
StaticCATBrowser.rcvResetBrowse
public static void rcvResetBrowse(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.en...
java
public static void rcvResetBrowse(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.en...
[ "public", "static", "void", "rcvResetBrowse", "(", "CommsByteBuffer", "request", ",", "Conversation", "conversation", ",", "int", "requestNumber", ",", "boolean", "allocatedFromBufferPool", ",", "boolean", "partOfExchange", ")", "{", "if", "(", "TraceComponent", ".", ...
Processes a request to reset a browser session. This is achieved by decoding the request data and using it to locate the browser session to reset. @param request The data sent to us by the client which represents a request to reset the browse session. We must decode this data to determine which browse session it ref...
[ "Processes", "a", "request", "to", "reset", "a", "browser", "session", ".", "This", "is", "achieved", "by", "decoding", "the", "request", "data", "and", "using", "it", "to", "locate", "the", "browser", "session", "to", "reset", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/StaticCATBrowser.java#L270-L377
109,903
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/URLMatchingUtils.java
URLMatchingUtils.getLongestUrlPattern
public static String getLongestUrlPattern(String firstUrlPattern, String secondUrlPattern) { if (secondUrlPattern == null || (firstUrlPattern != null && firstUrlPattern.length() >= secondUrlPattern.length())) { return firstUrlPattern; } else { return secondUrlPattern;...
java
public static String getLongestUrlPattern(String firstUrlPattern, String secondUrlPattern) { if (secondUrlPattern == null || (firstUrlPattern != null && firstUrlPattern.length() >= secondUrlPattern.length())) { return firstUrlPattern; } else { return secondUrlPattern;...
[ "public", "static", "String", "getLongestUrlPattern", "(", "String", "firstUrlPattern", ",", "String", "secondUrlPattern", ")", "{", "if", "(", "secondUrlPattern", "==", "null", "||", "(", "firstUrlPattern", "!=", "null", "&&", "firstUrlPattern", ".", "length", "(...
Determine the longest URL pattern. @param firstUrlPattern @param secondUrlPattern @return the longest url pattern
[ "Determine", "the", "longest", "URL", "pattern", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/URLMatchingUtils.java#L27-L34
109,904
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/URLMatchingUtils.java
URLMatchingUtils.isPathNameMatch
public static boolean isPathNameMatch(String uri, String urlPattern) { if (urlPattern.startsWith("/") && urlPattern.endsWith("/*")) { String s = urlPattern.substring(0, urlPattern.length() - 1); /** * First case,urlPattern * /a/b/c/ matches /a/b/c/* ...
java
public static boolean isPathNameMatch(String uri, String urlPattern) { if (urlPattern.startsWith("/") && urlPattern.endsWith("/*")) { String s = urlPattern.substring(0, urlPattern.length() - 1); /** * First case,urlPattern * /a/b/c/ matches /a/b/c/* ...
[ "public", "static", "boolean", "isPathNameMatch", "(", "String", "uri", ",", "String", "urlPattern", ")", "{", "if", "(", "urlPattern", ".", "startsWith", "(", "\"/\"", ")", "&&", "urlPattern", ".", "endsWith", "(", "\"/*\"", ")", ")", "{", "String", "s", ...
Determine if the urlPattern is a path name match for the uri. @param uri @param urlPattern @return
[ "Determine", "if", "the", "urlPattern", "is", "a", "path", "name", "match", "for", "the", "uri", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/URLMatchingUtils.java#L85-L113
109,905
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/URLMatchingUtils.java
URLMatchingUtils.isExtensionMatch
public static boolean isExtensionMatch(String uriName, String urlPattern) { if (urlPattern.startsWith("*.")) { String ext = urlPattern.substring(1); if (uriName.endsWith(ext)) { return true; } } return false; }
java
public static boolean isExtensionMatch(String uriName, String urlPattern) { if (urlPattern.startsWith("*.")) { String ext = urlPattern.substring(1); if (uriName.endsWith(ext)) { return true; } } return false; }
[ "public", "static", "boolean", "isExtensionMatch", "(", "String", "uriName", ",", "String", "urlPattern", ")", "{", "if", "(", "urlPattern", ".", "startsWith", "(", "\"*.\"", ")", ")", "{", "String", "ext", "=", "urlPattern", ".", "substring", "(", "1", ")...
Determine if the urlPattern is an extension match for the uriName. @param uriName @param urlPattern @return
[ "Determine", "if", "the", "urlPattern", "is", "an", "extension", "match", "for", "the", "uriName", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/URLMatchingUtils.java#L122-L130
109,906
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/AppliesToProcessor.java
AppliesToProcessor.validateEditions
public static void validateEditions(AppliesToFilterInfo info, String appliesToHeader) throws RepositoryResourceCreationException { if (info.getRawEditions() != null) { for (String rawEdition : info.getRawEditions()) { List<String> mappedEditions = mapRawEditionToHumanReadable(rawEdit...
java
public static void validateEditions(AppliesToFilterInfo info, String appliesToHeader) throws RepositoryResourceCreationException { if (info.getRawEditions() != null) { for (String rawEdition : info.getRawEditions()) { List<String> mappedEditions = mapRawEditionToHumanReadable(rawEdit...
[ "public", "static", "void", "validateEditions", "(", "AppliesToFilterInfo", "info", ",", "String", "appliesToHeader", ")", "throws", "RepositoryResourceCreationException", "{", "if", "(", "info", ".", "getRawEditions", "(", ")", "!=", "null", ")", "{", "for", "(",...
Validates the list of rawEditions and throws RepositoryResourceCreationException if any of them are unknown. Clients of this class should call this method once the AppliesToFilterInfo object has been created in order to check whether it is valid.
[ "Validates", "the", "list", "of", "rawEditions", "and", "throws", "RepositoryResourceCreationException", "if", "any", "of", "them", "are", "unknown", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/AppliesToProcessor.java#L245-L255
109,907
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/AppliesToProcessor.java
AppliesToProcessor.parseAppliesToEntries
public static List<AppliesToEntry> parseAppliesToEntries(String appliesTo) { List<AppliesToEntry> result = new ArrayList<AppliesToEntry>(); List<List<String>> parsedProducts = doParse(appliesTo); for (List<String> parsedProduct : parsedProducts) { AppliesToEntry entry = new AppliesTo...
java
public static List<AppliesToEntry> parseAppliesToEntries(String appliesTo) { List<AppliesToEntry> result = new ArrayList<AppliesToEntry>(); List<List<String>> parsedProducts = doParse(appliesTo); for (List<String> parsedProduct : parsedProducts) { AppliesToEntry entry = new AppliesTo...
[ "public", "static", "List", "<", "AppliesToEntry", ">", "parseAppliesToEntries", "(", "String", "appliesTo", ")", "{", "List", "<", "AppliesToEntry", ">", "result", "=", "new", "ArrayList", "<", "AppliesToEntry", ">", "(", ")", ";", "List", "<", "List", "<",...
Parse the given raw appliesTo header into a list of AppliesToEntry objects
[ "Parse", "the", "given", "raw", "appliesTo", "header", "into", "a", "list", "of", "AppliesToEntry", "objects" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/AppliesToProcessor.java#L261-L272
109,908
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/logging/WebContainerLogger.java
WebContainerLogger.getLogger
public static Logger getLogger(final String name, final String resourceBundleName){ WebContainerLogger tempLogger = map.get(name); if (tempLogger==null){ tempLogger = (WebContainerLogger) AccessController.doPrivileged( new PrivilegedAction<WebContainerLogger>() { public WebContainerLogger run() { ...
java
public static Logger getLogger(final String name, final String resourceBundleName){ WebContainerLogger tempLogger = map.get(name); if (tempLogger==null){ tempLogger = (WebContainerLogger) AccessController.doPrivileged( new PrivilegedAction<WebContainerLogger>() { public WebContainerLogger run() { ...
[ "public", "static", "Logger", "getLogger", "(", "final", "String", "name", ",", "final", "String", "resourceBundleName", ")", "{", "WebContainerLogger", "tempLogger", "=", "map", ".", "get", "(", "name", ")", ";", "if", "(", "tempLogger", "==", "null", ")", ...
getLogger method will create an instance of WebContainerLogger with the appropriate Logger object @param name - the name of the logger @param resourceBundleName - the message repository @return - an instance of WebContainerLogger
[ "getLogger", "method", "will", "create", "an", "instance", "of", "WebContainerLogger", "with", "the", "appropriate", "Logger", "object" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/logging/WebContainerLogger.java#L41-L55
109,909
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/logging/WebContainerLogger.java
WebContainerLogger.logp
public void logp(Level level, String sourceClass, String sourceMethod,String msg) { delegateLogger.logp(level,sourceClass,sourceMethod,msg); }
java
public void logp(Level level, String sourceClass, String sourceMethod,String msg) { delegateLogger.logp(level,sourceClass,sourceMethod,msg); }
[ "public", "void", "logp", "(", "Level", "level", ",", "String", "sourceClass", ",", "String", "sourceMethod", ",", "String", "msg", ")", "{", "delegateLogger", ".", "logp", "(", "level", ",", "sourceClass", ",", "sourceMethod", ",", "msg", ")", ";", "}" ]
Override every method from Logger to be called on the delegateLogger.
[ "Override", "every", "method", "from", "Logger", "to", "be", "called", "on", "the", "delegateLogger", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/logging/WebContainerLogger.java#L69-L71
109,910
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/logging/WebContainerLogger.java
WebContainerLogger.throwableToString
public static String throwableToString(Throwable t) { StringWriter s = new StringWriter(); PrintWriter p = new PrintWriter(s); t.printStackTrace(p); return s.toString(); }
java
public static String throwableToString(Throwable t) { StringWriter s = new StringWriter(); PrintWriter p = new PrintWriter(s); t.printStackTrace(p); return s.toString(); }
[ "public", "static", "String", "throwableToString", "(", "Throwable", "t", ")", "{", "StringWriter", "s", "=", "new", "StringWriter", "(", ")", ";", "PrintWriter", "p", "=", "new", "PrintWriter", "(", "s", ")", ";", "t", ".", "printStackTrace", "(", "p", ...
Accepts a throwable and returns a String representation. @param t @return string representation of stack trace
[ "Accepts", "a", "throwable", "and", "returns", "a", "String", "representation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/logging/WebContainerLogger.java#L263-L269
109,911
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/ServerCache.java
ServerCache.getJspCache
public static JSPCache getJspCache(String cacheName) { final String methodName = "getJspCache()"; JSPCache cacheOut = null; if (servletCacheEnabled == false) { // DYNA1059W=DYNA1059W: WebSphere Dynamic Cache instance named {0} cannot be used because of Dynamic Servlet // ...
java
public static JSPCache getJspCache(String cacheName) { final String methodName = "getJspCache()"; JSPCache cacheOut = null; if (servletCacheEnabled == false) { // DYNA1059W=DYNA1059W: WebSphere Dynamic Cache instance named {0} cannot be used because of Dynamic Servlet // ...
[ "public", "static", "JSPCache", "getJspCache", "(", "String", "cacheName", ")", "{", "final", "String", "methodName", "=", "\"getJspCache()\"", ";", "JSPCache", "cacheOut", "=", "null", ";", "if", "(", "servletCacheEnabled", "==", "false", ")", "{", "// DYNA1059...
Get a named Jsp cache. @param cacheName The name of the cache instance or null for base cache. @return The cache object or null if the named cache has not been defined.
[ "Get", "a", "named", "Jsp", "cache", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/ServerCache.java#L119-L143
109,912
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/ServerCache.java
ServerCache.getCommandCache
public static CommandCache getCommandCache(String cacheName) { final String methodName = "getCommandCache()"; CommandCache cacheOut = null; if (servletCacheEnabled == false) { // DYNA1059W=DYNA1059W: WebSphere Dynamic Cache instance named {0} cannot be used because of Dynamic Servlet...
java
public static CommandCache getCommandCache(String cacheName) { final String methodName = "getCommandCache()"; CommandCache cacheOut = null; if (servletCacheEnabled == false) { // DYNA1059W=DYNA1059W: WebSphere Dynamic Cache instance named {0} cannot be used because of Dynamic Servlet...
[ "public", "static", "CommandCache", "getCommandCache", "(", "String", "cacheName", ")", "{", "final", "String", "methodName", "=", "\"getCommandCache()\"", ";", "CommandCache", "cacheOut", "=", "null", ";", "if", "(", "servletCacheEnabled", "==", "false", ")", "{"...
Get a named Command cache. @param cacheName The name of the cache instance or null for base cache. @return The cache object or null if the named cache has not been defined.
[ "Get", "a", "named", "Command", "cache", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/ServerCache.java#L152-L176
109,913
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/ServerCache.java
ServerCache.getCache
@Trivial public static DCache getCache(String cacheName) { final String methodName = "getCache()"; DCache cacheOut = ServerCache.cache; if (cacheName != null) { cacheName = normalizeCacheName(cacheName, null); } if (cacheName != null && !cacheName.equalsIgnoreC...
java
@Trivial public static DCache getCache(String cacheName) { final String methodName = "getCache()"; DCache cacheOut = ServerCache.cache; if (cacheName != null) { cacheName = normalizeCacheName(cacheName, null); } if (cacheName != null && !cacheName.equalsIgnoreC...
[ "@", "Trivial", "public", "static", "DCache", "getCache", "(", "String", "cacheName", ")", "{", "final", "String", "methodName", "=", "\"getCache()\"", ";", "DCache", "cacheOut", "=", "ServerCache", ".", "cache", ";", "if", "(", "cacheName", "!=", "null", ")...
Get a named cache. Caller must check for null return. @param cacheName The name of the cache instance or null for base cache. @return The cache object or null if the named cache has not yet been created.
[ "Get", "a", "named", "cache", ".", "Caller", "must", "check", "for", "null", "return", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/ServerCache.java#L185-L204
109,914
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/ServerCache.java
ServerCache.getConfiguredCache
public static DCache getConfiguredCache(String cacheName) { final String methodName = "getConfiguredCache()"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, methodName + " input cacheName=" + cacheName); } DCache cacheOut = null; if (c...
java
public static DCache getConfiguredCache(String cacheName) { final String methodName = "getConfiguredCache()"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, methodName + " input cacheName=" + cacheName); } DCache cacheOut = null; if (c...
[ "public", "static", "DCache", "getConfiguredCache", "(", "String", "cacheName", ")", "{", "final", "String", "methodName", "=", "\"getConfiguredCache()\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "...
Get a configured named cache. @param cache name @return The cache object.
[ "Get", "a", "configured", "named", "cache", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/ServerCache.java#L213-L247
109,915
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/ServerCache.java
ServerCache.normalizeCacheName
@Trivial public static String normalizeCacheName(String cacheName, CacheConfig cacheConfig) { String tempCacheName = cacheName; if (cacheName.equalsIgnoreCase(DCacheBase.DEFAULT_BASE_JNDI_NAME)) { tempCacheName = DCacheBase.DEFAULT_CACHE_NAME; } else if (cacheName.equalsIgnore...
java
@Trivial public static String normalizeCacheName(String cacheName, CacheConfig cacheConfig) { String tempCacheName = cacheName; if (cacheName.equalsIgnoreCase(DCacheBase.DEFAULT_BASE_JNDI_NAME)) { tempCacheName = DCacheBase.DEFAULT_CACHE_NAME; } else if (cacheName.equalsIgnore...
[ "@", "Trivial", "public", "static", "String", "normalizeCacheName", "(", "String", "cacheName", ",", "CacheConfig", "cacheConfig", ")", "{", "String", "tempCacheName", "=", "cacheName", ";", "if", "(", "cacheName", ".", "equalsIgnoreCase", "(", "DCacheBase", ".", ...
Since the cache instances are stored with key as cacheName, it has to change default cache JNDI name to internal cache name.
[ "Since", "the", "cache", "instances", "are", "stored", "with", "key", "as", "cacheName", "it", "has", "to", "change", "default", "cache", "JNDI", "name", "to", "internal", "cache", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/ServerCache.java#L371-L393
109,916
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/LocalTIDTable.java
LocalTIDTable.getLocalTID
public static int getLocalTID(TransactionImpl tran) { if (tc.isEntryEnabled()) Tr.entry(tc, "getLocalTID", tran); int id; while (true) { // Capture the current seed value. Do another increment // and shift by the difference of current seed. Due to ...
java
public static int getLocalTID(TransactionImpl tran) { if (tc.isEntryEnabled()) Tr.entry(tc, "getLocalTID", tran); int id; while (true) { // Capture the current seed value. Do another increment // and shift by the difference of current seed. Due to ...
[ "public", "static", "int", "getLocalTID", "(", "TransactionImpl", "tran", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getLocalTID\"", ",", "tran", ")", ";", "int", "id", ";", "while", "(", "...
Return the next available local tid and associate it with the given transaction. This method should be used during the creation of a new transaction. @param tran The transaction to be associated with the local TID As suggested by the performance team, the LocalTIDTable used to maintain an AtomicLong to maintain a uni...
[ "Return", "the", "next", "available", "local", "tid", "and", "associate", "it", "with", "the", "given", "transaction", ".", "This", "method", "should", "be", "used", "during", "the", "creation", "of", "a", "new", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/LocalTIDTable.java#L61-L93
109,917
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/LocalTIDTable.java
LocalTIDTable.removeLocalTID
public static void removeLocalTID(int localTID) { if (tc.isEntryEnabled()) Tr.entry(tc, "removeLocalTID", localTID); localTIDMap.remove(localTID); if (tc.isEntryEnabled()) Tr.exit(tc, "removeLocalTID"); }
java
public static void removeLocalTID(int localTID) { if (tc.isEntryEnabled()) Tr.entry(tc, "removeLocalTID", localTID); localTIDMap.remove(localTID); if (tc.isEntryEnabled()) Tr.exit(tc, "removeLocalTID"); }
[ "public", "static", "void", "removeLocalTID", "(", "int", "localTID", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"removeLocalTID\"", ",", "localTID", ")", ";", "localTIDMap", ".", "remove", "(",...
Remove the given local tid from the map. This method should be called once a transaction has completed. @param localTID The local TID to remove from the table
[ "Remove", "the", "given", "local", "tid", "from", "the", "map", ".", "This", "method", "should", "be", "called", "once", "a", "transaction", "has", "completed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/LocalTIDTable.java#L102-L109
109,918
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/LocalTIDTable.java
LocalTIDTable.getAllTransactions
public static TransactionImpl[] getAllTransactions() { if (tc.isEntryEnabled()) Tr.entry(tc, "getAllTransactions"); final Collection<TransactionImpl> txns = localTIDMap.values(); if (txns != null) { if (tc.isEntryEnabled()) Tr.exit(tc, "getAllTransactions", txns); ...
java
public static TransactionImpl[] getAllTransactions() { if (tc.isEntryEnabled()) Tr.entry(tc, "getAllTransactions"); final Collection<TransactionImpl> txns = localTIDMap.values(); if (txns != null) { if (tc.isEntryEnabled()) Tr.exit(tc, "getAllTransactions", txns); ...
[ "public", "static", "TransactionImpl", "[", "]", "getAllTransactions", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getAllTransactions\"", ")", ";", "final", "Collection", "<", "TransactionImpl"...
Return an array of all the transactions currently running on the server. @return An array of all the server's transactions.
[ "Return", "an", "array", "of", "all", "the", "transactions", "currently", "running", "on", "the", "server", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/LocalTIDTable.java#L116-L130
109,919
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcCallableStatement.java
WSJdbcCallableStatement.createWrapper
protected WSJdbcResultSet createWrapper(ResultSet rsetImpl) { // If the childWrapper is null, and the childWrappers is null or // empty, set the result set to childWrapper; // Otherwise, add the result set to childWrappers WSJdbcResultSet rsetWrapper; if (childWrapper == null &&...
java
protected WSJdbcResultSet createWrapper(ResultSet rsetImpl) { // If the childWrapper is null, and the childWrappers is null or // empty, set the result set to childWrapper; // Otherwise, add the result set to childWrappers WSJdbcResultSet rsetWrapper; if (childWrapper == null &&...
[ "protected", "WSJdbcResultSet", "createWrapper", "(", "ResultSet", "rsetImpl", ")", "{", "// If the childWrapper is null, and the childWrappers is null or ", "// empty, set the result set to childWrapper;", "// Otherwise, add the result set to childWrappers", "WSJdbcResultSet", "rsetWrapper"...
Construct and track a new result set wrapper. @param rsetImpl result set to wrap. @return wrapper
[ "Construct", "and", "track", "a", "new", "result", "set", "wrapper", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcCallableStatement.java#L155-L174
109,920
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcCallableStatement.java
WSJdbcCallableStatement.getCursor
private Object getCursor(Object implObject, Method method, Object[] args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, SQLException { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled(...
java
private Object getCursor(Object implObject, Method method, Object[] args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, SQLException { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled(...
[ "private", "Object", "getCursor", "(", "Object", "implObject", ",", "Method", "method", ",", "Object", "[", "]", "args", ")", "throws", "IllegalAccessException", ",", "IllegalArgumentException", ",", "InvocationTargetException", ",", "SQLException", "{", "final", "b...
Invokes getCursor and wraps the result set. @param implObject the instance on which the operation is invoked. @param method the method that is invoked. @param args the parameters to the method. @throws IllegalAccessException if the method is inaccessible. @throws IllegalArgumentException if the instance does not have...
[ "Invokes", "getCursor", "and", "wraps", "the", "result", "set", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcCallableStatement.java#L290-L303
109,921
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcCallableStatement.java
WSJdbcCallableStatement.getObject
public Object getObject(String parameterName, java.util.Map<String, Class<?>> map) throws SQLException { try { return cstmtImpl.getObject(parameterName, map); } catch (SQLException ex) { FFDCFilter.processException(ex, "...
java
public Object getObject(String parameterName, java.util.Map<String, Class<?>> map) throws SQLException { try { return cstmtImpl.getObject(parameterName, map); } catch (SQLException ex) { FFDCFilter.processException(ex, "...
[ "public", "Object", "getObject", "(", "String", "parameterName", ",", "java", ".", "util", ".", "Map", "<", "String", ",", "Class", "<", "?", ">", ">", "map", ")", "throws", "SQLException", "{", "try", "{", "return", "cstmtImpl", ".", "getObject", "(", ...
enhanced method signature.
[ "enhanced", "method", "signature", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcCallableStatement.java#L2407-L2419
109,922
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authentication.tai/src/com/ibm/ws/security/authentication/tai/TAIUtil.java
TAIUtil.processTAIUserFeatureProps
public void processTAIUserFeatureProps(ConcurrentServiceReferenceMap<String, TrustAssociationInterceptor> interceptorServiceRef, String interceptorId) { invokeBeforeSSO = false; invokeAfterSSO = false; addLtpaCookieToResponse = true; ServiceRef...
java
public void processTAIUserFeatureProps(ConcurrentServiceReferenceMap<String, TrustAssociationInterceptor> interceptorServiceRef, String interceptorId) { invokeBeforeSSO = false; invokeAfterSSO = false; addLtpaCookieToResponse = true; ServiceRef...
[ "public", "void", "processTAIUserFeatureProps", "(", "ConcurrentServiceReferenceMap", "<", "String", ",", "TrustAssociationInterceptor", ">", "interceptorServiceRef", ",", "String", "interceptorId", ")", "{", "invokeBeforeSSO", "=", "false", ";", "invokeAfterSSO", "=", "f...
This method will process the TAI user feature properties and determine whether this TAI will be invoked before or after the SSO authentication. Because we do not have a direct access to the TAI user feature configuration if any. @param interceptorServiceRef @param interceptorId
[ "This", "method", "will", "process", "the", "TAI", "user", "feature", "properties", "and", "determine", "whether", "this", "TAI", "will", "be", "invoked", "before", "or", "after", "the", "SSO", "authentication", ".", "Because", "we", "do", "not", "have", "a"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.tai/src/com/ibm/ws/security/authentication/tai/TAIUtil.java#L39-L78
109,923
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/matching/TopicAclTraversalResults.java
TopicAclTraversalResults.consolidate
public void consolidate(List targets) { if (tc.isEntryEnabled()) SibTr.entry(tc, "consolidate", targets); Iterator itr = targets.iterator(); // Reset the lists for this level levelUsersAllowedToSubscribe.clear(); levelUsersAllowedToPublish.clear(); levelGroupAllowedToSubscribe.clea...
java
public void consolidate(List targets) { if (tc.isEntryEnabled()) SibTr.entry(tc, "consolidate", targets); Iterator itr = targets.iterator(); // Reset the lists for this level levelUsersAllowedToSubscribe.clear(); levelUsersAllowedToPublish.clear(); levelGroupAllowedToSubscribe.clea...
[ "public", "void", "consolidate", "(", "List", "targets", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"consolidate\"", ",", "targets", ")", ";", "Iterator", "itr", "=", "targets", ".", "itera...
Method consolidate Used to add a set of acls to the accumulated permission vectors @param targets A list of topic acls
[ "Method", "consolidate", "Used", "to", "add", "a", "set", "of", "acls", "to", "the", "accumulated", "permission", "vectors" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/matching/TopicAclTraversalResults.java#L76-L150
109,924
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/matching/TopicAclTraversalResults.java
TopicAclTraversalResults.checkPermission
public boolean checkPermission(Principal user, int operation) { if (tc.isEntryEnabled()) SibTr.entry(tc, "checkPermission", new Object[]{user, new Integer(operation)}); boolean allowed = false; if(operation == 1) // a publish operation { // check whether permission has been grante...
java
public boolean checkPermission(Principal user, int operation) { if (tc.isEntryEnabled()) SibTr.entry(tc, "checkPermission", new Object[]{user, new Integer(operation)}); boolean allowed = false; if(operation == 1) // a publish operation { // check whether permission has been grante...
[ "public", "boolean", "checkPermission", "(", "Principal", "user", ",", "int", "operation", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"checkPermission\"", ",", "new", "Object", "[", "]", "{",...
Method checkPermission Used to determine whether a user is allowed to perform a particular operation. @param user The user @param operation The subscribe or publish operation @return boolean The result of the permission check.
[ "Method", "checkPermission", "Used", "to", "determine", "whether", "a", "user", "is", "allowed", "to", "perform", "a", "particular", "operation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/matching/TopicAclTraversalResults.java#L162-L267
109,925
OpenLiberty/open-liberty
dev/com.ibm.ws.junit.extensions/src/com/ibm/websphere/ras/CapturedOutputHolder.java
CapturedOutputHolder.captureSystemStreams
@Override protected void captureSystemStreams() { PrintStream sysOut = System.out; PrintStream sysErr = System.err; PrintStream trSysOut = systemOut.getOriginalStream(); PrintStream trSysErr = systemErr.getOriginalStream(); if (sysOut != trSysOut) { throw new Co...
java
@Override protected void captureSystemStreams() { PrintStream sysOut = System.out; PrintStream sysErr = System.err; PrintStream trSysOut = systemOut.getOriginalStream(); PrintStream trSysErr = systemErr.getOriginalStream(); if (sysOut != trSysOut) { throw new Co...
[ "@", "Override", "protected", "void", "captureSystemStreams", "(", ")", "{", "PrintStream", "sysOut", "=", "System", ".", "out", ";", "PrintStream", "sysErr", "=", "System", ".", "err", ";", "PrintStream", "trSysOut", "=", "systemOut", ".", "getOriginalStream", ...
This is not to be used by the SharedOutputManager! This is an override of the BaseTraceService method that captures system streams. We aren't changing behavior here: just checking what's what.
[ "This", "is", "not", "to", "be", "used", "by", "the", "SharedOutputManager!", "This", "is", "an", "override", "of", "the", "BaseTraceService", "method", "that", "captures", "system", "streams", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.junit.extensions/src/com/ibm/websphere/ras/CapturedOutputHolder.java#L71-L87
109,926
OpenLiberty/open-liberty
dev/com.ibm.ws.junit.extensions/src/com/ibm/websphere/ras/CapturedOutputHolder.java
CapturedOutputHolder.echo
@Override public void echo(SystemLogHolder holder, LogRecord logRecord) { TraceWriter detailLog = traceLog; // Tee to messages.log (always) String message = formatter.messageLogFormat(logRecord, logRecord.getMessage()); messagesLog.writeRecord(message); invokeMessageRouters...
java
@Override public void echo(SystemLogHolder holder, LogRecord logRecord) { TraceWriter detailLog = traceLog; // Tee to messages.log (always) String message = formatter.messageLogFormat(logRecord, logRecord.getMessage()); messagesLog.writeRecord(message); invokeMessageRouters...
[ "@", "Override", "public", "void", "echo", "(", "SystemLogHolder", "holder", ",", "LogRecord", "logRecord", ")", "{", "TraceWriter", "detailLog", "=", "traceLog", ";", "// Tee to messages.log (always)", "String", "message", "=", "formatter", ".", "messageLogFormat", ...
Overwritten for old BaseTraceService behaviour for echo
[ "Overwritten", "for", "old", "BaseTraceService", "behaviour", "for", "echo" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.junit.extensions/src/com/ibm/websphere/ras/CapturedOutputHolder.java#L109-L132
109,927
OpenLiberty/open-liberty
dev/com.ibm.ws.junit.extensions/src/com/ibm/websphere/ras/CapturedOutputHolder.java
CapturedOutputHolder.publishTraceLogRecord
@Override protected void publishTraceLogRecord(TraceWriter detailLog, LogRecord logRecord, Object id, String formattedMsg, String formattedVerboseMsg) { if (formattedVerboseMsg == null) { formattedVerboseMsg = formatter.formatVerboseMessage(logRecord, formattedMsg, false); } Leve...
java
@Override protected void publishTraceLogRecord(TraceWriter detailLog, LogRecord logRecord, Object id, String formattedMsg, String formattedVerboseMsg) { if (formattedVerboseMsg == null) { formattedVerboseMsg = formatter.formatVerboseMessage(logRecord, formattedMsg, false); } Leve...
[ "@", "Override", "protected", "void", "publishTraceLogRecord", "(", "TraceWriter", "detailLog", ",", "LogRecord", "logRecord", ",", "Object", "id", ",", "String", "formattedMsg", ",", "String", "formattedVerboseMsg", ")", "{", "if", "(", "formattedVerboseMsg", "==",...
Overwritten for old BaseTraceService behaviour for publishTraceLogRecord
[ "Overwritten", "for", "old", "BaseTraceService", "behaviour", "for", "publishTraceLogRecord" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.junit.extensions/src/com/ibm/websphere/ras/CapturedOutputHolder.java#L135-L157
109,928
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSPrimitive.java
JSPrimitive.setXSDTypeName
public void setXSDTypeName(String name) { this.xsdTypeName = name; Integer code = (Integer)JSBaseTypes.xsdTypeNames.get(name); if (code == null) throw new IllegalArgumentException("XSDTypeName=" + name); setTypeCode(code.intValue()); }
java
public void setXSDTypeName(String name) { this.xsdTypeName = name; Integer code = (Integer)JSBaseTypes.xsdTypeNames.get(name); if (code == null) throw new IllegalArgumentException("XSDTypeName=" + name); setTypeCode(code.intValue()); }
[ "public", "void", "setXSDTypeName", "(", "String", "name", ")", "{", "this", ".", "xsdTypeName", "=", "name", ";", "Integer", "code", "=", "(", "Integer", ")", "JSBaseTypes", ".", "xsdTypeNames", ".", "get", "(", "name", ")", ";", "if", "(", "code", "=...
Set the XSD type name, and, as a side-effect, set the type code most appropriate for use with that type
[ "Set", "the", "XSD", "type", "name", "and", "as", "a", "side", "-", "effect", "set", "the", "type", "code", "most", "appropriate", "for", "use", "with", "that", "type" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSPrimitive.java#L82-L88
109,929
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSPrimitive.java
JSPrimitive.setTypeCode
public void setTypeCode(int typeCode) { if (typeCode <= 0 || typeCode >= JSBaseTypes.baseTypes.length) throw new IllegalArgumentException("TypeCode=" + typeCode); this.typeCode = typeCode; baseType = JSBaseTypes.baseTypes[typeCode]; }
java
public void setTypeCode(int typeCode) { if (typeCode <= 0 || typeCode >= JSBaseTypes.baseTypes.length) throw new IllegalArgumentException("TypeCode=" + typeCode); this.typeCode = typeCode; baseType = JSBaseTypes.baseTypes[typeCode]; }
[ "public", "void", "setTypeCode", "(", "int", "typeCode", ")", "{", "if", "(", "typeCode", "<=", "0", "||", "typeCode", ">=", "JSBaseTypes", ".", "baseTypes", ".", "length", ")", "throw", "new", "IllegalArgumentException", "(", "\"TypeCode=\"", "+", "typeCode",...
Set the typeCode for the type. Doing this automatically sets all the other type information implied by the type.
[ "Set", "the", "typeCode", "for", "the", "type", ".", "Doing", "this", "automatically", "sets", "all", "the", "other", "type", "information", "implied", "by", "the", "type", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSPrimitive.java#L157-L162
109,930
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.service/src/com/ibm/ws/kernel/service/util/OperatingSystem.java
OperatingSystem.executeProgramWithInput
@FFDCIgnore({ IOException.class, InterruptedException.class }) public static List<String> executeProgramWithInput(String input, String... commandLine) throws OperatingSystemException { try { ProcessBuilder builder = new ProcessBuilder(); builder.command(commandLine); Pr...
java
@FFDCIgnore({ IOException.class, InterruptedException.class }) public static List<String> executeProgramWithInput(String input, String... commandLine) throws OperatingSystemException { try { ProcessBuilder builder = new ProcessBuilder(); builder.command(commandLine); Pr...
[ "@", "FFDCIgnore", "(", "{", "IOException", ".", "class", ",", "InterruptedException", ".", "class", "}", ")", "public", "static", "List", "<", "String", ">", "executeProgramWithInput", "(", "String", "input", ",", "String", "...", "commandLine", ")", "throws"...
On recent JDKs, this should do a fork that doesn't duplicate the whole virtual address space. @param input Optional stdin. @param commandLine The program and any arguments. @return A list of Strings for the output @throws OperatingSystemException If return code is not 0.
[ "On", "recent", "JDKs", "this", "should", "do", "a", "fork", "that", "doesn", "t", "duplicate", "the", "whole", "virtual", "address", "space", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/ws/kernel/service/util/OperatingSystem.java#L142-L184
109,931
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcDataSource.java
WSJdbcDataSource.getConnection
protected Connection getConnection(ConnectionRequestInfo connInfo) throws SQLException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getConnection", AdapterUtil.toString(connInfo)); // Perform wrapper i...
java
protected Connection getConnection(ConnectionRequestInfo connInfo) throws SQLException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getConnection", AdapterUtil.toString(connInfo)); // Perform wrapper i...
[ "protected", "Connection", "getConnection", "(", "ConnectionRequestInfo", "connInfo", ")", "throws", "SQLException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "i...
This is the common getConnection implementation used by the other getConnection methods. This method handles the connection request to the CM and related exceptions, including the ConnectionWaitTimeoutException. Exceptions thrown by the CM are converted to SQLExceptions. @param connInfo useful information for requesti...
[ "This", "is", "the", "common", "getConnection", "implementation", "used", "by", "the", "other", "getConnection", "methods", ".", "This", "method", "handles", "the", "connection", "request", "to", "the", "CM", "and", "related", "exceptions", "including", "the", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcDataSource.java#L127-L175
109,932
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcDataSource.java
WSJdbcDataSource.getDefaultIsolationLevel
private final int getDefaultIsolationLevel() { int defaultIsolationLevel = resRefInfo == null ? Connection.TRANSACTION_NONE : resRefInfo.getIsolationLevel(); if (defaultIsolationLevel == Connection.TRANSACTION_NONE) defaultIsolationLevel = dsConfig.get().isolationLevel; if (defaultIs...
java
private final int getDefaultIsolationLevel() { int defaultIsolationLevel = resRefInfo == null ? Connection.TRANSACTION_NONE : resRefInfo.getIsolationLevel(); if (defaultIsolationLevel == Connection.TRANSACTION_NONE) defaultIsolationLevel = dsConfig.get().isolationLevel; if (defaultIs...
[ "private", "final", "int", "getDefaultIsolationLevel", "(", ")", "{", "int", "defaultIsolationLevel", "=", "resRefInfo", "==", "null", "?", "Connection", ".", "TRANSACTION_NONE", ":", "resRefInfo", ".", "getIsolationLevel", "(", ")", ";", "if", "(", "defaultIsolat...
Determine the default isolation level for this data source. @return the default isolation level for this data source.
[ "Determine", "the", "default", "isolation", "level", "for", "this", "data", "source", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcDataSource.java#L215-L222
109,933
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcDataSource.java
WSJdbcDataSource.replaceObject
Object replaceObject(ResourceRefConfigFactory resRefConfigFactory) { DSConfig config = dsConfig.get(); String filter = config.jndiName == null || config.jndiName.startsWith("java:") ? FilterUtils.createPropertyFilter("config.displayId", config.id) : Filter...
java
Object replaceObject(ResourceRefConfigFactory resRefConfigFactory) { DSConfig config = dsConfig.get(); String filter = config.jndiName == null || config.jndiName.startsWith("java:") ? FilterUtils.createPropertyFilter("config.displayId", config.id) : Filter...
[ "Object", "replaceObject", "(", "ResourceRefConfigFactory", "resRefConfigFactory", ")", "{", "DSConfig", "config", "=", "dsConfig", ".", "get", "(", ")", ";", "String", "filter", "=", "config", ".", "jndiName", "==", "null", "||", "config", ".", "jndiName", "....
Returns a replacement object that can be serialized instead of WSJdbcDataSource. @param resRefConfigFactory factory for resource ref config. @return a replacement object that can be serialized instead of WSJdbcDataSource.
[ "Returns", "a", "replacement", "object", "that", "can", "be", "serialized", "instead", "of", "WSJdbcDataSource", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcDataSource.java#L341-L357
109,934
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPUnitInjectionBinding.java
JPAPUnitInjectionBinding.newPersistenceUnit
private static PersistenceUnit newPersistenceUnit(final String fJndiName, final String fUnitName) { return new PersistenceUnit() { @Override public String name() { return fJndiName; } @Override public Class<? ex...
java
private static PersistenceUnit newPersistenceUnit(final String fJndiName, final String fUnitName) { return new PersistenceUnit() { @Override public String name() { return fJndiName; } @Override public Class<? ex...
[ "private", "static", "PersistenceUnit", "newPersistenceUnit", "(", "final", "String", "fJndiName", ",", "final", "String", "fUnitName", ")", "{", "return", "new", "PersistenceUnit", "(", ")", "{", "@", "Override", "public", "String", "name", "(", ")", "{", "re...
This transient PersistencUnit annotation class has no default value. i.e. null is a valid value for some fields.
[ "This", "transient", "PersistencUnit", "annotation", "class", "has", "no", "default", "value", ".", "i", ".", "e", ".", "null", "is", "a", "valid", "value", "for", "some", "fields", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAPUnitInjectionBinding.java#L231-L260
109,935
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionManager.java
SessionManager.processConfig
public void processConfig(Dictionary<?, ?> props) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Session manager configuration updated"); } this.myConfig.updated(props); String value = (String) props.get("purge.interval"); if (null...
java
public void processConfig(Dictionary<?, ?> props) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Session manager configuration updated"); } this.myConfig.updated(props); String value = (String) props.get("purge.interval"); if (null...
[ "public", "void", "processConfig", "(", "Dictionary", "<", "?", ",", "?", ">", "props", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "{", "Tr", ".", "event", "(", "tc", ...
Method called when the properties for the session manager have been found or udpated. @param props
[ "Method", "called", "when", "the", "properties", "for", "the", "session", "manager", "have", "been", "found", "or", "udpated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionManager.java#L112-L132
109,936
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionManager.java
SessionManager.startPurgeTimer
private void startPurgeTimer() { if (null != this.future || null == this.scheduler) { return; } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Creating repeating purge event"); } this.future = this.scheduler.schedule(Sessi...
java
private void startPurgeTimer() { if (null != this.future || null == this.scheduler) { return; } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Creating repeating purge event"); } this.future = this.scheduler.schedule(Sessi...
[ "private", "void", "startPurgeTimer", "(", ")", "{", "if", "(", "null", "!=", "this", ".", "future", "||", "null", "==", "this", ".", "scheduler", ")", "{", "return", ";", "}", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "t...
Once sessions are actively being used, this is used to start the background invalidation timer that periodically scans for expired sessions that should be purged from storage.
[ "Once", "sessions", "are", "actively", "being", "used", "this", "is", "used", "to", "start", "the", "background", "invalidation", "timer", "that", "periodically", "scans", "for", "expired", "sessions", "that", "should", "be", "purged", "from", "storage", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionManager.java#L139-L147
109,937
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionManager.java
SessionManager.startPurge
protected void startPurge() { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); if (bTrace && tc.isEventEnabled()) { Tr.event(tc, "Running purge of expired sessions"); } try { List<SessionImpl> toPurge = new ArrayList<SessionImpl>(); for (Ma...
java
protected void startPurge() { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); if (bTrace && tc.isEventEnabled()) { Tr.event(tc, "Running purge of expired sessions"); } try { List<SessionImpl> toPurge = new ArrayList<SessionImpl>(); for (Ma...
[ "protected", "void", "startPurge", "(", ")", "{", "final", "boolean", "bTrace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "bTrace", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "{", "Tr", ".", "event", "(", "tc", ...
Method used by the recurring session purge event to scan for and discard expired sessions. This prevents memory build up when sessions are no longer queried by clients.
[ "Method", "used", "by", "the", "recurring", "session", "purge", "event", "to", "scan", "for", "and", "discard", "expired", "sessions", ".", "This", "prevents", "memory", "build", "up", "when", "sessions", "are", "no", "longer", "queried", "by", "clients", "....
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionManager.java#L178-L220
109,938
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionManager.java
SessionManager.getSession
public SessionImpl getSession(SessionInfo info, boolean create) { ServletContext key = info.getContext(); Map<String, SessionImpl> sessions = this.groupings.get(key); if (null == sessions) { synchronized (this.groupings) { sessions = this.groupings.get(key); ...
java
public SessionImpl getSession(SessionInfo info, boolean create) { ServletContext key = info.getContext(); Map<String, SessionImpl> sessions = this.groupings.get(key); if (null == sessions) { synchronized (this.groupings) { sessions = this.groupings.get(key); ...
[ "public", "SessionImpl", "getSession", "(", "SessionInfo", "info", ",", "boolean", "create", ")", "{", "ServletContext", "key", "=", "info", ".", "getContext", "(", ")", ";", "Map", "<", "String", ",", "SessionImpl", ">", "sessions", "=", "this", ".", "gro...
Access, and possibly create if not found, a session for the given client information. @param info @param create @return SessionImpl, null if not found and create flag is false
[ "Access", "and", "possibly", "create", "if", "not", "found", "a", "session", "for", "the", "given", "client", "information", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionManager.java#L242-L297
109,939
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/URIMatcher.java
URIMatcher.matchAll
public List matchAll(String uri) { ClauseNode currentNode = root; ArrayList<Object> returnList = new ArrayList<Object>(); // extension matching done first in the matchAll case // since it is most generic // int dot = uri.lastIndexOf("."); if (dot != -1) { ...
java
public List matchAll(String uri) { ClauseNode currentNode = root; ArrayList<Object> returnList = new ArrayList<Object>(); // extension matching done first in the matchAll case // since it is most generic // int dot = uri.lastIndexOf("."); if (dot != -1) { ...
[ "public", "List", "matchAll", "(", "String", "uri", ")", "{", "ClauseNode", "currentNode", "=", "root", ";", "ArrayList", "<", "Object", ">", "returnList", "=", "new", "ArrayList", "<", "Object", ">", "(", ")", ";", "// extension matching done first in the match...
Returns a list of all targets that match the specified uri in the increasing order of specificity
[ "Returns", "a", "list", "of", "all", "targets", "that", "match", "the", "specified", "uri", "in", "the", "increasing", "order", "of", "specificity" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/URIMatcher.java#L257-L321
109,940
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaDestinationSession.java
SibRaDestinationSession.close
public void close() throws SIConnectionLostException, SIResourceException, SIErrorException, SIConnectionDroppedException { final String methodName = "close"; if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } _delegateSession.close(); ...
java
public void close() throws SIConnectionLostException, SIResourceException, SIErrorException, SIConnectionDroppedException { final String methodName = "close"; if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } _delegateSession.close(); ...
[ "public", "void", "close", "(", ")", "throws", "SIConnectionLostException", ",", "SIResourceException", ",", "SIErrorException", ",", "SIConnectionDroppedException", "{", "final", "String", "methodName", "=", "\"close\"", ";", "if", "(", "TRACE", ".", "isEntryEnabled"...
Closes this session. Delegates. @throws SIErrorException if the delegation fails @throws SIResourceException if the delegation fails @throws SIConnectionLostException if the delegation fails
[ "Closes", "this", "session", ".", "Delegates", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaDestinationSession.java#L93-L107
109,941
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaDestinationSession.java
SibRaDestinationSession.getDestinationAddress
public SIDestinationAddress getDestinationAddress() { final String methodName = "getDestinationAddress"; if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } final SIDestinationAddress address = _delegateSession .getDestinationAddress(); ...
java
public SIDestinationAddress getDestinationAddress() { final String methodName = "getDestinationAddress"; if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } final SIDestinationAddress address = _delegateSession .getDestinationAddress(); ...
[ "public", "SIDestinationAddress", "getDestinationAddress", "(", ")", "{", "final", "String", "methodName", "=", "\"getDestinationAddress\"", ";", "if", "(", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "TRACE", "...
Returns the destination address associated with this session. Delegates.
[ "Returns", "the", "destination", "address", "associated", "with", "this", "session", ".", "Delegates", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaDestinationSession.java#L149-L164
109,942
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaDestinationSession.java
SibRaDestinationSession.checkValid
protected void checkValid() throws SISessionUnavailableException { if (!_parentConnection.isValid()) { final SISessionUnavailableException exception = new SISessionUnavailableException( NLS.getString("INVALID_SESSION_CWSIV0200")); if (TRACE.isEventEnabled()) { ...
java
protected void checkValid() throws SISessionUnavailableException { if (!_parentConnection.isValid()) { final SISessionUnavailableException exception = new SISessionUnavailableException( NLS.getString("INVALID_SESSION_CWSIV0200")); if (TRACE.isEventEnabled()) { ...
[ "protected", "void", "checkValid", "(", ")", "throws", "SISessionUnavailableException", "{", "if", "(", "!", "_parentConnection", ".", "isValid", "(", ")", ")", "{", "final", "SISessionUnavailableException", "exception", "=", "new", "SISessionUnavailableException", "(...
Checks that the parent connection has not been invalidated by the connection manager. @throws SISessionUnavailableException if the connection has been invalidated
[ "Checks", "that", "the", "parent", "connection", "has", "not", "been", "invalidated", "by", "the", "connection", "manager", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaDestinationSession.java#L190-L203
109,943
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaDispatcher.java
SibRaDispatcher.close
void close() { final String methodName = "close"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } /* * Cancel any ongoing dispatch */ _cancelled = true; if (TraceComponent.isAny...
java
void close() { final String methodName = "close"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } /* * Cancel any ongoing dispatch */ _cancelled = true; if (TraceComponent.isAny...
[ "void", "close", "(", ")", "{", "final", "String", "methodName", "=", "\"close\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", ...
Closes the session associated with this dispatcher and releases the message endpoint.
[ "Closes", "the", "session", "associated", "with", "this", "dispatcher", "and", "releases", "the", "message", "endpoint", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaDispatcher.java#L752-L768
109,944
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaDispatcher.java
SibRaDispatcher.unlockMessages
protected final void unlockMessages(final List messageList, boolean incrementDeliveryCount) throws ResourceException { final String methodName = "unlockMessages"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messageLi...
java
protected final void unlockMessages(final List messageList, boolean incrementDeliveryCount) throws ResourceException { final String methodName = "unlockMessages"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messageLi...
[ "protected", "final", "void", "unlockMessages", "(", "final", "List", "messageList", ",", "boolean", "incrementDeliveryCount", ")", "throws", "ResourceException", "{", "final", "String", "methodName", "=", "\"unlockMessages\"", ";", "if", "(", "TraceComponent", ".", ...
Unlocks a list of messages. @param messageList the messages to unlock @throws ResourceException if the unlock fails
[ "Unlocks", "a", "list", "of", "messages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaDispatcher.java#L798-L847
109,945
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaDispatcher.java
SibRaDispatcher.readAndDeleteMessage
protected final SIBusMessage readAndDeleteMessage(SIMessageHandle handle, SITransaction transaction) throws ResourceException, SIMessageNotLockedException { final String methodName = "deleteMessage"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.ent...
java
protected final SIBusMessage readAndDeleteMessage(SIMessageHandle handle, SITransaction transaction) throws ResourceException, SIMessageNotLockedException { final String methodName = "deleteMessage"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.ent...
[ "protected", "final", "SIBusMessage", "readAndDeleteMessage", "(", "SIMessageHandle", "handle", ",", "SITransaction", "transaction", ")", "throws", "ResourceException", ",", "SIMessageNotLockedException", "{", "final", "String", "methodName", "=", "\"deleteMessage\"", ";", ...
Read and deletes the message under the given transaction. @param handle the handle of the message to read and delete @param transaction the transaction to delete it under, if any @return The message that has been read from the supplied handle @throws ResourceException if the delete fails
[ "Read", "and", "deletes", "the", "message", "under", "the", "given", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaDispatcher.java#L860-L947
109,946
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaDispatcher.java
SibRaDispatcher.deleteMessage
protected final void deleteMessage(SIBusMessage message, SITransaction transaction) throws ResourceException { final String methodName = "deleteMessage"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] { mes...
java
protected final void deleteMessage(SIBusMessage message, SITransaction transaction) throws ResourceException { final String methodName = "deleteMessage"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] { mes...
[ "protected", "final", "void", "deleteMessage", "(", "SIBusMessage", "message", ",", "SITransaction", "transaction", ")", "throws", "ResourceException", "{", "final", "String", "methodName", "=", "\"deleteMessage\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracing...
Deletes the given message under the given transaction. @param message the message to delete @param transaction the transaction to delete it under, if any @throws ResourceException if the delete fails
[ "Deletes", "the", "given", "message", "under", "the", "given", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaDispatcher.java#L959-L974
109,947
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaDispatcher.java
SibRaDispatcher.getMessageHandles
protected static final SIMessageHandle[] getMessageHandles( final List messageList) { final String methodName = "getMessageIds"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(TRACE, methodName, messageList); } final SIMessageH...
java
protected static final SIMessageHandle[] getMessageHandles( final List messageList) { final String methodName = "getMessageIds"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(TRACE, methodName, messageList); } final SIMessageH...
[ "protected", "static", "final", "SIMessageHandle", "[", "]", "getMessageHandles", "(", "final", "List", "messageList", ")", "{", "final", "String", "methodName", "=", "\"getMessageIds\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&"...
Returns an array of message handles for the given list of messages. @param messageList the list of messages @return an array of message handles
[ "Returns", "an", "array", "of", "message", "handles", "for", "the", "given", "list", "of", "messages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaDispatcher.java#L1028-L1048
109,948
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaDispatcher.java
SibRaDispatcher.increaseRetryCount
protected void increaseRetryCount (final SIMessageHandle msgHandle) { final String methodName = "increaseRetryCount"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } try { SIUncoordinatedTransaction ...
java
protected void increaseRetryCount (final SIMessageHandle msgHandle) { final String methodName = "increaseRetryCount"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } try { SIUncoordinatedTransaction ...
[ "protected", "void", "increaseRetryCount", "(", "final", "SIMessageHandle", "msgHandle", ")", "{", "final", "String", "methodName", "=", "\"increaseRetryCount\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEna...
This method is used as a workaround to increase the retry count on a message. The better solution is to allow us to unlock a message passing in a parameter which states if we wish to increase the retry count or not @param msg The message to increase the retry count on
[ "This", "method", "is", "used", "as", "a", "workaround", "to", "increase", "the", "retry", "count", "on", "a", "message", ".", "The", "better", "solution", "is", "to", "allow", "us", "to", "unlock", "a", "message", "passing", "in", "a", "parameter", "whi...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaDispatcher.java#L1150-L1176
109,949
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/CheckpointStartLogRecord.java
CheckpointStartLogRecord.performRecovery
public void performRecovery(ObjectManagerState objectManagerState) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "performRecovery", ...
java
public void performRecovery(ObjectManagerState objectManagerState) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "performRecovery", ...
[ "public", "void", "performRecovery", "(", "ObjectManagerState", "objectManagerState", ")", "throws", "ObjectManagerException", "{", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "trace", ".", "entr...
Called to perform any recovery action during a warm start of the ObjectManager. @param objectManagerState of the ObjectManager performing recovery. @throws ObjectManagerException
[ "Called", "to", "perform", "any", "recovery", "action", "during", "a", "warm", "start", "of", "the", "ObjectManager", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/CheckpointStartLogRecord.java#L152-L176
109,950
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/trm/topology/Cellule.java
Cellule.isLinkCellule
public boolean isLinkCellule () { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isLinkCellule"); boolean rc = (this instanceof LinkCellule); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "isLinkCellule", Boolean.valueOf(rc)); return...
java
public boolean isLinkCellule () { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isLinkCellule"); boolean rc = (this instanceof LinkCellule); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "isLinkCellule", Boolean.valueOf(rc)); return...
[ "public", "boolean", "isLinkCellule", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"isLinkCellule\"", ")", ";", "boolean", "rc",...
Test the current Cellule object to see if it is a LinkCellule @return true if the current object is a LinkCellule otherwise false
[ "Test", "the", "current", "Cellule", "object", "to", "see", "if", "it", "is", "a", "LinkCellule" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/trm/topology/Cellule.java#L38-L45
109,951
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/trm/topology/Cellule.java
Cellule.isMessagingEngine
public boolean isMessagingEngine () { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isMessagingEngine"); boolean rc = (this instanceof MessagingEngine); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "isMessagingEngine", Boolean.valueOf(...
java
public boolean isMessagingEngine () { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isMessagingEngine"); boolean rc = (this instanceof MessagingEngine); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "isMessagingEngine", Boolean.valueOf(...
[ "public", "boolean", "isMessagingEngine", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"isMessagingEngine\"", ")", ";", "boolean",...
Test the current Cellule object to see if it is a MessagingEngine @return true if the current object is a MessagingEngine otherwise false
[ "Test", "the", "current", "Cellule", "object", "to", "see", "if", "it", "is", "a", "MessagingEngine" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/trm/topology/Cellule.java#L74-L81
109,952
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/DirectedAcyclicGraphVerifier.java
DirectedAcyclicGraphVerifier.verify
public static <T> void verify(Vertex<T> vertex) throws CyclicDependencyException { // We need a list of vertices that contains the entire graph, so build it. List<Vertex<T>> vertices = new ArrayList<Vertex<T>>(); addDependencies(vertex, vertices); verify(vertices); }
java
public static <T> void verify(Vertex<T> vertex) throws CyclicDependencyException { // We need a list of vertices that contains the entire graph, so build it. List<Vertex<T>> vertices = new ArrayList<Vertex<T>>(); addDependencies(vertex, vertices); verify(vertices); }
[ "public", "static", "<", "T", ">", "void", "verify", "(", "Vertex", "<", "T", ">", "vertex", ")", "throws", "CyclicDependencyException", "{", "// We need a list of vertices that contains the entire graph, so build it.", "List", "<", "Vertex", "<", "T", ">>", "vertices...
Verify that a vertex and its set of dependencies have no cycles. @param vertex The vertex we want to test. @throws CyclicDependencyException if there is a cycle.
[ "Verify", "that", "a", "vertex", "and", "its", "set", "of", "dependencies", "have", "no", "cycles", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/DirectedAcyclicGraphVerifier.java#L46-L53
109,953
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/DirectedAcyclicGraphVerifier.java
DirectedAcyclicGraphVerifier.addDependencies
private static <T> void addDependencies(final Vertex<T> vertex, final List<Vertex<T>> vertices) { if (!vertices.contains(vertex)) { vertices.add(vertex); for (Vertex<T> v : vertex.getDependencies()) { addDependencies(v, vertices); } ...
java
private static <T> void addDependencies(final Vertex<T> vertex, final List<Vertex<T>> vertices) { if (!vertices.contains(vertex)) { vertices.add(vertex); for (Vertex<T> v : vertex.getDependencies()) { addDependencies(v, vertices); } ...
[ "private", "static", "<", "T", ">", "void", "addDependencies", "(", "final", "Vertex", "<", "T", ">", "vertex", ",", "final", "List", "<", "Vertex", "<", "T", ">", ">", "vertices", ")", "{", "if", "(", "!", "vertices", ".", "contains", "(", "vertex",...
Recursively add a vertex and all of its dependencies to a list of vertices @param vertex Vertex to be added. @param vertices Existing list of vertices.
[ "Recursively", "add", "a", "vertex", "and", "all", "of", "its", "dependencies", "to", "a", "list", "of", "vertices" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/DirectedAcyclicGraphVerifier.java#L62-L73
109,954
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/DirectedAcyclicGraphVerifier.java
DirectedAcyclicGraphVerifier.verify
public static <T> void verify(List<Vertex<T>> vertices) throws CyclicDependencyException { // Reset the orders of all the vertices. resetVertices(vertices); // Assert that all vertices are in the vertices list and resolve each of their orders. Iterator<Vertex<T>> it = vertices.itera...
java
public static <T> void verify(List<Vertex<T>> vertices) throws CyclicDependencyException { // Reset the orders of all the vertices. resetVertices(vertices); // Assert that all vertices are in the vertices list and resolve each of their orders. Iterator<Vertex<T>> it = vertices.itera...
[ "public", "static", "<", "T", ">", "void", "verify", "(", "List", "<", "Vertex", "<", "T", ">", ">", "vertices", ")", "throws", "CyclicDependencyException", "{", "// Reset the orders of all the vertices.", "resetVertices", "(", "vertices", ")", ";", "// Assert tha...
Verify a set of vertices and all their dependencies have no cycles. All Vertices in the graph must exist in the list. @param vertices The list of vertices we want to test. @throws CyclicDependencyException if there is a cycle.
[ "Verify", "a", "set", "of", "vertices", "and", "all", "their", "dependencies", "have", "no", "cycles", ".", "All", "Vertices", "in", "the", "graph", "must", "exist", "in", "the", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/DirectedAcyclicGraphVerifier.java#L83-L111
109,955
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/DirectedAcyclicGraphVerifier.java
DirectedAcyclicGraphVerifier.topologicalSort
public static <T> void topologicalSort(final List<Vertex<T>> vertices) throws CyclicDependencyException { // Verify the graph and set the vertex orders in the process. verify(vertices); // We now that there are no cycles and that each of the vertices has an order // tha...
java
public static <T> void topologicalSort(final List<Vertex<T>> vertices) throws CyclicDependencyException { // Verify the graph and set the vertex orders in the process. verify(vertices); // We now that there are no cycles and that each of the vertices has an order // tha...
[ "public", "static", "<", "T", ">", "void", "topologicalSort", "(", "final", "List", "<", "Vertex", "<", "T", ">", ">", "vertices", ")", "throws", "CyclicDependencyException", "{", "// Verify the graph and set the vertex orders in the process.", "verify", "(", "vertice...
Sort a set of vertices so that no dependency is before its vertex. If we have a vertex named "Parent" and one named "Child" that is listed as a dependency of "Parent", we want to ensure that "Child" always comes after "Parent". As long as there are no cycles in the list, we can sort any number of vertices that may or...
[ "Sort", "a", "set", "of", "vertices", "so", "that", "no", "dependency", "is", "before", "its", "vertex", ".", "If", "we", "have", "a", "vertex", "named", "Parent", "and", "one", "named", "Child", "that", "is", "listed", "as", "a", "dependency", "of", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/DirectedAcyclicGraphVerifier.java#L133-L142
109,956
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/DirectedAcyclicGraphVerifier.java
DirectedAcyclicGraphVerifier.resetVertices
public static <T> void resetVertices(List<Vertex<T>> vertices) { Iterator<Vertex<T>> it = vertices.iterator(); while (it.hasNext()) { it.next().reset(); } }
java
public static <T> void resetVertices(List<Vertex<T>> vertices) { Iterator<Vertex<T>> it = vertices.iterator(); while (it.hasNext()) { it.next().reset(); } }
[ "public", "static", "<", "T", ">", "void", "resetVertices", "(", "List", "<", "Vertex", "<", "T", ">", ">", "vertices", ")", "{", "Iterator", "<", "Vertex", "<", "T", ">>", "it", "=", "vertices", ".", "iterator", "(", ")", ";", "while", "(", "it", ...
Resets all the vertices so that the visitation flags and indegrees are reset to their start values. @param vertices
[ "Resets", "all", "the", "vertices", "so", "that", "the", "visitation", "flags", "and", "indegrees", "are", "reset", "to", "their", "start", "values", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/DirectedAcyclicGraphVerifier.java#L150-L157
109,957
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConfigManager.java
LdapConfigManager.getSupportedProperties
public List<String> getSupportedProperties(String inEntityTypes, List<String> propNames) throws EntityTypeNotSupportedException { List<String> prop = null; Set<String> s = null; if (propNames != null && propNames.size() > 0) { if (inEntityTypes == null) { return propN...
java
public List<String> getSupportedProperties(String inEntityTypes, List<String> propNames) throws EntityTypeNotSupportedException { List<String> prop = null; Set<String> s = null; if (propNames != null && propNames.size() > 0) { if (inEntityTypes == null) { return propN...
[ "public", "List", "<", "String", ">", "getSupportedProperties", "(", "String", "inEntityTypes", ",", "List", "<", "String", ">", "propNames", ")", "throws", "EntityTypeNotSupportedException", "{", "List", "<", "String", ">", "prop", "=", "null", ";", "Set", "<...
Return the sub-list of properties, for the given entity, supported by this repository, from a given list of properties. @param inEntityTypes : List of entity types @param propNames : List of property names read from data object @return list of properties supported by repository for given entity type If the list pr...
[ "Return", "the", "sub", "-", "list", "of", "properties", "for", "the", "given", "entity", "supported", "by", "this", "repository", "from", "a", "given", "list", "of", "properties", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConfigManager.java#L1963-L1992
109,958
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConfigManager.java
LdapConfigManager.getAllLdapEntities
public List<LdapEntity> getAllLdapEntities(String qualifiedType) { List<LdapEntity> entityTypes = new ArrayList<LdapEntity>(); if (qualifiedType != null) { for (int i = 0; i < iLdapEntityTypeList.size(); i++) { String entityType = iLdapEntityTypeList.get(i); ...
java
public List<LdapEntity> getAllLdapEntities(String qualifiedType) { List<LdapEntity> entityTypes = new ArrayList<LdapEntity>(); if (qualifiedType != null) { for (int i = 0; i < iLdapEntityTypeList.size(); i++) { String entityType = iLdapEntityTypeList.get(i); ...
[ "public", "List", "<", "LdapEntity", ">", "getAllLdapEntities", "(", "String", "qualifiedType", ")", "{", "List", "<", "LdapEntity", ">", "entityTypes", "=", "new", "ArrayList", "<", "LdapEntity", ">", "(", ")", ";", "if", "(", "qualifiedType", "!=", "null",...
The method returns the list of VMM entity types based on the qualifiedType read from the data graph. The qualifiedType is first compared with the defined VMM entity types. If a match is not found, it then determines if qualifiedType is a parent entity of defined entity types. @param qualifiedType @return a List of ent...
[ "The", "method", "returns", "the", "list", "of", "VMM", "entity", "types", "based", "on", "the", "qualifiedType", "read", "from", "the", "data", "graph", ".", "The", "qualifiedType", "is", "first", "compared", "with", "the", "defined", "VMM", "entity", "type...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConfigManager.java#L2036-L2062
109,959
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConfigManager.java
LdapConfigManager.getGroupMemberFilter
public String getGroupMemberFilter(String groupMemberDN) { groupMemberDN = escapeSpecialCharacters(groupMemberDN); Object[] args = { groupMemberDN }; return new MessageFormat(iGrpMbrFilter).format(args); }
java
public String getGroupMemberFilter(String groupMemberDN) { groupMemberDN = escapeSpecialCharacters(groupMemberDN); Object[] args = { groupMemberDN }; return new MessageFormat(iGrpMbrFilter).format(args); }
[ "public", "String", "getGroupMemberFilter", "(", "String", "groupMemberDN", ")", "{", "groupMemberDN", "=", "escapeSpecialCharacters", "(", "groupMemberDN", ")", ";", "Object", "[", "]", "args", "=", "{", "groupMemberDN", "}", ";", "return", "new", "MessageFormat"...
Gets the LDAP filter expression for search groups a member belongs to. @param groupMemberDN The Distinguished Name of the member to find groups. @return The LDAP filter expression.
[ "Gets", "the", "LDAP", "filter", "expression", "for", "search", "groups", "a", "member", "belongs", "to", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapConfigManager.java#L2191-L2197
109,960
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.myfaces.2.3/src/org/apache/myfaces/view/facelets/util/Classpath.java
Classpath._searchFromURL
private static void _searchFromURL(Set<URL> result, String prefix, String suffix, URL url) throws IOException { boolean done = false; InputStream is = _getInputStream(url); if (is != null) { try { ZipInputStream zis; if (is ins...
java
private static void _searchFromURL(Set<URL> result, String prefix, String suffix, URL url) throws IOException { boolean done = false; InputStream is = _getInputStream(url); if (is != null) { try { ZipInputStream zis; if (is ins...
[ "private", "static", "void", "_searchFromURL", "(", "Set", "<", "URL", ">", "result", ",", "String", "prefix", ",", "String", "suffix", ",", "URL", "url", ")", "throws", "IOException", "{", "boolean", "done", "=", "false", ";", "InputStream", "is", "=", ...
Search from URL. Fall back on prefix tokens if not able to read from original url param. @param result the result urls @param prefix the current prefix @param suffix the suffix to match @param url the current url to start search @throws IOException for any error
[ "Search", "from", "URL", ".", "Fall", "back", "on", "prefix", "tokens", "if", "not", "able", "to", "read", "from", "original", "url", "param", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.myfaces.2.3/src/org/apache/myfaces/view/facelets/util/Classpath.java#L168-L235
109,961
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.myfaces.2.3/src/org/apache/myfaces/view/facelets/util/Classpath.java
Classpath._join
private static String _join(String[] tokens, boolean excludeLast) { StringBuilder join = new StringBuilder(); int length = tokens.length - (excludeLast ? 1 : 0); for (int i = 0; i < length; i++) { join.append(tokens[i]).append("/"); } return join.toString...
java
private static String _join(String[] tokens, boolean excludeLast) { StringBuilder join = new StringBuilder(); int length = tokens.length - (excludeLast ? 1 : 0); for (int i = 0; i < length; i++) { join.append(tokens[i]).append("/"); } return join.toString...
[ "private", "static", "String", "_join", "(", "String", "[", "]", "tokens", ",", "boolean", "excludeLast", ")", "{", "StringBuilder", "join", "=", "new", "StringBuilder", "(", ")", ";", "int", "length", "=", "tokens", ".", "length", "-", "(", "excludeLast",...
Join tokens, exlude last if param equals true. @param tokens the tokens @param excludeLast do we exclude last token @return joined tokens
[ "Join", "tokens", "exlude", "last", "if", "param", "equals", "true", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.myfaces.2.3/src/org/apache/myfaces/view/facelets/util/Classpath.java#L246-L256
109,962
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.myfaces.2.3/src/org/apache/myfaces/view/facelets/util/Classpath.java
Classpath._getAlternativeJarFile
private static JarFile _getAlternativeJarFile(URL url) throws IOException { String urlFile = url.getFile(); // Find suffix prefixed by "!/" on Weblogic int wlIndex = urlFile.indexOf("!/"); // Find suffix prefixed by '!' on OC4J int oc4jIndex = urlFile.indexOf('!'); /...
java
private static JarFile _getAlternativeJarFile(URL url) throws IOException { String urlFile = url.getFile(); // Find suffix prefixed by "!/" on Weblogic int wlIndex = urlFile.indexOf("!/"); // Find suffix prefixed by '!' on OC4J int oc4jIndex = urlFile.indexOf('!'); /...
[ "private", "static", "JarFile", "_getAlternativeJarFile", "(", "URL", "url", ")", "throws", "IOException", "{", "String", "urlFile", "=", "url", ".", "getFile", "(", ")", ";", "// Find suffix prefixed by \"!/\" on Weblogic", "int", "wlIndex", "=", "urlFile", ".", ...
For URLs to JARs that do not use JarURLConnection - allowed by the servlet spec - attempt to produce a JarFile object all the same. Known servlet engines that function like this include Weblogic and OC4J. This is not a full solution, since an unpacked WAR or EAR will not have JAR "files" as such.
[ "For", "URLs", "to", "JARs", "that", "do", "not", "use", "JarURLConnection", "-", "allowed", "by", "the", "servlet", "spec", "-", "attempt", "to", "produce", "a", "JarFile", "object", "all", "the", "same", ".", "Known", "servlet", "engines", "that", "funct...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.myfaces.2.3/src/org/apache/myfaces/view/facelets/util/Classpath.java#L282-L312
109,963
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMessagingEngineImpl.java
JsMessagingEngineImpl.initializeNewEngineComponent
protected void initializeNewEngineComponent(JsEngineComponent engineComponent) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "initializeNewEngineComponent", engineComponent); } // Synchronize on stateChangeLock to manage the st...
java
protected void initializeNewEngineComponent(JsEngineComponent engineComponent) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "initializeNewEngineComponent", engineComponent); } // Synchronize on stateChangeLock to manage the st...
[ "protected", "void", "initializeNewEngineComponent", "(", "JsEngineComponent", "engineComponent", ")", "throws", "Exception", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", "....
Move state of new component to current engine state @param JsEngineComponent @throws Exception
[ "Move", "state", "of", "new", "component", "to", "current", "engine", "state" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMessagingEngineImpl.java#L255-L286
109,964
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMessagingEngineImpl.java
JsMessagingEngineImpl.destroyOldEngineComponent
protected void destroyOldEngineComponent(ComponentList component) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "destroyOldEngineComponent", component); } boolean removed = jmeComponents.remove(component); if (TraceComponent.isAnyTracin...
java
protected void destroyOldEngineComponent(ComponentList component) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "destroyOldEngineComponent", component); } boolean removed = jmeComponents.remove(component); if (TraceComponent.isAnyTracin...
[ "protected", "void", "destroyOldEngineComponent", "(", "ComponentList", "component", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\...
Destroy an engine component that is to be deleted @param JsEngineComponent
[ "Destroy", "an", "engine", "component", "that", "is", "to", "be", "deleted" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsMessagingEngineImpl.java#L293-L318
109,965
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/DefaultErrorReporter.java
DefaultErrorReporter.printFullStackTrace
public static void printFullStackTrace(PrintWriter out, ServletException e) { // determine the absolute root exception Throwable th = null; while (e != null) { th = e.getRootCause(); if (th == null) { th = e; break...
java
public static void printFullStackTrace(PrintWriter out, ServletException e) { // determine the absolute root exception Throwable th = null; while (e != null) { th = e.getRootCause(); if (th == null) { th = e; break...
[ "public", "static", "void", "printFullStackTrace", "(", "PrintWriter", "out", ",", "ServletException", "e", ")", "{", "// determine the absolute root exception", "Throwable", "th", "=", "null", ";", "while", "(", "e", "!=", "null", ")", "{", "th", "=", "e", "....
method rewritten for defect 105840
[ "method", "rewritten", "for", "defect", "105840" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/DefaultErrorReporter.java#L112-L168
109,966
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/DefaultErrorReporter.java
DefaultErrorReporter.encodeChars
public static String encodeChars(String iString) { if (iString == null) return ""; int strLen = iString.length(), i; if (strLen < 1) return iString; // convert any special chars to their browser equivalent specification StringBuffer retString = new ...
java
public static String encodeChars(String iString) { if (iString == null) return ""; int strLen = iString.length(), i; if (strLen < 1) return iString; // convert any special chars to their browser equivalent specification StringBuffer retString = new ...
[ "public", "static", "String", "encodeChars", "(", "String", "iString", ")", "{", "if", "(", "iString", "==", "null", ")", "return", "\"\"", ";", "int", "strLen", "=", "iString", ".", "length", "(", ")", ",", "i", ";", "if", "(", "strLen", "<", "1", ...
96236 - this method was added for defect 96236
[ "96236", "-", "this", "method", "was", "added", "for", "defect", "96236" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/DefaultErrorReporter.java#L336-L400
109,967
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/ConnectionManager.java
ConnectionManager.getConnection
SocketIOChannel getConnection(TCPConnectRequestContext connectContext, TCPConnLink tcpConnLink, SimpleSync blocking) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "getConnection for local: " + connectContext.getLocalAddress...
java
SocketIOChannel getConnection(TCPConnectRequestContext connectContext, TCPConnLink tcpConnLink, SimpleSync blocking) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "getConnection for local: " + connectContext.getLocalAddress...
[ "SocketIOChannel", "getConnection", "(", "TCPConnectRequestContext", "connectContext", ",", "TCPConnLink", "tcpConnLink", ",", "SimpleSync", "blocking", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", "...
Get a connection. @param connectContext @param tcpConnLink @param blocking @return socket connection for this source/destination combination @throws IOException if there is an error in creating a new connection.
[ "Get", "a", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/ConnectionManager.java#L64-L136
109,968
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/ConnectionManager.java
ConnectionManager.create
private SocketIOChannel create(InetSocketAddress localAddress, TCPConnLink tcpConnLink) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "create"); } SocketIOChannel ioSocket = tcpChannel.createOutboundSocketIOChannel(); So...
java
private SocketIOChannel create(InetSocketAddress localAddress, TCPConnLink tcpConnLink) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "create"); } SocketIOChannel ioSocket = tcpChannel.createOutboundSocketIOChannel(); So...
[ "private", "SocketIOChannel", "create", "(", "InetSocketAddress", "localAddress", ",", "TCPConnLink", "tcpConnLink", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ...
Do the real work of creating and configuring the SocketIOChannel. @param localAddress @param tcpConnLink @return SocketIOChannel @throws IOException
[ "Do", "the", "real", "work", "of", "creating", "and", "configuring", "the", "SocketIOChannel", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/ConnectionManager.java#L146-L223
109,969
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ConnectorModuleRuntimeContainer.java
ConnectorModuleRuntimeContainer.removeServiceListeners
private void removeServiceListeners(String id) { final ServiceListener[] listeners = serviceListeners.remove(id); if (listeners != null) for (ServiceListener listener : listeners) if (listener != null) { lock.readLock().lock(); try { ...
java
private void removeServiceListeners(String id) { final ServiceListener[] listeners = serviceListeners.remove(id); if (listeners != null) for (ServiceListener listener : listeners) if (listener != null) { lock.readLock().lock(); try { ...
[ "private", "void", "removeServiceListeners", "(", "String", "id", ")", "{", "final", "ServiceListener", "[", "]", "listeners", "=", "serviceListeners", ".", "remove", "(", "id", ")", ";", "if", "(", "listeners", "!=", "null", ")", "for", "(", "ServiceListene...
Unregister listeners for configurations processed by the metatype provider @param id resource adapter id
[ "Unregister", "listeners", "for", "configurations", "processed", "by", "the", "metatype", "provider" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ConnectorModuleRuntimeContainer.java#L150-L163
109,970
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ConnectorModuleRuntimeContainer.java
ConnectorModuleRuntimeContainer.stopModule
@Override public void stopModule(ExtendedModuleInfo moduleInfo) { ConnectorModuleMetaDataImpl metadataImpl = (ConnectorModuleMetaDataImpl) moduleInfo.getMetaData(); String id = metadataImpl.getIdentifier(); metaDataService.fireComponentMetaDataDestroyed(metadataImpl.getComponentMetaDatas()[...
java
@Override public void stopModule(ExtendedModuleInfo moduleInfo) { ConnectorModuleMetaDataImpl metadataImpl = (ConnectorModuleMetaDataImpl) moduleInfo.getMetaData(); String id = metadataImpl.getIdentifier(); metaDataService.fireComponentMetaDataDestroyed(metadataImpl.getComponentMetaDatas()[...
[ "@", "Override", "public", "void", "stopModule", "(", "ExtendedModuleInfo", "moduleInfo", ")", "{", "ConnectorModuleMetaDataImpl", "metadataImpl", "=", "(", "ConnectorModuleMetaDataImpl", ")", "moduleInfo", ".", "getMetaData", "(", ")", ";", "String", "id", "=", "me...
Removes all generated metatype for the resource adapter and returns once services provided by the resource adapter are deactivated @see com.ibm.ws.container.service.app.deploy.extended.ModuleRuntimeContainer#stopModule(com.ibm.ws.container.service.app.deploy.ModuleInfo)
[ "Removes", "all", "generated", "metatype", "for", "the", "resource", "adapter", "and", "returns", "once", "services", "provided", "by", "the", "resource", "adapter", "are", "deactivated" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/ConnectorModuleRuntimeContainer.java#L430-L457
109,971
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/genericbnf/KeyMatcher.java
KeyMatcher.add
public synchronized void add(GenericKeys key) { KeyBucket bucket = makeBucket(key.getName().charAt(0)); if (null != bucket) { bucket.add(key); } }
java
public synchronized void add(GenericKeys key) { KeyBucket bucket = makeBucket(key.getName().charAt(0)); if (null != bucket) { bucket.add(key); } }
[ "public", "synchronized", "void", "add", "(", "GenericKeys", "key", ")", "{", "KeyBucket", "bucket", "=", "makeBucket", "(", "key", ".", "getName", "(", ")", ".", "charAt", "(", "0", ")", ")", ";", "if", "(", "null", "!=", "bucket", ")", "{", "bucket...
Add a new enumerated object to the matcher. @param key
[ "Add", "a", "new", "enumerated", "object", "to", "the", "matcher", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/genericbnf/KeyMatcher.java#L92-L97
109,972
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/genericbnf/KeyMatcher.java
KeyMatcher.match
public GenericKeys match(String name, int start, int length) { if (null == name || 0 == name.length() || start < 0 || length > name.length()) { return null; } KeyBucket bucket = getBucket(name.charAt(start)); if (null != bucket) { return bucket.match(name, start, ...
java
public GenericKeys match(String name, int start, int length) { if (null == name || 0 == name.length() || start < 0 || length > name.length()) { return null; } KeyBucket bucket = getBucket(name.charAt(start)); if (null != bucket) { return bucket.match(name, start, ...
[ "public", "GenericKeys", "match", "(", "String", "name", ",", "int", "start", ",", "int", "length", ")", "{", "if", "(", "null", "==", "name", "||", "0", "==", "name", ".", "length", "(", ")", "||", "start", "<", "0", "||", "length", ">", "name", ...
Compare the input value against the stored list of objects and return a match if found. @param name @param start @param length @return GenericKeys, null if not found
[ "Compare", "the", "input", "value", "against", "the", "stored", "list", "of", "objects", "and", "return", "a", "match", "if", "found", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/genericbnf/KeyMatcher.java#L108-L117
109,973
OpenLiberty/open-liberty
dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadFactoryImpl.java
ThreadFactoryImpl.newThread
@Override public Thread newThread(final Runnable runnable) { int threadId = createdThreadCount.incrementAndGet(); final String name = executorName + "-thread-" + threadId; // The AccessControlContext is implicitly copied from the creating // thread, so use doPrivileged to prevent tha...
java
@Override public Thread newThread(final Runnable runnable) { int threadId = createdThreadCount.incrementAndGet(); final String name = executorName + "-thread-" + threadId; // The AccessControlContext is implicitly copied from the creating // thread, so use doPrivileged to prevent tha...
[ "@", "Override", "public", "Thread", "newThread", "(", "final", "Runnable", "runnable", ")", "{", "int", "threadId", "=", "createdThreadCount", ".", "incrementAndGet", "(", ")", ";", "final", "String", "name", "=", "executorName", "+", "\"-thread-\"", "+", "th...
Create a new thread. @param runnable the task to run
[ "Create", "a", "new", "thread", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadFactoryImpl.java#L74-L106
109,974
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java
Jdk14Logger.debug
public void debug(Object message, Throwable exception) { log(Level.FINE, String.valueOf(message), exception); }
java
public void debug(Object message, Throwable exception) { log(Level.FINE, String.valueOf(message), exception); }
[ "public", "void", "debug", "(", "Object", "message", ",", "Throwable", "exception", ")", "{", "log", "(", "Level", ".", "FINE", ",", "String", ".", "valueOf", "(", "message", ")", ",", "exception", ")", ";", "}" ]
Log a message and exception with debug log level.
[ "Log", "a", "message", "and", "exception", "with", "debug", "log", "level", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java#L144-L146
109,975
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java
Jdk14Logger.error
public void error(Object message) { log(Level.SEVERE, String.valueOf(message), null); }
java
public void error(Object message) { log(Level.SEVERE, String.valueOf(message), null); }
[ "public", "void", "error", "(", "Object", "message", ")", "{", "log", "(", "Level", ".", "SEVERE", ",", "String", ".", "valueOf", "(", "message", ")", ",", "null", ")", ";", "}" ]
Log a message with error log level.
[ "Log", "a", "message", "with", "error", "log", "level", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java#L152-L154
109,976
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java
Jdk14Logger.error
public void error(Object message, Throwable exception) { log(Level.SEVERE, String.valueOf(message), exception); }
java
public void error(Object message, Throwable exception) { log(Level.SEVERE, String.valueOf(message), exception); }
[ "public", "void", "error", "(", "Object", "message", ",", "Throwable", "exception", ")", "{", "log", "(", "Level", ".", "SEVERE", ",", "String", ".", "valueOf", "(", "message", ")", ",", "exception", ")", ";", "}" ]
Log a message and exception with error log level.
[ "Log", "a", "message", "and", "exception", "with", "error", "log", "level", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java#L160-L162
109,977
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java
Jdk14Logger.info
public void info(Object message, Throwable exception) { log(Level.INFO, String.valueOf(message), exception); }
java
public void info(Object message, Throwable exception) { log(Level.INFO, String.valueOf(message), exception); }
[ "public", "void", "info", "(", "Object", "message", ",", "Throwable", "exception", ")", "{", "log", "(", "Level", ".", "INFO", ",", "String", ".", "valueOf", "(", "message", ")", ",", "exception", ")", ";", "}" ]
Log a message and exception with info log level.
[ "Log", "a", "message", "and", "exception", "with", "info", "log", "level", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java#L200-L202
109,978
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java
Jdk14Logger.trace
public void trace(Object message) { log(Level.FINEST, String.valueOf(message), null); }
java
public void trace(Object message) { log(Level.FINEST, String.valueOf(message), null); }
[ "public", "void", "trace", "(", "Object", "message", ")", "{", "log", "(", "Level", ".", "FINEST", ",", "String", ".", "valueOf", "(", "message", ")", ",", "null", ")", ";", "}" ]
Log a message with trace log level.
[ "Log", "a", "message", "with", "trace", "log", "level", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java#L256-L258
109,979
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java
Jdk14Logger.trace
public void trace(Object message, Throwable exception) { log(Level.FINEST, String.valueOf(message), exception); }
java
public void trace(Object message, Throwable exception) { log(Level.FINEST, String.valueOf(message), exception); }
[ "public", "void", "trace", "(", "Object", "message", ",", "Throwable", "exception", ")", "{", "log", "(", "Level", ".", "FINEST", ",", "String", ".", "valueOf", "(", "message", ")", ",", "exception", ")", ";", "}" ]
Log a message and exception with trace log level.
[ "Log", "a", "message", "and", "exception", "with", "trace", "log", "level", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java#L264-L266
109,980
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java
Jdk14Logger.warn
public void warn(Object message, Throwable exception) { log(Level.WARNING, String.valueOf(message), exception); }
java
public void warn(Object message, Throwable exception) { log(Level.WARNING, String.valueOf(message), exception); }
[ "public", "void", "warn", "(", "Object", "message", ",", "Throwable", "exception", ")", "{", "log", "(", "Level", ".", "WARNING", ",", "String", ".", "valueOf", "(", "message", ")", ",", "exception", ")", ";", "}" ]
Log a message and exception with warn log level.
[ "Log", "a", "message", "and", "exception", "with", "warn", "log", "level", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.commons.logging/src/org/apache/commons/logging/impl/Jdk14Logger.java#L280-L282
109,981
OpenLiberty/open-liberty
dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/osgi/ConfigVariableIntrospection.java
ConfigVariableIntrospection.getConfigVariables
private Map<String, String> getConfigVariables() { return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() { @Override public Map<String, String> run() { return configVariables.getUserDefinedVariables(); } }); }
java
private Map<String, String> getConfigVariables() { return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() { @Override public Map<String, String> run() { return configVariables.getUserDefinedVariables(); } }); }
[ "private", "Map", "<", "String", ",", "String", ">", "getConfigVariables", "(", ")", "{", "return", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "Map", "<", "String", ",", "String", ">", ">", "(", ")", "{", "@", "Override",...
Get the Config variables in a doPrivileged block. @return the Config variables
[ "Get", "the", "Config", "variables", "in", "a", "doPrivileged", "block", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/osgi/ConfigVariableIntrospection.java#L78-L85
109,982
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/utils/OpenAPIUtils.java
OpenAPIUtils.getUrlAsStream
public static InputStream getUrlAsStream(URL url, String acceptValue) throws IOException { HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); if (acceptValue != null && !acceptValue.trim().isEmpty()) { connection.setRequestPro...
java
public static InputStream getUrlAsStream(URL url, String acceptValue) throws IOException { HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); if (acceptValue != null && !acceptValue.trim().isEmpty()) { connection.setRequestPro...
[ "public", "static", "InputStream", "getUrlAsStream", "(", "URL", "url", ",", "String", "acceptValue", ")", "throws", "IOException", "{", "HttpURLConnection", "connection", "=", "(", "HttpURLConnection", ")", "url", ".", "openConnection", "(", ")", ";", "connection...
Get the resource at the specified URL as an InputStream @param url - resource location @param acceptValue - Request property for 'Accept' header
[ "Get", "the", "resource", "at", "the", "specified", "URL", "as", "an", "InputStream" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/utils/OpenAPIUtils.java#L148-L163
109,983
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/utils/OpenAPIUtils.java
OpenAPIUtils.mapToString
public static String mapToString(Map<String, ?> map) { StringBuilder sb = new StringBuilder(); sb.append("{\n"); for (String key : map.keySet()) { if (map.get(key) != null) { sb.append(key + ": " + map.get(key) + "\n "); } else { continue; ...
java
public static String mapToString(Map<String, ?> map) { StringBuilder sb = new StringBuilder(); sb.append("{\n"); for (String key : map.keySet()) { if (map.get(key) != null) { sb.append(key + ": " + map.get(key) + "\n "); } else { continue; ...
[ "public", "static", "String", "mapToString", "(", "Map", "<", "String", ",", "?", ">", "map", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "\"{\\n\"", ")", ";", "for", "(", "String", "key", ":...
Print map to string @param map - the map to be printed to String
[ "Print", "map", "to", "string" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/utils/OpenAPIUtils.java#L170-L182
109,984
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/SingleFileObjectStore.java
SingleFileObjectStore.force
void force() throws ObjectManagerException { final String methodName = "force"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName); try { storeChannel....
java
void force() throws ObjectManagerException { final String methodName = "force"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName); try { storeChannel....
[ "void", "force", "(", ")", "throws", "ObjectManagerException", "{", "final", "String", "methodName", "=", "\"force\"", ";", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "trace", ".", "entry"...
Force updates to disk. @throws ObjectManagerException
[ "Force", "updates", "to", "disk", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/SingleFileObjectStore.java#L900-L930
109,985
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java
WebJsJmsMessageEncoderImpl.encodeTextBody
private void encodeTextBody(StringBuffer result, JsJmsTextMessage msg) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeTextBody"); try { String body = msg.getText(); if (body != null) { result.append('~'); URLEncode(result, body); } ...
java
private void encodeTextBody(StringBuffer result, JsJmsTextMessage msg) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeTextBody"); try { String body = msg.getText(); if (body != null) { result.append('~'); URLEncode(result, body); } ...
[ "private", "void", "encodeTextBody", "(", "StringBuffer", "result", ",", "JsJmsTextMessage", "msg", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc...
Encode a text message body
[ "Encode", "a", "text", "message", "body" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java#L158-L172
109,986
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java
WebJsJmsMessageEncoderImpl.encodeBytesBody
private void encodeBytesBody(StringBuffer result, JsJmsBytesMessage msg) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeBytesBody"); byte[] body = msg.getBytes(); if (body != null) { result.append('~'); HexString.binToHex(body, 0, body.length, result); ...
java
private void encodeBytesBody(StringBuffer result, JsJmsBytesMessage msg) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeBytesBody"); byte[] body = msg.getBytes(); if (body != null) { result.append('~'); HexString.binToHex(body, 0, body.length, result); ...
[ "private", "void", "encodeBytesBody", "(", "StringBuffer", "result", ",", "JsJmsBytesMessage", "msg", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "...
Encode a bytes message body
[ "Encode", "a", "bytes", "message", "body" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java#L175-L183
109,987
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java
WebJsJmsMessageEncoderImpl.encodeObjectBody
private void encodeObjectBody(StringBuffer result, JsJmsObjectMessage msg) throws MessageEncodeFailedException{ if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeObjectBody"); try { byte[] body = msg.getSerializedObject(); if (body != null) { result.appe...
java
private void encodeObjectBody(StringBuffer result, JsJmsObjectMessage msg) throws MessageEncodeFailedException{ if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeObjectBody"); try { byte[] body = msg.getSerializedObject(); if (body != null) { result.appe...
[ "private", "void", "encodeObjectBody", "(", "StringBuffer", "result", ",", "JsJmsObjectMessage", "msg", ")", "throws", "MessageEncodeFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")"...
Encode an object message body
[ "Encode", "an", "object", "message", "body" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java#L186-L202
109,988
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java
WebJsJmsMessageEncoderImpl.encodeStreamBody
private void encodeStreamBody(StringBuffer result, JsJmsStreamMessage msg) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeStreamBody"); // Internal method to get the stream as a List try { List<Object> body = ((JsJmsStreamMessageImpl)msg).getBodyList(); ...
java
private void encodeStreamBody(StringBuffer result, JsJmsStreamMessage msg) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeStreamBody"); // Internal method to get the stream as a List try { List<Object> body = ((JsJmsStreamMessageImpl)msg).getBodyList(); ...
[ "private", "void", "encodeStreamBody", "(", "StringBuffer", "result", ",", "JsJmsStreamMessage", "msg", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", ...
Encode a stream message body
[ "Encode", "a", "stream", "message", "body" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java#L205-L224
109,989
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java
WebJsJmsMessageEncoderImpl.encodeMapBody
private void encodeMapBody(StringBuffer result, JsJmsMapMessage msg) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeMapBody"); // Internal method to get the map as a Map try { Map<String, Object> body = ((JsJmsMapMessageImpl)msg).getBodyMap(); if (body....
java
private void encodeMapBody(StringBuffer result, JsJmsMapMessage msg) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "encodeMapBody"); // Internal method to get the map as a Map try { Map<String, Object> body = ((JsJmsMapMessageImpl)msg).getBodyMap(); if (body....
[ "private", "void", "encodeMapBody", "(", "StringBuffer", "result", ",", "JsJmsMapMessage", "msg", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc",...
Encode a map message
[ "Encode", "a", "map", "message" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java#L227-L248
109,990
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java
WebJsJmsMessageEncoderImpl.encodePair
private void encodePair(StringBuffer result, String name, Object value, boolean first) { if (!first) result.append('&'); URLEncode(result, name); result.append('='); encodeObject(result, value); }
java
private void encodePair(StringBuffer result, String name, Object value, boolean first) { if (!first) result.append('&'); URLEncode(result, name); result.append('='); encodeObject(result, value); }
[ "private", "void", "encodePair", "(", "StringBuffer", "result", ",", "String", "name", ",", "Object", "value", ",", "boolean", "first", ")", "{", "if", "(", "!", "first", ")", "result", ".", "append", "(", "'", "'", ")", ";", "URLEncode", "(", "result"...
Encode a 'name=value' pair
[ "Encode", "a", "name", "=", "value", "pair" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java#L251-L257
109,991
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java
WebJsJmsMessageEncoderImpl.encodeObject
private void encodeObject(StringBuffer result, Object value) { if (value != null) { if (value instanceof byte[]) { result.append("[]"); HexString.binToHex((byte[])value, 0, ((byte[])value).length, result); } else URLEncode(result, value.toString()); }
java
private void encodeObject(StringBuffer result, Object value) { if (value != null) { if (value instanceof byte[]) { result.append("[]"); HexString.binToHex((byte[])value, 0, ((byte[])value).length, result); } else URLEncode(result, value.toString()); }
[ "private", "void", "encodeObject", "(", "StringBuffer", "result", ",", "Object", "value", ")", "{", "if", "(", "value", "!=", "null", ")", "{", "if", "(", "value", "instanceof", "byte", "[", "]", ")", "{", "result", ".", "append", "(", "\"[]\"", ")", ...
Encode an arbitrary value
[ "Encode", "an", "arbitrary", "value" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsJmsMessageEncoderImpl.java#L260-L267
109,992
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/NBAccept.java
NBAccept.registerPort
public void registerPort(TCPPort endPoint) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "registerPort: " + endPoint.getServerSocket()); } synchronized (this) { EndPointActionInfo work = new EndPointActionInfo(REGIS...
java
public void registerPort(TCPPort endPoint) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "registerPort: " + endPoint.getServerSocket()); } synchronized (this) { EndPointActionInfo work = new EndPointActionInfo(REGIS...
[ "public", "void", "registerPort", "(", "TCPPort", "endPoint", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "tc", ",", ...
Register an end point with this request processor. This creates a listener socket for the end point and puts it into the selector so that connections are accepted. Tells the processor to start accepting requests for the specified end point. @param endPoint @throws IOException
[ "Register", "an", "end", "point", "with", "this", "request", "processor", ".", "This", "creates", "a", "listener", "socket", "for", "the", "end", "point", "and", "puts", "it", "into", "the", "selector", "so", "that", "connections", "are", "accepted", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/NBAccept.java#L66-L127
109,993
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/NBAccept.java
NBAccept.removePort
public void removePort(TCPPort endPoint) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "removePort: " + endPoint.getServerSocket()); } synchronized (this) { NBAcceptChannelSelector accept = endPointToAccept.get(endPoint); ...
java
public void removePort(TCPPort endPoint) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "removePort: " + endPoint.getServerSocket()); } synchronized (this) { NBAcceptChannelSelector accept = endPointToAccept.get(endPoint); ...
[ "public", "void", "removePort", "(", "TCPPort", "endPoint", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "tc", ",", "\"removePort: \"", "+", "...
Removes an end point from the set of end points that we are accepting connections on. This has the effect of removing the server socket from the selector and closing it. Tells the processor to stop accepting requests for the specified end point. The listener socket will be closed. @param endPoint
[ "Removes", "an", "end", "point", "from", "the", "set", "of", "end", "points", "that", "we", "are", "accepting", "connections", "on", ".", "This", "has", "the", "effect", "of", "removing", "the", "server", "socket", "from", "the", "selector", "and", "closin...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/NBAccept.java#L139-L188
109,994
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/LibertyTracePreprocessInstrumentation.java
LibertyTracePreprocessInstrumentation.isClassTrivial
@SuppressWarnings("unchecked") private boolean isClassTrivial(ClassTraceInfo info) { AnnotationNode trivialAnnotation = getAnnotation(TRIVIAL_TYPE.getDescriptor(), info.classNode.visibleAnnotations); if (trivialAnnotation != null) { return true; } return false; }
java
@SuppressWarnings("unchecked") private boolean isClassTrivial(ClassTraceInfo info) { AnnotationNode trivialAnnotation = getAnnotation(TRIVIAL_TYPE.getDescriptor(), info.classNode.visibleAnnotations); if (trivialAnnotation != null) { return true; } return false; }
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "boolean", "isClassTrivial", "(", "ClassTraceInfo", "info", ")", "{", "AnnotationNode", "trivialAnnotation", "=", "getAnnotation", "(", "TRIVIAL_TYPE", ".", "getDescriptor", "(", ")", ",", "info", ".", ...
Determine if the class is &quot;trivial&quot;. @param info the collected class information
[ "Determine", "if", "the", "class", "is", "&quot", ";", "trivial&quot", ";", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/LibertyTracePreprocessInstrumentation.java#L197-L204
109,995
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/LibertyTracePreprocessInstrumentation.java
LibertyTracePreprocessInstrumentation.isMethodAlreadyInjectedAnnotationPresent
@SuppressWarnings("unchecked") private boolean isMethodAlreadyInjectedAnnotationPresent(MethodNode methodNode) { AnnotationNode injectedTraceAnnotation = getAnnotation(INJECTED_TRACE_TYPE.getDescriptor(), methodNode.visibleAnnotations); AnnotationNode manualTraceAnnotation = getAnnotation(MANUAL_TRA...
java
@SuppressWarnings("unchecked") private boolean isMethodAlreadyInjectedAnnotationPresent(MethodNode methodNode) { AnnotationNode injectedTraceAnnotation = getAnnotation(INJECTED_TRACE_TYPE.getDescriptor(), methodNode.visibleAnnotations); AnnotationNode manualTraceAnnotation = getAnnotation(MANUAL_TRA...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "boolean", "isMethodAlreadyInjectedAnnotationPresent", "(", "MethodNode", "methodNode", ")", "{", "AnnotationNode", "injectedTraceAnnotation", "=", "getAnnotation", "(", "INJECTED_TRACE_TYPE", ".", "getDescriptor"...
Check if the specified method has already been annotated as processed by the trace injection framework. @param methodNode the method to examine @return true if a non-FFDC RAS method adapter processed the specified method
[ "Check", "if", "the", "specified", "method", "has", "already", "been", "annotated", "as", "processed", "by", "the", "trace", "injection", "framework", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/LibertyTracePreprocessInstrumentation.java#L447-L469
109,996
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/LibertyTracePreprocessInstrumentation.java
LibertyTracePreprocessInstrumentation.processArguments
@Override public void processArguments(String[] args) throws IOException { List<File> classFiles = new ArrayList<File>(); List<File> jarFiles = new ArrayList<File>(); String[] fileArgs = null; for (int i = 0; i < args.length; i++) { if (args[i].equalsIgnoreCase("--debug"...
java
@Override public void processArguments(String[] args) throws IOException { List<File> classFiles = new ArrayList<File>(); List<File> jarFiles = new ArrayList<File>(); String[] fileArgs = null; for (int i = 0; i < args.length; i++) { if (args[i].equalsIgnoreCase("--debug"...
[ "@", "Override", "public", "void", "processArguments", "(", "String", "[", "]", "args", ")", "throws", "IOException", "{", "List", "<", "File", ">", "classFiles", "=", "new", "ArrayList", "<", "File", ">", "(", ")", ";", "List", "<", "File", ">", "jarF...
Process the command line arguments for the tool @param args the command line arguments @throws IOException the percolated file processing exception
[ "Process", "the", "command", "line", "arguments", "for", "the", "tool" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/LibertyTracePreprocessInstrumentation.java#L773-L828
109,997
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoverableUnitImpl.java
RecoverableUnitImpl.identity
@Override public long identity() { if (tc.isEntryEnabled()) Tr.entry(tc, "identity", this); if (tc.isEntryEnabled()) Tr.exit(tc, "identity", new Long(_identity)); return _identity; }
java
@Override public long identity() { if (tc.isEntryEnabled()) Tr.entry(tc, "identity", this); if (tc.isEntryEnabled()) Tr.exit(tc, "identity", new Long(_identity)); return _identity; }
[ "@", "Override", "public", "long", "identity", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"identity\"", ",", "this", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", ...
Returns the identity of this recoverable unit. @return The identity of this recoverable unit.
[ "Returns", "the", "identity", "of", "this", "recoverable", "unit", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoverableUnitImpl.java#L1178-L1186
109,998
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoverableUnitImpl.java
RecoverableUnitImpl.payloadAdded
protected void payloadAdded(int unwrittenPayloadSize, int totalPayloadSize) { if (tc.isEntryEnabled()) Tr.entry(tc, "payloadAdded", new Object[] { this, new Integer(unwrittenPayloadSize), new Integer(totalPayloadSize) }); _payloadAdded = true; int unwrittenRecLogAdjustment = un...
java
protected void payloadAdded(int unwrittenPayloadSize, int totalPayloadSize) { if (tc.isEntryEnabled()) Tr.entry(tc, "payloadAdded", new Object[] { this, new Integer(unwrittenPayloadSize), new Integer(totalPayloadSize) }); _payloadAdded = true; int unwrittenRecLogAdjustment = un...
[ "protected", "void", "payloadAdded", "(", "int", "unwrittenPayloadSize", ",", "int", "totalPayloadSize", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"payloadAdded\"", ",", "new", "Object", "[", "]"...
Informs the recoverable unit that data has been added to one of its recoverable unit sections. The recoverable unit must use the supplied information to track the amount of active data that it holds. This information must be passed to its parent recovery log in order that it may track the amount of active data in the e...
[ "Informs", "the", "recoverable", "unit", "that", "data", "has", "been", "added", "to", "one", "of", "its", "recoverable", "unit", "sections", ".", "The", "recoverable", "unit", "must", "use", "the", "supplied", "information", "to", "track", "the", "amount", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoverableUnitImpl.java#L1595-L1633
109,999
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoverableUnitImpl.java
RecoverableUnitImpl.payloadWritten
protected void payloadWritten(int payloadSize) { if (tc.isEntryEnabled()) Tr.entry(tc, "payloadWritten", new Object[] { this, new Integer(payloadSize) }); // Track the unwritten payload decrease directly. We take no account for this classes header // values in this figure. The t...
java
protected void payloadWritten(int payloadSize) { if (tc.isEntryEnabled()) Tr.entry(tc, "payloadWritten", new Object[] { this, new Integer(payloadSize) }); // Track the unwritten payload decrease directly. We take no account for this classes header // values in this figure. The t...
[ "protected", "void", "payloadWritten", "(", "int", "payloadSize", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"payloadWritten\"", ",", "new", "Object", "[", "]", "{", "this", ",", "new", "Integ...
Informs the recoverable unit that previously unwritten data has been written to disk by one of its recoverable unit sections and no longer needs to be tracked in the unwritten data field. The recovery log must use the supplied information to track the amount of unwritten active data it holds. This information must be p...
[ "Informs", "the", "recoverable", "unit", "that", "previously", "unwritten", "data", "has", "been", "written", "to", "disk", "by", "one", "of", "its", "recoverable", "unit", "sections", "and", "no", "longer", "needs", "to", "be", "tracked", "in", "the", "unwr...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RecoverableUnitImpl.java#L1685-L1711