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.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/config/ssl/yoko/SocketFactory.java
SocketFactory.getSocketFactory
private SSLSocketFactory getSocketFactory(String id) throws IOException { // first use? SSLSocketFactory socketFactory = socketFactoryMap.get(id); if (socketFactory == null) { // the SSLConfig is optional, so if it's not there, use the default SSLSocketFactory. if (id == ...
java
private SSLSocketFactory getSocketFactory(String id) throws IOException { // first use? SSLSocketFactory socketFactory = socketFactoryMap.get(id); if (socketFactory == null) { // the SSLConfig is optional, so if it's not there, use the default SSLSocketFactory. if (id == ...
[ "private", "SSLSocketFactory", "getSocketFactory", "(", "String", "id", ")", "throws", "IOException", "{", "// first use?", "SSLSocketFactory", "socketFactory", "=", "socketFactoryMap", ".", "get", "(", "id", ")", ";", "if", "(", "socketFactory", "==", "null", ")"...
On-demand creation of an SSL socket factory for the ssl alias provided @return The SSLSocketFactory this connection should be using to create secure connections. @throws java.io.IOException if we can't get a socket factory
[ "On", "-", "demand", "creation", "of", "an", "SSL", "socket", "factory", "for", "the", "ssl", "alias", "provided" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/config/ssl/yoko/SocketFactory.java#L293-L312
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/config/ssl/yoko/SocketFactory.java
SocketFactory.getServerSocketFactory
private SSLServerSocketFactory getServerSocketFactory(String id) throws IOException { // first use? SSLServerSocketFactory serverSocketFactory = serverSocketFactoryMap.get(id); if (serverSocketFactory == null) { // the SSLConfig is optional, so if it's not there, use the default SSLS...
java
private SSLServerSocketFactory getServerSocketFactory(String id) throws IOException { // first use? SSLServerSocketFactory serverSocketFactory = serverSocketFactoryMap.get(id); if (serverSocketFactory == null) { // the SSLConfig is optional, so if it's not there, use the default SSLS...
[ "private", "SSLServerSocketFactory", "getServerSocketFactory", "(", "String", "id", ")", "throws", "IOException", "{", "// first use?", "SSLServerSocketFactory", "serverSocketFactory", "=", "serverSocketFactoryMap", ".", "get", "(", "id", ")", ";", "if", "(", "serverSoc...
On-demand creation of an SSL server socket factory for an ssl alias @return The SSLServerSocketFactory this connection should be using to create secure connections. @throws java.io.IOException if we can't get a server socket factory
[ "On", "-", "demand", "creation", "of", "an", "SSL", "server", "socket", "factory", "for", "an", "ssl", "alias" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/config/ssl/yoko/SocketFactory.java#L321-L346
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/config/ssl/yoko/SocketFactory.java
SocketFactory.configureServerSocket
private void configureServerSocket(SSLServerSocket serverSocket, SSLServerSocketFactory serverSocketFactory, String sslConfigName, OptionsKey options) throws IOException { try { String[] cipherSuites = sslConfig.getCipherSuites(sslConfigName, serverSocketFactory.getSupportedCipherSuites()); ...
java
private void configureServerSocket(SSLServerSocket serverSocket, SSLServerSocketFactory serverSocketFactory, String sslConfigName, OptionsKey options) throws IOException { try { String[] cipherSuites = sslConfig.getCipherSuites(sslConfigName, serverSocketFactory.getSupportedCipherSuites()); ...
[ "private", "void", "configureServerSocket", "(", "SSLServerSocket", "serverSocket", ",", "SSLServerSocketFactory", "serverSocketFactory", ",", "String", "sslConfigName", ",", "OptionsKey", "options", ")", "throws", "IOException", "{", "try", "{", "String", "[", "]", "...
Set the server socket configuration to our required QOS values. A small experiment shows that setting either (want, need) parameter to either true or false sets the other parameter to false. @param serverSocket The newly created SSLServerSocket. @param sslConfigName name of the sslConfig used to select cipher suites ...
[ "Set", "the", "server", "socket", "configuration", "to", "our", "required", "QOS", "values", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/config/ssl/yoko/SocketFactory.java#L362-L397
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java
BuiltinAuthorizationService.getRolesForSpecialSubject
private Collection<String> getRolesForSpecialSubject(String resourceName, String specialSubject) { int found = 0; Collection<String> roles = null; FeatureAuthorizationTableService featureAuthzTableSvc = featureAuthzTableServiceRef.getService(); String featureAuthzRoleHeaderValue = null; ...
java
private Collection<String> getRolesForSpecialSubject(String resourceName, String specialSubject) { int found = 0; Collection<String> roles = null; FeatureAuthorizationTableService featureAuthzTableSvc = featureAuthzTableServiceRef.getService(); String featureAuthzRoleHeaderValue = null; ...
[ "private", "Collection", "<", "String", ">", "getRolesForSpecialSubject", "(", "String", "resourceName", ",", "String", "specialSubject", ")", "{", "int", "found", "=", "0", ";", "Collection", "<", "String", ">", "roles", "=", "null", ";", "FeatureAuthorizationT...
Check all of the authorization table services for the resourceName. If no authorization table can be found for the resourceName, null is returned. If more than one authorization table can be found for the resourceName, null is returned. @param resourceName @param specialSubject @return
[ "Check", "all", "of", "the", "authorization", "table", "services", "for", "the", "resourceName", ".", "If", "no", "authorization", "table", "can", "be", "found", "for", "the", "resourceName", "null", "is", "returned", ".", "If", "more", "than", "one", "autho...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java#L219-L247
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java
BuiltinAuthorizationService.isSubjectAuthorized
private boolean isSubjectAuthorized(String resourceName, Collection<String> requiredRoles, Subject subject) { AccessDecisionService accessDecisionService = accessDecisionServiceRef.getService(); // check user access first boolean isGranted = false; ...
java
private boolean isSubjectAuthorized(String resourceName, Collection<String> requiredRoles, Subject subject) { AccessDecisionService accessDecisionService = accessDecisionServiceRef.getService(); // check user access first boolean isGranted = false; ...
[ "private", "boolean", "isSubjectAuthorized", "(", "String", "resourceName", ",", "Collection", "<", "String", ">", "requiredRoles", ",", "Subject", "subject", ")", "{", "AccessDecisionService", "accessDecisionService", "=", "accessDecisionServiceRef", ".", "getService", ...
Check if the Subject is authorized to the required roles for a given resource. The user is checked first, and if it's not authorized, then each group is checked. @param resourceName the name of the application, used for looking up the correct authorization table @param requiredRoles the roles required to access the re...
[ "Check", "if", "the", "Subject", "is", "authorized", "to", "the", "required", "roles", "for", "a", "given", "resource", ".", "The", "user", "is", "checked", "first", "and", "if", "it", "s", "not", "authorized", "then", "each", "group", "is", "checked", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java#L319-L337
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java
BuiltinAuthorizationService.getWSCredentialFromSubject
private WSCredential getWSCredentialFromSubject(Subject subject) { if (subject != null) { java.util.Collection<Object> publicCreds = subject.getPublicCredentials(); if (publicCreds != null && publicCreds.size() > 0) { java.util.Iterator<Object> publicCredIterator = publi...
java
private WSCredential getWSCredentialFromSubject(Subject subject) { if (subject != null) { java.util.Collection<Object> publicCreds = subject.getPublicCredentials(); if (publicCreds != null && publicCreds.size() > 0) { java.util.Iterator<Object> publicCredIterator = publi...
[ "private", "WSCredential", "getWSCredentialFromSubject", "(", "Subject", "subject", ")", "{", "if", "(", "subject", "!=", "null", ")", "{", "java", ".", "util", ".", "Collection", "<", "Object", ">", "publicCreds", "=", "subject", ".", "getPublicCredentials", ...
Get the WSCredential from the given Subject @param subject the subject to parse, must not be null @return the WSCredential, or null if the Subject does not have one
[ "Get", "the", "WSCredential", "from", "the", "given", "Subject" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java#L415-L432
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java
BuiltinAuthorizationService.getAccessId
private String getAccessId(WSCredential cred) { String accessId = null; try { accessId = cred.getAccessId(); } catch (CredentialExpiredException e) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Caught exception getting ...
java
private String getAccessId(WSCredential cred) { String accessId = null; try { accessId = cred.getAccessId(); } catch (CredentialExpiredException e) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Caught exception getting ...
[ "private", "String", "getAccessId", "(", "WSCredential", "cred", ")", "{", "String", "accessId", "=", "null", ";", "try", "{", "accessId", "=", "cred", ".", "getAccessId", "(", ")", ";", "}", "catch", "(", "CredentialExpiredException", "e", ")", "{", "if",...
Get the access ID from the specified credential. @parm cred the WSCredential to search @return the user access id of the credential, or null when the cred is expired or destroyed
[ "Get", "the", "access", "ID", "from", "the", "specified", "credential", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java#L441-L456
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java
BuiltinAuthorizationService.getGroupIds
@SuppressWarnings("unchecked") private String[] getGroupIds(WSCredential cred) { Collection<String> ids = null; if (cred != null) { try { ids = cred.getGroupIds(); } catch (CredentialExpiredException e) { if (TraceComponent.isAnyTracingEnabled(...
java
@SuppressWarnings("unchecked") private String[] getGroupIds(WSCredential cred) { Collection<String> ids = null; if (cred != null) { try { ids = cred.getGroupIds(); } catch (CredentialExpiredException e) { if (TraceComponent.isAnyTracingEnabled(...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "String", "[", "]", "getGroupIds", "(", "WSCredential", "cred", ")", "{", "Collection", "<", "String", ">", "ids", "=", "null", ";", "if", "(", "cred", "!=", "null", ")", "{", "try", "{", "...
Get the group IDs from the specified credential. @param cred the WSCredential to search, must not be null @return an array of group access ids of the credential, or null when the cred is expired or destroyed
[ "Get", "the", "group", "IDs", "from", "the", "specified", "credential", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java#L466-L487
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java
BuiltinAuthorizationService.isAllAuthenticatedGranted
protected boolean isAllAuthenticatedGranted(String resourceName, Collection<String> requiredRoles, Subject subject) { Collection<String> roles = getRolesForSpecialSubject(resourceName, AuthorizationTableService.ALL_A...
java
protected boolean isAllAuthenticatedGranted(String resourceName, Collection<String> requiredRoles, Subject subject) { Collection<String> roles = getRolesForSpecialSubject(resourceName, AuthorizationTableService.ALL_A...
[ "protected", "boolean", "isAllAuthenticatedGranted", "(", "String", "resourceName", ",", "Collection", "<", "String", ">", "requiredRoles", ",", "Subject", "subject", ")", "{", "Collection", "<", "String", ">", "roles", "=", "getRolesForSpecialSubject", "(", "resour...
Check if the special subject ALL_AUTHENTICATED_USERS is mapped to the requiredRole. @param resourceName the name of the resource being accessed, used to look up corresponding the authorization table, must not be null @param requiredRoles the security constraints required to be authorized, must not be null or empty @pa...
[ "Check", "if", "the", "special", "subject", "ALL_AUTHENTICATED_USERS", "is", "mapped", "to", "the", "requiredRole", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java#L523-L530
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java
BuiltinAuthorizationService.isSubjectValid
private boolean isSubjectValid(Subject subject) { final WSCredential wsCred = getWSCredentialFromSubject(subject); if (wsCred == null) { return false; } else { // TODO revisit this when EJBs are supported add additional // checks would be required ...
java
private boolean isSubjectValid(Subject subject) { final WSCredential wsCred = getWSCredentialFromSubject(subject); if (wsCred == null) { return false; } else { // TODO revisit this when EJBs are supported add additional // checks would be required ...
[ "private", "boolean", "isSubjectValid", "(", "Subject", "subject", ")", "{", "final", "WSCredential", "wsCred", "=", "getWSCredentialFromSubject", "(", "subject", ")", ";", "if", "(", "wsCred", "==", "null", ")", "{", "return", "false", ";", "}", "else", "{"...
Check if the subject has a WScredential, is authenticated, and is not a basic auth credential. @param subject the subject to check @return true if the subject has a WSCredential that is not marked as unauthenticated and is not marked as basic auth, otherwise false
[ "Check", "if", "the", "subject", "has", "a", "WScredential", "is", "authenticated", "and", "is", "not", "a", "basic", "auth", "credential", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java#L540-L549
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java
BuiltinAuthorizationService.getRealmName
private String getRealmName(WSCredential cred) { String realmName = null; if (cred != null) { try { realmName = cred.getRealmName(); } catch (Exception e) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.d...
java
private String getRealmName(WSCredential cred) { String realmName = null; if (cred != null) { try { realmName = cred.getRealmName(); } catch (Exception e) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.d...
[ "private", "String", "getRealmName", "(", "WSCredential", "cred", ")", "{", "String", "realmName", "=", "null", ";", "if", "(", "cred", "!=", "null", ")", "{", "try", "{", "realmName", "=", "cred", ".", "getRealmName", "(", ")", ";", "}", "catch", "(",...
Get the realm name from the specified credential. @param cred the WSCredential to search, must not be null @return realm name.
[ "Get", "the", "realm", "name", "from", "the", "specified", "credential", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/internal/BuiltinAuthorizationService.java#L558-L570
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/DiagnosticModule.java
DiagnosticModule.init
final void init() throws DiagnosticModuleRegistrationFailureException { if (initialized) { return; } initialized = true; Method[] methods = getClass().getMethods(); for (Method method : methods) { String name = method.getName().toLowerCase(); ...
java
final void init() throws DiagnosticModuleRegistrationFailureException { if (initialized) { return; } initialized = true; Method[] methods = getClass().getMethods(); for (Method method : methods) { String name = method.getName().toLowerCase(); ...
[ "final", "void", "init", "(", ")", "throws", "DiagnosticModuleRegistrationFailureException", "{", "if", "(", "initialized", ")", "{", "return", ";", "}", "initialized", "=", "true", ";", "Method", "[", "]", "methods", "=", "getClass", "(", ")", ".", "getMeth...
The init method is provided to subclasses to initialize this particular DiagnosticModule. Called when the diagnostic module is registered. <p> Done on a best-effort basis-- methods not matching the signature are not added. If the system property "com.ibm.ws.ffdc.debugDiagnosticModule" is set to true, exceptions and ot...
[ "The", "init", "method", "is", "provided", "to", "subclasses", "to", "initialize", "this", "particular", "DiagnosticModule", ".", "Called", "when", "the", "diagnostic", "module", "is", "registered", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/DiagnosticModule.java#L118-L156
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/DiagnosticModule.java
DiagnosticModule.dumpComponentData
public final boolean dumpComponentData(String[] input_directives, Throwable ex, IncidentStream ffdcis, Object callerThis, Object[] catcherObjects, String sourceId, String[] callStack) { startProcessing(); try { ffdcis.writeLine("==> Performing defa...
java
public final boolean dumpComponentData(String[] input_directives, Throwable ex, IncidentStream ffdcis, Object callerThis, Object[] catcherObjects, String sourceId, String[] callStack) { startProcessing(); try { ffdcis.writeLine("==> Performing defa...
[ "public", "final", "boolean", "dumpComponentData", "(", "String", "[", "]", "input_directives", ",", "Throwable", "ex", ",", "IncidentStream", "ffdcis", ",", "Object", "callerThis", ",", "Object", "[", "]", "catcherObjects", ",", "String", "sourceId", ",", "Stri...
This method is invoked to instruct the diagnostic module to capture all relevant information that it has about a particular incident @param input_directives The directives to be processed for this incident @param ex The exception that caused this incident @param ffdcis The incident stream to be used to record the rele...
[ "This", "method", "is", "invoked", "to", "instruct", "the", "diagnostic", "module", "to", "capture", "all", "relevant", "information", "that", "it", "has", "about", "a", "particular", "incident" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/DiagnosticModule.java#L188-L214
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/DiagnosticModule.java
DiagnosticModule.getDataForDirectives
public final void getDataForDirectives(String[] directives, Throwable ex, IncidentStream ffdcis, Object callerThis, Object[] catcherObjects, String sourceId) { if (directives == null || directives.length <= 0 || !continueProcessing()) return; for (String s : directives) { String...
java
public final void getDataForDirectives(String[] directives, Throwable ex, IncidentStream ffdcis, Object callerThis, Object[] catcherObjects, String sourceId) { if (directives == null || directives.length <= 0 || !continueProcessing()) return; for (String s : directives) { String...
[ "public", "final", "void", "getDataForDirectives", "(", "String", "[", "]", "directives", ",", "Throwable", "ex", ",", "IncidentStream", "ffdcis", ",", "Object", "callerThis", ",", "Object", "[", "]", "catcherObjects", ",", "String", "sourceId", ")", "{", "if"...
Invoke all the ffdcdump methods for a set of directives @param directives The list of directives to be invoked @param ex The exception causing the incident @param ffdcis The incident stream on which to report @param callerThis The object reporting the incident @param catcherObjects Any additional interesting objects @...
[ "Invoke", "all", "the", "ffdcdump", "methods", "for", "a", "set", "of", "directives" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/DiagnosticModule.java#L232-L249
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/DiagnosticModule.java
DiagnosticModule.invokeDiagnosticMethod
private final void invokeDiagnosticMethod(Method m, Throwable ex, IncidentStream ffdcis, Object callerThis, Object[] catcherObjects, String sourceId) { try { m.invoke(this, new Object[] { ex, ffdcis, callerThis, catcherObjects, sourceId }); ffdcis.writeLine("+ Data for directive [" + m....
java
private final void invokeDiagnosticMethod(Method m, Throwable ex, IncidentStream ffdcis, Object callerThis, Object[] catcherObjects, String sourceId) { try { m.invoke(this, new Object[] { ex, ffdcis, callerThis, catcherObjects, sourceId }); ffdcis.writeLine("+ Data for directive [" + m....
[ "private", "final", "void", "invokeDiagnosticMethod", "(", "Method", "m", ",", "Throwable", "ex", ",", "IncidentStream", "ffdcis", ",", "Object", "callerThis", ",", "Object", "[", "]", "catcherObjects", ",", "String", "sourceId", ")", "{", "try", "{", "m", "...
Invoke dump method @param m The method to be invoked @param ex The exception causing the incident @param ffdcis The incident stream on which to report @param callerThis The object reporting the incident @param catcherObjects Any additional interesting objects @param sourceId The sourceid of the class reporting the pro...
[ "Invoke", "dump", "method" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/DiagnosticModule.java#L267-L275
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/DiagnosticModule.java
DiagnosticModule.validate
public final boolean validate() { if (makeNoise()) { System.out.println("This method is NOT intended to be called from the runtime"); System.out.println("but is provided as part of unit test for diagnostic modules"); ListIterator<Method> im; try { ...
java
public final boolean validate() { if (makeNoise()) { System.out.println("This method is NOT intended to be called from the runtime"); System.out.println("but is provided as part of unit test for diagnostic modules"); ListIterator<Method> im; try { ...
[ "public", "final", "boolean", "validate", "(", ")", "{", "if", "(", "makeNoise", "(", ")", ")", "{", "System", ".", "out", ".", "println", "(", "\"This method is NOT intended to be called from the runtime\"", ")", ";", "System", ".", "out", ".", "println", "("...
Validate whether the diagnostic module is correctly coded. Method can be used as a simple validation of a components diagnostic module. The information printed can be used during the development of the DM. @return true; if the system property "com.ibm.ws.ffdc.debugDiagnosticModule" is set, then some validation will be...
[ "Validate", "whether", "the", "diagnostic", "module", "is", "correctly", "coded", ".", "Method", "can", "be", "used", "as", "a", "simple", "validation", "of", "a", "components", "diagnostic", "module", ".", "The", "information", "printed", "can", "be", "used",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/DiagnosticModule.java#L286-L318
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/DiagnosticModule.java
DiagnosticModule.continueProcessing
private boolean continueProcessing() { Boolean currentValue = _continueProcessing.get(); if (currentValue != null) return currentValue.booleanValue(); return true; }
java
private boolean continueProcessing() { Boolean currentValue = _continueProcessing.get(); if (currentValue != null) return currentValue.booleanValue(); return true; }
[ "private", "boolean", "continueProcessing", "(", ")", "{", "Boolean", "currentValue", "=", "_continueProcessing", ".", "get", "(", ")", ";", "if", "(", "currentValue", "!=", "null", ")", "return", "currentValue", ".", "booleanValue", "(", ")", ";", "return", ...
Check the the ThreadLocal to see if we should continue processing this FFDC exception @return
[ "Check", "the", "the", "ThreadLocal", "to", "see", "if", "we", "should", "continue", "processing", "this", "FFDC", "exception" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/ffdc/DiagnosticModule.java#L326-L332
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/jmx/PmiCollaborator.java
PmiCollaborator.parseSpecStr
public static int[] parseSpecStr(String in) { if (in == null) { return new int[0]; } in = in.replaceAll(" ", ""); in = in.trim(); if (in.length() == 0) { return new int[0]; } String[] tokens = in.split(","); int[] toReturn = new ...
java
public static int[] parseSpecStr(String in) { if (in == null) { return new int[0]; } in = in.replaceAll(" ", ""); in = in.trim(); if (in.length() == 0) { return new int[0]; } String[] tokens = in.split(","); int[] toReturn = new ...
[ "public", "static", "int", "[", "]", "parseSpecStr", "(", "String", "in", ")", "{", "if", "(", "in", "==", "null", ")", "{", "return", "new", "int", "[", "0", "]", ";", "}", "in", "=", "in", ".", "replaceAll", "(", "\" \"", ",", "\"\"", ")", ";...
Helper function to parse the configuration's spec strings. @param in The configuration string. @return An integer array of all the counters enabled by the specified string.
[ "Helper", "function", "to", "parse", "the", "configuration", "s", "spec", "strings", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/jmx/PmiCollaborator.java#L164-L198
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/wsspi/sib/core/SelectionCriteriaFactory.java
SelectionCriteriaFactory.getInstance
public static SelectionCriteriaFactory getInstance() { if (_instance == null) { synchronized (SIDestinationAddressFactory.class) { try { Class cls = Class .forName(MESSAGE_SELECTOR_FACTORY_CLASS); _instance = (SelectionCriteriaFactory) cls.newInstance(); } catch (Exception e) { FFDC...
java
public static SelectionCriteriaFactory getInstance() { if (_instance == null) { synchronized (SIDestinationAddressFactory.class) { try { Class cls = Class .forName(MESSAGE_SELECTOR_FACTORY_CLASS); _instance = (SelectionCriteriaFactory) cls.newInstance(); } catch (Exception e) { FFDC...
[ "public", "static", "SelectionCriteriaFactory", "getInstance", "(", ")", "{", "if", "(", "_instance", "==", "null", ")", "{", "synchronized", "(", "SIDestinationAddressFactory", ".", "class", ")", "{", "try", "{", "Class", "cls", "=", "Class", ".", "forName", ...
Get the singleton SIDestinationAddressFactory which is to be used for creating SIDestinationAddress instances. @return The SIDestinationAddressFactory
[ "Get", "the", "singleton", "SIDestinationAddressFactory", "which", "is", "to", "be", "used", "for", "creating", "SIDestinationAddress", "instances", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/wsspi/sib/core/SelectionCriteriaFactory.java#L44-L61
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectorProperty.java
ConnectorProperty.setValue
private void setValue(Object newValue) { try { if (this.type == null) value = newValue; else if (this.type.equals("java.lang.String")) value = newValue; else if (this.type.equals("java.lang.Boolean")) value = Boolean.valueOf((St...
java
private void setValue(Object newValue) { try { if (this.type == null) value = newValue; else if (this.type.equals("java.lang.String")) value = newValue; else if (this.type.equals("java.lang.Boolean")) value = Boolean.valueOf((St...
[ "private", "void", "setValue", "(", "Object", "newValue", ")", "{", "try", "{", "if", "(", "this", ".", "type", "==", "null", ")", "value", "=", "newValue", ";", "else", "if", "(", "this", ".", "type", ".", "equals", "(", "\"java.lang.String\"", ")", ...
should be identical to version 1.3, except newValue is of type Object.
[ "should", "be", "identical", "to", "version", "1", ".", "3", "except", "newValue", "is", "of", "type", "Object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectorProperty.java#L83-L112
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java
MPSubscriptionImpl.addSelectionCriteria
public void addSelectionCriteria(SelectionCriteria selCriteria) throws SIDiscriminatorSyntaxException, SISelectorSyntaxException, SIResourceException { if (tc.isEntryEnabled()) SibTr.entry(tc, "addSelectionCriteria", new Object[] { selCriteria }); // We should rea...
java
public void addSelectionCriteria(SelectionCriteria selCriteria) throws SIDiscriminatorSyntaxException, SISelectorSyntaxException, SIResourceException { if (tc.isEntryEnabled()) SibTr.entry(tc, "addSelectionCriteria", new Object[] { selCriteria }); // We should rea...
[ "public", "void", "addSelectionCriteria", "(", "SelectionCriteria", "selCriteria", ")", "throws", "SIDiscriminatorSyntaxException", ",", "SISelectorSyntaxException", ",", "SIResourceException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", ...
Add an additional selection criteria to the to the subscription Duplicate selection criterias are ignored
[ "Add", "an", "additional", "selection", "criteria", "to", "the", "to", "the", "subscription", "Duplicate", "selection", "criterias", "are", "ignored" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java#L73-L155
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java
MPSubscriptionImpl.getSelectionCriteria
public SelectionCriteria[] getSelectionCriteria() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getSelectionCriteria"); SelectionCriteria[] list = _consumerDispatcher.getConsumerDispatcherState().getSelectionCriteriaList(); if (tc.isEntryEnabled()) SibTr.exit(tc, "getSe...
java
public SelectionCriteria[] getSelectionCriteria() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getSelectionCriteria"); SelectionCriteria[] list = _consumerDispatcher.getConsumerDispatcherState().getSelectionCriteriaList(); if (tc.isEntryEnabled()) SibTr.exit(tc, "getSe...
[ "public", "SelectionCriteria", "[", "]", "getSelectionCriteria", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getSelectionCriteria\"", ")", ";", "SelectionCriteria", "[", "]", "list", "=", ...
List existing selection criterias registered with the subscription
[ "List", "existing", "selection", "criterias", "registered", "with", "the", "subscription" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java#L217-L227
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java
MPSubscriptionImpl.setUserProperties
public void setUserProperties(Map userData) throws SIResourceException { if (tc.isEntryEnabled()) SibTr.entry(tc, "setUserProperties", new Object[] { userData }); _consumerDispatcher.getConsumerDispatcherState().setUserData(userData); Transaction tran = _messageProcesso...
java
public void setUserProperties(Map userData) throws SIResourceException { if (tc.isEntryEnabled()) SibTr.entry(tc, "setUserProperties", new Object[] { userData }); _consumerDispatcher.getConsumerDispatcherState().setUserData(userData); Transaction tran = _messageProcesso...
[ "public", "void", "setUserProperties", "(", "Map", "userData", ")", "throws", "SIResourceException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setUserProperties\"", ",", "new", "Object", "[", "]", ...
Store a map of user properties with a subscription The map provided on this call will replace any existing map stored with the subscription
[ "Store", "a", "map", "of", "user", "properties", "with", "a", "subscription", "The", "map", "provided", "on", "this", "call", "will", "replace", "any", "existing", "map", "stored", "with", "the", "subscription" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java#L233-L267
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java
MPSubscriptionImpl.getUserProperties
public Map getUserProperties() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getUserProperties"); Map map = _consumerDispatcher.getConsumerDispatcherState().getUserData(); if (tc.isEntryEnabled()) SibTr.exit(tc, "getUserProperties", map); return map; }
java
public Map getUserProperties() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getUserProperties"); Map map = _consumerDispatcher.getConsumerDispatcherState().getUserData(); if (tc.isEntryEnabled()) SibTr.exit(tc, "getUserProperties", map); return map; }
[ "public", "Map", "getUserProperties", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getUserProperties\"", ")", ";", "Map", "map", "=", "_consumerDispatcher", ".", "getConsumerDispatcherState", ...
Get the map currently stored with the subscription
[ "Get", "the", "map", "currently", "stored", "with", "the", "subscription" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java#L272-L282
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java
MPSubscriptionImpl.getSubscriberId
public String getSubscriberId() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getSubscriberId"); String subscriberId = _consumerDispatcher.getConsumerDispatcherState().getSubscriberID(); if (tc.isEntryEnabled()) SibTr.exit(tc, "getSubscriberId", subscriberId); return su...
java
public String getSubscriberId() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getSubscriberId"); String subscriberId = _consumerDispatcher.getConsumerDispatcherState().getSubscriberID(); if (tc.isEntryEnabled()) SibTr.exit(tc, "getSubscriberId", subscriberId); return su...
[ "public", "String", "getSubscriberId", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getSubscriberId\"", ")", ";", "String", "subscriberId", "=", "_consumerDispatcher", ".", "getConsumerDispatch...
Get subscriberID for this subscription
[ "Get", "subscriberID", "for", "this", "subscription" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java#L287-L297
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java
MPSubscriptionImpl.getWPMTopicSpaceName
public String getWPMTopicSpaceName() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getWPMTopicSpaceName"); String tsName = _consumerDispatcher.getConsumerDispatcherState().getTopicSpaceName(); if (tc.isEntryEnabled()) SibTr.exit(tc, "getWPMTopicSpaceName", tsName)...
java
public String getWPMTopicSpaceName() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getWPMTopicSpaceName"); String tsName = _consumerDispatcher.getConsumerDispatcherState().getTopicSpaceName(); if (tc.isEntryEnabled()) SibTr.exit(tc, "getWPMTopicSpaceName", tsName)...
[ "public", "String", "getWPMTopicSpaceName", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getWPMTopicSpaceName\"", ")", ";", "String", "tsName", "=", "_consumerDispatcher", ".", "getConsumerDisp...
Get WPMTopicSpaceName for this subscription
[ "Get", "WPMTopicSpaceName", "for", "this", "subscription" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java#L302-L312
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java
MPSubscriptionImpl.getMEName
public String getMEName() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getMEName"); String meName = _messageProcessor.getMessagingEngineName(); if (tc.isEntryEnabled()) SibTr.exit(tc, "getMEName", meName); return meName; }
java
public String getMEName() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getMEName"); String meName = _messageProcessor.getMessagingEngineName(); if (tc.isEntryEnabled()) SibTr.exit(tc, "getMEName", meName); return meName; }
[ "public", "String", "getMEName", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getMEName\"", ")", ";", "String", "meName", "=", "_messageProcessor", ".", "getMessagingEngineName", "(", ")", ...
Get MEName for this subscription
[ "Get", "MEName", "for", "this", "subscription" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/MPSubscriptionImpl.java#L317-L327
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java
ExtendedJTATransactionImpl.getLocalId
@Override public int getLocalId() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getLocalId"); int localId = 0; final TransactionImpl tran = ((TranManagerSet) TransactionManagerFactory.getTransactionManager()).getTransactionImpl(); if ...
java
@Override public int getLocalId() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getLocalId"); int localId = 0; final TransactionImpl tran = ((TranManagerSet) TransactionManagerFactory.getTransactionManager()).getTransactionImpl(); if ...
[ "@", "Override", "public", "int", "getLocalId", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getLocalId\"", ")", ";", "int", "...
Returns a process-unique identifier for the transaction currently associated with the calling thread. The local-id is valid only within the local process. The local-id is recovered as part of the state of a recovered transaction. @return an integer that uniquely identifies the current transaction within the calling pr...
[ "Returns", "a", "process", "-", "unique", "identifier", "for", "the", "transaction", "currently", "associated", "with", "the", "calling", "thread", ".", "The", "local", "-", "id", "is", "valid", "only", "within", "the", "local", "process", ".", "The", "local...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java#L81-L97
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java
ExtendedJTATransactionImpl.beforeCompletion
public static void beforeCompletion(TransactionImpl tran, int syncLevel) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "beforeCompletion", new Object[] { tran, syncLevel }); if (syncLevel >= 0) { final ArrayList syncs = _syncLevels.get(syncLevel...
java
public static void beforeCompletion(TransactionImpl tran, int syncLevel) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "beforeCompletion", new Object[] { tran, syncLevel }); if (syncLevel >= 0) { final ArrayList syncs = _syncLevels.get(syncLevel...
[ "public", "static", "void", "beforeCompletion", "(", "TransactionImpl", "tran", ",", "int", "syncLevel", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", ...
Notify all the registered syncs of the begin of the completion phase of the given transaction
[ "Notify", "all", "the", "registered", "syncs", "of", "the", "begin", "of", "the", "completion", "phase", "of", "the", "given", "transaction" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java#L283-L304
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java
ExtendedJTATransactionImpl.afterCompletion
public static void afterCompletion(TransactionImpl tran, int status, int syncLevel) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "afterCompletion", new Object[] { tran, status, syncLevel }); if (syncLevel >= 0) { final ArrayList syncs = _syncLe...
java
public static void afterCompletion(TransactionImpl tran, int status, int syncLevel) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "afterCompletion", new Object[] { tran, status, syncLevel }); if (syncLevel >= 0) { final ArrayList syncs = _syncLe...
[ "public", "static", "void", "afterCompletion", "(", "TransactionImpl", "tran", ",", "int", "status", ",", "int", "syncLevel", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr",...
Notify all the registered syncs of the end of the completion phase of the given transaction. The completion resulted in the transaction having the given status.
[ "Notify", "all", "the", "registered", "syncs", "of", "the", "end", "of", "the", "completion", "phase", "of", "the", "given", "transaction", ".", "The", "completion", "resulted", "in", "the", "transaction", "having", "the", "given", "status", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java#L312-L344
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java
ExtendedJTATransactionImpl.callbacksRegistered
public static boolean callbacksRegistered() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "callbacksRegistered"); if (_syncLevel < 0) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.exit(tc, "callbacksRegist...
java
public static boolean callbacksRegistered() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "callbacksRegistered"); if (_syncLevel < 0) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.exit(tc, "callbacksRegist...
[ "public", "static", "boolean", "callbacksRegistered", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"callbacksRegistered\"", ")", ";",...
which can still be called otherwise false.
[ "which", "can", "still", "be", "called", "otherwise", "false", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java#L348-L372
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java
ExtendedJTATransactionImpl.garbageCollectUnusedLevels
private static void garbageCollectUnusedLevels() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "garbageCollectUnusedLevels"); final int numLevels = _syncLevels.size(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.d...
java
private static void garbageCollectUnusedLevels() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "garbageCollectUnusedLevels"); final int numLevels = _syncLevels.size(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.d...
[ "private", "static", "void", "garbageCollectUnusedLevels", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"garbageCollectUnusedLevels\"", ...
Null out levels that will never be referenced again. Null entries are candidates to be the next current level.
[ "Null", "out", "levels", "that", "will", "never", "be", "referenced", "again", ".", "Null", "entries", "are", "candidates", "to", "be", "the", "next", "current", "level", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java#L404-L454
train
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java
ExtendedJTATransactionImpl.setLevel
private static void setLevel(ArrayList level) { _syncLevel = nextLevel(); if (_syncLevel == _syncLevels.size()) { _syncLevels.add(level); } else { _syncLevels.set(_syncLevel, level); } }
java
private static void setLevel(ArrayList level) { _syncLevel = nextLevel(); if (_syncLevel == _syncLevels.size()) { _syncLevels.add(level); } else { _syncLevels.set(_syncLevel, level); } }
[ "private", "static", "void", "setLevel", "(", "ArrayList", "level", ")", "{", "_syncLevel", "=", "nextLevel", "(", ")", ";", "if", "(", "_syncLevel", "==", "_syncLevels", ".", "size", "(", ")", ")", "{", "_syncLevels", ".", "add", "(", "level", ")", ";...
Utility method to make a list into the new current level @param level
[ "Utility", "method", "to", "make", "a", "list", "into", "the", "new", "current", "level" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java#L461-L469
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.certificateutil/src/com/ibm/ws/crypto/certificateutil/keytool/KeytoolSSLCertificateCreator.java
KeytoolSSLCertificateCreator.validateParameters
private void validateParameters(String filePath, String password, int validity, String subjectDN, int keySize, String sigAlg) { if (!validateFilePath(filePath)) { throw new IllegalArgumentException("filePath must be a valid filePath within the file system."); } if (password == null |...
java
private void validateParameters(String filePath, String password, int validity, String subjectDN, int keySize, String sigAlg) { if (!validateFilePath(filePath)) { throw new IllegalArgumentException("filePath must be a valid filePath within the file system."); } if (password == null |...
[ "private", "void", "validateParameters", "(", "String", "filePath", ",", "String", "password", ",", "int", "validity", ",", "String", "subjectDN", ",", "int", "keySize", ",", "String", "sigAlg", ")", "{", "if", "(", "!", "validateFilePath", "(", "filePath", ...
Validate the parameters. @param filePath @param password @param validity @param subjectDN
[ "Validate", "the", "parameters", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.certificateutil/src/com/ibm/ws/crypto/certificateutil/keytool/KeytoolSSLCertificateCreator.java#L65-L98
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.certificateutil/src/com/ibm/ws/crypto/certificateutil/keytool/KeytoolSSLCertificateCreator.java
KeytoolSSLCertificateCreator.validateFilePath
private boolean validateFilePath(String filePath) { if (filePath == null || filePath.isEmpty()) { throw new IllegalArgumentException("filePath must be a valid filePath within the file system."); } // Check if the filename exists as a File -- use an absolute file to ensure we have ...
java
private boolean validateFilePath(String filePath) { if (filePath == null || filePath.isEmpty()) { throw new IllegalArgumentException("filePath must be a valid filePath within the file system."); } // Check if the filename exists as a File -- use an absolute file to ensure we have ...
[ "private", "boolean", "validateFilePath", "(", "String", "filePath", ")", "{", "if", "(", "filePath", "==", "null", "||", "filePath", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"filePath must be a valid filePath within the...
The specified filePath must either exist, or in the case the file should be created, its parent directory. @param loc @return
[ "The", "specified", "filePath", "must", "either", "exist", "or", "in", "the", "case", "the", "file", "should", "be", "created", "its", "parent", "directory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.certificateutil/src/com/ibm/ws/crypto/certificateutil/keytool/KeytoolSSLCertificateCreator.java#L107-L117
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingListMaker.java
BlockingListMaker.make
public <K2 extends K, E2 extends E> BlockingList<K2, E2> make() { @SuppressWarnings("unchecked") BlockingListMaker<K2, E2> stricterThis = (BlockingListMaker<K2, E2>) this; return stricterThis.internalCreateBlockingList(); }
java
public <K2 extends K, E2 extends E> BlockingList<K2, E2> make() { @SuppressWarnings("unchecked") BlockingListMaker<K2, E2> stricterThis = (BlockingListMaker<K2, E2>) this; return stricterThis.internalCreateBlockingList(); }
[ "public", "<", "K2", "extends", "K", ",", "E2", "extends", "E", ">", "BlockingList", "<", "K2", ",", "E2", ">", "make", "(", ")", "{", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "BlockingListMaker", "<", "K2", ",", "E2", ">", "stricterThis", "...
Construct a list
[ "Construct", "a", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingListMaker.java#L81-L85
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingListMaker.java
BlockingListMaker.log
public BlockingListMaker<K, E> log(Logger logger) { this.logger = logger == null ? NULL_LOGGER : logger; return this; }
java
public BlockingListMaker<K, E> log(Logger logger) { this.logger = logger == null ? NULL_LOGGER : logger; return this; }
[ "public", "BlockingListMaker", "<", "K", ",", "E", ">", "log", "(", "Logger", "logger", ")", "{", "this", ".", "logger", "=", "logger", "==", "null", "?", "NULL_LOGGER", ":", "logger", ";", "return", "this", ";", "}" ]
Define the logger to use to log interesting events within the list
[ "Define", "the", "logger", "to", "use", "to", "log", "interesting", "events", "within", "the", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingListMaker.java#L108-L111
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingListMaker.java
BlockingListMaker.waitFor
public BlockingListMaker<K, E> waitFor(long time, TimeUnit unit) { this.nanoTimeout = time == 0 ? 1 : NANOSECONDS.convert(time, unit); return this; }
java
public BlockingListMaker<K, E> waitFor(long time, TimeUnit unit) { this.nanoTimeout = time == 0 ? 1 : NANOSECONDS.convert(time, unit); return this; }
[ "public", "BlockingListMaker", "<", "K", ",", "E", ">", "waitFor", "(", "long", "time", ",", "TimeUnit", "unit", ")", "{", "this", ".", "nanoTimeout", "=", "time", "==", "0", "?", "1", ":", "NANOSECONDS", ".", "convert", "(", "time", ",", "unit", ")"...
Specify the total time to wait for the elements of the list to become available
[ "Specify", "the", "total", "time", "to", "wait", "for", "the", "elements", "of", "the", "list", "to", "become", "available" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingListMaker.java#L114-L117
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageHandleImpl.java
JsMessageHandleImpl.getSystemMessageId
public String getSystemMessageId() { //based on com.ibm.ws.sib.mfp.impl.JsHdrsImpl if (uuid != null) { StringBuilder buff = new StringBuilder(uuid.toString()); buff.append(MfpConstants.MESSAGE_HANDLE_SEPARATOR); buff.append(value); return new String(buff); } else { return n...
java
public String getSystemMessageId() { //based on com.ibm.ws.sib.mfp.impl.JsHdrsImpl if (uuid != null) { StringBuilder buff = new StringBuilder(uuid.toString()); buff.append(MfpConstants.MESSAGE_HANDLE_SEPARATOR); buff.append(value); return new String(buff); } else { return n...
[ "public", "String", "getSystemMessageId", "(", ")", "{", "//based on com.ibm.ws.sib.mfp.impl.JsHdrsImpl", "if", "(", "uuid", "!=", "null", ")", "{", "StringBuilder", "buff", "=", "new", "StringBuilder", "(", "uuid", ".", "toString", "(", ")", ")", ";", "buff", ...
Returns the SIMessageHandles System Message ID. @return String The SystemMessageID of the SIMessageHandle.
[ "Returns", "the", "SIMessageHandles", "System", "Message", "ID", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageHandleImpl.java#L261-L272
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/injection/WebServiceRefBinding.java
WebServiceRefBinding.processExistingWSDL
private void processExistingWSDL(String wsdlLocation, Member newMember) throws InjectionException { // if the wsdlLocation for this service reference is specified in the DD, log a debug statement and continue if (wsrInfo.getWsdlLocation() != null && !"".equals(wsrInfo.getWsdlLocation())) { i...
java
private void processExistingWSDL(String wsdlLocation, Member newMember) throws InjectionException { // if the wsdlLocation for this service reference is specified in the DD, log a debug statement and continue if (wsrInfo.getWsdlLocation() != null && !"".equals(wsrInfo.getWsdlLocation())) { i...
[ "private", "void", "processExistingWSDL", "(", "String", "wsdlLocation", ",", "Member", "newMember", ")", "throws", "InjectionException", "{", "// if the wsdlLocation for this service reference is specified in the DD, log a debug statement and continue", "if", "(", "wsrInfo", ".", ...
This will compare the wsdlLocation attribute of the various annotations that have refer to the same service reference. If they differ we will throw an exception as the runtime will not be able to determine which WSDL to use. We will only do this checking if there was not a WSDL location specified in the deployment desc...
[ "This", "will", "compare", "the", "wsdlLocation", "attribute", "of", "the", "various", "annotations", "that", "have", "refer", "to", "the", "same", "service", "reference", ".", "If", "they", "differ", "we", "will", "throw", "an", "exception", "as", "the", "r...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/injection/WebServiceRefBinding.java#L343-L357
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/trm/status/ConnectionStatusComparator.java
ConnectionStatusComparator.compare
public int compare (Object o1, Object o2) { String re1 = ((ConnectionStatus)o1).getRemoteEngineName(); String re2 = ((ConnectionStatus)o2).getRemoteEngineName(); return re1.compareTo(re2); }
java
public int compare (Object o1, Object o2) { String re1 = ((ConnectionStatus)o1).getRemoteEngineName(); String re2 = ((ConnectionStatus)o2).getRemoteEngineName(); return re1.compareTo(re2); }
[ "public", "int", "compare", "(", "Object", "o1", ",", "Object", "o2", ")", "{", "String", "re1", "=", "(", "(", "ConnectionStatus", ")", "o1", ")", ".", "getRemoteEngineName", "(", ")", ";", "String", "re2", "=", "(", "(", "ConnectionStatus", ")", "o2"...
If o1 comes after o2 return 1
[ "If", "o1", "comes", "after", "o2", "return", "1" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/trm/status/ConnectionStatusComparator.java#L24-L30
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java
JFapByteBuffer.put
public synchronized void put(byte item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", Byte.valueOf(item)); checkValid(); getCurrentByteBuffer(1).put(item); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc,...
java
public synchronized void put(byte item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", Byte.valueOf(item)); checkValid(); getCurrentByteBuffer(1).put(item); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc,...
[ "public", "synchronized", "void", "put", "(", "byte", "item", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"put\"", ...
Puts a single byte into the byte buffer. @param item
[ "Puts", "a", "single", "byte", "into", "the", "byte", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L211-L219
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java
JFapByteBuffer.putShort
public synchronized void putShort(short item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putShort", Short.valueOf(item)); checkValid(); getCurrentByteBuffer(2).putShort(item); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Sib...
java
public synchronized void putShort(short item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putShort", Short.valueOf(item)); checkValid(); getCurrentByteBuffer(2).putShort(item); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Sib...
[ "public", "synchronized", "void", "putShort", "(", "short", "item", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"putS...
Puts a short into the byte buffer. @param item
[ "Puts", "a", "short", "into", "the", "byte", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L226-L234
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java
JFapByteBuffer.putInt
public synchronized void putInt(int item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putInt", Integer.valueOf(item)); checkValid(); getCurrentByteBuffer(4).putInt(item); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exi...
java
public synchronized void putInt(int item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putInt", Integer.valueOf(item)); checkValid(); getCurrentByteBuffer(4).putInt(item); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exi...
[ "public", "synchronized", "void", "putInt", "(", "int", "item", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"putInt\"...
Puts an int into the byte buffer. @param item
[ "Puts", "an", "int", "into", "the", "byte", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L241-L249
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java
JFapByteBuffer.putLong
public synchronized void putLong(long item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putLong", Long.valueOf(item)); checkValid(); getCurrentByteBuffer(4).putLong(item); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.ex...
java
public synchronized void putLong(long item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putLong", Long.valueOf(item)); checkValid(); getCurrentByteBuffer(4).putLong(item); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.ex...
[ "public", "synchronized", "void", "putLong", "(", "long", "item", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"putLon...
Puts a long into the byte buffer. @param item
[ "Puts", "a", "long", "into", "the", "byte", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L256-L264
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java
JFapByteBuffer.setReadOnly
public synchronized void setReadOnly() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setReadOnly"); // And actually mark the real buffers as read-only too for (int x = 0; x < dataList.size(); x++) { WsByteBuffer buff = dataList.get(x); ...
java
public synchronized void setReadOnly() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setReadOnly"); // And actually mark the real buffers as read-only too for (int x = 0; x < dataList.size(); x++) { WsByteBuffer buff = dataList.get(x); ...
[ "public", "synchronized", "void", "setReadOnly", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"setReadOnly\"", ")",...
This method sets all the byte buffers that we have in the list as read only.
[ "This", "method", "sets", "all", "the", "byte", "buffers", "that", "we", "have", "in", "the", "list", "as", "read", "only", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L354-L366
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java
JFapByteBuffer.prepareForTransmission
public synchronized long prepareForTransmission() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "prepareForTransmission"); checkValid(); valid = false; // Get the last buffer and flip it. Then we can simply return the list of buffers if (data...
java
public synchronized long prepareForTransmission() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "prepareForTransmission"); checkValid(); valid = false; // Get the last buffer and flip it. Then we can simply return the list of buffers if (data...
[ "public", "synchronized", "long", "prepareForTransmission", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"prepareForT...
This method prepares the byte buffers wrapped by this class for transmission. In practise this means that all the buffers are flipped and the number of bytes that will be transmitted is returned. @return Returns the amount of data that is ready to be sent.
[ "This", "method", "prepares", "the", "byte", "buffers", "wrapped", "by", "this", "class", "for", "transmission", ".", "In", "practise", "this", "means", "that", "all", "the", "buffers", "are", "flipped", "and", "the", "number", "of", "bytes", "that", "will",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L375-L398
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java
JFapByteBuffer.getBuffersForTransmission
public synchronized WsByteBuffer[] getBuffersForTransmission() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getBufferForTransmission"); // Ensure the buffer has been prepared checkNotValid(); WsByteBuffer[] bufferArray = new WsByteBuffer[dataList...
java
public synchronized WsByteBuffer[] getBuffersForTransmission() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getBufferForTransmission"); // Ensure the buffer has been prepared checkNotValid(); WsByteBuffer[] bufferArray = new WsByteBuffer[dataList...
[ "public", "synchronized", "WsByteBuffer", "[", "]", "getBuffersForTransmission", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc"...
This method is called just before this buffer is due to be transmitted by the JFap channel. When calling this method the underlying byte buffer is prepared by setting the correct limits and the buffer is added to a List that is returned. Once this method is called the buffer may not be used again and any attempt to mod...
[ "This", "method", "is", "called", "just", "before", "this", "buffer", "is", "due", "to", "be", "transmitted", "by", "the", "JFap", "channel", ".", "When", "calling", "this", "method", "the", "underlying", "byte", "buffer", "is", "prepared", "by", "setting", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L409-L424
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java
JFapByteBuffer.getCurrentByteBuffer
protected WsByteBuffer getCurrentByteBuffer(int sizeNeeded) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCurrentByteBuffer", Integer.valueOf(sizeNeeded)); WsByteBuffer byteBuffer = null; // First have a look in the dataList for a buffer. if (d...
java
protected WsByteBuffer getCurrentByteBuffer(int sizeNeeded) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCurrentByteBuffer", Integer.valueOf(sizeNeeded)); WsByteBuffer byteBuffer = null; // First have a look in the dataList for a buffer. if (d...
[ "protected", "WsByteBuffer", "getCurrentByteBuffer", "(", "int", "sizeNeeded", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
This method will return a byte buffer that can be written to for the amount of data that needs to be written. If there is no room left in the current byte buffer, a new one will be created and added to the list. @param sizeNeeded The amount of data that needs to be written @return Returns a WsByteBuffer that can be u...
[ "This", "method", "will", "return", "a", "byte", "buffer", "that", "can", "be", "written", "to", "for", "the", "amount", "of", "data", "that", "needs", "to", "be", "written", ".", "If", "there", "is", "no", "room", "left", "in", "the", "current", "byte...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L606-L649
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java
JFapByteBuffer.createNewWsByteBuffer
private WsByteBuffer createNewWsByteBuffer(int sizeNeeded) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createNewWsByteBuffer", Integer.valueOf(sizeNeeded)); if (sizeNeeded < DEFAULT_BUFFER_SIZE) { sizeNeeded = DEFAULT_BUFFER_SIZE; } ...
java
private WsByteBuffer createNewWsByteBuffer(int sizeNeeded) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createNewWsByteBuffer", Integer.valueOf(sizeNeeded)); if (sizeNeeded < DEFAULT_BUFFER_SIZE) { sizeNeeded = DEFAULT_BUFFER_SIZE; } ...
[ "private", "WsByteBuffer", "createNewWsByteBuffer", "(", "int", "sizeNeeded", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
This method will create a new WsByteBuffer. By default it will be created to hold 200 bytes but if the size needed is larger than this then the buffer will simply be allocated to hold the exact number of bytes requested. @param sizeNeeded The amount of data waiting to be put into a buffer. @return Returns a new WsByt...
[ "This", "method", "will", "create", "a", "new", "WsByteBuffer", ".", "By", "default", "it", "will", "be", "created", "to", "hold", "200", "bytes", "but", "if", "the", "size", "needed", "is", "larger", "than", "this", "then", "the", "buffer", "will", "sim...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L660-L675
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java
JFapByteBuffer.getDumpReceivedBytes
public synchronized String getDumpReceivedBytes(int bytesToDump) { String dump = null; if (receivedBuffer != null) { dump = getDumpBytes(receivedBuffer, bytesToDump, false); } return dump; }
java
public synchronized String getDumpReceivedBytes(int bytesToDump) { String dump = null; if (receivedBuffer != null) { dump = getDumpBytes(receivedBuffer, bytesToDump, false); } return dump; }
[ "public", "synchronized", "String", "getDumpReceivedBytes", "(", "int", "bytesToDump", ")", "{", "String", "dump", "=", "null", ";", "if", "(", "receivedBuffer", "!=", "null", ")", "{", "dump", "=", "getDumpBytes", "(", "receivedBuffer", ",", "bytesToDump", ",...
Returns the String that represents a dump of the bytes received in this comms byte buffer. This method is not intended to be used for buffers that are being contructed for outbound use. @param bytesToDump @return
[ "Returns", "the", "String", "that", "represents", "a", "dump", "of", "the", "bytes", "received", "in", "this", "comms", "byte", "buffer", ".", "This", "method", "is", "not", "intended", "to", "be", "used", "for", "buffers", "that", "are", "being", "contruc...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L784-L794
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java
JFapByteBuffer.getDumpBytes
private static String getDumpBytes(WsByteBuffer buffer, int bytesToDump, boolean rewind) { // Save the current position int pos = buffer.position(); if (rewind) { buffer.rewind(); } byte[] data = null; int start; int count = bytesToDump; if (count > buf...
java
private static String getDumpBytes(WsByteBuffer buffer, int bytesToDump, boolean rewind) { // Save the current position int pos = buffer.position(); if (rewind) { buffer.rewind(); } byte[] data = null; int start; int count = bytesToDump; if (count > buf...
[ "private", "static", "String", "getDumpBytes", "(", "WsByteBuffer", "buffer", ",", "int", "bytesToDump", ",", "boolean", "rewind", ")", "{", "// Save the current position", "int", "pos", "=", "buffer", ".", "position", "(", ")", ";", "if", "(", "rewind", ")", ...
Returns a dump of the specified number of bytes of the specified buffer. @param buffer @param bytesToDump @return Returns a String containing a dump of the buffer.
[ "Returns", "a", "dump", "of", "the", "specified", "number", "of", "bytes", "of", "the", "specified", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L830-L863
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SubscriptionMessageImpl.java
SubscriptionMessageImpl.getIntKeyForString
private int getIntKeyForString(ArrayList<String> uniqueStrings, Object value) { String stringValue = String.valueOf(value); int retval = uniqueStrings.indexOf(stringValue); if (retval < 0) { retval = uniqueStrings.size(); uniqueStrings.add(stringValue); } return retval; }
java
private int getIntKeyForString(ArrayList<String> uniqueStrings, Object value) { String stringValue = String.valueOf(value); int retval = uniqueStrings.indexOf(stringValue); if (retval < 0) { retval = uniqueStrings.size(); uniqueStrings.add(stringValue); } return retval; }
[ "private", "int", "getIntKeyForString", "(", "ArrayList", "<", "String", ">", "uniqueStrings", ",", "Object", "value", ")", "{", "String", "stringValue", "=", "String", ".", "valueOf", "(", "value", ")", ";", "int", "retval", "=", "uniqueStrings", ".", "inde...
Helper method to get, or assign, a unique key to a string, from an ArrayList containing the unique keys. @param uniqueStrings Current set of unique strings @param value Object to convert to a string, and find/assign an number for @return number associated with the unique string
[ "Helper", "method", "to", "get", "or", "assign", "a", "unique", "key", "to", "a", "string", "from", "an", "ArrayList", "containing", "the", "unique", "keys", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SubscriptionMessageImpl.java#L185-L193
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/OutputHelper.java
OutputHelper.writeObjectInstanceOutput
public static void writeObjectInstanceOutput(final RESTResponse response, final ObjectInstanceWrapper value, final JSONConverter converter) { response.setContentType(APIConstants.MEDIA_TYPE_APPLICATION_JSON); OutputStream outStream = null; try { outStream = response.getOutputStream(...
java
public static void writeObjectInstanceOutput(final RESTResponse response, final ObjectInstanceWrapper value, final JSONConverter converter) { response.setContentType(APIConstants.MEDIA_TYPE_APPLICATION_JSON); OutputStream outStream = null; try { outStream = response.getOutputStream(...
[ "public", "static", "void", "writeObjectInstanceOutput", "(", "final", "RESTResponse", "response", ",", "final", "ObjectInstanceWrapper", "value", ",", "final", "JSONConverter", "converter", ")", "{", "response", ".", "setContentType", "(", "APIConstants", ".", "MEDIA...
Write ObjectInstanceWrapper to the response
[ "Write", "ObjectInstanceWrapper", "to", "the", "response" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/OutputHelper.java#L279-L298
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/wsspi/pmi/factory/StatsFactory.java
StatsFactory.createStatsGroup
public static StatsGroup createStatsGroup(String groupName, String statsTemplate, StatsGroup parentGroup, ObjectName mBean, StatisticActions actionLsnr) throws StatsFactoryException { if (tc.isEntryEnabled()) Tr.entry(tc, new StringBuffer("createStatsGroup:name=").append(groupNam...
java
public static StatsGroup createStatsGroup(String groupName, String statsTemplate, StatsGroup parentGroup, ObjectName mBean, StatisticActions actionLsnr) throws StatsFactoryException { if (tc.isEntryEnabled()) Tr.entry(tc, new StringBuffer("createStatsGroup:name=").append(groupNam...
[ "public", "static", "StatsGroup", "createStatsGroup", "(", "String", "groupName", ",", "String", "statsTemplate", ",", "StatsGroup", "parentGroup", ",", "ObjectName", "mBean", ",", "StatisticActions", "actionLsnr", ")", "throws", "StatsFactoryException", "{", "if", "(...
Create a StatsGroup using the Stats template and add to the PMI tree under the specified parent group. This method will associate the MBean provided by the caller to the Stats group. @param groupName name of the group @param statsTemplate location of the Stats template XML file @param parentGroup parent Stats group @p...
[ "Create", "a", "StatsGroup", "using", "the", "Stats", "template", "and", "add", "to", "the", "PMI", "tree", "under", "the", "specified", "parent", "group", ".", "This", "method", "will", "associate", "the", "MBean", "provided", "by", "the", "caller", "to", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/wsspi/pmi/factory/StatsFactory.java#L147-L172
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/wsspi/pmi/factory/StatsFactory.java
StatsFactory.removeStatsInstance
public static void removeStatsInstance(StatsInstance instance) throws StatsFactoryException { if (tc.isEntryEnabled()) Tr.entry(tc, new StringBuffer("removeStatsInstance:name=").append(instance.getName()).toString()); StatsFactoryUtil.unRegisterStats((PmiModule) instance...
java
public static void removeStatsInstance(StatsInstance instance) throws StatsFactoryException { if (tc.isEntryEnabled()) Tr.entry(tc, new StringBuffer("removeStatsInstance:name=").append(instance.getName()).toString()); StatsFactoryUtil.unRegisterStats((PmiModule) instance...
[ "public", "static", "void", "removeStatsInstance", "(", "StatsInstance", "instance", ")", "throws", "StatsFactoryException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "new", "StringBuffer", "(", "\"removeSt...
Removes a StatsInstance from the PMI tree. Note that any children under the instance will also be removed. If the instance is associated with a default CustomStats MBean, the MBean will be de-activated. @param instance StatsInstance to be removed @exception StatsFactoryException if error while removing Stats instance
[ "Removes", "a", "StatsInstance", "from", "the", "PMI", "tree", ".", "Note", "that", "any", "children", "under", "the", "instance", "will", "also", "be", "removed", ".", "If", "the", "instance", "is", "associated", "with", "a", "default", "CustomStats", "MBea...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/wsspi/pmi/factory/StatsFactory.java#L440-L449
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/wsspi/pmi/factory/StatsFactory.java
StatsFactory.removeStatsGroup
public static void removeStatsGroup(StatsGroup group) throws StatsFactoryException { if (tc.isEntryEnabled()) Tr.entry(tc, new StringBuffer("removeStatsGroup:name=").append(group.getName()).toString()); StatsFactoryUtil.unRegisterStats((PmiModule) group, group.getMBean()...
java
public static void removeStatsGroup(StatsGroup group) throws StatsFactoryException { if (tc.isEntryEnabled()) Tr.entry(tc, new StringBuffer("removeStatsGroup:name=").append(group.getName()).toString()); StatsFactoryUtil.unRegisterStats((PmiModule) group, group.getMBean()...
[ "public", "static", "void", "removeStatsGroup", "(", "StatsGroup", "group", ")", "throws", "StatsFactoryException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "new", "StringBuffer", "(", "\"removeStatsGroup:...
Removes a StatsGroup from the PMI tree. Note that any children under the group will also be removed. If the group is associated with a default CustomStats MBean, the MBean will be de-activated. @param group StatsGroup to be removed @exception StatsFactoryException if error while removing Stats group
[ "Removes", "a", "StatsGroup", "from", "the", "PMI", "tree", ".", "Note", "that", "any", "children", "under", "the", "group", "will", "also", "be", "removed", ".", "If", "the", "group", "is", "associated", "with", "a", "default", "CustomStats", "MBean", "th...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/wsspi/pmi/factory/StatsFactory.java#L458-L467
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/taglib/core/GenericMinMaxValidatorTag.java
GenericMinMaxValidatorTag.createValidator
@Override protected Validator createValidator() throws JspException { if (null == _minimum && null == _maximum) { throw new JspException("a minimum and / or a maximum have to be specified"); } ELContext elContext = FacesContext.getCurrentInstance().getELContext(); ...
java
@Override protected Validator createValidator() throws JspException { if (null == _minimum && null == _maximum) { throw new JspException("a minimum and / or a maximum have to be specified"); } ELContext elContext = FacesContext.getCurrentInstance().getELContext(); ...
[ "@", "Override", "protected", "Validator", "createValidator", "(", ")", "throws", "JspException", "{", "if", "(", "null", "==", "_minimum", "&&", "null", "==", "_maximum", ")", "{", "throw", "new", "JspException", "(", "\"a minimum and / or a maximum have to be spec...
This method returns the Validator, you have to cast it to the correct type and apply the min and max values. @return @throws JspException
[ "This", "method", "returns", "the", "Validator", "you", "have", "to", "cast", "it", "to", "the", "correct", "type", "and", "apply", "the", "min", "and", "max", "values", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/taglib/core/GenericMinMaxValidatorTag.java#L66-L90
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/WSX509TrustManager.java
WSX509TrustManager.incrementAlias
private String incrementAlias(KeyStore jKeyStore, String alias) throws KeyStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "incrementAlias: " + alias); int num = 0; String base; int index = alias.lastIndexOf('_'); if (-1 ...
java
private String incrementAlias(KeyStore jKeyStore, String alias) throws KeyStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "incrementAlias: " + alias); int num = 0; String base; int index = alias.lastIndexOf('_'); if (-1 ...
[ "private", "String", "incrementAlias", "(", "KeyStore", "jKeyStore", ",", "String", "alias", ")", "throws", "KeyStoreException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", "."...
Increment the trailing number on the alias value until one is found that does not currently exist in the input store. @param jKeyStore @param alias @return String @throws KeyStoreException
[ "Increment", "the", "trailing", "number", "on", "the", "alias", "value", "until", "one", "is", "found", "that", "does", "not", "currently", "exist", "in", "the", "input", "store", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/WSX509TrustManager.java#L470-L502
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SecurityContext.java
SecurityContext.getUserName
public String getUserName(boolean notAlternateUser) { if (tc.isEntryEnabled()) SibTr.entry(tc, "getUserName", new Object[]{new Boolean(notAlternateUser)}); String userName = null; if(!notAlternateUser // this catches the case where we want the ...
java
public String getUserName(boolean notAlternateUser) { if (tc.isEntryEnabled()) SibTr.entry(tc, "getUserName", new Object[]{new Boolean(notAlternateUser)}); String userName = null; if(!notAlternateUser // this catches the case where we want the ...
[ "public", "String", "getUserName", "(", "boolean", "notAlternateUser", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getUserName\"", ",", "new", "Object", "[", "]", "{", "new", "Boolean", "(", ...
Extract the appropriate username from this security context @return
[ "Extract", "the", "appropriate", "username", "from", "this", "security", "context" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SecurityContext.java#L228-L261
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SecurityContext.java
SecurityContext.isSIBServerSubject
public boolean isSIBServerSubject() { if (tc.isEntryEnabled()) SibTr.entry(tc, "isSIBServerSubject"); boolean ispriv = false; // If the context is userid or alternate user based then it cannot be the // privileged SIBServerSubject, so we only need to check the Subject and ...
java
public boolean isSIBServerSubject() { if (tc.isEntryEnabled()) SibTr.entry(tc, "isSIBServerSubject"); boolean ispriv = false; // If the context is userid or alternate user based then it cannot be the // privileged SIBServerSubject, so we only need to check the Subject and ...
[ "public", "boolean", "isSIBServerSubject", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"isSIBServerSubject\"", ")", ";", "boolean", "ispriv", "=", "false", ";", "// If the context is userid or ...
Check whether this security context belongs to the privileged SIBServerSubject or not. @param subject @param destinationUuid @param discriminatorName @param operation @return
[ "Check", "whether", "this", "security", "context", "belongs", "to", "the", "privileged", "SIBServerSubject", "or", "not", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SecurityContext.java#L273-L302
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpISCWriteCallback.java
HttpISCWriteCallback.complete
@Override public void complete(VirtualConnection vc, TCPWriteRequestContext wsc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "complete() called: vc=" + vc); } HttpInboundServiceContextImpl mySC = (HttpInboundServiceContextImpl) vc.getStateMa...
java
@Override public void complete(VirtualConnection vc, TCPWriteRequestContext wsc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "complete() called: vc=" + vc); } HttpInboundServiceContextImpl mySC = (HttpInboundServiceContextImpl) vc.getStateMa...
[ "@", "Override", "public", "void", "complete", "(", "VirtualConnection", "vc", ",", "TCPWriteRequestContext", "wsc", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", "."...
Called by the channel below us when a write has finished. @param vc @param wsc
[ "Called", "by", "the", "channel", "below", "us", "when", "a", "write", "has", "finished", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpISCWriteCallback.java#L59-L108
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpISCWriteCallback.java
HttpISCWriteCallback.error
@Override public void error(VirtualConnection vc, TCPWriteRequestContext wsc, IOException ioe) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "error called: vc=" + vc + " ioe=" + ioe); } HttpInboundServiceContextImpl mySC = (HttpInboundServiceCo...
java
@Override public void error(VirtualConnection vc, TCPWriteRequestContext wsc, IOException ioe) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "error called: vc=" + vc + " ioe=" + ioe); } HttpInboundServiceContextImpl mySC = (HttpInboundServiceCo...
[ "@", "Override", "public", "void", "error", "(", "VirtualConnection", "vc", ",", "TCPWriteRequestContext", "wsc", ",", "IOException", "ioe", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")...
Called by the channel below us when an error occurs during a write. @param vc - VirtualConnection @param wsc - TCPWriteRequestConext @param ioe
[ "Called", "by", "the", "channel", "below", "us", "when", "an", "error", "occurs", "during", "a", "write", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpISCWriteCallback.java#L119-L137
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/EncodingUtilsImpl.java
EncodingUtilsImpl.deactivate
@Deactivate protected void deactivate(int reason) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Deactivating " + this, "reason=" + reason); } // purge cached data from config this.cachedEncoding = null; this.cachedLocale = null...
java
@Deactivate protected void deactivate(int reason) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Deactivating " + this, "reason=" + reason); } // purge cached data from config this.cachedEncoding = null; this.cachedLocale = null...
[ "@", "Deactivate", "protected", "void", "deactivate", "(", "int", "reason", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "{", "Tr", ".", "event", "(", "tc", ",", "\"Deactiv...
DS deactivation method for this component. @param context
[ "DS", "deactivation", "method", "for", "this", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/EncodingUtilsImpl.java#L85-L97
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/EncodingUtilsImpl.java
EncodingUtilsImpl.processAcceptLanguage
private List<List<String>> processAcceptLanguage(String acceptLanguage) { StringTokenizer languageTokenizer = new StringTokenizer(acceptLanguage, ","); TreeMap<Double, List<String>> map = new TreeMap<Double, List<String>>(Collections.reverseOrder()); List<String> list; while (languageTo...
java
private List<List<String>> processAcceptLanguage(String acceptLanguage) { StringTokenizer languageTokenizer = new StringTokenizer(acceptLanguage, ","); TreeMap<Double, List<String>> map = new TreeMap<Double, List<String>>(Collections.reverseOrder()); List<String> list; while (languageTo...
[ "private", "List", "<", "List", "<", "String", ">", ">", "processAcceptLanguage", "(", "String", "acceptLanguage", ")", "{", "StringTokenizer", "languageTokenizer", "=", "new", "StringTokenizer", "(", "acceptLanguage", ",", "\",\"", ")", ";", "TreeMap", "<", "Do...
Processes the accept language header into a sublists based on the qvalue. Each sublist is a list of string values for a given qvalue and the overall list is ordered with preferred languages first. @param acceptLanguage to process. @return List<List<String>>
[ "Processes", "the", "accept", "language", "header", "into", "a", "sublists", "based", "on", "the", "qvalue", ".", "Each", "sublist", "is", "a", "list", "of", "string", "values", "for", "a", "given", "qvalue", "and", "the", "overall", "list", "is", "ordered...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/EncodingUtilsImpl.java#L214-L256
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/EncodingUtilsImpl.java
EncodingUtilsImpl.extractLocales
private List<Locale> extractLocales(List<List<String>> allLangs) { List<Locale> rc = new ArrayList<Locale>(); for (List<String> langList : allLangs) { for (String language : langList) { String country = ""; String variant = ""; int countryIndex...
java
private List<Locale> extractLocales(List<List<String>> allLangs) { List<Locale> rc = new ArrayList<Locale>(); for (List<String> langList : allLangs) { for (String language : langList) { String country = ""; String variant = ""; int countryIndex...
[ "private", "List", "<", "Locale", ">", "extractLocales", "(", "List", "<", "List", "<", "String", ">", ">", "allLangs", ")", "{", "List", "<", "Locale", ">", "rc", "=", "new", "ArrayList", "<", "Locale", ">", "(", ")", ";", "for", "(", "List", "<",...
Extract the locales from a passed in language list. @param allLangs @return List<Locale>
[ "Extract", "the", "locales", "from", "a", "passed", "in", "language", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/EncodingUtilsImpl.java#L264-L287
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java
PersistableImpl.getMetaDataToken
public Token getMetaDataToken() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "getMetaDataToken"); SibTr.exit(this, tc, "getMetaDataToken", "return=" + _metaDataToken); } return _metaDataToken; }
java
public Token getMetaDataToken() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "getMetaDataToken"); SibTr.exit(this, tc, "getMetaDataToken", "return=" + _metaDataToken); } return _metaDataToken; }
[ "public", "Token", "getMetaDataToken", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getMetaDataToken\"", ")",...
startup of the message store
[ "startup", "of", "the", "message", "store" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java#L294-L302
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java
PersistableImpl.updateMetaDataOnly
public void updateMetaDataOnly(Transaction tran, Persistable persistable) throws PersistenceException, ObjectManagerException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "updateMetaDataOnly", new Object[] { "Tran=" + tran, "Persistable=" + persistable...
java
public void updateMetaDataOnly(Transaction tran, Persistable persistable) throws PersistenceException, ObjectManagerException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "updateMetaDataOnly", new Object[] { "Tran=" + tran, "Persistable=" + persistable...
[ "public", "void", "updateMetaDataOnly", "(", "Transaction", "tran", ",", "Persistable", "persistable", ")", "throws", "PersistenceException", ",", "ObjectManagerException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isE...
Only update the persistent copy of the meta data associated with this Persistable. This variant is for a cached persistable in which the lock ID has been cached by the task. @param tran The ObjectManager transaction under which the update of the data is carried out. @exception ObjectManagerException
[ "Only", "update", "the", "persistent", "copy", "of", "the", "meta", "data", "associated", "with", "this", "Persistable", ".", "This", "variant", "is", "for", "a", "cached", "persistable", "in", "which", "the", "lock", "ID", "has", "been", "cached", "by", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java#L679-L702
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java
PersistableImpl.getData
@Override public java.util.List<DataSlice> getData() throws PersistentDataEncodingException, SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getData"); java.util.List<DataSlice> retval = null; synchronize...
java
@Override public java.util.List<DataSlice> getData() throws PersistentDataEncodingException, SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getData"); java.util.List<DataSlice> retval = null; synchronize...
[ "@", "Override", "public", "java", ".", "util", ".", "List", "<", "DataSlice", ">", "getData", "(", ")", "throws", "PersistentDataEncodingException", ",", "SevereMessageStoreException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", ...
This method is used by the task layer to get hold of data from the cache layer before it is hardened to disk. It should therefore return the data from the Item and not that from the ManagedObject. @return @throws SevereMessageStoreException
[ "This", "method", "is", "used", "by", "the", "task", "layer", "to", "get", "hold", "of", "data", "from", "the", "cache", "layer", "before", "it", "is", "hardened", "to", "disk", ".", "It", "should", "therefore", "return", "the", "data", "from", "the", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java#L868-L887
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java
PersistableImpl.setWasSpillingAtAddition
@Override public void setWasSpillingAtAddition(boolean wasSpillingAtAddition) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setWasSpillingAtAddition", Boolean.valueOf(wasSpillingAtAddition)); _wasSpillingAtAddition = wasSpillingAtAddition;...
java
@Override public void setWasSpillingAtAddition(boolean wasSpillingAtAddition) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setWasSpillingAtAddition", Boolean.valueOf(wasSpillingAtAddition)); _wasSpillingAtAddition = wasSpillingAtAddition;...
[ "@", "Override", "public", "void", "setWasSpillingAtAddition", "(", "boolean", "wasSpillingAtAddition", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "...
we need to correctly track the value of this flag.
[ "we", "need", "to", "correctly", "track", "the", "value", "of", "this", "flag", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java#L1135-L1145
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/ConsoleLogHandler.java
ConsoleLogHandler.setWriter
public void setWriter(Object sysLogHolder, Object sysErrHolder) { this.sysOutHolder = (SystemLogHolder) sysLogHolder; this.sysErrHolder = (SystemLogHolder) sysErrHolder; }
java
public void setWriter(Object sysLogHolder, Object sysErrHolder) { this.sysOutHolder = (SystemLogHolder) sysLogHolder; this.sysErrHolder = (SystemLogHolder) sysErrHolder; }
[ "public", "void", "setWriter", "(", "Object", "sysLogHolder", ",", "Object", "sysErrHolder", ")", "{", "this", ".", "sysOutHolder", "=", "(", "SystemLogHolder", ")", "sysLogHolder", ";", "this", ".", "sysErrHolder", "=", "(", "SystemLogHolder", ")", "sysErrHolde...
Set the writers for SystemOut and SystemErr respectfully @param sysLogHolder SystemLogHolder object for SystemOut @param sysErrHolder SystemLogHolder object for SystemErr
[ "Set", "the", "writers", "for", "SystemOut", "and", "SystemErr", "respectfully" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/ConsoleLogHandler.java#L189-L192
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/util/WebConfigUtils.java
WebConfigUtils.getSecurityMetadata
public static SecurityMetadata getSecurityMetadata() { SecurityMetadata secMetadata = null; ModuleMetaData mmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData().getModuleMetaData(); if (mmd instanceof WebModuleMetaData) { secMetadata = (SecurityMet...
java
public static SecurityMetadata getSecurityMetadata() { SecurityMetadata secMetadata = null; ModuleMetaData mmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData().getModuleMetaData(); if (mmd instanceof WebModuleMetaData) { secMetadata = (SecurityMet...
[ "public", "static", "SecurityMetadata", "getSecurityMetadata", "(", ")", "{", "SecurityMetadata", "secMetadata", "=", "null", ";", "ModuleMetaData", "mmd", "=", "ComponentMetaDataAccessorImpl", ".", "getComponentMetaDataAccessor", "(", ")", ".", "getComponentMetaData", "(...
Get the security metadata @return the security metadata
[ "Get", "the", "security", "metadata" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/util/WebConfigUtils.java#L63-L76
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AliasChainValidator.java
AliasChainValidator.getFirstInChain
public CompoundName getFirstInChain() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getFirstInChain"); CompoundName firstInChain = collector.getFirst(); if (tc.isEntryEnabled()) SibTr.exit(tc, "getFirstInChain", firstInChain); return firstInChain; }
java
public CompoundName getFirstInChain() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getFirstInChain"); CompoundName firstInChain = collector.getFirst(); if (tc.isEntryEnabled()) SibTr.exit(tc, "getFirstInChain", firstInChain); return firstInChain; }
[ "public", "CompoundName", "getFirstInChain", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getFirstInChain\"", ")", ";", "CompoundName", "firstInChain", "=", "collector", ".", "getFirst", "(",...
Get the first compound name in any alias chain we're validating. @return Will return null if no chain has yet been built up.
[ "Get", "the", "first", "compound", "name", "in", "any", "alias", "chain", "we", "re", "validating", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AliasChainValidator.java#L53-L64
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AliasChainValidator.java
AliasChainValidator.validate
public void validate(String destName, String busName) throws SINotPossibleInCurrentConfigurationException { if (tc.isEntryEnabled()) SibTr.entry(tc, "validate", new Object[] { destName, busName }); if (collector.contains(destName, busName)) { // Throw out exception detailing loop ...
java
public void validate(String destName, String busName) throws SINotPossibleInCurrentConfigurationException { if (tc.isEntryEnabled()) SibTr.entry(tc, "validate", new Object[] { destName, busName }); if (collector.contains(destName, busName)) { // Throw out exception detailing loop ...
[ "public", "void", "validate", "(", "String", "destName", ",", "String", "busName", ")", "throws", "SINotPossibleInCurrentConfigurationException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"validate\"", ...
Check that the given destination, busname combination has not been seen before when resolving an alias. If it has not been seen, we add it to the map for checking next time. @param destName @param busName @throws SINotPossibleInCurrentConfigurationException Thrown if a loop has been detected.
[ "Check", "that", "the", "given", "destination", "busname", "combination", "has", "not", "been", "seen", "before", "when", "resolving", "an", "alias", ".", "If", "it", "has", "not", "been", "seen", "we", "add", "it", "to", "the", "map", "for", "checking", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AliasChainValidator.java#L76-L110
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AliasChainValidator.java
AliasChainValidator.toStringPlus
public String toStringPlus(String destName, String busName) { StringBuffer sb = new StringBuffer(toString()); // Add the destination name which has triggered the exception to the end // of the list, making the problem obvious. String compoundName = new CompoundName(destName, busName).toString(); ...
java
public String toStringPlus(String destName, String busName) { StringBuffer sb = new StringBuffer(toString()); // Add the destination name which has triggered the exception to the end // of the list, making the problem obvious. String compoundName = new CompoundName(destName, busName).toString(); ...
[ "public", "String", "toStringPlus", "(", "String", "destName", ",", "String", "busName", ")", "{", "StringBuffer", "sb", "=", "new", "StringBuffer", "(", "toString", "(", ")", ")", ";", "// Add the destination name which has triggered the exception to the end", "// of t...
Return a string representation of the alias chain appended with the destination name given. @param destName @param busName @return
[ "Return", "a", "string", "representation", "of", "the", "alias", "chain", "appended", "with", "the", "destination", "name", "given", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AliasChainValidator.java#L148-L159
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/CapturingClassTransformer.java
CapturingClassTransformer.initialize
private void initialize(final File logDirectory, final String aaplName) { if (logDirectory == null) { captureEnabled = false; return; } AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { // C...
java
private void initialize(final File logDirectory, final String aaplName) { if (logDirectory == null) { captureEnabled = false; return; } AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { // C...
[ "private", "void", "initialize", "(", "final", "File", "logDirectory", ",", "final", "String", "aaplName", ")", "{", "if", "(", "logDirectory", "==", "null", ")", "{", "captureEnabled", "=", "false", ";", "return", ";", "}", "AccessController", ".", "doPrivi...
Determines the existence of the server log directory, and attempts to create a capture directory within the log directory. If this can be accomplished, the field captureEnabled is set to true. Otherwise, it is left to its default value false if the capture directory cannot be used. @param logDirectory
[ "Determines", "the", "existence", "of", "the", "server", "log", "directory", "and", "attempts", "to", "create", "a", "capture", "directory", "within", "the", "log", "directory", ".", "If", "this", "can", "be", "accomplished", "the", "field", "captureEnabled", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/CapturingClassTransformer.java#L128-L155
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/util/Resource.java
Resource.resourceExist
private static boolean resourceExist(ExternalContext externalContext, String path) { if ("/".equals(path)) { // The root context exists always return true; } Object ctx = externalContext.getContext(); if (ctx instanceof ServletContext) { ...
java
private static boolean resourceExist(ExternalContext externalContext, String path) { if ("/".equals(path)) { // The root context exists always return true; } Object ctx = externalContext.getContext(); if (ctx instanceof ServletContext) { ...
[ "private", "static", "boolean", "resourceExist", "(", "ExternalContext", "externalContext", ",", "String", "path", ")", "{", "if", "(", "\"/\"", ".", "equals", "(", "path", ")", ")", "{", "// The root context exists always", "return", "true", ";", "}", "Object",...
doesnt exist. Otherwise, the URL will fail on the first access.
[ "doesnt", "exist", ".", "Otherwise", "the", "URL", "will", "fail", "on", "the", "first", "access", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/util/Resource.java#L89-L116
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/QueueData.java
QueueData.addSlice
public synchronized void addSlice(CommsByteBuffer bufferContainingSlice, boolean last) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "addSlice", new Object[]{bufferContainingSlice, last}); slices.add(bufferContainingSlice.getDataSlice()); // ...
java
public synchronized void addSlice(CommsByteBuffer bufferContainingSlice, boolean last) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "addSlice", new Object[]{bufferContainingSlice, last}); slices.add(bufferContainingSlice.getDataSlice()); // ...
[ "public", "synchronized", "void", "addSlice", "(", "CommsByteBuffer", "bufferContainingSlice", ",", "boolean", "last", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", ...
This method will add a data slice to the list of slices for this message. @param bufferContainingSlice @param last
[ "This", "method", "will", "add", "a", "data", "slice", "to", "the", "list", "of", "slices", "for", "this", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/QueueData.java#L161-L180
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/QueueData.java
QueueData.updateArrivalTime
public void updateArrivalTime(long messageArrivalTime) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "updateMessageArrivalTime", messageArrivalTime); this.arrivalTime = messageArrivalTime; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Si...
java
public void updateArrivalTime(long messageArrivalTime) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "updateMessageArrivalTime", messageArrivalTime); this.arrivalTime = messageArrivalTime; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Si...
[ "public", "void", "updateArrivalTime", "(", "long", "messageArrivalTime", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"...
Used to update the message arrival time for this data. @param messageArrivalTime
[ "Used", "to", "update", "the", "message", "arrival", "time", "for", "this", "data", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/QueueData.java#L206-L211
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATSessSynchConsumer.java
CATSessSynchConsumer.stop
public void stop(int requestNumber, SendListener sendListener) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "stop", requestNumber); logicallyStarted = false; super.stop(requestNumber, sendListener); if (TraceComponent.isAnyTracingEnabled() && tc.i...
java
public void stop(int requestNumber, SendListener sendListener) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "stop", requestNumber); logicallyStarted = false; super.stop(requestNumber, sendListener); if (TraceComponent.isAnyTracingEnabled() && tc.i...
[ "public", "void", "stop", "(", "int", "requestNumber", ",", "SendListener", "sendListener", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", "...
Stops the session and marks it as stopped. @param requestNumber @param sendListener
[ "Stops", "the", "session", "and", "marks", "it", "as", "stopped", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATSessSynchConsumer.java#L450-L458
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATSessSynchConsumer.java
CATSessSynchConsumer.close
public void close(int requestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close", requestNumber); // Deregister any error callback created for this connection. if (asynchReader != null) { try { ...
java
public void close(int requestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close", requestNumber); // Deregister any error callback created for this connection. if (asynchReader != null) { try { ...
[ "public", "void", "close", "(", "int", "requestNumber", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"close\"", ",", ...
Closes the session. If we are currently doing a receiveWithWait then that will be interrupted and a response will be sent to the client. @param requestNumber
[ "Closes", "the", "session", ".", "If", "we", "are", "currently", "doing", "a", "receiveWithWait", "then", "that", "will", "be", "interrupted", "and", "a", "response", "will", "be", "sent", "to", "the", "client", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATSessSynchConsumer.java#L466-L495
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATSessSynchConsumer.java
CATSessSynchConsumer.setAsynchConsumerCallback
public void setAsynchConsumerCallback(int requestNumber, int maxActiveMessages, long messageLockExpiry, int batchsize, OrderingContext orderContext) { ...
java
public void setAsynchConsumerCallback(int requestNumber, int maxActiveMessages, long messageLockExpiry, int batchsize, OrderingContext orderContext) { ...
[ "public", "void", "setAsynchConsumerCallback", "(", "int", "requestNumber", ",", "int", "maxActiveMessages", ",", "long", "messageLockExpiry", ",", "int", "batchsize", ",", "OrderingContext", "orderContext", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEna...
This will cause the synchronous session to become asynchrnous. As such, this class will not handle the session anymore, so we inform the main consumer and that will then switch over the delegated class to handle the consumer. @param requestNumber @param maxActiveMessages @param messageLockExpiry @param batchsize @para...
[ "This", "will", "cause", "the", "synchronous", "session", "to", "become", "asynchrnous", ".", "As", "such", "this", "class", "will", "not", "handle", "the", "session", "anymore", "so", "we", "inform", "the", "main", "consumer", "and", "that", "will", "then",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATSessSynchConsumer.java#L509-L532
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/spi/impl/NoInjectionAnnotationInjectionProvider.java
NoInjectionAnnotationInjectionProvider.postConstruct
@Override public void postConstruct(Object instance, Object creationMetaData) throws InjectionProviderException { // TODO the servlet spec is not clear about searching in superclass?? Class clazz = instance.getClass(); Method[] methods = getDeclaredMethods(clazz); if (methods == ...
java
@Override public void postConstruct(Object instance, Object creationMetaData) throws InjectionProviderException { // TODO the servlet spec is not clear about searching in superclass?? Class clazz = instance.getClass(); Method[] methods = getDeclaredMethods(clazz); if (methods == ...
[ "@", "Override", "public", "void", "postConstruct", "(", "Object", "instance", ",", "Object", "creationMetaData", ")", "throws", "InjectionProviderException", "{", "// TODO the servlet spec is not clear about searching in superclass??", "Class", "clazz", "=", "instance", ".",...
Call postConstruct method on the specified instance.
[ "Call", "postConstruct", "method", "on", "the", "specified", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/spi/impl/NoInjectionAnnotationInjectionProvider.java#L128-L178
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java
CDIContainerImpl.createWebSphereCDIDeployment
private WebSphereCDIDeployment createWebSphereCDIDeployment(Application application, Set<ExtensionArchive> extensionArchives) throws CDIException { WebSphereCDIDeployment webSphereCDIDeployment = new WebSphereCDIDeploymentImpl(application, cdiRunti...
java
private WebSphereCDIDeployment createWebSphereCDIDeployment(Application application, Set<ExtensionArchive> extensionArchives) throws CDIException { WebSphereCDIDeployment webSphereCDIDeployment = new WebSphereCDIDeploymentImpl(application, cdiRunti...
[ "private", "WebSphereCDIDeployment", "createWebSphereCDIDeployment", "(", "Application", "application", ",", "Set", "<", "ExtensionArchive", ">", "extensionArchives", ")", "throws", "CDIException", "{", "WebSphereCDIDeployment", "webSphereCDIDeployment", "=", "new", "WebSpher...
This method creates the Deployment structure with all it's BDAs. @param application @param extensionArchives @return @throws CDIException
[ "This", "method", "creates", "the", "Deployment", "structure", "with", "all", "it", "s", "BDAs", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java#L200-L231
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java
CDIContainerImpl.addRuntimeExtensions
private void addRuntimeExtensions(WebSphereCDIDeployment webSphereCDIDeployment, DiscoveredBdas discoveredBdas) throws CDIException { //add the normal runtime extension using the bundle classloader to load the bda classes Set<WebSphereBeanDeploymentArchive> extensio...
java
private void addRuntimeExtensions(WebSphereCDIDeployment webSphereCDIDeployment, DiscoveredBdas discoveredBdas) throws CDIException { //add the normal runtime extension using the bundle classloader to load the bda classes Set<WebSphereBeanDeploymentArchive> extensio...
[ "private", "void", "addRuntimeExtensions", "(", "WebSphereCDIDeployment", "webSphereCDIDeployment", ",", "DiscoveredBdas", "discoveredBdas", ")", "throws", "CDIException", "{", "//add the normal runtime extension using the bundle classloader to load the bda classes", "Set", "<", "Web...
Create a BDA for each runtime extension and add it to the deployment. @param webSphereCDIDeployment @param excludedBdas a set of application BDAs which should not be visible to runtime extensions @throws CDIException
[ "Create", "a", "BDA", "for", "each", "runtime", "extension", "and", "add", "it", "to", "the", "deployment", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java#L240-L257
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java
CDIContainerImpl.createExtensionBDAs
private Set<WebSphereBeanDeploymentArchive> createExtensionBDAs(WebSphereCDIDeployment applicationContext) throws CDIException { Set<WebSphereBeanDeploymentArchive> extensionBdas = new HashSet<WebSphereBeanDeploymentArchive>(); Set<ExtensionArchive> extensions = getExtensionArchives(); if (ex...
java
private Set<WebSphereBeanDeploymentArchive> createExtensionBDAs(WebSphereCDIDeployment applicationContext) throws CDIException { Set<WebSphereBeanDeploymentArchive> extensionBdas = new HashSet<WebSphereBeanDeploymentArchive>(); Set<ExtensionArchive> extensions = getExtensionArchives(); if (ex...
[ "private", "Set", "<", "WebSphereBeanDeploymentArchive", ">", "createExtensionBDAs", "(", "WebSphereCDIDeployment", "applicationContext", ")", "throws", "CDIException", "{", "Set", "<", "WebSphereBeanDeploymentArchive", ">", "extensionBdas", "=", "new", "HashSet", "<", "W...
Create BDAs for all runtime extensions that cannot see application bdas @param applicationContext @return @throws CDIException
[ "Create", "BDAs", "for", "all", "runtime", "extensions", "that", "cannot", "see", "application", "bdas" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java#L266-L283
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java
CDIContainerImpl.processModules
private void processModules(WebSphereCDIDeployment applicationContext, DiscoveredBdas discoveredBdas, Collection<CDIArchive> moduleArchives) throws CDIException { List<WebSphereBeanDeploymentArchive> moduleBDAs = new ArrayList<WebSphereBeanDeploym...
java
private void processModules(WebSphereCDIDeployment applicationContext, DiscoveredBdas discoveredBdas, Collection<CDIArchive> moduleArchives) throws CDIException { List<WebSphereBeanDeploymentArchive> moduleBDAs = new ArrayList<WebSphereBeanDeploym...
[ "private", "void", "processModules", "(", "WebSphereCDIDeployment", "applicationContext", ",", "DiscoveredBdas", "discoveredBdas", ",", "Collection", "<", "CDIArchive", ">", "moduleArchives", ")", "throws", "CDIException", "{", "List", "<", "WebSphereBeanDeploymentArchive",...
Create BDAs for either the EJB, Web or Client modules and any libraries they reference on their classpath.
[ "Create", "BDAs", "for", "either", "the", "EJB", "Web", "or", "Client", "modules", "and", "any", "libraries", "they", "reference", "on", "their", "classpath", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java#L309-L355
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java
CDIContainerImpl.getExtensionArchives
private synchronized Set<ExtensionArchive> getExtensionArchives() throws CDIException { if (runtimeExtensionSet == null) { runtimeExtensionSet = new HashSet<ExtensionArchive>(); // get hold of the container for extension bundle //add create the bean deployment archive from t...
java
private synchronized Set<ExtensionArchive> getExtensionArchives() throws CDIException { if (runtimeExtensionSet == null) { runtimeExtensionSet = new HashSet<ExtensionArchive>(); // get hold of the container for extension bundle //add create the bean deployment archive from t...
[ "private", "synchronized", "Set", "<", "ExtensionArchive", ">", "getExtensionArchives", "(", ")", "throws", "CDIException", "{", "if", "(", "runtimeExtensionSet", "==", "null", ")", "{", "runtimeExtensionSet", "=", "new", "HashSet", "<", "ExtensionArchive", ">", "...
Returns the extension container info with ContainerInfo, classloader and container name @return @throws CDIException
[ "Returns", "the", "extension", "container", "info", "with", "ContainerInfo", "classloader", "and", "container", "name" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java#L550-L608
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/SortHandler.java
SortHandler.compareEntitysWithRespectToProperties
public int compareEntitysWithRespectToProperties(Entity entity1, Entity entity2) { List<SortKeyType> sortKeys = sortControl.getSortKeys(); int temp = 0; for (int i = 0; i < sortKeys.size() && temp == 0; i++) { SortKeyType sortKey = (SortKeyType) sortKeys.get(i); String p...
java
public int compareEntitysWithRespectToProperties(Entity entity1, Entity entity2) { List<SortKeyType> sortKeys = sortControl.getSortKeys(); int temp = 0; for (int i = 0; i < sortKeys.size() && temp == 0; i++) { SortKeyType sortKey = (SortKeyType) sortKeys.get(i); String p...
[ "public", "int", "compareEntitysWithRespectToProperties", "(", "Entity", "entity1", ",", "Entity", "entity2", ")", "{", "List", "<", "SortKeyType", ">", "sortKeys", "=", "sortControl", ".", "getSortKeys", "(", ")", ";", "int", "temp", "=", "0", ";", "for", "...
Compares the two entity data objects. @param member1 the first member object to be compared @param member2 the second member object to be compared @return a negative integer, zero, or a positive integer as the first member object is less than, equal to, or greater than the second.
[ "Compares", "the", "two", "entity", "data", "objects", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/SortHandler.java#L59-L75
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/SortHandler.java
SortHandler.sortEntities
public List<Entity> sortEntities(List<Entity> entities) { if (entities != null && entities.size() > 0) { Entity[] ents = (Entity[]) entities.toArray(new Entity[entities.size()]); WIMSortCompare<Entity> wimSortComparator = new WIMSortCompare<Entity>(sortControl); Arrays.sort(e...
java
public List<Entity> sortEntities(List<Entity> entities) { if (entities != null && entities.size() > 0) { Entity[] ents = (Entity[]) entities.toArray(new Entity[entities.size()]); WIMSortCompare<Entity> wimSortComparator = new WIMSortCompare<Entity>(sortControl); Arrays.sort(e...
[ "public", "List", "<", "Entity", ">", "sortEntities", "(", "List", "<", "Entity", ">", "entities", ")", "{", "if", "(", "entities", "!=", "null", "&&", "entities", ".", "size", "(", ")", ">", "0", ")", "{", "Entity", "[", "]", "ents", "=", "(", "...
Sorts the set of Member Objects @param members a set of Member objects to be sorted @return a list of sorted Member objects
[ "Sorts", "the", "set", "of", "Member", "Objects" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/SortHandler.java#L103-L114
train
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java
UIData.encodeBegin
@Override public void encodeBegin(FacesContext context) throws IOException { _initialDescendantComponentState = null; if (_isValidChilds && !hasErrorMessages(context)) { // Clear the data model so that when rendering code calls // getDataModel a fresh model is fet...
java
@Override public void encodeBegin(FacesContext context) throws IOException { _initialDescendantComponentState = null; if (_isValidChilds && !hasErrorMessages(context)) { // Clear the data model so that when rendering code calls // getDataModel a fresh model is fet...
[ "@", "Override", "public", "void", "encodeBegin", "(", "FacesContext", "context", ")", "throws", "IOException", "{", "_initialDescendantComponentState", "=", "null", ";", "if", "(", "_isValidChilds", "&&", "!", "hasErrorMessages", "(", "context", ")", ")", "{", ...
Perform necessary actions when rendering of this component starts, before delegating to the inherited implementation which calls the associated renderer's encodeBegin method.
[ "Perform", "necessary", "actions", "when", "rendering", "of", "this", "component", "starts", "before", "delegating", "to", "the", "inherited", "implementation", "which", "calls", "the", "associated", "renderer", "s", "encodeBegin", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java#L1741-L1762
train
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java
UIData.processColumnFacets
private void processColumnFacets(FacesContext context, int processAction) { for (int i = 0, childCount = getChildCount(); i < childCount; i++) { UIComponent child = getChildren().get(i); if (child instanceof UIColumn) { if (! _ComponentUtils.isRend...
java
private void processColumnFacets(FacesContext context, int processAction) { for (int i = 0, childCount = getChildCount(); i < childCount; i++) { UIComponent child = getChildren().get(i); if (child instanceof UIColumn) { if (! _ComponentUtils.isRend...
[ "private", "void", "processColumnFacets", "(", "FacesContext", "context", ",", "int", "processAction", ")", "{", "for", "(", "int", "i", "=", "0", ",", "childCount", "=", "getChildCount", "(", ")", ";", "i", "<", "childCount", ";", "i", "++", ")", "{", ...
Invoke the specified phase on all facets of all UIColumn children of this component. Note that no methods are called on the UIColumn child objects themselves. @param context is the current faces context. @param processAction specifies a JSF phase: decode, validate or update.
[ "Invoke", "the", "specified", "phase", "on", "all", "facets", "of", "all", "UIColumn", "children", "of", "this", "component", ".", "Note", "that", "no", "methods", "are", "called", "on", "the", "UIColumn", "child", "objects", "themselves", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java#L1934-L1956
train
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java
UIData.processColumnChildren
private void processColumnChildren(FacesContext context, int processAction) { int first = getFirst(); int rows = getRows(); int last; if (rows == 0) { last = getRowCount(); } else { last = first + rows; } for (in...
java
private void processColumnChildren(FacesContext context, int processAction) { int first = getFirst(); int rows = getRows(); int last; if (rows == 0) { last = getRowCount(); } else { last = first + rows; } for (in...
[ "private", "void", "processColumnChildren", "(", "FacesContext", "context", ",", "int", "processAction", ")", "{", "int", "first", "=", "getFirst", "(", ")", ";", "int", "rows", "=", "getRows", "(", ")", ";", "int", "last", ";", "if", "(", "rows", "==", ...
Invoke the specified phase on all non-facet children of all UIColumn children of this component. Note that no methods are called on the UIColumn child objects themselves. @param context is the current faces context. @param processAction specifies a JSF phase: decode, validate or update.
[ "Invoke", "the", "specified", "phase", "on", "all", "non", "-", "facet", "children", "of", "all", "UIColumn", "children", "of", "this", "component", ".", "Note", "that", "no", "methods", "are", "called", "on", "the", "UIColumn", "child", "objects", "themselv...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java#L1967-L2008
train
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java
UIData.setRows
public void setRows(int rows) { if (rows < 0) { throw new IllegalArgumentException("rows: " + rows); } getStateHelper().put(PropertyKeys.rows, rows ); }
java
public void setRows(int rows) { if (rows < 0) { throw new IllegalArgumentException("rows: " + rows); } getStateHelper().put(PropertyKeys.rows, rows ); }
[ "public", "void", "setRows", "(", "int", "rows", ")", "{", "if", "(", "rows", "<", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"rows: \"", "+", "rows", ")", ";", "}", "getStateHelper", "(", ")", ".", "put", "(", "PropertyKeys", "....
Set the maximum number of rows displayed in the table.
[ "Set", "the", "maximum", "number", "of", "rows", "displayed", "in", "the", "table", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java#L2189-L2196
train
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java
UIData.isRowStatePreserved
@JSFProperty(literalOnly=true, faceletsOnly=true) public boolean isRowStatePreserved() { Boolean b = (Boolean) getStateHelper().get(PropertyKeys.rowStatePreserved); return b == null ? false : b.booleanValue(); }
java
@JSFProperty(literalOnly=true, faceletsOnly=true) public boolean isRowStatePreserved() { Boolean b = (Boolean) getStateHelper().get(PropertyKeys.rowStatePreserved); return b == null ? false : b.booleanValue(); }
[ "@", "JSFProperty", "(", "literalOnly", "=", "true", ",", "faceletsOnly", "=", "true", ")", "public", "boolean", "isRowStatePreserved", "(", ")", "{", "Boolean", "b", "=", "(", "Boolean", ")", "getStateHelper", "(", ")", ".", "get", "(", "PropertyKeys", "....
Indicates whether the state for a component in each row should not be discarded before the datatable is rendered again. This property is similar to tomahawk t:dataTable preserveRowStates This will only work reliable if the datamodel of the datatable did not change either by sorting, removing or adding rows. Default: ...
[ "Indicates", "whether", "the", "state", "for", "a", "component", "in", "each", "row", "should", "not", "be", "discarded", "before", "the", "datatable", "is", "rendered", "again", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java#L2387-L2392
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javaee.ddmodel/src/com/ibm/ws/javaee/ddmodel/jsf/FacesConfigType.java
FacesConfigType.getManagedObjects
@Override public List<String> getManagedObjects() { ArrayList<String> managedObjects = new ArrayList<String>(); if (this.application != null) { managedObjects.addAll(application.getManagedObjects()); } if (this.factory != null) { managedObjects.addAll(factory....
java
@Override public List<String> getManagedObjects() { ArrayList<String> managedObjects = new ArrayList<String>(); if (this.application != null) { managedObjects.addAll(application.getManagedObjects()); } if (this.factory != null) { managedObjects.addAll(factory....
[ "@", "Override", "public", "List", "<", "String", ">", "getManagedObjects", "(", ")", "{", "ArrayList", "<", "String", ">", "managedObjects", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "if", "(", "this", ".", "application", "!=", "null",...
This method is only called from jsf 2.2
[ "This", "method", "is", "only", "called", "from", "jsf", "2", ".", "2" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmodel/src/com/ibm/ws/javaee/ddmodel/jsf/FacesConfigType.java#L145-L158
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/DocumentRootUtils.java
DocumentRootUtils.getLastModified
public long getLastModified() { if(matchedEntry != null){ return matchedEntry.getLastModified(); } else if (matchedZipFile != null){ return matchedZipFile.getLastModified(); } else if (matchedFile != null){ return matchedFile.lastModified(); } else { ...
java
public long getLastModified() { if(matchedEntry != null){ return matchedEntry.getLastModified(); } else if (matchedZipFile != null){ return matchedZipFile.getLastModified(); } else if (matchedFile != null){ return matchedFile.lastModified(); } else { ...
[ "public", "long", "getLastModified", "(", ")", "{", "if", "(", "matchedEntry", "!=", "null", ")", "{", "return", "matchedEntry", ".", "getLastModified", "(", ")", ";", "}", "else", "if", "(", "matchedZipFile", "!=", "null", ")", "{", "return", "matchedZipF...
Get the last modified date of the appropriate matched item
[ "Get", "the", "last", "modified", "date", "of", "the", "appropriate", "matched", "item" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/DocumentRootUtils.java#L587-L597
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSRemoteConsumerPoint.java
JSRemoteConsumerPoint.expiryAlarm
public void expiryAlarm(AORequestedTick requestedTick) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "expiryAlarm", requestedTick); boolean transitionOccured = false; ArrayList<AORequestedTick> satisfiedTicks = null; try { this.lock(); try ...
java
public void expiryAlarm(AORequestedTick requestedTick) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "expiryAlarm", requestedTick); boolean transitionOccured = false; ArrayList<AORequestedTick> satisfiedTicks = null; try { this.lock(); try ...
[ "public", "void", "expiryAlarm", "(", "AORequestedTick", "requestedTick", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"expiryAlarm\"", ...
Callback from the AORequestedTick when the expiry alarm occurs. @param requestedTick
[ "Callback", "from", "the", "AORequestedTick", "when", "the", "expiry", "alarm", "occurs", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSRemoteConsumerPoint.java#L315-L376
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSRemoteConsumerPoint.java
JSRemoteConsumerPoint.alarm
public void alarm(Object thandle) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "alarm", thandle); boolean doClose = false; // We're probably about to close this consumer, which needs us to remove it from the AOStream's // consciousness first (so that it do...
java
public void alarm(Object thandle) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "alarm", thandle); boolean doClose = false; // We're probably about to close this consumer, which needs us to remove it from the AOStream's // consciousness first (so that it do...
[ "public", "void", "alarm", "(", "Object", "thandle", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"alarm\"", ",", "thandle", ")", ...
The idle timeout has expired
[ "The", "idle", "timeout", "has", "expired" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSRemoteConsumerPoint.java#L1057-L1121
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java
SSLConnectionLink.cleanup
public void cleanup() { cleanupLock.lock(); try { // Clean up the write interface. if (null != writeInterface) { this.writeInterface.close(); this.writeInterface = null; } // Clean up the read interface. if (null...
java
public void cleanup() { cleanupLock.lock(); try { // Clean up the write interface. if (null != writeInterface) { this.writeInterface.close(); this.writeInterface = null; } // Clean up the read interface. if (null...
[ "public", "void", "cleanup", "(", ")", "{", "cleanupLock", ".", "lock", "(", ")", ";", "try", "{", "// Clean up the write interface.", "if", "(", "null", "!=", "writeInterface", ")", "{", "this", ".", "writeInterface", ".", "close", "(", ")", ";", "this", ...
This method is called from both close and destroy to clean up local resources. Avoid object synchronization, but ensure only one thread does cleanup at a time.
[ "This", "method", "is", "called", "from", "both", "close", "and", "destroy", "to", "clean", "up", "local", "resources", ".", "Avoid", "object", "synchronization", "but", "ensure", "only", "one", "thread", "does", "cleanup", "at", "a", "time", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java#L221-L250
train