repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.getUser
public String getUser() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getUser"); SibTr.exit(tc, "getUser", user); } return user; }
java
public String getUser() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getUser"); SibTr.exit(tc, "getUser", user); } return user; }
[ "public", "String", "getUser", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getUser\"", ")", ";", "SibTr", ".", "exit", "(", "tc", ",", "\"getUser\"", ",", "user", ")", ";", ...
Returns the user. @return String
[ "Returns", "the", "user", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L151-L160
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.setDestination
public void setDestination(String destination) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setDestination", destination); this.destination = destination; if (tc.isEntryEnabled()) SibTr.exit(tc, "setDestination"); }
java
public void setDestination(String destination) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setDestination", destination); this.destination = destination; if (tc.isEntryEnabled()) SibTr.exit(tc, "setDestination"); }
[ "public", "void", "setDestination", "(", "String", "destination", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setDestination\"", ",", "destination", ")", ";", "this", ".", "destination", "=", ...
Sets the destination. @param destination The destination to set
[ "Sets", "the", "destination", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L166-L175
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.setSelector
public void setSelector(String selector) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setSelector", selector); this.selector = selector; if (tc.isEntryEnabled()) SibTr.exit(tc, "setSelector"); }
java
public void setSelector(String selector) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setSelector", selector); this.selector = selector; if (tc.isEntryEnabled()) SibTr.exit(tc, "setSelector"); }
[ "public", "void", "setSelector", "(", "String", "selector", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setSelector\"", ",", "selector", ")", ";", "this", ".", "selector", "=", "selector", ...
Sets the selector. @param selector The selector to set
[ "Sets", "the", "selector", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L181-L190
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.setTopic
public void setTopic(String topic) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setTopic", topic); this.topic = topic; if (tc.isEntryEnabled()) SibTr.exit(tc, "setTopic"); }
java
public void setTopic(String topic) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setTopic", topic); this.topic = topic; if (tc.isEntryEnabled()) SibTr.exit(tc, "setTopic"); }
[ "public", "void", "setTopic", "(", "String", "topic", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setTopic\"", ",", "topic", ")", ";", "this", ".", "topic", "=", "topic", ";", "if", "("...
Sets the topic. @param topic The topic to set
[ "Sets", "the", "topic", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L196-L205
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.isNoLocal
public boolean isNoLocal() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "isNoLocal"); SibTr.exit(tc, "isNoLocal", new Boolean(noLocal)); } return noLocal; }
java
public boolean isNoLocal() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "isNoLocal"); SibTr.exit(tc, "isNoLocal", new Boolean(noLocal)); } return noLocal; }
[ "public", "boolean", "isNoLocal", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"isNoLocal\"", ")", ";", "SibTr", ".", "exit", "(", "tc", ",", "\"isNoLocal\"", ",", "new", "Boolean...
Returns the noLocal. @return boolean
[ "Returns", "the", "noLocal", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L226-L235
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.setNoLocal
public void setNoLocal(boolean noLocal) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setNoLocal", new Boolean(noLocal)); this.noLocal = noLocal; if (tc.isEntryEnabled()) SibTr.exit(tc, "setNoLocal"); }
java
public void setNoLocal(boolean noLocal) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setNoLocal", new Boolean(noLocal)); this.noLocal = noLocal; if (tc.isEntryEnabled()) SibTr.exit(tc, "setNoLocal"); }
[ "public", "void", "setNoLocal", "(", "boolean", "noLocal", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setNoLocal\"", ",", "new", "Boolean", "(", "noLocal", ")", ")", ";", "this", ".", "n...
Sets the noLocal. @param noLocal The noLocal to set
[ "Sets", "the", "noLocal", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L241-L250
train
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.core.3.2/src/org/apache/cxf/common/jaxb/JAXBUtils.java
JAXBUtils.namespaceURIToPackage
@FFDCIgnore(URISyntaxException.class) public static String namespaceURIToPackage(String namespaceURI) { try { return nameSpaceURIToPackage(new URI(namespaceURI)); } catch (URISyntaxException ex) { return null; } }
java
@FFDCIgnore(URISyntaxException.class) public static String namespaceURIToPackage(String namespaceURI) { try { return nameSpaceURIToPackage(new URI(namespaceURI)); } catch (URISyntaxException ex) { return null; } }
[ "@", "FFDCIgnore", "(", "URISyntaxException", ".", "class", ")", "public", "static", "String", "namespaceURIToPackage", "(", "String", "namespaceURI", ")", "{", "try", "{", "return", "nameSpaceURIToPackage", "(", "new", "URI", "(", "namespaceURI", ")", ")", ";",...
Generates a Java package name from a URI according to the algorithm outlined in JAXB 2.0. @param namespaceURI the namespace URI. @return the package name.
[ "Generates", "a", "Java", "package", "name", "from", "a", "URI", "according", "to", "the", "algorithm", "outlined", "in", "JAXB", "2", ".", "0", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.core.3.2/src/org/apache/cxf/common/jaxb/JAXBUtils.java#L269-L276
train
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.core.3.2/src/org/apache/cxf/common/jaxb/JAXBUtils.java
JAXBUtils.nameToIdentifier
public static String nameToIdentifier(String name, IdentifierType type) { if (null == name || name.length() == 0) { return name; } // algorithm will not change an XML name that is already a legal and // conventional (!) Java class, method, or constant identifier bo...
java
public static String nameToIdentifier(String name, IdentifierType type) { if (null == name || name.length() == 0) { return name; } // algorithm will not change an XML name that is already a legal and // conventional (!) Java class, method, or constant identifier bo...
[ "public", "static", "String", "nameToIdentifier", "(", "String", "name", ",", "IdentifierType", "type", ")", "{", "if", "(", "null", "==", "name", "||", "name", ".", "length", "(", ")", "==", "0", ")", "{", "return", "name", ";", "}", "// algorithm will ...
Converts an XML name to a Java identifier according to the mapping algorithm outlined in the JAXB specification @param name the XML name @return the Java identifier
[ "Converts", "an", "XML", "name", "to", "a", "Java", "identifier", "according", "to", "the", "mapping", "algorithm", "outlined", "in", "the", "JAXB", "specification" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.core.3.2/src/org/apache/cxf/common/jaxb/JAXBUtils.java#L402-L445
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.getDefaultSSLSocketFactory
public static String getDefaultSSLSocketFactory() { if (defaultSSLSocketFactory == null) { defaultSSLSocketFactory = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.getProperty("ssl.Soc...
java
public static String getDefaultSSLSocketFactory() { if (defaultSSLSocketFactory == null) { defaultSSLSocketFactory = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.getProperty("ssl.Soc...
[ "public", "static", "String", "getDefaultSSLSocketFactory", "(", ")", "{", "if", "(", "defaultSSLSocketFactory", "==", "null", ")", "{", "defaultSSLSocketFactory", "=", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "String", ">", "(",...
Get the default SSLSocketFactory from Security. @return String
[ "Get", "the", "default", "SSLSocketFactory", "from", "Security", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L203-L214
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.getDefaultSSLServerSocketFactory
public static String getDefaultSSLServerSocketFactory() { if (defaultSSLServerSocketFactory == null) { defaultSSLServerSocketFactory = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.ge...
java
public static String getDefaultSSLServerSocketFactory() { if (defaultSSLServerSocketFactory == null) { defaultSSLServerSocketFactory = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.ge...
[ "public", "static", "String", "getDefaultSSLServerSocketFactory", "(", ")", "{", "if", "(", "defaultSSLServerSocketFactory", "==", "null", ")", "{", "defaultSSLServerSocketFactory", "=", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "Stri...
Get the default SSLServerSocketFactory class from Security. @return String
[ "Get", "the", "default", "SSLServerSocketFactory", "class", "from", "Security", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L221-L232
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.getKeyManagerFactoryAlgorithm
public static String getKeyManagerFactoryAlgorithm() { if (keyManagerFactoryAlgorithm == null) { keyManagerFactoryAlgorithm = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.getProperty...
java
public static String getKeyManagerFactoryAlgorithm() { if (keyManagerFactoryAlgorithm == null) { keyManagerFactoryAlgorithm = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.getProperty...
[ "public", "static", "String", "getKeyManagerFactoryAlgorithm", "(", ")", "{", "if", "(", "keyManagerFactoryAlgorithm", "==", "null", ")", "{", "keyManagerFactoryAlgorithm", "=", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "String", ">...
Get the key manager factory algorithm default from Security. @return String
[ "Get", "the", "key", "manager", "factory", "algorithm", "default", "from", "Security", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L239-L250
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.getTrustManagerFactoryAlgorithm
public static String getTrustManagerFactoryAlgorithm() { if (trustManagerFactoryAlgorithm == null) { trustManagerFactoryAlgorithm = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.getPr...
java
public static String getTrustManagerFactoryAlgorithm() { if (trustManagerFactoryAlgorithm == null) { trustManagerFactoryAlgorithm = AccessController.doPrivileged(new PrivilegedAction<String>() { @Override public String run() { return Security.getPr...
[ "public", "static", "String", "getTrustManagerFactoryAlgorithm", "(", ")", "{", "if", "(", "trustManagerFactoryAlgorithm", "==", "null", ")", "{", "trustManagerFactoryAlgorithm", "=", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "String"...
Get the trust manager factory algorithm default from Security. @return String
[ "Get", "the", "trust", "manager", "factory", "algorithm", "default", "from", "Security", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L257-L268
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.initializeIBMCMSProvider
public static void initializeIBMCMSProvider() throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "initializeIBMCMSProvider"); Provider provider = Security.getProvider(Constants.IBMCMS_NAME); if (provider != null) { if (Trace...
java
public static void initializeIBMCMSProvider() throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "initializeIBMCMSProvider"); Provider provider = Security.getProvider(Constants.IBMCMS_NAME); if (provider != null) { if (Trace...
[ "public", "static", "void", "initializeIBMCMSProvider", "(", ")", "throws", "Exception", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"initiali...
Initialize the IBM CMS provider. @throws Exception
[ "Initialize", "the", "IBM", "CMS", "provider", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L275-L307
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.insertProviderAt
public static void insertProviderAt(Provider newProvider, int slot) { Provider[] provider_list = Security.getProviders(); if (null == provider_list || 0 == provider_list.length) { return; } // add the new provider to the new list at the correct slot #. Provider[] new...
java
public static void insertProviderAt(Provider newProvider, int slot) { Provider[] provider_list = Security.getProviders(); if (null == provider_list || 0 == provider_list.length) { return; } // add the new provider to the new list at the correct slot #. Provider[] new...
[ "public", "static", "void", "insertProviderAt", "(", "Provider", "newProvider", ",", "int", "slot", ")", "{", "Provider", "[", "]", "provider_list", "=", "Security", ".", "getProviders", "(", ")", ";", "if", "(", "null", "==", "provider_list", "||", "0", "...
Insert a provider into Security at the provided slot number. @param newProvider @param slot
[ "Insert", "a", "provider", "into", "Security", "at", "the", "provided", "slot", "number", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L394-L432
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java
JSSEProviderFactory.removeAllProviders
public static void removeAllProviders() { Provider[] provider_list = Security.getProviders(); for (int i = 0; i < provider_list.length; i++) { if (provider_list[i] != null) { String name = provider_list[i].getName(); if (name != null) { Se...
java
public static void removeAllProviders() { Provider[] provider_list = Security.getProviders(); for (int i = 0; i < provider_list.length; i++) { if (provider_list[i] != null) { String name = provider_list[i].getName(); if (name != null) { Se...
[ "public", "static", "void", "removeAllProviders", "(", ")", "{", "Provider", "[", "]", "provider_list", "=", "Security", ".", "getProviders", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "provider_list", ".", "length", ";", "i", "++"...
Remove all providers from Security.
[ "Remove", "all", "providers", "from", "Security", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/JSSEProviderFactory.java#L437-L448
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/AppConfigChecker.java
AppConfigChecker.validateAsyncOnInterfaces
static void validateAsyncOnInterfaces(Class<?>[] ifaces, TraceComponent tc) { if (ifaces != null) { for (Class<?> iface : ifaces) { // d645943 - Modified the fix integrated for d618337 to include both // the class-level and method-level checks. Since no-interface vie...
java
static void validateAsyncOnInterfaces(Class<?>[] ifaces, TraceComponent tc) { if (ifaces != null) { for (Class<?> iface : ifaces) { // d645943 - Modified the fix integrated for d618337 to include both // the class-level and method-level checks. Since no-interface vie...
[ "static", "void", "validateAsyncOnInterfaces", "(", "Class", "<", "?", ">", "[", "]", "ifaces", ",", "TraceComponent", "tc", ")", "{", "if", "(", "ifaces", "!=", "null", ")", "{", "for", "(", "Class", "<", "?", ">", "iface", ":", "ifaces", ")", "{", ...
F743-13921
[ "F743", "-", "13921" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/AppConfigChecker.java#L53-L77
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java
MailSessionService.modified
@Modified protected void modified(ComponentContext context) throws Exception { processProperties(context.getProperties()); deregisterJavaMailMBean(); registerJavaMailMBean(); }
java
@Modified protected void modified(ComponentContext context) throws Exception { processProperties(context.getProperties()); deregisterJavaMailMBean(); registerJavaMailMBean(); }
[ "@", "Modified", "protected", "void", "modified", "(", "ComponentContext", "context", ")", "throws", "Exception", "{", "processProperties", "(", "context", ".", "getProperties", "(", ")", ")", ";", "deregisterJavaMailMBean", "(", ")", ";", "registerJavaMailMBean", ...
The Modified method is how the properties that are defined in the mailSession object of the server.xml are extracted and stored in the sessionProperties. @param context @param bundleContext @throws Exception
[ "The", "Modified", "method", "is", "how", "the", "properties", "that", "are", "defined", "in", "the", "mailSession", "object", "of", "the", "server", ".", "xml", "are", "extracted", "and", "stored", "in", "the", "sessionProperties", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java#L132-L138
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java
MailSessionService.createResource
@Override public Object createResource(ResourceInfo info) throws Exception { Properties propertyNames = createPropertyNames(); Properties props = createProperties(propertyNames); // The listOfPropMap is how the nested properties (name, value pairs) are // pulled from the Nester clas...
java
@Override public Object createResource(ResourceInfo info) throws Exception { Properties propertyNames = createPropertyNames(); Properties props = createProperties(propertyNames); // The listOfPropMap is how the nested properties (name, value pairs) are // pulled from the Nester clas...
[ "@", "Override", "public", "Object", "createResource", "(", "ResourceInfo", "info", ")", "throws", "Exception", "{", "Properties", "propertyNames", "=", "createPropertyNames", "(", ")", ";", "Properties", "props", "=", "createProperties", "(", "propertyNames", ")", ...
The createResource uses the sessionProperties to create a javax.mail.Session object and return it to the caller. The caller uses JNDI look up with the JNDI name defined in the server.xml.
[ "The", "createResource", "uses", "the", "sessionProperties", "to", "create", "a", "javax", ".", "mail", ".", "Session", "object", "and", "return", "it", "to", "the", "caller", ".", "The", "caller", "uses", "JNDI", "look", "up", "with", "the", "JNDI", "name...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java#L159-L178
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java
MailSessionService.createProperties
private Properties createProperties(Properties propertyNames) { Properties props = new Properties(); for (String key : propertiesArray) { if (sessionProperties.get(key) != null) { if (!key.equalsIgnoreCase(STOREPROTOCOLCLASSNAME) && !key.equalsIgnoreCase(TRANSPORTPROTOCOLCLAS...
java
private Properties createProperties(Properties propertyNames) { Properties props = new Properties(); for (String key : propertiesArray) { if (sessionProperties.get(key) != null) { if (!key.equalsIgnoreCase(STOREPROTOCOLCLASSNAME) && !key.equalsIgnoreCase(TRANSPORTPROTOCOLCLAS...
[ "private", "Properties", "createProperties", "(", "Properties", "propertyNames", ")", "{", "Properties", "props", "=", "new", "Properties", "(", ")", ";", "for", "(", "String", "key", ":", "propertiesArray", ")", "{", "if", "(", "sessionProperties", ".", "get"...
The createProperties method will iterate through the sessionProperties and put them into the props object so that it can be used to create the javax.mail.Session @param propertyNames @param props
[ "The", "createProperties", "method", "will", "iterate", "through", "the", "sessionProperties", "and", "put", "them", "into", "the", "props", "object", "so", "that", "it", "can", "be", "used", "to", "create", "the", "javax", ".", "mail", ".", "Session" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java#L187-L207
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java
MailSessionService.createPropertyNames
private Properties createPropertyNames() { Properties propertyNames = new Properties(); propertyNames.setProperty(HOST, "mail.host"); propertyNames.setProperty(USER, "mail.user"); propertyNames.setProperty(FROM, "mail.from"); propertyNames.setProperty(TRANSPORTPROTOCOL, "ma...
java
private Properties createPropertyNames() { Properties propertyNames = new Properties(); propertyNames.setProperty(HOST, "mail.host"); propertyNames.setProperty(USER, "mail.user"); propertyNames.setProperty(FROM, "mail.from"); propertyNames.setProperty(TRANSPORTPROTOCOL, "ma...
[ "private", "Properties", "createPropertyNames", "(", ")", "{", "Properties", "propertyNames", "=", "new", "Properties", "(", ")", ";", "propertyNames", ".", "setProperty", "(", "HOST", ",", "\"mail.host\"", ")", ";", "propertyNames", ".", "setProperty", "(", "US...
The createPropertyName method sets a property for five special strings that can be set in a different method such as mail.host. These are different way to set certain property values and are unique to these five
[ "The", "createPropertyName", "method", "sets", "a", "property", "for", "five", "special", "strings", "that", "can", "be", "set", "in", "a", "different", "method", "such", "as", "mail", ".", "host", ".", "These", "are", "different", "way", "to", "set", "cer...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java#L215-L227
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java
MailSessionService.createSession
private Session createSession(Properties props) throws InvalidPasswordDecodingException, UnsupportedCryptoAlgorithmException { Session session = null; // Since the password attribute in the server.xml is masked // the decryption algorythm is needed to before it can be put // it int...
java
private Session createSession(Properties props) throws InvalidPasswordDecodingException, UnsupportedCryptoAlgorithmException { Session session = null; // Since the password attribute in the server.xml is masked // the decryption algorythm is needed to before it can be put // it int...
[ "private", "Session", "createSession", "(", "Properties", "props", ")", "throws", "InvalidPasswordDecodingException", ",", "UnsupportedCryptoAlgorithmException", "{", "Session", "session", "=", "null", ";", "// Since the password attribute in the server.xml is masked", "// the de...
The createSession method creates a session using the props, if the password is specified in the server.xml then a session is creating using the password. If it is not specified then session is created with out a authenticator. @param props @return session @throws UnsupportedCryptoAlgorithmException @throws InvalidPass...
[ "The", "createSession", "method", "creates", "a", "session", "using", "the", "props", "if", "the", "password", "is", "specified", "in", "the", "server", ".", "xml", "then", "a", "session", "is", "creating", "using", "the", "password", ".", "If", "it", "is"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java#L240-L272
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java
MailSessionService.setMailSessionRegistrar
@Reference(service = MailSessionRegistrar.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL, target = "(component.name=com.ibm.ws.javamail.management.j2ee.MailSessionRegistrarImpl)") protected void setMailSessionRegistrar...
java
@Reference(service = MailSessionRegistrar.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL, target = "(component.name=com.ibm.ws.javamail.management.j2ee.MailSessionRegistrarImpl)") protected void setMailSessionRegistrar...
[ "@", "Reference", "(", "service", "=", "MailSessionRegistrar", ".", "class", ",", "policy", "=", "ReferencePolicy", ".", "DYNAMIC", ",", "cardinality", "=", "ReferenceCardinality", ".", "OPTIONAL", ",", "target", "=", "\"(component.name=com.ibm.ws.javamail.management.j2...
Declarative Services method for setting mail session registrar
[ "Declarative", "Services", "method", "for", "setting", "mail", "session", "registrar" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javamail.1.6/src/com/ibm/ws/javamail/internal/MailSessionService.java#L277-L284
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/MPAlarmImpl.java
MPAlarmImpl.reset
void reset(long time, long latest, AlarmListener listener, Object context, long index) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "reset", new Object[] { new Long(time), new Long(latest), lis...
java
void reset(long time, long latest, AlarmListener listener, Object context, long index) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "reset", new Object[] { new Long(time), new Long(latest), lis...
[ "void", "reset", "(", "long", "time", ",", "long", "latest", ",", "AlarmListener", "listener", ",", "Object", "context", ",", "long", "index", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "...
reset this alarm's values @param time @param latest @param listener @param context
[ "reset", "this", "alarm", "s", "values" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/am/MPAlarmImpl.java#L131-L155
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/config/HpelConfigurator.java
HpelConfigurator.init
public static synchronized void init(HpelTraceServiceConfig config) { if (config == null) throw new NullPointerException("LogProviderConfig must not be null"); loggingConfig.compareAndSet(null, config); }
java
public static synchronized void init(HpelTraceServiceConfig config) { if (config == null) throw new NullPointerException("LogProviderConfig must not be null"); loggingConfig.compareAndSet(null, config); }
[ "public", "static", "synchronized", "void", "init", "(", "HpelTraceServiceConfig", "config", ")", "{", "if", "(", "config", "==", "null", ")", "throw", "new", "NullPointerException", "(", "\"LogProviderConfig must not be null\"", ")", ";", "loggingConfig", ".", "com...
Initializes HPEL Configuration proxy
[ "Initializes", "HPEL", "Configuration", "proxy" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/config/HpelConfigurator.java#L28-L33
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/exceptions/DataStoreAdapterException.java
DataStoreAdapterException.getLinkedException
@Override public Exception getLinkedException() { //return (Exception) getCause(); Throwable t = getCause(); while (t != null) { if (t instanceof Exception) { return (Exception) t; } else { t = t.getCause(); } } ...
java
@Override public Exception getLinkedException() { //return (Exception) getCause(); Throwable t = getCause(); while (t != null) { if (t instanceof Exception) { return (Exception) t; } else { t = t.getCause(); } } ...
[ "@", "Override", "public", "Exception", "getLinkedException", "(", ")", "{", "//return (Exception) getCause();", "Throwable", "t", "=", "getCause", "(", ")", ";", "while", "(", "t", "!=", "null", ")", "{", "if", "(", "t", "instanceof", "Exception", ")", "{",...
Retrieve the exception that was saved away @return Exception
[ "Retrieve", "the", "exception", "that", "was", "saved", "away" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/exceptions/DataStoreAdapterException.java#L196-L208
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java
AdvancedLockManager.lock
public synchronized void lock() { if (tc.isEntryEnabled()) SibTr.entry(tc, "lock", this); boolean interrupted = false; // Attempt to get a lock on the mutex. // if we fail, then that is because the lock // must be held exclusively. while (!tryLock()) try { // Wait f...
java
public synchronized void lock() { if (tc.isEntryEnabled()) SibTr.entry(tc, "lock", this); boolean interrupted = false; // Attempt to get a lock on the mutex. // if we fail, then that is because the lock // must be held exclusively. while (!tryLock()) try { // Wait f...
[ "public", "synchronized", "void", "lock", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"lock\"", ",", "this", ")", ";", "boolean", "interrupted", "=", "false", ";", "// Attempt to get a lo...
This method allows multiple lockers to lock the same mutex, until the lock exclusive is called. Then all lock requesters have to wait until the exclusive lock is released.
[ "This", "method", "allows", "multiple", "lockers", "to", "lock", "the", "same", "mutex", "until", "the", "lock", "exclusive", "is", "called", ".", "Then", "all", "lock", "requesters", "have", "to", "wait", "until", "the", "exclusive", "lock", "is", "released...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java#L82-L112
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java
AdvancedLockManager.tryLock
private boolean tryLock() { if (tc.isEntryEnabled()) SibTr.entry(tc, "tryLock", this); boolean result = false; synchronized (iMutex) { // Check that we aren't exclusively locked. if (!iExclusivelyLocked || iExclusiveLockHolder == Thread.currentThread()) { incrementThr...
java
private boolean tryLock() { if (tc.isEntryEnabled()) SibTr.entry(tc, "tryLock", this); boolean result = false; synchronized (iMutex) { // Check that we aren't exclusively locked. if (!iExclusivelyLocked || iExclusiveLockHolder == Thread.currentThread()) { incrementThr...
[ "private", "boolean", "tryLock", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"tryLock\"", ",", "this", ")", ";", "boolean", "result", "=", "false", ";", "synchronized", "(", "iMutex", ...
This method increments a the number of locks that have been obtained. If the thread requesting the lock happens to be the thread that already has the exclusive lock we let that succeed as we don't want to cause any dead locks ! @return boolean if the lock was achieved.
[ "This", "method", "increments", "a", "the", "number", "of", "locks", "that", "have", "been", "obtained", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java#L125-L146
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java
AdvancedLockManager.incrementThreadLockCount
private void incrementThreadLockCount() { if (tc.isEntryEnabled()) SibTr.entry(tc, "incrementThreadLockCount", this); //get the current thread Thread currentThread = Thread.currentThread(); //get it's current read lock count LockCount count = (LockCount) readerThreads.get(currentThread); ...
java
private void incrementThreadLockCount() { if (tc.isEntryEnabled()) SibTr.entry(tc, "incrementThreadLockCount", this); //get the current thread Thread currentThread = Thread.currentThread(); //get it's current read lock count LockCount count = (LockCount) readerThreads.get(currentThread); ...
[ "private", "void", "incrementThreadLockCount", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"incrementThreadLockCount\"", ",", "this", ")", ";", "//get the current thread", "Thread", "currentThrea...
The mutex must be held before calling this method. Increments the read lock count for a given thread. If this is the first time a given thread has taken a read lock, a new entry is created for it in the HashMap.
[ "The", "mutex", "must", "be", "held", "before", "calling", "this", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java#L155-L176
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java
AdvancedLockManager.alienReadLocksHeld
private boolean alienReadLocksHeld() { if (tc.isEntryEnabled()) SibTr.entry(tc, "alienReadLocksHeld", this); boolean locksHeld = false; //if there is more than one thread holding read locks then return true if(readerThreadCount > 1) { locksHeld = true; } //if there is...
java
private boolean alienReadLocksHeld() { if (tc.isEntryEnabled()) SibTr.entry(tc, "alienReadLocksHeld", this); boolean locksHeld = false; //if there is more than one thread holding read locks then return true if(readerThreadCount > 1) { locksHeld = true; } //if there is...
[ "private", "boolean", "alienReadLocksHeld", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"alienReadLocksHeld\"", ",", "this", ")", ";", "boolean", "locksHeld", "=", "false", ";", "//if there...
The mutex must be help before calling this method. Are there any read locks held by threads other than the current one? @return true if there any read locks held by threads other than the current one
[ "The", "mutex", "must", "be", "help", "before", "calling", "this", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java#L303-L331
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java
AdvancedLockManager.tryLockExclusive
private boolean tryLockExclusive() { if (tc.isEntryEnabled()) SibTr.entry(tc, "tryLockExclusive", this); boolean result = false; // Synchronize on the locking Mutex synchronized (iMutex) { // If it isn't already locked - lock it on this thread. if (!iExclusivelyLocked) { ...
java
private boolean tryLockExclusive() { if (tc.isEntryEnabled()) SibTr.entry(tc, "tryLockExclusive", this); boolean result = false; // Synchronize on the locking Mutex synchronized (iMutex) { // If it isn't already locked - lock it on this thread. if (!iExclusivelyLocked) { ...
[ "private", "boolean", "tryLockExclusive", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"tryLockExclusive\"", ",", "this", ")", ";", "boolean", "result", "=", "false", ";", "// Synchronize on...
This method attempts to lock the exclusively and won't succeed until it has the exclusive lock. @return boolean true if it is now the exclusive lock holder, false if a wait is still needed to lock exclusively
[ "This", "method", "attempts", "to", "lock", "the", "exclusively", "and", "won", "t", "succeed", "until", "it", "has", "the", "exclusive", "lock", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java#L342-L387
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java
AdvancedLockManager.unlockExclusive
public synchronized void unlockExclusive() { if (tc.isEntryEnabled()) SibTr.entry(tc, "unlockExclusive", this); // Synchronize on the locking Mutex. synchronized (iMutex) { // Only release the lock if the holder is the current thread. if (Thread.currentThread() == iExclusiveLockHold...
java
public synchronized void unlockExclusive() { if (tc.isEntryEnabled()) SibTr.entry(tc, "unlockExclusive", this); // Synchronize on the locking Mutex. synchronized (iMutex) { // Only release the lock if the holder is the current thread. if (Thread.currentThread() == iExclusiveLockHold...
[ "public", "synchronized", "void", "unlockExclusive", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"unlockExclusive\"", ",", "this", ")", ";", "// Synchronize on the locking Mutex.", "synchronized"...
This method unlocks the exclusive lock that was held. It also notifies any lock waiters.
[ "This", "method", "unlocks", "the", "exclusive", "lock", "that", "was", "held", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AdvancedLockManager.java#L395-L432
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/webapp/webxml/WebXml.java
WebXml.init
public static void init(ExternalContext context) { WebXmlParser parser = new WebXmlParser(context); WebXml webXml = parser.parse(); context.getApplicationMap().put(WEB_XML_ATTR, webXml); MyfacesConfig mfconfig = MyfacesConfig.getCurrentInstance(context); long configRefreshPer...
java
public static void init(ExternalContext context) { WebXmlParser parser = new WebXmlParser(context); WebXml webXml = parser.parse(); context.getApplicationMap().put(WEB_XML_ATTR, webXml); MyfacesConfig mfconfig = MyfacesConfig.getCurrentInstance(context); long configRefreshPer...
[ "public", "static", "void", "init", "(", "ExternalContext", "context", ")", "{", "WebXmlParser", "parser", "=", "new", "WebXmlParser", "(", "context", ")", ";", "WebXml", "webXml", "=", "parser", ".", "parse", "(", ")", ";", "context", ".", "getApplicationMa...
should be called when initialising Servlet @param context
[ "should", "be", "called", "when", "initialising", "Servlet" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/webapp/webxml/WebXml.java#L275-L285
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsErrorUtils.java
JmsErrorUtils.filterThrowable
private static void filterThrowable(Throwable t) { // Now we want to remove the superfluous lines of stack trace from the // exception (those that have been inserted as a result of the way we // created the exception. StackTraceElement[] stackLines = t.getStackTrace(); // If th...
java
private static void filterThrowable(Throwable t) { // Now we want to remove the superfluous lines of stack trace from the // exception (those that have been inserted as a result of the way we // created the exception. StackTraceElement[] stackLines = t.getStackTrace(); // If th...
[ "private", "static", "void", "filterThrowable", "(", "Throwable", "t", ")", "{", "// Now we want to remove the superfluous lines of stack trace from the", "// exception (those that have been inserted as a result of the way we", "// created the exception.", "StackTraceElement", "[", "]", ...
This method filters the stack trace of the parameter object to remove all trace of the newThrowable and reflection calls that have been made. @param t
[ "This", "method", "filters", "the", "stack", "trace", "of", "the", "parameter", "object", "to", "remove", "all", "trace", "of", "the", "newThrowable", "and", "reflection", "calls", "that", "have", "been", "made", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsErrorUtils.java#L425-L470
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsErrorUtils.java
JmsErrorUtils.getJMS2Exception
public static Throwable getJMS2Exception(JMSException jmse, Class exceptionToBeThrown) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getJMS2Exceptions", new Object[] { jmse, exceptionToBeThrown }); JMSRuntimeException jmsre = nu...
java
public static Throwable getJMS2Exception(JMSException jmse, Class exceptionToBeThrown) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getJMS2Exceptions", new Object[] { jmse, exceptionToBeThrown }); JMSRuntimeException jmsre = nu...
[ "public", "static", "Throwable", "getJMS2Exception", "(", "JMSException", "jmse", ",", "Class", "exceptionToBeThrown", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", ...
This is a generic function to convert all the JMS 1.1 exceptions to JMS 2.0 exception. It uses reflection to create the desired JMS2.0 exception @param jmse The JMSException @param exceptionToBeThrown The exception which has to be returned @return Throwable It can be of type IllegalStateRuntimeException, InvalidClient...
[ "This", "is", "a", "generic", "function", "to", "convert", "all", "the", "JMS", "1", ".", "1", "exceptions", "to", "JMS", "2", ".", "0", "exception", ".", "It", "uses", "reflection", "to", "create", "the", "desired", "JMS2", ".", "0", "exception" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsErrorUtils.java#L482-L507
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot_fat/fat/src/com/ibm/wsspi/kernel/embeddable/EmbeddedServerDriver.java
EmbeddedServerDriver.isProductExtensionInstalled
private boolean isProductExtensionInstalled(String inputString, String productExtension) { if ((productExtension == null) || (inputString == null)) { return false; } int msgIndex = inputString.indexOf("CWWKF0012I: The server installed the following features:"); if (msgIndex =...
java
private boolean isProductExtensionInstalled(String inputString, String productExtension) { if ((productExtension == null) || (inputString == null)) { return false; } int msgIndex = inputString.indexOf("CWWKF0012I: The server installed the following features:"); if (msgIndex =...
[ "private", "boolean", "isProductExtensionInstalled", "(", "String", "inputString", ",", "String", "productExtension", ")", "{", "if", "(", "(", "productExtension", "==", "null", ")", "||", "(", "inputString", "==", "null", ")", ")", "{", "return", "false", ";"...
Determine if the input product extension exists in the input string. @param inputString string to search. @param productExtension product extension to search for. @return true if input product extension is found in the input string.
[ "Determine", "if", "the", "input", "product", "extension", "exists", "in", "the", "input", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot_fat/fat/src/com/ibm/wsspi/kernel/embeddable/EmbeddedServerDriver.java#L239-L263
train
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/utils/HttpUtils.java
HttpUtils.encodePartiallyEncoded
public static String encodePartiallyEncoded(String encoded, boolean query) { if (encoded.length() == 0) { return encoded; } Matcher m = ENCODE_PATTERN.matcher(encoded); if (!m.find()) { return query ? HttpUtils.queryEncode(encoded) : HttpUtils.pathEncode(encoded)...
java
public static String encodePartiallyEncoded(String encoded, boolean query) { if (encoded.length() == 0) { return encoded; } Matcher m = ENCODE_PATTERN.matcher(encoded); if (!m.find()) { return query ? HttpUtils.queryEncode(encoded) : HttpUtils.pathEncode(encoded)...
[ "public", "static", "String", "encodePartiallyEncoded", "(", "String", "encoded", ",", "boolean", "query", ")", "{", "if", "(", "encoded", ".", "length", "(", ")", "==", "0", ")", "{", "return", "encoded", ";", "}", "Matcher", "m", "=", "ENCODE_PATTERN", ...
Encodes partially encoded string. Encode all values but those matching pattern "percent char followed by two hexadecimal digits". @param encoded fully or partially encoded string. @return fully encoded string
[ "Encodes", "partially", "encoded", "string", ".", "Encode", "all", "values", "but", "those", "matching", "pattern", "percent", "char", "followed", "by", "two", "hexadecimal", "digits", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/utils/HttpUtils.java#L191-L213
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java
HpelCBEFormatter.formatRecord
@Override public String formatRecord(RepositoryLogRecord record, Locale locale) { if (null == record) { throw new IllegalArgumentException("Record cannot be null"); } return getFormattedRecord(record, locale); }
java
@Override public String formatRecord(RepositoryLogRecord record, Locale locale) { if (null == record) { throw new IllegalArgumentException("Record cannot be null"); } return getFormattedRecord(record, locale); }
[ "@", "Override", "public", "String", "formatRecord", "(", "RepositoryLogRecord", "record", ",", "Locale", "locale", ")", "{", "if", "(", "null", "==", "record", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Record cannot be null\"", ")", ";", "}"...
Formats a RepositoryLogRecord into a localized CBE format output String. @param record the RepositoryLogRecord to be formatted @param locale the Locale to use for localization when formatting this record. @return the formated string output.
[ "Formats", "a", "RepositoryLogRecord", "into", "a", "localized", "CBE", "format", "output", "String", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L51-L58
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java
HpelCBEFormatter.getFormattedRecord
public String getFormattedRecord(RepositoryLogRecord record, Locale locale) { StringBuilder sb = new StringBuilder(300); //create opening tag for the CBE Event createEventOTag(sb, record, locale); //add the CBE elements createExtendedElement(sb, record); createExtendedElement(sb, "CommonBaseEventLogReco...
java
public String getFormattedRecord(RepositoryLogRecord record, Locale locale) { StringBuilder sb = new StringBuilder(300); //create opening tag for the CBE Event createEventOTag(sb, record, locale); //add the CBE elements createExtendedElement(sb, record); createExtendedElement(sb, "CommonBaseEventLogReco...
[ "public", "String", "getFormattedRecord", "(", "RepositoryLogRecord", "record", ",", "Locale", "locale", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", "300", ")", ";", "//create opening tag for the CBE Event", "createEventOTag", "(", "sb", ",", ...
Gets a String representation of a log record as a CBEEvent XML element @param record of the event. @param locale the locale to use when printing the output. @return String representation of the record in CBE format.
[ "Gets", "a", "String", "representation", "of", "a", "log", "record", "as", "a", "CBEEvent", "XML", "element" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L78-L127
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java
HpelCBEFormatter.createEventOTag
private void createEventOTag(StringBuilder sb, RepositoryLogRecord record, Locale locale){ sb.append("<CommonBaseEvent creationTime=\""); // create the XML dateTime format // TimeZone is UTC, but since we are dealing with Millis we are already in UTC. sb.append(CBE_DATE_FORMAT.format(record.getMillis())); sb....
java
private void createEventOTag(StringBuilder sb, RepositoryLogRecord record, Locale locale){ sb.append("<CommonBaseEvent creationTime=\""); // create the XML dateTime format // TimeZone is UTC, but since we are dealing with Millis we are already in UTC. sb.append(CBE_DATE_FORMAT.format(record.getMillis())); sb....
[ "private", "void", "createEventOTag", "(", "StringBuilder", "sb", ",", "RepositoryLogRecord", "record", ",", "Locale", "locale", ")", "{", "sb", ".", "append", "(", "\"<CommonBaseEvent creationTime=\\\"\"", ")", ";", "// create the XML dateTime format", "// TimeZone is UT...
Appends the opening tag of a CommonBaseEvent XML element to a string buffer @param sb the string buffer the tag will be added to @param record the record that represents the common base event @param locale locale to be used for formatting the log record into CBE
[ "Appends", "the", "opening", "tag", "of", "a", "CommonBaseEvent", "XML", "element", "to", "a", "string", "buffer" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L146-L170
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java
HpelCBEFormatter.createSituationElement
private void createSituationElement(StringBuilder sb){ sb.append(lineSeparator).append(INDENT[0]).append("<situation categoryName=\"ReportSituation\">"); sb.append(lineSeparator).append(INDENT[1]).append( "<situationType xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"ReportSituation\" reasonin...
java
private void createSituationElement(StringBuilder sb){ sb.append(lineSeparator).append(INDENT[0]).append("<situation categoryName=\"ReportSituation\">"); sb.append(lineSeparator).append(INDENT[1]).append( "<situationType xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"ReportSituation\" reasonin...
[ "private", "void", "createSituationElement", "(", "StringBuilder", "sb", ")", "{", "sb", ".", "append", "(", "lineSeparator", ")", ".", "append", "(", "INDENT", "[", "0", "]", ")", ".", "append", "(", "\"<situation categoryName=\\\"ReportSituation\\\">\"", ")", ...
Appends the CBE Situation XML element of a record to a String buffer @param sb the string buffer the element will be added to
[ "Appends", "the", "CBE", "Situation", "XML", "element", "of", "a", "record", "to", "a", "String", "buffer" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L177-L182
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java
HpelCBEFormatter.createSourceElement
private void createSourceElement(StringBuilder sb, RepositoryLogRecord record){ String hostAddr = headerProps.getProperty(ServerInstanceLogRecordList.HEADER_HOSTADDRESS) == null? "": headerProps.getProperty(ServerInstanceLogRecordList.HEADER_HOSTADDRESS); String hostType = headerProps.getProperty(ServerInstanceLogR...
java
private void createSourceElement(StringBuilder sb, RepositoryLogRecord record){ String hostAddr = headerProps.getProperty(ServerInstanceLogRecordList.HEADER_HOSTADDRESS) == null? "": headerProps.getProperty(ServerInstanceLogRecordList.HEADER_HOSTADDRESS); String hostType = headerProps.getProperty(ServerInstanceLogR...
[ "private", "void", "createSourceElement", "(", "StringBuilder", "sb", ",", "RepositoryLogRecord", "record", ")", "{", "String", "hostAddr", "=", "headerProps", ".", "getProperty", "(", "ServerInstanceLogRecordList", ".", "HEADER_HOSTADDRESS", ")", "==", "null", "?", ...
Appends the CBE Source XML element of a record to a String buffer @param sb the string buffer the element will be added to @param record the record that represents the common base event
[ "Appends", "the", "CBE", "Source", "XML", "element", "of", "a", "record", "to", "a", "String", "buffer" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L190-L201
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java
HpelCBEFormatter.createMessageElement
private void createMessageElement(StringBuilder sb, RepositoryLogRecord record){ // 660484 elim string concat sb.append(lineSeparator).append(INDENT[0]).append("<msgDataElement msgLocale=\"").append(record.getMessageLocale()).append("\">"); if (record.getParameters() != null) { // how many params do we have? ...
java
private void createMessageElement(StringBuilder sb, RepositoryLogRecord record){ // 660484 elim string concat sb.append(lineSeparator).append(INDENT[0]).append("<msgDataElement msgLocale=\"").append(record.getMessageLocale()).append("\">"); if (record.getParameters() != null) { // how many params do we have? ...
[ "private", "void", "createMessageElement", "(", "StringBuilder", "sb", ",", "RepositoryLogRecord", "record", ")", "{", "// 660484 elim string concat", "sb", ".", "append", "(", "lineSeparator", ")", ".", "append", "(", "INDENT", "[", "0", "]", ")", ".", "append"...
Appends the CBE Message Element XML element of a record to a String buffer @param sb the string buffer the element will be added to @param record the record that represents the common base event
[ "Appends", "the", "CBE", "Message", "Element", "XML", "element", "of", "a", "record", "to", "a", "String", "buffer" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L209-L238
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java
HpelCBEFormatter.createExtendedElement
private void createExtendedElement(StringBuilder sb, RepositoryLogRecord record){ sb.append(lineSeparator).append(INDENT[0]).append("<extendedDataElements name=\"CommonBaseEventLogRecord:level\" type=\"noValue\">"); sb.append(lineSeparator).append(INDENT[1]).append("<children name=\"CommonBaseEventLogRecord:name\" ...
java
private void createExtendedElement(StringBuilder sb, RepositoryLogRecord record){ sb.append(lineSeparator).append(INDENT[0]).append("<extendedDataElements name=\"CommonBaseEventLogRecord:level\" type=\"noValue\">"); sb.append(lineSeparator).append(INDENT[1]).append("<children name=\"CommonBaseEventLogRecord:name\" ...
[ "private", "void", "createExtendedElement", "(", "StringBuilder", "sb", ",", "RepositoryLogRecord", "record", ")", "{", "sb", ".", "append", "(", "lineSeparator", ")", ".", "append", "(", "INDENT", "[", "0", "]", ")", ".", "append", "(", "\"<extendedDataElemen...
Appends the CBE Extended Data Element of a record to a String buffer @param sb the string buffer the element will be added to @param record the record that represents the common base event
[ "Appends", "the", "CBE", "Extended", "Data", "Element", "of", "a", "record", "to", "a", "String", "buffer" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L246-L255
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java
HpelCBEFormatter.createExtendedElement
private void createExtendedElement(StringBuilder sb, RepositoryLogRecord record, String extensionID){ String edeValue = record.getExtension(extensionID); if (edeValue != null && !edeValue.isEmpty()){ createExtendedElement(sb, extensionID, "string", edeValue); } }
java
private void createExtendedElement(StringBuilder sb, RepositoryLogRecord record, String extensionID){ String edeValue = record.getExtension(extensionID); if (edeValue != null && !edeValue.isEmpty()){ createExtendedElement(sb, extensionID, "string", edeValue); } }
[ "private", "void", "createExtendedElement", "(", "StringBuilder", "sb", ",", "RepositoryLogRecord", "record", ",", "String", "extensionID", ")", "{", "String", "edeValue", "=", "record", ".", "getExtension", "(", "extensionID", ")", ";", "if", "(", "edeValue", "...
Appends the CBE Extended Data Element of a record's extension to a String buffer @param sb the string buffer the element will be added to @param record the record that represents the common base event @param extensionId the extension ID field from the record to use
[ "Appends", "the", "CBE", "Extended", "Data", "Element", "of", "a", "record", "s", "extension", "to", "a", "String", "buffer" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L264-L269
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java
HpelCBEFormatter.createExtendedElement
private void createExtendedElement(StringBuilder sb, String edeName, String edeType, String edeValues) { sb.append(lineSeparator).append(INDENT[0]).append("<extendedDataElements name=\"").append(edeName).append("\" type=\"").append(edeType).append("\">"); sb.append(lineSeparator).append(INDENT[1]).append("<values>"...
java
private void createExtendedElement(StringBuilder sb, String edeName, String edeType, String edeValues) { sb.append(lineSeparator).append(INDENT[0]).append("<extendedDataElements name=\"").append(edeName).append("\" type=\"").append(edeType).append("\">"); sb.append(lineSeparator).append(INDENT[1]).append("<values>"...
[ "private", "void", "createExtendedElement", "(", "StringBuilder", "sb", ",", "String", "edeName", ",", "String", "edeType", ",", "String", "edeValues", ")", "{", "sb", ".", "append", "(", "lineSeparator", ")", ".", "append", "(", "INDENT", "[", "0", "]", "...
Prints and extendedDataElement for CBE output Formatter's time zone. @param sb the string buffer the element will be added to @param edeName the name of the extendedDataElement. @param edeType the data type for the extendedDataElement value(s). @param edeValues the values for this extendedDataElement.
[ "Prints", "and", "extendedDataElement", "for", "CBE", "output", "Formatter", "s", "time", "zone", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/HpelCBEFormatter.java#L280-L284
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/WebSecurityHelperImpl.java
WebSecurityHelperImpl.constructLTPACookieObj
private static Cookie constructLTPACookieObj(SingleSignonToken ssoToken) { byte[] ssoTokenBytes = ssoToken.getBytes(); String ssoCookieString = Base64Coder.base64EncodeToString(ssoTokenBytes); Cookie cookie = new Cookie(webAppSecConfig.getSSOCookieName(), ssoCookieString); return cookie;...
java
private static Cookie constructLTPACookieObj(SingleSignonToken ssoToken) { byte[] ssoTokenBytes = ssoToken.getBytes(); String ssoCookieString = Base64Coder.base64EncodeToString(ssoTokenBytes); Cookie cookie = new Cookie(webAppSecConfig.getSSOCookieName(), ssoCookieString); return cookie;...
[ "private", "static", "Cookie", "constructLTPACookieObj", "(", "SingleSignonToken", "ssoToken", ")", "{", "byte", "[", "]", "ssoTokenBytes", "=", "ssoToken", ".", "getBytes", "(", ")", ";", "String", "ssoCookieString", "=", "Base64Coder", ".", "base64EncodeToString",...
builds an LTPACookie object
[ "builds", "an", "LTPACookie", "object" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/WebSecurityHelperImpl.java#L42-L47
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/WebSecurityHelperImpl.java
WebSecurityHelperImpl.getLTPACookie
static Cookie getLTPACookie(final Subject subject) throws Exception { Cookie ltpaCookie = null; SingleSignonToken ssoToken = null; Set<SingleSignonToken> ssoTokens = subject.getPrivateCredentials(SingleSignonToken.class); Iterator<SingleSignonToken> ssoTokensIterator = ssoTokens.iterator...
java
static Cookie getLTPACookie(final Subject subject) throws Exception { Cookie ltpaCookie = null; SingleSignonToken ssoToken = null; Set<SingleSignonToken> ssoTokens = subject.getPrivateCredentials(SingleSignonToken.class); Iterator<SingleSignonToken> ssoTokensIterator = ssoTokens.iterator...
[ "static", "Cookie", "getLTPACookie", "(", "final", "Subject", "subject", ")", "throws", "Exception", "{", "Cookie", "ltpaCookie", "=", "null", ";", "SingleSignonToken", "ssoToken", "=", "null", ";", "Set", "<", "SingleSignonToken", ">", "ssoTokens", "=", "subjec...
Gets the LTPA cookie from the given subject @param subject @return @throws Exception
[ "Gets", "the", "LTPA", "cookie", "from", "the", "given", "subject" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/WebSecurityHelperImpl.java#L56-L75
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/WebSecurityHelperImpl.java
WebSecurityHelperImpl.getSSOCookieFromSSOToken
public static Cookie getSSOCookieFromSSOToken() throws Exception { Subject subject = null; Cookie ltpaCookie = null; if (webAppSecConfig == null) { // if we don't have the config, we can't construct the cookie return null; } try { subject = WSS...
java
public static Cookie getSSOCookieFromSSOToken() throws Exception { Subject subject = null; Cookie ltpaCookie = null; if (webAppSecConfig == null) { // if we don't have the config, we can't construct the cookie return null; } try { subject = WSS...
[ "public", "static", "Cookie", "getSSOCookieFromSSOToken", "(", ")", "throws", "Exception", "{", "Subject", "subject", "=", "null", ";", "Cookie", "ltpaCookie", "=", "null", ";", "if", "(", "webAppSecConfig", "==", "null", ")", "{", "// if we don't have the config,...
Extracts an LTPA sso cookie from the subject of current thread and builds a ltpa cookie out of it for use on downstream web invocations. The caller must check for null return value only when not null that getName and getValue can be invoked on the returned Cookie object @return an object of type javax.servlet.http.Coo...
[ "Extracts", "an", "LTPA", "sso", "cookie", "from", "the", "subject", "of", "current", "thread", "and", "builds", "a", "ltpa", "cookie", "out", "of", "it", "for", "use", "on", "downstream", "web", "invocations", ".", "The", "caller", "must", "check", "for",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/WebSecurityHelperImpl.java#L87-L113
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerDumpPackager.java
ServerDumpPackager.packageServerDumps
private ReturnCode packageServerDumps(File packageFile, List<String> javaDumps) { DumpProcessor processor = new DumpProcessor(serverName, packageFile, bootProps, javaDumps); return processor.execute(); }
java
private ReturnCode packageServerDumps(File packageFile, List<String> javaDumps) { DumpProcessor processor = new DumpProcessor(serverName, packageFile, bootProps, javaDumps); return processor.execute(); }
[ "private", "ReturnCode", "packageServerDumps", "(", "File", "packageFile", ",", "List", "<", "String", ">", "javaDumps", ")", "{", "DumpProcessor", "processor", "=", "new", "DumpProcessor", "(", "serverName", ",", "packageFile", ",", "bootProps", ",", "javaDumps",...
Creates an archive containing the server dumps, server configurations. @param packageFile @return
[ "Creates", "an", "archive", "containing", "the", "server", "dumps", "server", "configurations", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerDumpPackager.java#L354-L357
train
OpenLiberty/open-liberty
dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/InMemoryUrlStreamHandler.java
InMemoryUrlStreamHandler.deregister
void deregister(List<URL> urls) { for (URL url : urls) { _data.remove(url.getFile()); } }
java
void deregister(List<URL> urls) { for (URL url : urls) { _data.remove(url.getFile()); } }
[ "void", "deregister", "(", "List", "<", "URL", ">", "urls", ")", "{", "for", "(", "URL", "url", ":", "urls", ")", "{", "_data", ".", "remove", "(", "url", ".", "getFile", "(", ")", ")", ";", "}", "}" ]
Remove mappings for the provided urls.
[ "Remove", "mappings", "for", "the", "provided", "urls", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/InMemoryUrlStreamHandler.java#L54-L58
train
OpenLiberty/open-liberty
dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/InMemoryUrlStreamHandler.java
InMemoryUrlStreamHandler.register
void register(URL url, InMemoryMappingFile immf) { _data.put(url.getFile(), immf); }
java
void register(URL url, InMemoryMappingFile immf) { _data.put(url.getFile(), immf); }
[ "void", "register", "(", "URL", "url", ",", "InMemoryMappingFile", "immf", ")", "{", "_data", ".", "put", "(", "url", ".", "getFile", "(", ")", ",", "immf", ")", ";", "}" ]
Register the URL mapping to the provided InMemoryMappingFile.
[ "Register", "the", "URL", "mapping", "to", "the", "provided", "InMemoryMappingFile", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/InMemoryUrlStreamHandler.java#L63-L65
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/merge/MailSessionComparator.java
MailSessionComparator.isMatchingString
private boolean isMatchingString(String value1, String value2) { boolean valuesMatch = true; if (value1 == null) { if (value2 != null) { valuesMatch = false; } } else { valuesMatch = value1.equals(value2); } ...
java
private boolean isMatchingString(String value1, String value2) { boolean valuesMatch = true; if (value1 == null) { if (value2 != null) { valuesMatch = false; } } else { valuesMatch = value1.equals(value2); } ...
[ "private", "boolean", "isMatchingString", "(", "String", "value1", ",", "String", "value2", ")", "{", "boolean", "valuesMatch", "=", "true", ";", "if", "(", "value1", "==", "null", ")", "{", "if", "(", "value2", "!=", "null", ")", "{", "valuesMatch", "="...
Compare two string values. @param value1 @param value2 @return true if matching
[ "Compare", "two", "string", "values", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/merge/MailSessionComparator.java#L59-L72
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java
WebAppConfigurator.getListenerInterfaces
private List<Class<?>> getListenerInterfaces() { List<Class<?>> listenerInterfaces = new ArrayList<Class<?>>(Arrays.asList(SERVLET30_LISTENER_INTERFACES)); // Condition the HTTP ID Listener on Servlet 3.1 enablement. if (com.ibm.ws.webcontainer.osgi.WebContainer.ge...
java
private List<Class<?>> getListenerInterfaces() { List<Class<?>> listenerInterfaces = new ArrayList<Class<?>>(Arrays.asList(SERVLET30_LISTENER_INTERFACES)); // Condition the HTTP ID Listener on Servlet 3.1 enablement. if (com.ibm.ws.webcontainer.osgi.WebContainer.ge...
[ "private", "List", "<", "Class", "<", "?", ">", ">", "getListenerInterfaces", "(", ")", "{", "List", "<", "Class", "<", "?", ">", ">", "listenerInterfaces", "=", "new", "ArrayList", "<", "Class", "<", "?", ">", ">", "(", "Arrays", ".", "asList", "(",...
Obtain the list of enabled listener interfaces. The list contents depends on servlet 3.1 enablement. @return The list of enabled listener interfaces.
[ "Obtain", "the", "list", "of", "enabled", "listener", "interfaces", ".", "The", "list", "contents", "depends", "on", "servlet", "3", ".", "1", "enablement", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L134-L169
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java
WebAppConfigurator.configureWebAppHelperFactory
public void configureWebAppHelperFactory(WebAppConfiguratorHelperFactory webAppConfiguratorHelperFactory, ResourceRefConfigFactory resourceRefConfigFactory) { webAppHelper = webAppConfiguratorHelperFactory.createWebAppConfiguratorHelper(this, resourceRefConfigFactory, getListenerInterfaces()); t...
java
public void configureWebAppHelperFactory(WebAppConfiguratorHelperFactory webAppConfiguratorHelperFactory, ResourceRefConfigFactory resourceRefConfigFactory) { webAppHelper = webAppConfiguratorHelperFactory.createWebAppConfiguratorHelper(this, resourceRefConfigFactory, getListenerInterfaces()); t...
[ "public", "void", "configureWebAppHelperFactory", "(", "WebAppConfiguratorHelperFactory", "webAppConfiguratorHelperFactory", ",", "ResourceRefConfigFactory", "resourceRefConfigFactory", ")", "{", "webAppHelper", "=", "webAppConfiguratorHelperFactory", ".", "createWebAppConfiguratorHelp...
Configure the WebApp helper factory @param webAppConfiguratorHelperFactory The factory to be used @param resourceRefConfigFactory
[ "Configure", "the", "WebApp", "helper", "factory" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L217-L220
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java
WebAppConfigurator.validateDuplicateKeyValueConfiguration
public <T> void validateDuplicateKeyValueConfiguration(String parentElementName, String keyElementName, String keyElementValue, String valueEle...
java
public <T> void validateDuplicateKeyValueConfiguration(String parentElementName, String keyElementName, String keyElementValue, String valueEle...
[ "public", "<", "T", ">", "void", "validateDuplicateKeyValueConfiguration", "(", "String", "parentElementName", ",", "String", "keyElementName", ",", "String", "keyElementValue", ",", "String", "valueElementName", ",", "T", "newValue", ",", "ConfigItem", "<", "T", ">...
Validate configuration items which are elements of keyed collections in two configurations. Nearly the same as {@link #validateDuplicateConfiguration(String, String, Object, ConfigItem)}, but with a different parameterization of the element location. @param parentElementName The name of the element which contains the...
[ "Validate", "configuration", "items", "which", "are", "elements", "of", "keyed", "collections", "in", "two", "configurations", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L570-L626
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java
WebAppConfigurator.validateDuplicateDefaultErrorPageConfiguration
public void validateDuplicateDefaultErrorPageConfiguration(String newLocation, ConfigItem<String> priorLocationItem) { String priorLocation = priorLocationItem.getValue(); if (priorLocation == null) { if (newLocation == null) { return; // Same null Location; ignore ...
java
public void validateDuplicateDefaultErrorPageConfiguration(String newLocation, ConfigItem<String> priorLocationItem) { String priorLocation = priorLocationItem.getValue(); if (priorLocation == null) { if (newLocation == null) { return; // Same null Location; ignore ...
[ "public", "void", "validateDuplicateDefaultErrorPageConfiguration", "(", "String", "newLocation", ",", "ConfigItem", "<", "String", ">", "priorLocationItem", ")", "{", "String", "priorLocation", "=", "priorLocationItem", ".", "getValue", "(", ")", ";", "if", "(", "p...
Validate default error page configuration items. Nearly the same as {@link #validateDuplicateConfiguration(String, String, Object, ConfigItem)}, but with no location parameters: Default error page configuration items are in a fixed location. @param newLocation The default error page location. May be null. @param pri...
[ "Validate", "default", "error", "page", "configuration", "items", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L646-L691
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java
WebAppConfigurator.getConfigItemMap
@SuppressWarnings("unchecked") public <T> Map<String, ConfigItem<T>> getConfigItemMap(String key) { Map<String, ConfigItem<T>> configItemMap = (Map<String, ConfigItem<T>>) attributes.get(key); if (configItemMap == null) { configItemMap = new HashMap<String, ConfigItem<T>>(); ...
java
@SuppressWarnings("unchecked") public <T> Map<String, ConfigItem<T>> getConfigItemMap(String key) { Map<String, ConfigItem<T>> configItemMap = (Map<String, ConfigItem<T>>) attributes.get(key); if (configItemMap == null) { configItemMap = new HashMap<String, ConfigItem<T>>(); ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "<", "T", ">", "Map", "<", "String", ",", "ConfigItem", "<", "T", ">", ">", "getConfigItemMap", "(", "String", "key", ")", "{", "Map", "<", "String", ",", "ConfigItem", "<", "T", ">", ">", ...
Obtain an attribute value as a mapping. Create and return a new empty mapping if one is not yet present. Once obtained as a mapping, the attribute value must always be obtained as a mapping. A subsequent attempt to obtain the value as a set will fail with a class cast exception. @param key The key of the attribute ...
[ "Obtain", "an", "attribute", "value", "as", "a", "mapping", ".", "Create", "and", "return", "a", "new", "empty", "mapping", "if", "one", "is", "not", "yet", "present", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L705-L717
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java
WebAppConfigurator.getContextSet
@SuppressWarnings("unchecked") public <T> Set<T> getContextSet(String key) { Set<T> set = (Set<T>) attributes.get(key); if (set == null) { set = new HashSet<T>(); attributes.put(key, set); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ...
java
@SuppressWarnings("unchecked") public <T> Set<T> getContextSet(String key) { Set<T> set = (Set<T>) attributes.get(key); if (set == null) { set = new HashSet<T>(); attributes.put(key, set); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "<", "T", ">", "Set", "<", "T", ">", "getContextSet", "(", "String", "key", ")", "{", "Set", "<", "T", ">", "set", "=", "(", "Set", "<", "T", ">", ")", "attributes", ".", "get", "(", "...
Obtain an attribute value as a sset. Create and return a new empty set if one is not yet present. Once obtained as a set, the attribute value must always be obtained as a set. A subsequent attempt to obtain the value as a mapping will fail with a class cast exception. @param key The key of the attribute value. @re...
[ "Obtain", "an", "attribute", "value", "as", "a", "sset", ".", "Create", "and", "return", "a", "new", "empty", "set", "if", "one", "is", "not", "yet", "present", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L731-L743
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java
WebAppConfigurator.createConfigItem
public <T> ConfigItem<T> createConfigItem(T value, MergeComparator<T> comparator) { return new ConfigItemImpl<T>(value, getConfigSource(), getLibraryURI(), comparator); }
java
public <T> ConfigItem<T> createConfigItem(T value, MergeComparator<T> comparator) { return new ConfigItemImpl<T>(value, getConfigSource(), getLibraryURI(), comparator); }
[ "public", "<", "T", ">", "ConfigItem", "<", "T", ">", "createConfigItem", "(", "T", "value", ",", "MergeComparator", "<", "T", ">", "comparator", ")", "{", "return", "new", "ConfigItemImpl", "<", "T", ">", "(", "value", ",", "getConfigSource", "(", ")", ...
Create a configuration item using the current source. See {@link #getConfigSource()} and {@link #getLibraryURI()}. @param value The value to place in the configuration item. A null value may be provided. @param comparator The comparator to be used for the configuration item. Null to select the default comparator. @...
[ "Create", "a", "configuration", "item", "using", "the", "current", "source", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/container/config/WebAppConfigurator.java#L779-L781
train
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/PeerLeaseData.java
PeerLeaseData.isExpired
public boolean isExpired() { if (tc.isEntryEnabled()) Tr.entry(tc, "isExpired"); boolean expired = false; long curTime = System.currentTimeMillis(); //TODO: if (curTime - _leaseTime > _leaseTimeout * 1000) // 30 seconds default for timeout { i...
java
public boolean isExpired() { if (tc.isEntryEnabled()) Tr.entry(tc, "isExpired"); boolean expired = false; long curTime = System.currentTimeMillis(); //TODO: if (curTime - _leaseTime > _leaseTimeout * 1000) // 30 seconds default for timeout { i...
[ "public", "boolean", "isExpired", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"isExpired\"", ")", ";", "boolean", "expired", "=", "false", ";", "long", "curTime", "=", "System", ".", "cu...
Has the peer expired?
[ "Has", "the", "peer", "expired?" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/PeerLeaseData.java#L63-L85
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java
FreePool.returnToFreePool
protected void returnToFreePool(MCWrapper mcWrapper) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(this, tc, "returnToFreePool", gConfigProps.cfName); } if (mcWrapper.shouldBeDestroyed() || mcWrapper.hasFatalErrorNotificationOccurred(fatalErrorNotifica...
java
protected void returnToFreePool(MCWrapper mcWrapper) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(this, tc, "returnToFreePool", gConfigProps.cfName); } if (mcWrapper.shouldBeDestroyed() || mcWrapper.hasFatalErrorNotificationOccurred(fatalErrorNotifica...
[ "protected", "void", "returnToFreePool", "(", "MCWrapper", "mcWrapper", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "this", ",", "tc", ",", "...
Return the mcWrapper to the free pool. @pre mcWrapper != null
[ "Return", "the", "mcWrapper", "to", "the", "free", "pool", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java#L244-L284
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java
FreePool.removeMCWrapperFromList
protected void removeMCWrapperFromList( MCWrapper mcWrapper, boolean removeFromFreePool, boolean synchronizationNeeded, boolean skipWaiterNotify, ...
java
protected void removeMCWrapperFromList( MCWrapper mcWrapper, boolean removeFromFreePool, boolean synchronizationNeeded, boolean skipWaiterNotify, ...
[ "protected", "void", "removeMCWrapperFromList", "(", "MCWrapper", "mcWrapper", ",", "boolean", "removeFromFreePool", ",", "boolean", "synchronizationNeeded", ",", "boolean", "skipWaiterNotify", ",", "boolean", "decrementTotalCounter", ")", "{", "if", "(", "TraceComponent"...
This method will try to cleanup and destroy the connection and remove the mcWrapper from the free pool. - If removeFromFreePool is true, the mcWrapper exists in the free pool - If removeFromFreePool is false, the mcWrapper do not exist in the free pool @param Managed connection wrapper @param Remove from free pool @...
[ "This", "method", "will", "try", "to", "cleanup", "and", "destroy", "the", "connection", "and", "remove", "the", "mcWrapper", "from", "the", "free", "pool", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java#L390-L446
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java
FreePool.removeParkedConnection
protected void removeParkedConnection() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(this, tc, "removeParkedConnection"); } // boolean errorOccured = false; if (pm.parkedMCWrapper != null) { // Only attempt to cleanup and destroy the parked ...
java
protected void removeParkedConnection() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(this, tc, "removeParkedConnection"); } // boolean errorOccured = false; if (pm.parkedMCWrapper != null) { // Only attempt to cleanup and destroy the parked ...
[ "protected", "void", "removeParkedConnection", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "this", ",", "tc", ",", "\"removeParkedConnection...
Remove the parked managed connection. This method should only be called if do not have SmartHandleSupport in effect. The PoolManager controls the SmartHandleSupported flag, so we have to trust the PM not to call this method when smart handles is in effect.
[ "Remove", "the", "parked", "managed", "connection", ".", "This", "method", "should", "only", "be", "called", "if", "do", "not", "have", "SmartHandleSupport", "in", "effect", ".", "The", "PoolManager", "controls", "the", "SmartHandleSupported", "flag", "so", "we"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java#L496-L553
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java
FreePool.removeCleanupAndDestroyAllFreeConnections
protected void removeCleanupAndDestroyAllFreeConnections() { // removed iterator code // This method is called within a synchronize block if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(this, tc, "removeCleanupAndDestroyAllFreeConnections"); } int ...
java
protected void removeCleanupAndDestroyAllFreeConnections() { // removed iterator code // This method is called within a synchronize block if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(this, tc, "removeCleanupAndDestroyAllFreeConnections"); } int ...
[ "protected", "void", "removeCleanupAndDestroyAllFreeConnections", "(", ")", "{", "// removed iterator code", "// This method is called within a synchronize block", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ...
Remove the mcWrappers from the arraylist. Cleanup and destroy the managed connections.
[ "Remove", "the", "mcWrappers", "from", "the", "arraylist", ".", "Cleanup", "and", "destroy", "the", "managed", "connections", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java#L1621-L1637
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java
FreePool.cleanupAndDestroyAllFreeConnections
protected void cleanupAndDestroyAllFreeConnections() { // This method is called within a synchronize block if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(this, tc, "cleanupAndDestroyAllFreeConnections"); } int mcWrapperListIndex = mcWrapperList.si...
java
protected void cleanupAndDestroyAllFreeConnections() { // This method is called within a synchronize block if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(this, tc, "cleanupAndDestroyAllFreeConnections"); } int mcWrapperListIndex = mcWrapperList.si...
[ "protected", "void", "cleanupAndDestroyAllFreeConnections", "(", ")", "{", "// This method is called within a synchronize block", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entr...
During server shutdown, try to cleanup and destroy the managed connections nicely. This method should only be called during server server shutdown.
[ "During", "server", "shutdown", "try", "to", "cleanup", "and", "destroy", "the", "managed", "connections", "nicely", ".", "This", "method", "should", "only", "be", "called", "during", "server", "server", "shutdown", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java#L1653-L1671
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java
FreePool.incrementFatalErrorValue
protected void incrementFatalErrorValue(int value1) { /* * value1 and value2 are index values for the free pools. * When value1 and value2 are 0, we are in free pool . */ if (fatalErrorNotificationTime == Integer.MAX_VALUE - 1) { /* * We need to start ...
java
protected void incrementFatalErrorValue(int value1) { /* * value1 and value2 are index values for the free pools. * When value1 and value2 are 0, we are in free pool . */ if (fatalErrorNotificationTime == Integer.MAX_VALUE - 1) { /* * We need to start ...
[ "protected", "void", "incrementFatalErrorValue", "(", "int", "value1", ")", "{", "/*\n * value1 and value2 are index values for the free pools.\n * When value1 and value2 are 0, we are in free pool .\n */", "if", "(", "fatalErrorNotificationTime", "==", "Integer", ...
This method should only be called when a fatal error occurs or when an attempt is made to remove all of the connections from the pool.
[ "This", "method", "should", "only", "be", "called", "when", "a", "fatal", "error", "occurs", "or", "when", "an", "attempt", "is", "made", "to", "remove", "all", "of", "the", "connections", "from", "the", "pool", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/FreePool.java#L1732-L1771
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/converters/UserConverter.java
UserConverter.newInstance
@Trivial public static <K> UserConverter<K> newInstance(Converter<K> converter) { return newInstance(getType(converter), converter); }
java
@Trivial public static <K> UserConverter<K> newInstance(Converter<K> converter) { return newInstance(getType(converter), converter); }
[ "@", "Trivial", "public", "static", "<", "K", ">", "UserConverter", "<", "K", ">", "newInstance", "(", "Converter", "<", "K", ">", "converter", ")", "{", "return", "newInstance", "(", "getType", "(", "converter", ")", ",", "converter", ")", ";", "}" ]
Construct a new PriorityConverter using discovered or default type and priority @param converter
[ "Construct", "a", "new", "PriorityConverter", "using", "discovered", "or", "default", "type", "and", "priority" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/converters/UserConverter.java#L40-L43
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/converters/UserConverter.java
UserConverter.newInstance
@Trivial public static <K> UserConverter<K> newInstance(Type type, Converter<K> converter) { return newInstance(type, getPriority(converter), converter); }
java
@Trivial public static <K> UserConverter<K> newInstance(Type type, Converter<K> converter) { return newInstance(type, getPriority(converter), converter); }
[ "@", "Trivial", "public", "static", "<", "K", ">", "UserConverter", "<", "K", ">", "newInstance", "(", "Type", "type", ",", "Converter", "<", "K", ">", "converter", ")", "{", "return", "newInstance", "(", "type", ",", "getPriority", "(", "converter", ")"...
Construct a new PriorityConverter using discovered or default priority @param converter
[ "Construct", "a", "new", "PriorityConverter", "using", "discovered", "or", "default", "priority" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/converters/UserConverter.java#L50-L53
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/converters/UserConverter.java
UserConverter.getType
@Trivial private static Type getType(Converter<?> converter) { Type type = null; Type[] itypes = converter.getClass().getGenericInterfaces(); for (Type itype : itypes) { ParameterizedType ptype = (ParameterizedType) itype; if (ptype.getRawType() == Converter.class) {...
java
@Trivial private static Type getType(Converter<?> converter) { Type type = null; Type[] itypes = converter.getClass().getGenericInterfaces(); for (Type itype : itypes) { ParameterizedType ptype = (ParameterizedType) itype; if (ptype.getRawType() == Converter.class) {...
[ "@", "Trivial", "private", "static", "Type", "getType", "(", "Converter", "<", "?", ">", "converter", ")", "{", "Type", "type", "=", "null", ";", "Type", "[", "]", "itypes", "=", "converter", ".", "getClass", "(", ")", ".", "getGenericInterfaces", "(", ...
Reflectively work out the Type of a Converter @param converter @return
[ "Reflectively", "work", "out", "the", "Type", "of", "a", "Converter" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/converters/UserConverter.java#L103-L125
train
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/war/internal/ZipUtils.java
ZipUtils.deleteWithRetry
@Trivial public static File deleteWithRetry(File file) { String methodName = "deleteWithRetry"; String filePath; if ( tc.isDebugEnabled() ) { filePath = file.getAbsolutePath(); Tr.debug(tc, methodName + ": Recursively delete [ " + filePath + " ]"); } else { ...
java
@Trivial public static File deleteWithRetry(File file) { String methodName = "deleteWithRetry"; String filePath; if ( tc.isDebugEnabled() ) { filePath = file.getAbsolutePath(); Tr.debug(tc, methodName + ": Recursively delete [ " + filePath + " ]"); } else { ...
[ "@", "Trivial", "public", "static", "File", "deleteWithRetry", "(", "File", "file", ")", "{", "String", "methodName", "=", "\"deleteWithRetry\"", ";", "String", "filePath", ";", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "filePath", "=", "...
Attempt to recursively delete a target file. Answer null if the delete was successful. Answer the first file which could not be deleted if the delete failed. If the delete fails, wait 400 MS then try again. Do this for the entire delete operation, not for each file deletion. A test must be done to verify that the ...
[ "Attempt", "to", "recursively", "delete", "a", "target", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/war/internal/ZipUtils.java#L104-L155
train
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/war/internal/ZipUtils.java
ZipUtils.delete
@Trivial public static File delete(File file) { String methodName = "delete"; String filePath; if ( tc.isDebugEnabled() ) { filePath = file.getAbsolutePath(); } else { filePath = null; } if ( file.isDirectory() ) { if ( filePath !...
java
@Trivial public static File delete(File file) { String methodName = "delete"; String filePath; if ( tc.isDebugEnabled() ) { filePath = file.getAbsolutePath(); } else { filePath = null; } if ( file.isDirectory() ) { if ( filePath !...
[ "@", "Trivial", "public", "static", "File", "delete", "(", "File", "file", ")", "{", "String", "methodName", "=", "\"delete\"", ";", "String", "filePath", ";", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "filePath", "=", "file", ".", "g...
Attempt to recursively delete a file. Do not retry in case of a failure. A test must be done to verify that the file exists before invoking this method: If the file does not exist, the delete operation will fail. @param file The file to recursively delete. @return Null if the file was deleted. The first file which...
[ "Attempt", "to", "recursively", "delete", "a", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/war/internal/ZipUtils.java#L171-L224
train
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/war/internal/ZipUtils.java
ZipUtils.unzip
public static void unzip( File source, File target, boolean isEar, long lastModified) throws IOException { byte[] transferBuffer = new byte[16 * 1024]; unzip(source, target, isEar, lastModified, transferBuffer); }
java
public static void unzip( File source, File target, boolean isEar, long lastModified) throws IOException { byte[] transferBuffer = new byte[16 * 1024]; unzip(source, target, isEar, lastModified, transferBuffer); }
[ "public", "static", "void", "unzip", "(", "File", "source", ",", "File", "target", ",", "boolean", "isEar", ",", "long", "lastModified", ")", "throws", "IOException", "{", "byte", "[", "]", "transferBuffer", "=", "new", "byte", "[", "16", "*", "1024", "]...
Unpack a source archive into a target directory. If the source archive is a WAR, package web module archives as well. This operation is not smart enough to avoid unpacking WAR files in an application library folder. However, that is very unlikely to happen. @param source The source archive which is to be unpacked. ...
[ "Unpack", "a", "source", "archive", "into", "a", "target", "directory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/war/internal/ZipUtils.java#L251-L257
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java
ImplicitObjectResolver.makeResolverForJSP
public static ELResolver makeResolverForJSP() { Map<String, ImplicitObject> forJSPList = new HashMap<String, ImplicitObject>(8);//4 ImplicitObject io1 = new FacesContextImplicitObject(); forJSPList.put(io1.getName(), io1); ImplicitObject io2 = new ViewImplicitObject(); forJSP...
java
public static ELResolver makeResolverForJSP() { Map<String, ImplicitObject> forJSPList = new HashMap<String, ImplicitObject>(8);//4 ImplicitObject io1 = new FacesContextImplicitObject(); forJSPList.put(io1.getName(), io1); ImplicitObject io2 = new ViewImplicitObject(); forJSP...
[ "public", "static", "ELResolver", "makeResolverForJSP", "(", ")", "{", "Map", "<", "String", ",", "ImplicitObject", ">", "forJSPList", "=", "new", "HashMap", "<", "String", ",", "ImplicitObject", ">", "(", "8", ")", ";", "//4", "ImplicitObject", "io1", "=", ...
Static factory for an ELResolver for resolving implicit objects in JSPs. See JSF 1.2 spec section 5.6.1.1
[ "Static", "factory", "for", "an", "ELResolver", "for", "resolving", "implicit", "objects", "in", "JSPs", ".", "See", "JSF", "1", ".", "2", "spec", "section", "5", ".", "6", ".", "1", ".", "1" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java#L45-L57
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java
ImplicitObjectResolver.makeResolverForFaces
public static ELResolver makeResolverForFaces() { Map<String, ImplicitObject> forFacesList = new HashMap<String, ImplicitObject>(30);//14 ImplicitObject io1 = new ApplicationImplicitObject(); forFacesList.put(io1.getName(), io1); ImplicitObject io2 = new ApplicationScopeImplicitObjec...
java
public static ELResolver makeResolverForFaces() { Map<String, ImplicitObject> forFacesList = new HashMap<String, ImplicitObject>(30);//14 ImplicitObject io1 = new ApplicationImplicitObject(); forFacesList.put(io1.getName(), io1); ImplicitObject io2 = new ApplicationScopeImplicitObjec...
[ "public", "static", "ELResolver", "makeResolverForFaces", "(", ")", "{", "Map", "<", "String", ",", "ImplicitObject", ">", "forFacesList", "=", "new", "HashMap", "<", "String", ",", "ImplicitObject", ">", "(", "30", ")", ";", "//14", "ImplicitObject", "io1", ...
Static factory for an ELResolver for resolving implicit objects in all of Faces. See JSF 1.2 spec section 5.6.1.2
[ "Static", "factory", "for", "an", "ELResolver", "for", "resolving", "implicit", "objects", "in", "all", "of", "Faces", ".", "See", "JSF", "1", ".", "2", "spec", "section", "5", ".", "6", ".", "1", ".", "2" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/el/unified/resolver/implicitobject/ImplicitObjectResolver.java#L62-L104
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java
InboundTransmissionParser.parse
public void parse(WsByteBuffer transmissionData) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parse", transmissionData); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, tc, transmissionData, "transmis...
java
public void parse(WsByteBuffer transmissionData) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parse", transmissionData); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, tc, transmissionData, "transmis...
[ "public", "void", "parse", "(", "WsByteBuffer", "transmissionData", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"parse\...
Parses a chunk of inbound data into discrete transmissions. The headers for these transmissions are decoded and the payload data is dispatched to the appropriate method for processing. @param transmissionData A chunk of transmission data to be parsed.
[ "Parses", "a", "chunk", "of", "inbound", "data", "into", "discrete", "transmissions", ".", "The", "headers", "for", "these", "transmissions", "are", "decoded", "and", "the", "payload", "data", "is", "dispatched", "to", "the", "appropriate", "method", "for", "p...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L200-L255
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java
InboundTransmissionParser.parseSegmentStartHeader
private void parseSegmentStartHeader(WsByteBuffer contextBuffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentStartHeader", contextBuffer); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, ...
java
private void parseSegmentStartHeader(WsByteBuffer contextBuffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentStartHeader", contextBuffer); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, ...
[ "private", "void", "parseSegmentStartHeader", "(", "WsByteBuffer", "contextBuffer", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ...
Invoked to parse a start segment header structure from the supplied buffer. May be invoked multiple times to incrementally parse the structure. Once the structure has been fully parsed, transitions the state machine into the appropriate next state based on the layout of the transmission. @param contextBuffer
[ "Invoked", "to", "parse", "a", "start", "segment", "header", "structure", "from", "the", "supplied", "buffer", ".", "May", "be", "invoked", "multiple", "times", "to", "incrementally", "parse", "the", "structure", ".", "Once", "the", "structure", "has", "been",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L508-L552
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java
InboundTransmissionParser.parsePrimaryOnlyPayload
private void parsePrimaryOnlyPayload(WsByteBuffer contextBuffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parsePrimaryOnlyPayload", contextBuffer); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, ...
java
private void parsePrimaryOnlyPayload(WsByteBuffer contextBuffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parsePrimaryOnlyPayload", contextBuffer); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, ...
[ "private", "void", "parsePrimaryOnlyPayload", "(", "WsByteBuffer", "contextBuffer", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ...
Invoked to parse a primary header payload structure from the supplied buffer. May be invoked multiple times to incrementally parse the structure. Once the structure has been fully parsed, transitions the state machine into the appropriate next state based on the layout of the transmission. @param contextBuffer
[ "Invoked", "to", "parse", "a", "primary", "header", "payload", "structure", "from", "the", "supplied", "buffer", ".", "May", "be", "invoked", "multiple", "times", "to", "incrementally", "parse", "the", "structure", ".", "Once", "the", "structure", "has", "been...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L561-L626
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java
InboundTransmissionParser.parseConversationPayload
private void parseConversationPayload(WsByteBuffer contextBuffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseConversationPayload", contextBuffer); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this...
java
private void parseConversationPayload(WsByteBuffer contextBuffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseConversationPayload", contextBuffer); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this...
[ "private", "void", "parseConversationPayload", "(", "WsByteBuffer", "contextBuffer", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ...
Invoked to parse a conversation payload structure from the supplied buffer. May be invoked multiple times to incrementally parse the structure. Once the structure has been fully parsed, transitions the state machine into the appropriate next state based on the layout of the transmission. @param contextBuffer
[ "Invoked", "to", "parse", "a", "conversation", "payload", "structure", "from", "the", "supplied", "buffer", ".", "May", "be", "invoked", "multiple", "times", "to", "incrementally", "parse", "the", "structure", ".", "Once", "the", "structure", "has", "been", "f...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L635-L670
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java
InboundTransmissionParser.parseSegmentStartPayload
private void parseSegmentStartPayload(WsByteBuffer contextBuffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentStartPayload", contextBuffer); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this...
java
private void parseSegmentStartPayload(WsByteBuffer contextBuffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentStartPayload", contextBuffer); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this...
[ "private", "void", "parseSegmentStartPayload", "(", "WsByteBuffer", "contextBuffer", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ...
Invoked to parse a segmented transmission start payload from the supplied buffer. May be invoked multiple times to incrementally parse the structure. Once the structure has been fully parsed, transitions the state machine into the appropriate next state based on the layout of the transmission. @param contextBuffer
[ "Invoked", "to", "parse", "a", "segmented", "transmission", "start", "payload", "from", "the", "supplied", "buffer", ".", "May", "be", "invoked", "multiple", "times", "to", "incrementally", "parse", "the", "structure", ".", "Once", "the", "structure", "has", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L679-L727
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java
InboundTransmissionParser.parseSegmentMiddlePayload
private void parseSegmentMiddlePayload(WsByteBuffer contextBuffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentMiddlePayload", contextBuffer); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(th...
java
private void parseSegmentMiddlePayload(WsByteBuffer contextBuffer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "parseSegmentMiddlePayload", contextBuffer); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(th...
[ "private", "void", "parseSegmentMiddlePayload", "(", "WsByteBuffer", "contextBuffer", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ...
Invoked to parse a segmented transmission middle payload from the supplied buffer. May be invoked multiple times to incrementally parse the structure. Once the structure has been fully parsed, transitions the state machine into the appropriate next state based on the layout of the transmission. @param contextBuffer
[ "Invoked", "to", "parse", "a", "segmented", "transmission", "middle", "payload", "from", "the", "supplied", "buffer", ".", "May", "be", "invoked", "multiple", "times", "to", "incrementally", "parse", "the", "structure", ".", "Once", "the", "structure", "has", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L736-L777
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java
InboundTransmissionParser.dispatchToConnection
private boolean dispatchToConnection(WsByteBuffer data) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dispatchToConnection", data); //@stoptracescan@ if (TraceComponent.isAnyTracingEnabled()) JFapUtils.debugSummaryMessage(tc, connection, null, "received c...
java
private boolean dispatchToConnection(WsByteBuffer data) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dispatchToConnection", data); //@stoptracescan@ if (TraceComponent.isAnyTracingEnabled()) JFapUtils.debugSummaryMessage(tc, connection, null, "received c...
[ "private", "boolean", "dispatchToConnection", "(", "WsByteBuffer", "data", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\...
Dispatches a payload to the appropriate connection for processing. The implication of dispatching to a connection is that the payload did not have a conversation header on its transmission. @param data @returns true if this data resulted in the connection being closed and hence releasing its buffers
[ "Dispatches", "a", "payload", "to", "the", "appropriate", "connection", "for", "processing", ".", "The", "implication", "of", "dispatching", "to", "a", "connection", "is", "that", "the", "payload", "did", "not", "have", "a", "conversation", "header", "on", "it...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L851-L860
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java
InboundTransmissionParser.reset
private void reset() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "reset"); throwable = null; state = STATE_PARSING_PRIMARY_HEADER; unparsedPrimaryHeader.position(0); unparsedPrimaryHeader.limit(JFapChannelConstants.SIZEOF_PRIMARY_HEADER); ...
java
private void reset() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "reset"); throwable = null; state = STATE_PARSING_PRIMARY_HEADER; unparsedPrimaryHeader.position(0); unparsedPrimaryHeader.limit(JFapChannelConstants.SIZEOF_PRIMARY_HEADER); ...
[ "private", "void", "reset", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"reset\"", ")", ";", "throwable", "=",...
Resets the state of the parsing state machine so that it is read to parse another transmission.
[ "Resets", "the", "state", "of", "the", "parsing", "state", "machine", "so", "that", "it", "is", "read", "to", "parse", "another", "transmission", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L1100-L1118
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java
InboundTransmissionParser.readData
private WsByteBuffer readData(WsByteBuffer unparsedData, WsByteBuffer scratchArea) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readData", new Object[] {unparsedData, scratchArea}); int scratchAreaRemaining = scratchArea.remai...
java
private WsByteBuffer readData(WsByteBuffer unparsedData, WsByteBuffer scratchArea) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readData", new Object[] {unparsedData, scratchArea}); int scratchAreaRemaining = scratchArea.remai...
[ "private", "WsByteBuffer", "readData", "(", "WsByteBuffer", "unparsedData", ",", "WsByteBuffer", "scratchArea", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", ...
Reads data from a buffer into a scratch area. @param unparsedData @param scratchArea @return
[ "Reads", "data", "from", "a", "buffer", "into", "a", "scratch", "area", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/InboundTransmissionParser.java#L1126-L1153
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/el/unified/resolver/ManagedBeanResolver.java
ManagedBeanResolver.createManagedBean
@SuppressWarnings("unchecked") private Object createManagedBean(final ManagedBean managedBean, final FacesContext facesContext) throws ELException { final ExternalContext extContext = facesContext.getExternalContext(); final Map<Object, Object> facesContextMap = facesContext.getAttributes(); ...
java
@SuppressWarnings("unchecked") private Object createManagedBean(final ManagedBean managedBean, final FacesContext facesContext) throws ELException { final ExternalContext extContext = facesContext.getExternalContext(); final Map<Object, Object> facesContextMap = facesContext.getAttributes(); ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "Object", "createManagedBean", "(", "final", "ManagedBean", "managedBean", ",", "final", "FacesContext", "facesContext", ")", "throws", "ELException", "{", "final", "ExternalContext", "extContext", "=", "f...
adapted from Manfred's JSF 1.1 VariableResolverImpl
[ "adapted", "from", "Manfred", "s", "JSF", "1", ".", "1", "VariableResolverImpl" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/el/unified/resolver/ManagedBeanResolver.java#L308-L343
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ejs/util/dopriv/SetContextClassLoaderPrivileged.java
SetContextClassLoaderPrivileged.run
public Object run() { Thread currentThread = Thread.currentThread(); oldClassLoader = threadContextAccessor.getContextClassLoader(currentThread); // 369927 // The following tests are done in a certain order to maximize performance if (newClassLoader == oldClassLoader) { wasC...
java
public Object run() { Thread currentThread = Thread.currentThread(); oldClassLoader = threadContextAccessor.getContextClassLoader(currentThread); // 369927 // The following tests are done in a certain order to maximize performance if (newClassLoader == oldClassLoader) { wasC...
[ "public", "Object", "run", "(", ")", "{", "Thread", "currentThread", "=", "Thread", ".", "currentThread", "(", ")", ";", "oldClassLoader", "=", "threadContextAccessor", ".", "getContextClassLoader", "(", "currentThread", ")", ";", "// 369927", "// The following test...
146064.3
[ "146064", ".", "3" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ejs/util/dopriv/SetContextClassLoaderPrivileged.java#L85-L102
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/PropertyService.java
PropertyService.isPassword
public static final boolean isPassword(String name) { return PASSWORD_PROPS.contains(name) || name.toLowerCase().contains(DataSourceDef.password.name()); }
java
public static final boolean isPassword(String name) { return PASSWORD_PROPS.contains(name) || name.toLowerCase().contains(DataSourceDef.password.name()); }
[ "public", "static", "final", "boolean", "isPassword", "(", "String", "name", ")", "{", "return", "PASSWORD_PROPS", ".", "contains", "(", "name", ")", "||", "name", ".", "toLowerCase", "(", ")", ".", "contains", "(", "DataSourceDef", ".", "password", ".", "...
Determines, based on the name of a property, if we expect the value might contain a password. @param name property name. @return true if the property value might be expected to contain a password, otherwise false.
[ "Determines", "based", "on", "the", "name", "of", "a", "property", "if", "we", "expect", "the", "value", "might", "contain", "a", "password", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/PropertyService.java#L204-L206
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/PropertyService.java
PropertyService.parseDurationProperties
public static void parseDurationProperties(Map<String, Object> vendorProps, String className, ConnectorService connectorSvc) throws Exception { // type=long, unit=milliseconds for (String propName : PropertyService.DURATION_MS_LONG_PROPS) { Object propValue = vendorProps.remove(propName); ...
java
public static void parseDurationProperties(Map<String, Object> vendorProps, String className, ConnectorService connectorSvc) throws Exception { // type=long, unit=milliseconds for (String propName : PropertyService.DURATION_MS_LONG_PROPS) { Object propValue = vendorProps.remove(propName); ...
[ "public", "static", "void", "parseDurationProperties", "(", "Map", "<", "String", ",", "Object", ">", "vendorProps", ",", "String", "className", ",", "ConnectorService", "connectorSvc", ")", "throws", "Exception", "{", "// type=long, unit=milliseconds", "for", "(", ...
Parse and convert duration type properties. @param vendorProps the vendor properties. @param className data source implementation class name. @param connectorSvc connector service. @throws Exception if an error occurs.
[ "Parse", "and", "convert", "duration", "type", "properties", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/PropertyService.java#L216-L274
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/PropertyService.java
PropertyService.parsePasswordProperties
public static final void parsePasswordProperties(Map<String, Object> vendorProps) { for (String propName : PASSWORD_PROPS) { String propValue = (String) vendorProps.remove(propName); if (propValue != null) vendorProps.put(propName, new SerializableProtectedString(propVal...
java
public static final void parsePasswordProperties(Map<String, Object> vendorProps) { for (String propName : PASSWORD_PROPS) { String propValue = (String) vendorProps.remove(propName); if (propValue != null) vendorProps.put(propName, new SerializableProtectedString(propVal...
[ "public", "static", "final", "void", "parsePasswordProperties", "(", "Map", "<", "String", ",", "Object", ">", "vendorProps", ")", "{", "for", "(", "String", "propName", ":", "PASSWORD_PROPS", ")", "{", "String", "propValue", "=", "(", "String", ")", "vendor...
Parse and convert password properties to SerializableProtectedString. @param vendorProps
[ "Parse", "and", "convert", "password", "properties", "to", "SerializableProtectedString", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/PropertyService.java#L281-L288
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/Queue.java
Queue.removeTail
public QueueElement removeTail() { if (head == null) { return null; } QueueElement result = tail; if (result.previous == null) { head = null; tail = null; } else { tail = result.previous; tail.next = null; } result.previous = null; result.next = null; result.queue = null; numElemen...
java
public QueueElement removeTail() { if (head == null) { return null; } QueueElement result = tail; if (result.previous == null) { head = null; tail = null; } else { tail = result.previous; tail.next = null; } result.previous = null; result.next = null; result.queue = null; numElemen...
[ "public", "QueueElement", "removeTail", "(", ")", "{", "if", "(", "head", "==", "null", ")", "{", "return", "null", ";", "}", "QueueElement", "result", "=", "tail", ";", "if", "(", "result", ".", "previous", "==", "null", ")", "{", "head", "=", "null...
Remove the element at the tail of this queue and return it. If the queue is empty return null.
[ "Remove", "the", "element", "at", "the", "tail", "of", "this", "queue", "and", "return", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/Queue.java#L150-L171
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/RemoteResultCollector.java
RemoteResultCollector.getLogLists
public RemoteAllResults getLogLists(LogQueryBean logQueryBean, RepositoryPointer after) throws LogRepositoryException { RemoteAllResults result = new RemoteAllResults(logQueryBean); Iterable<ServerInstanceLogRecordList> lists; if (after == null) { lists = logReader.getLogLists(logQueryBean); } else { list...
java
public RemoteAllResults getLogLists(LogQueryBean logQueryBean, RepositoryPointer after) throws LogRepositoryException { RemoteAllResults result = new RemoteAllResults(logQueryBean); Iterable<ServerInstanceLogRecordList> lists; if (after == null) { lists = logReader.getLogLists(logQueryBean); } else { list...
[ "public", "RemoteAllResults", "getLogLists", "(", "LogQueryBean", "logQueryBean", ",", "RepositoryPointer", "after", ")", "throws", "LogRepositoryException", "{", "RemoteAllResults", "result", "=", "new", "RemoteAllResults", "(", "logQueryBean", ")", ";", "Iterable", "<...
retrieves results for all server instances in the repository. @param logQueryBean query indicator @param after starting location of instances to be return. @return Set of all server instances satisfying the query request. @throws LogRepositoryException indicating that an error occurred while reading list of instances ...
[ "retrieves", "results", "for", "all", "server", "instances", "in", "the", "repository", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/RemoteResultCollector.java#L45-L57
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/RemoteResultCollector.java
RemoteResultCollector.getLogListForServerInstance
public RemoteInstanceResult getLogListForServerInstance(RemoteInstanceDetails indicator, RepositoryPointer after, int offset, int maxRecords, Locale locale) throws LogRepositoryException { ServerInstanceLogRecordList instance; // Pointer should be used only if start time is null. This way the same query object can ...
java
public RemoteInstanceResult getLogListForServerInstance(RemoteInstanceDetails indicator, RepositoryPointer after, int offset, int maxRecords, Locale locale) throws LogRepositoryException { ServerInstanceLogRecordList instance; // Pointer should be used only if start time is null. This way the same query object can ...
[ "public", "RemoteInstanceResult", "getLogListForServerInstance", "(", "RemoteInstanceDetails", "indicator", ",", "RepositoryPointer", "after", ",", "int", "offset", ",", "int", "maxRecords", ",", "Locale", "locale", ")", "throws", "LogRepositoryException", "{", "ServerIns...
retrieves records and header for one server instance. @param indicator server instance identifier. @param after starting location after which records are return. @param offset number of records to skip. @param maxRecords maximum number of records to return. @param locale language into which record messages are transla...
[ "retrieves", "records", "and", "header", "for", "one", "server", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/reader/RemoteResultCollector.java#L70-L113
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/ConnectionManagerService.java
ConnectionManagerService.setValidating
public void setValidating(boolean isValidating) { if (isValidating) MCWrapper.isValidating.set(true); else MCWrapper.isValidating.remove(); }
java
public void setValidating(boolean isValidating) { if (isValidating) MCWrapper.isValidating.set(true); else MCWrapper.isValidating.remove(); }
[ "public", "void", "setValidating", "(", "boolean", "isValidating", ")", "{", "if", "(", "isValidating", ")", "MCWrapper", ".", "isValidating", ".", "set", "(", "true", ")", ";", "else", "MCWrapper", ".", "isValidating", ".", "remove", "(", ")", ";", "}" ]
Indicates to the connection manager whether validation is occurring on the current thread. @param isValidating true if validation is occurring on the current thread. Otherwise false.
[ "Indicates", "to", "the", "connection", "manager", "whether", "validation", "is", "occurring", "on", "the", "current", "thread", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/ConnectionManagerService.java#L131-L136
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java
ProxyQueueConversationGroupImpl.createBrowserProxyQueue
public synchronized BrowserProxyQueue createBrowserProxyQueue() // F171893 throws SIResourceException, SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createBrowserProxyQueue"); // F171893 checkClosed(); ...
java
public synchronized BrowserProxyQueue createBrowserProxyQueue() // F171893 throws SIResourceException, SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createBrowserProxyQueue"); // F171893 checkClosed(); ...
[ "public", "synchronized", "BrowserProxyQueue", "createBrowserProxyQueue", "(", ")", "// F171893", "throws", "SIResourceException", ",", "SIIncorrectCallException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", ...
Creates a new browser proxy queue for this group. @see com.ibm.ws.sib.comms.client.proxyqueue.ProxyQueueConversationGroup#createBrowserProxyQueue()
[ "Creates", "a", "new", "browser", "proxy", "queue", "for", "this", "group", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L120-L131
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java
ProxyQueueConversationGroupImpl.createAsynchConsumerProxyQueue
public synchronized AsynchConsumerProxyQueue createAsynchConsumerProxyQueue(OrderingContext oc) throws SIResourceException, SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createAsynchConsumerProxyQueue"); short id = nex...
java
public synchronized AsynchConsumerProxyQueue createAsynchConsumerProxyQueue(OrderingContext oc) throws SIResourceException, SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createAsynchConsumerProxyQueue"); short id = nex...
[ "public", "synchronized", "AsynchConsumerProxyQueue", "createAsynchConsumerProxyQueue", "(", "OrderingContext", "oc", ")", "throws", "SIResourceException", ",", "SIIncorrectCallException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ...
Creates a new asynchronous consumer proxy queue for this group. @throws SIResourceException @throws SIResourceException @throws SIIncorrectCallException @throws SIIncorrectCallException @throws SIErrorException @throws SIConnectionUnavailableException @throws SISessionUnavailableException @throws SIConnectionDroppedExc...
[ "Creates", "a", "new", "asynchronous", "consumer", "proxy", "queue", "for", "this", "group", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L147-L173
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java
ProxyQueueConversationGroupImpl.createReadAheadProxyQueue
public synchronized AsynchConsumerProxyQueue createReadAheadProxyQueue(Reliability unrecoverableReliability) // f187521.2.1 throws SIResourceException, SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createReadAheadProxyQueue"); checkClosed...
java
public synchronized AsynchConsumerProxyQueue createReadAheadProxyQueue(Reliability unrecoverableReliability) // f187521.2.1 throws SIResourceException, SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createReadAheadProxyQueue"); checkClosed...
[ "public", "synchronized", "AsynchConsumerProxyQueue", "createReadAheadProxyQueue", "(", "Reliability", "unrecoverableReliability", ")", "// f187521.2.1", "throws", "SIResourceException", ",", "SIIncorrectCallException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled"...
Creates a new read ahead proxy queue for this group. @see com.ibm.ws.sib.comms.client.proxyqueue.ProxyQueueConversationGroup#createReadAheadProxyQueue(Reliability)
[ "Creates", "a", "new", "read", "ahead", "proxy", "queue", "for", "this", "group", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L220-L236
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java
ProxyQueueConversationGroupImpl.bury
public synchronized void bury(ProxyQueue queue) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "bury"); // Get the proxy queue id short id = queue.getId(); // Remove it from the table mutableId.setValue(id); idToProxyQueueMap.remov...
java
public synchronized void bury(ProxyQueue queue) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "bury"); // Get the proxy queue id short id = queue.getId(); // Remove it from the table mutableId.setValue(id); idToProxyQueueMap.remov...
[ "public", "synchronized", "void", "bury", "(", "ProxyQueue", "queue", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"bury\"", ")", "...
If a session is failed to be created then we need to bury it so that it never bothers us again. The queue is simply removed from the conversation group - no attempt is made to remove messages. It is assumed that if something went wrong in the creation then no messages would ever get to the queue. @param queue
[ "If", "a", "session", "is", "failed", "to", "be", "created", "then", "we", "need", "to", "bury", "it", "so", "that", "it", "never", "bothers", "us", "again", ".", "The", "queue", "is", "simply", "removed", "from", "the", "conversation", "group", "-", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L304-L316
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java
ProxyQueueConversationGroupImpl.find
public synchronized ProxyQueue find(short proxyQueueId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "find", ""+proxyQueueId); mutableId.setValue(proxyQueueId); ProxyQueue retQueue = idToProxyQueueMap.get(mutableId); if (TraceComponent.isAny...
java
public synchronized ProxyQueue find(short proxyQueueId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "find", ""+proxyQueueId); mutableId.setValue(proxyQueueId); ProxyQueue retQueue = idToProxyQueueMap.get(mutableId); if (TraceComponent.isAny...
[ "public", "synchronized", "ProxyQueue", "find", "(", "short", "proxyQueueId", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"find\"", ...
Locates a proxy queue, from this group, via its queue ID. @see com.ibm.ws.sib.comms.client.proxyqueue.ProxyQueueConversationGroup#find(short)
[ "Locates", "a", "proxy", "queue", "from", "this", "group", "via", "its", "queue", "ID", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L411-L420
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java
ProxyQueueConversationGroupImpl.notifyClose
protected void notifyClose(ProxyQueue queue) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "notifyClose", queue); try { final short id = queue.getId(); idAllocator.releaseId(id); //Remove the id from the map synchronized...
java
protected void notifyClose(ProxyQueue queue) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "notifyClose", queue); try { final short id = queue.getId(); idAllocator.releaseId(id); //Remove the id from the map synchronized...
[ "protected", "void", "notifyClose", "(", "ProxyQueue", "queue", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"notifyClose\"", ",", "q...
Notified when a proxy queue in this group is closed. Allows us to free up the ID assigned to it. @param queue
[ "Notified", "when", "a", "proxy", "queue", "in", "this", "group", "is", "closed", ".", "Allows", "us", "to", "free", "up", "the", "ID", "assigned", "to", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L451-L473
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java
ProxyQueueConversationGroupImpl.nextId
private short nextId() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "nextId"); short id; try { id = idAllocator.allocateId(); } catch (IdAllocatorException e) { // No FFDC code needed ...
java
private short nextId() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "nextId"); short id; try { id = idAllocator.allocateId(); } catch (IdAllocatorException e) { // No FFDC code needed ...
[ "private", "short", "nextId", "(", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"nextId\"", ")", ";"...
Helper method. Returns the next id to be used for a proxy queue. @return short The next ID to use. @throws SIResourceException Thrown if there are no more free Ids.
[ "Helper", "method", ".", "Returns", "the", "next", "id", "to", "be", "used", "for", "a", "proxy", "queue", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L481-L500
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java
ProxyQueueConversationGroupImpl.checkClosed
private void checkClosed() throws SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkClosed", ""+closed); if (closed) throw new SIIncorrectCallException( TraceNLS.getFormattedMessage(CommsConstants.MSG_BUNDLE, "PROXY_QUE...
java
private void checkClosed() throws SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkClosed", ""+closed); if (closed) throw new SIIncorrectCallException( TraceNLS.getFormattedMessage(CommsConstants.MSG_BUNDLE, "PROXY_QUE...
[ "private", "void", "checkClosed", "(", ")", "throws", "SIIncorrectCallException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"checkClosed\""...
Helper method. Checks if this group has been closed and throws an exception if it has. @throws SIIncorrectCallException
[ "Helper", "method", ".", "Checks", "if", "this", "group", "has", "been", "closed", "and", "throws", "an", "exception", "if", "it", "has", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L507-L515
train