id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
70,200
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OidcUtil.java
OidcUtil.encode
public static String encode(String value) { if (value == null) { return value; } try { value = URLEncoder.encode(value, Constants.UTF_8); } catch (UnsupportedEncodingException e) { // Do nothing - UTF-8 should always be supported } retu...
java
public static String encode(String value) { if (value == null) { return value; } try { value = URLEncoder.encode(value, Constants.UTF_8); } catch (UnsupportedEncodingException e) { // Do nothing - UTF-8 should always be supported } retu...
[ "public", "static", "String", "encode", "(", "String", "value", ")", "{", "if", "(", "value", "==", "null", ")", "{", "return", "value", ";", "}", "try", "{", "value", "=", "URLEncoder", ".", "encode", "(", "value", ",", "Constants", ".", "UTF_8", ")...
Encodes the given string using URLEncoder and UTF-8 encoding. @param value @return
[ "Encodes", "the", "given", "string", "using", "URLEncoder", "and", "UTF", "-", "8", "encoding", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OidcUtil.java#L148-L158
70,201
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OidcUtil.java
OidcUtil.getTimeStamp
public static String getTimeStamp(long lNumber) { String timeStamp = "" + lNumber; int iIndex = TIMESTAMP_LENGTH - timeStamp.length(); // this is enough for 3000 years return zeroFillers[iIndex] + timeStamp; }
java
public static String getTimeStamp(long lNumber) { String timeStamp = "" + lNumber; int iIndex = TIMESTAMP_LENGTH - timeStamp.length(); // this is enough for 3000 years return zeroFillers[iIndex] + timeStamp; }
[ "public", "static", "String", "getTimeStamp", "(", "long", "lNumber", ")", "{", "String", "timeStamp", "=", "\"\"", "+", "lNumber", ";", "int", "iIndex", "=", "TIMESTAMP_LENGTH", "-", "timeStamp", ".", "length", "(", ")", ";", "// this is enough for 3000 years",...
for unit test
[ "for", "unit", "test" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OidcUtil.java#L223-L227
70,202
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OidcUtil.java
OidcUtil.createNonceCookieValue
public static String createNonceCookieValue(String nonceValue, String state, ConvergedClientConfig clientConfig) { return HashUtils.digest(nonceValue + state + clientConfig.getClientSecret()); }
java
public static String createNonceCookieValue(String nonceValue, String state, ConvergedClientConfig clientConfig) { return HashUtils.digest(nonceValue + state + clientConfig.getClientSecret()); }
[ "public", "static", "String", "createNonceCookieValue", "(", "String", "nonceValue", ",", "String", "state", ",", "ConvergedClientConfig", "clientConfig", ")", "{", "return", "HashUtils", ".", "digest", "(", "nonceValue", "+", "state", "+", "clientConfig", ".", "g...
calculate the cookie value of Nonce
[ "calculate", "the", "cookie", "value", "of", "Nonce" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OidcUtil.java#L265-L267
70,203
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/InternTable.java
InternTable.compress
private void compress() { counter = 1; for (Iterator e = values().iterator(); e.hasNext(); ) { Selector s = (Selector) e.next(); s.setUniqueId(counter++); } }
java
private void compress() { counter = 1; for (Iterator e = values().iterator(); e.hasNext(); ) { Selector s = (Selector) e.next(); s.setUniqueId(counter++); } }
[ "private", "void", "compress", "(", ")", "{", "counter", "=", "1", ";", "for", "(", "Iterator", "e", "=", "values", "(", ")", ".", "iterator", "(", ")", ";", "e", ".", "hasNext", "(", ")", ";", ")", "{", "Selector", "s", "=", "(", "Selector", "...
Compress the uniqueId assignments for Selectors currently in the intern table
[ "Compress", "the", "uniqueId", "assignments", "for", "Selectors", "currently", "in", "the", "intern", "table" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/InternTable.java#L61-L69
70,204
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java
WebJsMessageFactoryImpl.decodeTextBody
private static JsJmsMessage decodeTextBody(String body) throws MessageDecodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "decodeTextBody"); JsJmsTextMessage result = new JsJmsTextMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); if (bo...
java
private static JsJmsMessage decodeTextBody(String body) throws MessageDecodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "decodeTextBody"); JsJmsTextMessage result = new JsJmsTextMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); if (bo...
[ "private", "static", "JsJmsMessage", "decodeTextBody", "(", "String", "body", ")", "throws", "MessageDecodeFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "...
Decode a text message
[ "Decode", "a", "text", "message" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java#L129-L139
70,205
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java
WebJsMessageFactoryImpl.decodeBytesBody
private static JsJmsMessage decodeBytesBody(String body) throws MessageDecodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "decodeBytesBody"); JsJmsBytesMessage result = new JsJmsBytesMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); if...
java
private static JsJmsMessage decodeBytesBody(String body) throws MessageDecodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "decodeBytesBody"); JsJmsBytesMessage result = new JsJmsBytesMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); if...
[ "private", "static", "JsJmsMessage", "decodeBytesBody", "(", "String", "body", ")", "throws", "MessageDecodeFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", ...
Decode a bytes message
[ "Decode", "a", "bytes", "message" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java#L142-L151
70,206
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java
WebJsMessageFactoryImpl.decodeObjectBody
private static JsJmsMessage decodeObjectBody(String body) throws MessageDecodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "decodeObjectBody"); JsJmsObjectMessage result = new JsJmsObjectMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); ...
java
private static JsJmsMessage decodeObjectBody(String body) throws MessageDecodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "decodeObjectBody"); JsJmsObjectMessage result = new JsJmsObjectMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); ...
[ "private", "static", "JsJmsMessage", "decodeObjectBody", "(", "String", "body", ")", "throws", "MessageDecodeFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", ...
Decode an object message
[ "Decode", "an", "object", "message" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java#L154-L163
70,207
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java
WebJsMessageFactoryImpl.decodeStreamBody
private static JsJmsMessage decodeStreamBody(String body) throws MessageDecodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "decodeStreamBody"); JsJmsStreamMessage result = new JsJmsStreamMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); ...
java
private static JsJmsMessage decodeStreamBody(String body) throws MessageDecodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "decodeStreamBody"); JsJmsStreamMessage result = new JsJmsStreamMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); ...
[ "private", "static", "JsJmsMessage", "decodeStreamBody", "(", "String", "body", ")", "throws", "MessageDecodeFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", ...
Decode a stream message
[ "Decode", "a", "stream", "message" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java#L166-L184
70,208
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java
WebJsMessageFactoryImpl.decodeMapBody
private static JsJmsMessage decodeMapBody(String body) throws MessageDecodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "decodeMapBody"); JsJmsMapMessage result = new JsJmsMapMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); if (body !...
java
private static JsJmsMessage decodeMapBody(String body) throws MessageDecodeFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "decodeMapBody"); JsJmsMapMessage result = new JsJmsMapMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); if (body !...
[ "private", "static", "JsJmsMessage", "decodeMapBody", "(", "String", "body", ")", "throws", "MessageDecodeFailedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "e...
Decode a map message
[ "Decode", "a", "map", "message" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java#L187-L207
70,209
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java
WebJsMessageFactoryImpl.decodeHeader
private static void decodeHeader(JsJmsMessage msg, String id, String type, String topic, String props) { // id should be hexEncoded byte array but if it looks too short we prepend a '0' to // allow clients to simply use an integer if they want. if (id != null) { if (id.length() % 2 !...
java
private static void decodeHeader(JsJmsMessage msg, String id, String type, String topic, String props) { // id should be hexEncoded byte array but if it looks too short we prepend a '0' to // allow clients to simply use an integer if they want. if (id != null) { if (id.length() % 2 !...
[ "private", "static", "void", "decodeHeader", "(", "JsJmsMessage", "msg", ",", "String", "id", ",", "String", "type", ",", "String", "topic", ",", "String", "props", ")", "{", "// id should be hexEncoded byte array but if it looks too short we prepend a '0' to", "// allow ...
Decode and set the header fields
[ "Decode", "and", "set", "the", "header", "fields" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java#L210-L250
70,210
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java
WebJsMessageFactoryImpl.decodePair
private static Object[] decodePair(String text) { Object[] result = new Object[2]; int i = text.indexOf('='); result[0] = URLDecode(text.substring(0, i)); result[1] = decodeObject(text.substring(i + 1)); return result; }
java
private static Object[] decodePair(String text) { Object[] result = new Object[2]; int i = text.indexOf('='); result[0] = URLDecode(text.substring(0, i)); result[1] = decodeObject(text.substring(i + 1)); return result; }
[ "private", "static", "Object", "[", "]", "decodePair", "(", "String", "text", ")", "{", "Object", "[", "]", "result", "=", "new", "Object", "[", "2", "]", ";", "int", "i", "=", "text", ".", "indexOf", "(", "'", "'", ")", ";", "result", "[", "0", ...
Decode a name=value pair
[ "Decode", "a", "name", "=", "value", "pair" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java#L253-L259
70,211
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java
WebJsMessageFactoryImpl.decodeObject
private static Object decodeObject(String text) { Object result = null; if (text.startsWith("[]")) result = HexString.hexToBin(text, 2); else result = URLDecode(text); return result; }
java
private static Object decodeObject(String text) { Object result = null; if (text.startsWith("[]")) result = HexString.hexToBin(text, 2); else result = URLDecode(text); return result; }
[ "private", "static", "Object", "decodeObject", "(", "String", "text", ")", "{", "Object", "result", "=", "null", ";", "if", "(", "text", ".", "startsWith", "(", "\"[]\"", ")", ")", "result", "=", "HexString", ".", "hexToBin", "(", "text", ",", "2", ")"...
Decode an object as a string or byte array
[ "Decode", "an", "object", "as", "a", "string", "or", "byte", "array" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java#L262-L269
70,212
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java
WebJsMessageFactoryImpl.URLDecode
private static String URLDecode(String text) { String result = null; try { result = URLDecoder.decode(text, "UTF8"); } catch (UnsupportedEncodingException e) { // Should never happen - all JDKs must support UTF8 FFDCFilter.processException(e, "com.ibm.ws.sib.m...
java
private static String URLDecode(String text) { String result = null; try { result = URLDecoder.decode(text, "UTF8"); } catch (UnsupportedEncodingException e) { // Should never happen - all JDKs must support UTF8 FFDCFilter.processException(e, "com.ibm.ws.sib.m...
[ "private", "static", "String", "URLDecode", "(", "String", "text", ")", "{", "String", "result", "=", "null", ";", "try", "{", "result", "=", "URLDecoder", ".", "decode", "(", "text", ",", "\"UTF8\"", ")", ";", "}", "catch", "(", "UnsupportedEncodingExcept...
URL decode a string
[ "URL", "decode", "a", "string" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/WebJsMessageFactoryImpl.java#L272-L281
70,213
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/CustomMatchingStrategy.java
CustomMatchingStrategy.getMatchResponse
@Override public MatchResponse getMatchResponse(SecurityConstraint securityConstraint, String resourceName, String method) { CollectionMatch collectionMatch = getCollectionMatch(securityConstraint.getWebResourceCollections(), resourceName, method); if (CollectionMatch.RESPONSE_NO_MATCH.equals(collec...
java
@Override public MatchResponse getMatchResponse(SecurityConstraint securityConstraint, String resourceName, String method) { CollectionMatch collectionMatch = getCollectionMatch(securityConstraint.getWebResourceCollections(), resourceName, method); if (CollectionMatch.RESPONSE_NO_MATCH.equals(collec...
[ "@", "Override", "public", "MatchResponse", "getMatchResponse", "(", "SecurityConstraint", "securityConstraint", ",", "String", "resourceName", ",", "String", "method", ")", "{", "CollectionMatch", "collectionMatch", "=", "getCollectionMatch", "(", "securityConstraint", "...
Gets the response object that contains the roles, the SSL required and access precluded indicators. Gets the response using the custom method algorithm. If the collection match returned from the collection is null, then response must be CUSTOM_NO_MATCH_RESPONSE. @param resourceName The resource name. @param method The...
[ "Gets", "the", "response", "object", "that", "contains", "the", "roles", "the", "SSL", "required", "and", "access", "precluded", "indicators", ".", "Gets", "the", "response", "using", "the", "custom", "method", "algorithm", ".", "If", "the", "collection", "mat...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/CustomMatchingStrategy.java#L50-L61
70,214
OpenLiberty/open-liberty
dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/internal/RegisteredHttpServiceImpl.java
RegisteredHttpServiceImpl.deactivate
protected void deactivate(ComponentContext ctxt, int reason) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "Deactivating, reason=" + reason); } unregisterAll(); }
java
protected void deactivate(ComponentContext ctxt, int reason) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "Deactivating, reason=" + reason); } unregisterAll(); }
[ "protected", "void", "deactivate", "(", "ComponentContext", "ctxt", ",", "int", "reason", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "{", "Tr", ".", "event", "(", "this", ...
Deactivate this component. @param ctxt
[ "Deactivate", "this", "component", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/internal/RegisteredHttpServiceImpl.java#L98-L103
70,215
OpenLiberty/open-liberty
dev/com.ibm.ws.session/src/com/ibm/ws/session/SessionContext.java
SessionContext.addHttpSessionListener
public void addHttpSessionListener(HttpSessionListener listener, String J2EEName) { synchronized (mHttpSessionListeners) { mHttpSessionListeners.add(listener); mHttpSessionListenersJ2eeNames.add(J2EEName); sessionListener = true; _coreHttpSessionManager.getIStore(...
java
public void addHttpSessionListener(HttpSessionListener listener, String J2EEName) { synchronized (mHttpSessionListeners) { mHttpSessionListeners.add(listener); mHttpSessionListenersJ2eeNames.add(J2EEName); sessionListener = true; _coreHttpSessionManager.getIStore(...
[ "public", "void", "addHttpSessionListener", "(", "HttpSessionListener", "listener", ",", "String", "J2EEName", ")", "{", "synchronized", "(", "mHttpSessionListeners", ")", "{", "mHttpSessionListeners", ".", "add", "(", "listener", ")", ";", "mHttpSessionListenersJ2eeNam...
Akaimai requested function - overridden in WsSessionContext
[ "Akaimai", "requested", "function", "-", "overridden", "in", "WsSessionContext" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session/src/com/ibm/ws/session/SessionContext.java#L1075-L1102
70,216
OpenLiberty/open-liberty
dev/com.ibm.ws.springboot.utility/src/com/ibm/ws/springboot/utility/tasks/BaseCommandTask.java
BaseCommandTask.getArgumentValue
protected String getArgumentValue(String arg, String[] args, ConsoleWrapper stdin, PrintStream stdout) { for (int i = 1; i < args.length; i++) { String key = args[i].split("=")[0]; if (key.equals(arg)) { return getValue(args[i]); } } return nul...
java
protected String getArgumentValue(String arg, String[] args, ConsoleWrapper stdin, PrintStream stdout) { for (int i = 1; i < args.length; i++) { String key = args[i].split("=")[0]; if (key.equals(arg)) { return getValue(args[i]); } } return nul...
[ "protected", "String", "getArgumentValue", "(", "String", "arg", ",", "String", "[", "]", "args", ",", "ConsoleWrapper", "stdin", ",", "PrintStream", "stdout", ")", "{", "for", "(", "int", "i", "=", "1", ";", "i", "<", "args", ".", "length", ";", "i", ...
Gets the value for the specified argument String. No validation is done in the format of args as it is assumed to have been done previously. @param arg Argument name to resolve a value for @param args List of arguments. Assumes the script name is included and therefore minimum length is 2. @param stdin Standard...
[ "Gets", "the", "value", "for", "the", "specified", "argument", "String", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.springboot.utility/src/com/ibm/ws/springboot/utility/tasks/BaseCommandTask.java#L163-L171
70,217
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CATHandshakeProperties.java
CATHandshakeProperties.setHeartbeatInterval
public void setHeartbeatInterval(short heartbeatInterval) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setHeartbeatInterval"); properties.put(HEARTBEAT_INTERVAL, heartbeatInterval); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.e...
java
public void setHeartbeatInterval(short heartbeatInterval) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setHeartbeatInterval"); properties.put(HEARTBEAT_INTERVAL, heartbeatInterval); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.e...
[ "public", "void", "setHeartbeatInterval", "(", "short", "heartbeatInterval", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
Sets the heartbeat interval. @param heartbeatInterval
[ "Sets", "the", "heartbeat", "interval", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CATHandshakeProperties.java#L176-L181
70,218
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/util/SpringBootThinUtil.java
SpringBootThinUtil.isZip
private boolean isZip(JarEntry entry) throws IOException { try (InputStream entryInputStream = sourceFatJar.getInputStream(entry)) { try (ZipInputStream zipInputStream = new ZipInputStream(entryInputStream)) { ZipEntry ze = zipInputStream.getNextEntry(); if (ze == nul...
java
private boolean isZip(JarEntry entry) throws IOException { try (InputStream entryInputStream = sourceFatJar.getInputStream(entry)) { try (ZipInputStream zipInputStream = new ZipInputStream(entryInputStream)) { ZipEntry ze = zipInputStream.getNextEntry(); if (ze == nul...
[ "private", "boolean", "isZip", "(", "JarEntry", "entry", ")", "throws", "IOException", "{", "try", "(", "InputStream", "entryInputStream", "=", "sourceFatJar", ".", "getInputStream", "(", "entry", ")", ")", "{", "try", "(", "ZipInputStream", "zipInputStream", "=...
Check whether the jar entry is a zip, regardless of the extension. @param entry @return true or false telling if the jar entry is a valid zip @throws IOException
[ "Check", "whether", "the", "jar", "entry", "is", "a", "zip", "regardless", "of", "the", "extension", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/util/SpringBootThinUtil.java#L225-L235
70,219
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/cmdline/Utils.java
Utils.getLogDir
public static File getLogDir() { String logDirLoc = null; // 1st check in environment variable is set. This is the normal case // when the server is started from the command line. if (logDir.get() == null) { File resultDir = null; try { logDirLo...
java
public static File getLogDir() { String logDirLoc = null; // 1st check in environment variable is set. This is the normal case // when the server is started from the command line. if (logDir.get() == null) { File resultDir = null; try { logDirLo...
[ "public", "static", "File", "getLogDir", "(", ")", "{", "String", "logDirLoc", "=", "null", ";", "// 1st check in environment variable is set. This is the normal case", "// when the server is started from the command line.", "if", "(", "logDir", ".", "get", "(", ")", "==",...
Returns directory containing server log directories. @return instance of the log directory or 'null' if LOG_DIR is not defined
[ "Returns", "directory", "containing", "server", "log", "directories", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/cmdline/Utils.java#L103-L136
70,220
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/cmdline/Utils.java
Utils.getOutputDir
public static File getOutputDir(boolean isClient) { String outputDirLoc = null; // 1st check in environment variable is set. This is the normal case // when the server is started from the command line. if (outputDir.get() == null) { try { outputDirLoc = Ac...
java
public static File getOutputDir(boolean isClient) { String outputDirLoc = null; // 1st check in environment variable is set. This is the normal case // when the server is started from the command line. if (outputDir.get() == null) { try { outputDirLoc = Ac...
[ "public", "static", "File", "getOutputDir", "(", "boolean", "isClient", ")", "{", "String", "outputDirLoc", "=", "null", ";", "// 1st check in environment variable is set. This is the normal case", "// when the server is started from the command line.", "if", "(", "outputDir", ...
Returns directory containing server output directories. A server output directory has server's name as a name and located under this directory. @return instance of the output directory or 'null' if installation directory can't be determined.
[ "Returns", "directory", "containing", "server", "output", "directories", ".", "A", "server", "output", "directory", "has", "server", "s", "name", "as", "a", "name", "and", "located", "under", "this", "directory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/cmdline/Utils.java#L145-L187
70,221
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/cmdline/Utils.java
Utils.tryToClose
public static boolean tryToClose(ZipFile zipFile) { if (zipFile != null) { try { zipFile.close(); return true; } catch (IOException e) { // ignore } } return false; }
java
public static boolean tryToClose(ZipFile zipFile) { if (zipFile != null) { try { zipFile.close(); return true; } catch (IOException e) { // ignore } } return false; }
[ "public", "static", "boolean", "tryToClose", "(", "ZipFile", "zipFile", ")", "{", "if", "(", "zipFile", "!=", "null", ")", "{", "try", "{", "zipFile", ".", "close", "(", ")", ";", "return", "true", ";", "}", "catch", "(", "IOException", "e", ")", "{"...
Close the zip file @param zipFile @return
[ "Close", "the", "zip", "file" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/cmdline/Utils.java#L321-L331
70,222
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.cdi/src/com/ibm/ws/microprofile/faulttolerance/cdi/FTUtils.java
FTUtils.getRealClass
public static Class<?> getRealClass(Class<?> clazz) { Class<?> realClazz = clazz; if (isWeldProxy(clazz)) { realClazz = clazz.getSuperclass(); } return realClazz; }
java
public static Class<?> getRealClass(Class<?> clazz) { Class<?> realClazz = clazz; if (isWeldProxy(clazz)) { realClazz = clazz.getSuperclass(); } return realClazz; }
[ "public", "static", "Class", "<", "?", ">", "getRealClass", "(", "Class", "<", "?", ">", "clazz", ")", "{", "Class", "<", "?", ">", "realClazz", "=", "clazz", ";", "if", "(", "isWeldProxy", "(", "clazz", ")", ")", "{", "realClazz", "=", "clazz", "....
Get the real class. If it is proxy, get its superclass, which will be the real class. @param clazz @return the real class.
[ "Get", "the", "real", "class", ".", "If", "it", "is", "proxy", "get", "its", "superclass", "which", "will", "be", "the", "real", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.cdi/src/com/ibm/ws/microprofile/faulttolerance/cdi/FTUtils.java#L42-L48
70,223
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/OutboundVirtualConnectionImpl.java
OutboundVirtualConnectionImpl.destroy
public void destroy(Exception e) { if (this.appCallback != null) { this.appCallback.destroy(e); this.appCallback = null; } }
java
public void destroy(Exception e) { if (this.appCallback != null) { this.appCallback.destroy(e); this.appCallback = null; } }
[ "public", "void", "destroy", "(", "Exception", "e", ")", "{", "if", "(", "this", ".", "appCallback", "!=", "null", ")", "{", "this", ".", "appCallback", ".", "destroy", "(", "e", ")", ";", "this", ".", "appCallback", "=", "null", ";", "}", "}" ]
This method is called when there is a problem with the connectAsync call further down the stack. This will just be used as a pass through. @param e
[ "This", "method", "is", "called", "when", "there", "is", "a", "problem", "with", "the", "connectAsync", "call", "further", "down", "the", "stack", ".", "This", "will", "just", "be", "used", "as", "a", "pass", "through", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/OutboundVirtualConnectionImpl.java#L133-L138
70,224
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/utils/SmapGenerator.java
SmapGenerator.addSmap
public synchronized void addSmap(String smap, String stratumName) { embedded.add("*O " + stratumName + "\n" + smap + "*C " + stratumName + "\n"); }
java
public synchronized void addSmap(String smap, String stratumName) { embedded.add("*O " + stratumName + "\n" + smap + "*C " + stratumName + "\n"); }
[ "public", "synchronized", "void", "addSmap", "(", "String", "smap", ",", "String", "stratumName", ")", "{", "embedded", ".", "add", "(", "\"*O \"", "+", "stratumName", "+", "\"\\n\"", "+", "smap", "+", "\"*C \"", "+", "stratumName", "+", "\"\\n\"", ")", ";...
Adds the given string as an embedded SMAP with the given stratum name. @param smap the SMAP to embed @param stratumName the name of the stratum output by the compilation that produced the <tt>smap</tt> to be embedded
[ "Adds", "the", "given", "string", "as", "an", "embedded", "SMAP", "with", "the", "given", "stratum", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/utils/SmapGenerator.java#L82-L84
70,225
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryWriterCBuffImpl.java
LogRepositoryWriterCBuffImpl.dumpItems
public void dumpItems() { LinkedList<CBuffRecord> copy = new LinkedList<CBuffRecord>(); synchronized(this) { copy.addAll(buffer); buffer.clear(); currentSize = 0L; if (headerBytes == null) { return; } } dumpWriter.setHeader(headerBytes); for(CBuffRecord record: copy) { dumpWriter.logR...
java
public void dumpItems() { LinkedList<CBuffRecord> copy = new LinkedList<CBuffRecord>(); synchronized(this) { copy.addAll(buffer); buffer.clear(); currentSize = 0L; if (headerBytes == null) { return; } } dumpWriter.setHeader(headerBytes); for(CBuffRecord record: copy) { dumpWriter.logR...
[ "public", "void", "dumpItems", "(", ")", "{", "LinkedList", "<", "CBuffRecord", ">", "copy", "=", "new", "LinkedList", "<", "CBuffRecord", ">", "(", ")", ";", "synchronized", "(", "this", ")", "{", "copy", ".", "addAll", "(", "buffer", ")", ";", "buffe...
Dumps records stored in buffer to disk using configured LogRepositoryWriter.
[ "Dumps", "records", "stored", "in", "buffer", "to", "disk", "using", "configured", "LogRepositoryWriter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryWriterCBuffImpl.java#L130-L145
70,226
OpenLiberty/open-liberty
dev/com.ibm.ws.anno/src/com/ibm/ws/anno/classsource/internal/ClassSourceImpl.java
ClassSourceImpl.getJandexIndex
protected Index getJandexIndex() { String methodName = "getJandexIndex"; boolean doLog = tc.isDebugEnabled(); boolean doJandexLog = JandexLogger.doLog(); boolean useJandex = getUseJandex(); if ( !useJandex ) { // Figuring out if there is a Jandex index is mildly expensiv...
java
protected Index getJandexIndex() { String methodName = "getJandexIndex"; boolean doLog = tc.isDebugEnabled(); boolean doJandexLog = JandexLogger.doLog(); boolean useJandex = getUseJandex(); if ( !useJandex ) { // Figuring out if there is a Jandex index is mildly expensiv...
[ "protected", "Index", "getJandexIndex", "(", ")", "{", "String", "methodName", "=", "\"getJandexIndex\"", ";", "boolean", "doLog", "=", "tc", ".", "isDebugEnabled", "(", ")", ";", "boolean", "doJandexLog", "=", "JandexLogger", ".", "doLog", "(", ")", ";", "b...
Attempt to read the Jandex index. If Jandex is not enabled, immediately answer null. If no Jandex index is available, or if it cannot be read, answer null. @return The read Jandex index.
[ "Attempt", "to", "read", "the", "Jandex", "index", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/classsource/internal/ClassSourceImpl.java#L569-L629
70,227
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ConjunctionImpl.java
ConjunctionImpl.and
public boolean and(SimpleTest newTest) { for (int i = 0; i < tmpSimpleTests.size(); i++) { SimpleTest cand = (SimpleTest) tmpSimpleTests.get(i); if (cand.getIdentifier().getName().equals(newTest.getIdentifier().getName())) { // Careful, may be operating in XPath selector domain, in which ...
java
public boolean and(SimpleTest newTest) { for (int i = 0; i < tmpSimpleTests.size(); i++) { SimpleTest cand = (SimpleTest) tmpSimpleTests.get(i); if (cand.getIdentifier().getName().equals(newTest.getIdentifier().getName())) { // Careful, may be operating in XPath selector domain, in which ...
[ "public", "boolean", "and", "(", "SimpleTest", "newTest", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "tmpSimpleTests", ".", "size", "(", ")", ";", "i", "++", ")", "{", "SimpleTest", "cand", "=", "(", "SimpleTest", ")", "tmpSimpleTests...
Add a SimpleTest to the Conjunction, searching for contradictions. @param newTest the new SimpleTest to be added @return true if the new test is compatible with the old (a false return means the conjunction will always be false because the test is always false)
[ "Add", "a", "SimpleTest", "to", "the", "Conjunction", "searching", "for", "contradictions", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ConjunctionImpl.java#L104-L126
70,228
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ConjunctionImpl.java
ConjunctionImpl.organize
public boolean organize() { // First, find any simple tests that can be used to reduce residual components to // simple tests or pure truth values, either because the simple test is a NULL test or // because it is effectively an equality test. if (tmpResidual.size() > 0) { List[] equatedIds = find...
java
public boolean organize() { // First, find any simple tests that can be used to reduce residual components to // simple tests or pure truth values, either because the simple test is a NULL test or // because it is effectively an equality test. if (tmpResidual.size() > 0) { List[] equatedIds = find...
[ "public", "boolean", "organize", "(", ")", "{", "// First, find any simple tests that can be used to reduce residual components to", "// simple tests or pure truth values, either because the simple test is a NULL test or", "// because it is effectively an equality test.", "if", "(", "tmpResidu...
Organize the Conjunction into its final useful form for MatchSpace. @return true if the Conjunction is still capable of being true, false if a contradiction was detected during the organize step. @exception IllegalStateException if the Resolver assigned ordinalPosition information incorrectly so that the simple tests...
[ "Organize", "the", "Conjunction", "into", "its", "final", "useful", "form", "for", "MatchSpace", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ConjunctionImpl.java#L149-L202
70,229
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ConjunctionImpl.java
ConjunctionImpl.findEquatedIdentifiers
private List[] findEquatedIdentifiers() { List[] ans = null; for (int i = 0; i < tmpSimpleTests.size(); i++) { SimpleTest cand = (SimpleTest) tmpSimpleTests.get(i); if (cand.getKind() == SimpleTest.NULL) { if (ans == null) ans = new List[] { new ArrayList(), new ArrayList() }; ...
java
private List[] findEquatedIdentifiers() { List[] ans = null; for (int i = 0; i < tmpSimpleTests.size(); i++) { SimpleTest cand = (SimpleTest) tmpSimpleTests.get(i); if (cand.getKind() == SimpleTest.NULL) { if (ans == null) ans = new List[] { new ArrayList(), new ArrayList() }; ...
[ "private", "List", "[", "]", "findEquatedIdentifiers", "(", ")", "{", "List", "[", "]", "ans", "=", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "tmpSimpleTests", ".", "size", "(", ")", ";", "i", "++", ")", "{", "SimpleTest", "ca...
that these can be removed from tmpResidual. Return null if there are none.
[ "that", "these", "can", "be", "removed", "from", "tmpResidual", ".", "Return", "null", "if", "there", "are", "none", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ConjunctionImpl.java#L208-L229
70,230
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ConjunctionImpl.java
ConjunctionImpl.reduceResidual
private List[] reduceResidual(List[] equatedIds) { List[] ans = null; for (int i = 0; i < tmpResidual.size(); ) { Operator oper = substitute((Operator) tmpResidual.get(i), equatedIds); if (oper.getNumIds() > 0 && !Matching.isSimple(oper)) // Even after substitution, must remain as a residual...
java
private List[] reduceResidual(List[] equatedIds) { List[] ans = null; for (int i = 0; i < tmpResidual.size(); ) { Operator oper = substitute((Operator) tmpResidual.get(i), equatedIds); if (oper.getNumIds() > 0 && !Matching.isSimple(oper)) // Even after substitution, must remain as a residual...
[ "private", "List", "[", "]", "reduceResidual", "(", "List", "[", "]", "equatedIds", ")", "{", "List", "[", "]", "ans", "=", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "tmpResidual", ".", "size", "(", ")", ";", ")", "{", "Oper...
therefore should be abandoned.
[ "therefore", "should", "be", "abandoned", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ConjunctionImpl.java#L239-L296
70,231
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ConjunctionImpl.java
ConjunctionImpl.substitute
private static Operator substitute(Operator oper, List[] equatedIds) { Selector op1 = oper.getOperands()[0]; Selector op2 = (oper.getOperands().length == 1) ? null : oper.getOperands()[1]; if (op1 instanceof Identifier) op1 = substitute((Identifier) op1, equatedIds); else if (op1 instanceof Operat...
java
private static Operator substitute(Operator oper, List[] equatedIds) { Selector op1 = oper.getOperands()[0]; Selector op2 = (oper.getOperands().length == 1) ? null : oper.getOperands()[1]; if (op1 instanceof Identifier) op1 = substitute((Identifier) op1, equatedIds); else if (op1 instanceof Operat...
[ "private", "static", "Operator", "substitute", "(", "Operator", "oper", ",", "List", "[", "]", "equatedIds", ")", "{", "Selector", "op1", "=", "oper", ".", "getOperands", "(", ")", "[", "0", "]", ";", "Selector", "op2", "=", "(", "oper", ".", "getOpera...
mutations are made directly to any tree nodes.
[ "mutations", "are", "made", "directly", "to", "any", "tree", "nodes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ConjunctionImpl.java#L307-L332
70,232
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ConjunctionImpl.java
ConjunctionImpl.substitute
private static Selector substitute(Identifier id, List[] equatedIds) { for (int i = 0; i < equatedIds[0].size(); i++) if (id.getName().equals(equatedIds[0].get(i))) return new LiteralImpl(equatedIds[1].get(i)); return id; }
java
private static Selector substitute(Identifier id, List[] equatedIds) { for (int i = 0; i < equatedIds[0].size(); i++) if (id.getName().equals(equatedIds[0].get(i))) return new LiteralImpl(equatedIds[1].get(i)); return id; }
[ "private", "static", "Selector", "substitute", "(", "Identifier", "id", ",", "List", "[", "]", "equatedIds", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "equatedIds", "[", "0", "]", ".", "size", "(", ")", ";", "i", "++", ")", "if",...
if not matched.
[ "if", "not", "matched", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ConjunctionImpl.java#L338-L343
70,233
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/ServletWrapper.java
ServletWrapper.setUnavailableUntil
private void setUnavailableUntil(long time, boolean isInit) //PM01373 { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) logger.logp(Level.FINE, CLASS_NAME, "setUnavailableUntil", "setUnavailableUntil() : " + time); if(isInit){ state = UNINITIALI...
java
private void setUnavailableUntil(long time, boolean isInit) //PM01373 { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) logger.logp(Level.FINE, CLASS_NAME, "setUnavailableUntil", "setUnavailableUntil() : " + time); if(isInit){ state = UNINITIALI...
[ "private", "void", "setUnavailableUntil", "(", "long", "time", ",", "boolean", "isInit", ")", "//PM01373", "{", "if", "(", "com", ".", "ibm", ".", "ejs", ".", "ras", ".", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isLogga...
Method setUnavailableUntil. @param time @param isInit
[ "Method", "setUnavailableUntil", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/ServletWrapper.java#L1730-L1742
70,234
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/ServletWrapper.java
ServletWrapper.setUninitialize
protected void setUninitialize() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) logger.logp(Level.FINE, CLASS_NAME,"setUninitialized ","" + this.toString()); state = UNINITIALIZED_STATE; }
java
protected void setUninitialize() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) logger.logp(Level.FINE, CLASS_NAME,"setUninitialized ","" + this.toString()); state = UNINITIALIZED_STATE; }
[ "protected", "void", "setUninitialize", "(", ")", "{", "if", "(", "com", ".", "ibm", ".", "ejs", ".", "ras", ".", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isLoggable", "(", "Level", ".", "FINE", ")", ")", "logger", ...
Puts a servlet into uninitialize state.
[ "Puts", "a", "servlet", "into", "uninitialize", "state", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/ServletWrapper.java#L1749-L1755
70,235
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/ServletWrapper.java
ServletWrapper.invalidateCacheWrappers
protected synchronized void invalidateCacheWrappers() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) // 306998.15 logger.entering(CLASS_NAME, "invalidateCacheWrappers"); // 569469 if (cacheWrappers != null) { // invalidate all the ca...
java
protected synchronized void invalidateCacheWrappers() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) // 306998.15 logger.entering(CLASS_NAME, "invalidateCacheWrappers"); // 569469 if (cacheWrappers != null) { // invalidate all the ca...
[ "protected", "synchronized", "void", "invalidateCacheWrappers", "(", ")", "{", "if", "(", "com", ".", "ibm", ".", "ejs", ".", "ras", ".", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isLoggable", "(", "Level", ".", "FINE", ...
which makes a call to invalidateCacheWrappers
[ "which", "makes", "a", "call", "to", "invalidateCacheWrappers" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/ServletWrapper.java#L1784-L1803
70,236
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/ServletWrapper.java
ServletWrapper.checkForDefaultImplementation
private boolean checkForDefaultImplementation(Class checkClass, String checkMethod, Class[] methodParams){ if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable (Level.FINE)) //306998.14 logger.exiting(CLASS_NAME,"checkForDefaultImplementation","Method : " + checkMethod + ", Class...
java
private boolean checkForDefaultImplementation(Class checkClass, String checkMethod, Class[] methodParams){ if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable (Level.FINE)) //306998.14 logger.exiting(CLASS_NAME,"checkForDefaultImplementation","Method : " + checkMethod + ", Class...
[ "private", "boolean", "checkForDefaultImplementation", "(", "Class", "checkClass", ",", "String", "checkMethod", ",", "Class", "[", "]", "methodParams", ")", "{", "if", "(", "com", ".", "ibm", ".", "ejs", ".", "ras", ".", "TraceComponent", ".", "isAnyTracingEn...
PK83258 Add method checkDefaultImplementation
[ "PK83258", "Add", "method", "checkDefaultImplementation" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/ServletWrapper.java#L2155-L2188
70,237
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BucketImpl.java
BucketImpl.findIndexByKey
private int findIndexByKey(Object key) { // Traverse the vector from the back. Given proper locking done at // a higher level, this will ensure that the cache gets to the same // element in the presence of duplicates. // Traversing the vector from the first element causes a problem s...
java
private int findIndexByKey(Object key) { // Traverse the vector from the back. Given proper locking done at // a higher level, this will ensure that the cache gets to the same // element in the presence of duplicates. // Traversing the vector from the first element causes a problem s...
[ "private", "int", "findIndexByKey", "(", "Object", "key", ")", "{", "// Traverse the vector from the back. Given proper locking done at", "// a higher level, this will ensure that the cache gets to the same", "// element in the presence of duplicates.", "// Traversing the vector from the first...
Return the index of the element with the specified key
[ "Return", "the", "index", "of", "the", "element", "with", "the", "specified", "key" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BucketImpl.java#L187-L205
70,238
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BucketImpl.java
BucketImpl.toArray
public void toArray(Element[] dest) { if (ivElements != null) { System.arraycopy(ivElements, ivHeadIndex, dest, 0, size()); } }
java
public void toArray(Element[] dest) { if (ivElements != null) { System.arraycopy(ivElements, ivHeadIndex, dest, 0, size()); } }
[ "public", "void", "toArray", "(", "Element", "[", "]", "dest", ")", "{", "if", "(", "ivElements", "!=", "null", ")", "{", "System", ".", "arraycopy", "(", "ivElements", ",", "ivHeadIndex", ",", "dest", ",", "0", ",", "size", "(", ")", ")", ";", "}"...
Copies elements from the bucket into the destination array starting at index 0. The destination array must be at least large enough to hold all the elements in the bucket; otherwise, the behavior is undefined. @param dest the destination array
[ "Copies", "elements", "from", "the", "bucket", "into", "the", "destination", "array", "starting", "at", "index", "0", ".", "The", "destination", "array", "must", "be", "at", "least", "large", "enough", "to", "hold", "all", "the", "elements", "in", "the", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BucketImpl.java#L234-L240
70,239
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BucketImpl.java
BucketImpl.add
private void add(Element element) { if (ivElements == null) { ivElements = new Element[DEFAULT_CAPACITY]; } else if (ivTailIndex == ivElements.length) { // No more room at the tail of the array. If we're completely out of // space (ivBaseI...
java
private void add(Element element) { if (ivElements == null) { ivElements = new Element[DEFAULT_CAPACITY]; } else if (ivTailIndex == ivElements.length) { // No more room at the tail of the array. If we're completely out of // space (ivBaseI...
[ "private", "void", "add", "(", "Element", "element", ")", "{", "if", "(", "ivElements", "==", "null", ")", "{", "ivElements", "=", "new", "Element", "[", "DEFAULT_CAPACITY", "]", ";", "}", "else", "if", "(", "ivTailIndex", "==", "ivElements", ".", "lengt...
Adds an element to the end of the bucket. @param element the element to add
[ "Adds", "an", "element", "to", "the", "end", "of", "the", "bucket", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BucketImpl.java#L259-L305
70,240
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BucketImpl.java
BucketImpl.remove
private void remove(int listIndex) { if (listIndex == 0) { // Trivially remove from head. ivElements[ivHeadIndex++] = null; } else if (listIndex == ivTailIndex - 1) { // Trivially remove from tail. ivElements[--ivTailIndex] = nu...
java
private void remove(int listIndex) { if (listIndex == 0) { // Trivially remove from head. ivElements[ivHeadIndex++] = null; } else if (listIndex == ivTailIndex - 1) { // Trivially remove from tail. ivElements[--ivTailIndex] = nu...
[ "private", "void", "remove", "(", "int", "listIndex", ")", "{", "if", "(", "listIndex", "==", "0", ")", "{", "// Trivially remove from head.", "ivElements", "[", "ivHeadIndex", "++", "]", "=", "null", ";", "}", "else", "if", "(", "listIndex", "==", "ivTail...
Removes the element at the specified index. The index must be greater or equal to 0 and less than the size; otherwise, the behavior is undefined. @param listIndex the index of the element to remove
[ "Removes", "the", "element", "at", "the", "specified", "index", ".", "The", "index", "must", "be", "greater", "or", "equal", "to", "0", "and", "less", "than", "the", "size", ";", "otherwise", "the", "behavior", "is", "undefined", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/util/cache/BucketImpl.java#L313-L355
70,241
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/destination/AbstractRemoteSupport.java
AbstractRemoteSupport.setToBeDeleted
public void setToBeDeleted() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setToBeDeleted"); synchronized (_anycastInputHandlers) { _toBeDeleted = true; } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit...
java
public void setToBeDeleted() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setToBeDeleted"); synchronized (_anycastInputHandlers) { _toBeDeleted = true; } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit...
[ "public", "void", "setToBeDeleted", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setToBeDeleted\"", ")", ";", "synchronized", "...
Method to indicate that the destination has been deleted
[ "Method", "to", "indicate", "that", "the", "destination", "has", "been", "deleted" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/destination/AbstractRemoteSupport.java#L1129-L1141
70,242
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.security/src/com/ibm/ws/ejbcontainer/security/internal/EJBSecurityCollaboratorImpl.java
EJBSecurityCollaboratorImpl.isInternalUnprotectedMethod
private boolean isInternalUnprotectedMethod(EJBMethodMetaData methodMetaData) { EJBMethodInterface interfaceType = methodMetaData.getEJBMethodInterface(); /*** * For TIMED_OBJECT, the code references EJB 2.1 spec section 22.2.2 and matches a * method signature, which is necessary but n...
java
private boolean isInternalUnprotectedMethod(EJBMethodMetaData methodMetaData) { EJBMethodInterface interfaceType = methodMetaData.getEJBMethodInterface(); /*** * For TIMED_OBJECT, the code references EJB 2.1 spec section 22.2.2 and matches a * method signature, which is necessary but n...
[ "private", "boolean", "isInternalUnprotectedMethod", "(", "EJBMethodMetaData", "methodMetaData", ")", "{", "EJBMethodInterface", "interfaceType", "=", "methodMetaData", ".", "getEJBMethodInterface", "(", ")", ";", "/***\n * For TIMED_OBJECT, the code references EJB 2.1 spec...
Check if the methodMetaData interface is internal and supposed to be unprotected as per spec. @param methodMetaData methodMetaData to get the interface type @return true if it should be unprotected, otherwise false
[ "Check", "if", "the", "methodMetaData", "interface", "is", "internal", "and", "supposed", "to", "be", "unprotected", "as", "per", "spec", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.security/src/com/ibm/ws/ejbcontainer/security/internal/EJBSecurityCollaboratorImpl.java#L334-L391
70,243
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/common/OidcCommonClientRequest.java
OidcCommonClientRequest.errorCommon
public JWTTokenValidationFailedException errorCommon(boolean bTrError, TraceComponent tc, String[] msgCodes, Object[] objects) throws JWTTokenValidationFailedException { int msgIndex = 0; if (!TYPE_ID_TOKEN.equals(this.getTokenType())) { msgIndex = 1; } return errorCommon(bTr...
java
public JWTTokenValidationFailedException errorCommon(boolean bTrError, TraceComponent tc, String[] msgCodes, Object[] objects) throws JWTTokenValidationFailedException { int msgIndex = 0; if (!TYPE_ID_TOKEN.equals(this.getTokenType())) { msgIndex = 1; } return errorCommon(bTr...
[ "public", "JWTTokenValidationFailedException", "errorCommon", "(", "boolean", "bTrError", ",", "TraceComponent", "tc", ",", "String", "[", "]", "msgCodes", ",", "Object", "[", "]", "objects", ")", "throws", "JWTTokenValidationFailedException", "{", "int", "msgIndex", ...
do not override
[ "do", "not", "override" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/common/OidcCommonClientRequest.java#L66-L72
70,244
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSBoxedListImpl.java
JSBoxedListImpl.create
static JSBoxedListImpl create(JSVaryingList subList, int subAccessor) { if (subList.getIndirection() > 0) return new JSIndirectBoxedListImpl(subList, subAccessor); else return new JSBoxedListImpl(subList, subAccessor); }
java
static JSBoxedListImpl create(JSVaryingList subList, int subAccessor) { if (subList.getIndirection() > 0) return new JSIndirectBoxedListImpl(subList, subAccessor); else return new JSBoxedListImpl(subList, subAccessor); }
[ "static", "JSBoxedListImpl", "create", "(", "JSVaryingList", "subList", ",", "int", "subAccessor", ")", "{", "if", "(", "subList", ".", "getIndirection", "(", ")", ">", "0", ")", "return", "new", "JSIndirectBoxedListImpl", "(", "subList", ",", "subAccessor", "...
kind of constructor.
[ "kind", "of", "constructor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSBoxedListImpl.java#L83-L88
70,245
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSBoxedListImpl.java
JSBoxedListImpl.get
public Object get(int accessor) { try { return ((JMFNativePart)subList.getValue(accessor)).getValue(subAccessor); } catch (JMFException ex) { FFDCFilter.processException(ex, "get", "129", this); return null; } }
java
public Object get(int accessor) { try { return ((JMFNativePart)subList.getValue(accessor)).getValue(subAccessor); } catch (JMFException ex) { FFDCFilter.processException(ex, "get", "129", this); return null; } }
[ "public", "Object", "get", "(", "int", "accessor", ")", "{", "try", "{", "return", "(", "(", "JMFNativePart", ")", "subList", ".", "getValue", "(", "accessor", ")", ")", ".", "getValue", "(", "subAccessor", ")", ";", "}", "catch", "(", "JMFException", ...
thrown).
[ "thrown", ")", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSBoxedListImpl.java#L102-L109
70,246
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/jaas/modules/ServerCommonLoginModule.java
ServerCommonLoginModule.setCredentials
protected void setCredentials(Subject subject, String securityName, String urAuthenticatedId) throws Exception { // Principal principal = new WSPrincipal(securityName, accessId, authMethod); if (urAuthenticatedId != null && !urAuthentica...
java
protected void setCredentials(Subject subject, String securityName, String urAuthenticatedId) throws Exception { // Principal principal = new WSPrincipal(securityName, accessId, authMethod); if (urAuthenticatedId != null && !urAuthentica...
[ "protected", "void", "setCredentials", "(", "Subject", "subject", ",", "String", "securityName", ",", "String", "urAuthenticatedId", ")", "throws", "Exception", "{", "// Principal principal = new WSPrincipal(securityName, accessId, authMethod);", "if", "(", "urAuthentica...
Set the relevant Credentials for this login module into the Subject, and set the credentials for the determined accessId. @throws Exception
[ "Set", "the", "relevant", "Credentials", "for", "this", "login", "module", "into", "the", "Subject", "and", "set", "the", "credentials", "for", "the", "determined", "accessId", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/jaas/modules/ServerCommonLoginModule.java#L137-L149
70,247
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/jaas/modules/ServerCommonLoginModule.java
ServerCommonLoginModule.updateSubjectWithSharedStateContents
protected void updateSubjectWithSharedStateContents() { subject.getPrincipals().add((WSPrincipal) sharedState.get(Constants.WSPRINCIPAL_KEY)); subject.getPublicCredentials().add(sharedState.get(Constants.WSCREDENTIAL_KEY)); if (sharedState.get(Constants.WSSSOTOKEN_KEY) != null) subje...
java
protected void updateSubjectWithSharedStateContents() { subject.getPrincipals().add((WSPrincipal) sharedState.get(Constants.WSPRINCIPAL_KEY)); subject.getPublicCredentials().add(sharedState.get(Constants.WSCREDENTIAL_KEY)); if (sharedState.get(Constants.WSSSOTOKEN_KEY) != null) subje...
[ "protected", "void", "updateSubjectWithSharedStateContents", "(", ")", "{", "subject", ".", "getPrincipals", "(", ")", ".", "add", "(", "(", "WSPrincipal", ")", "sharedState", ".", "get", "(", "Constants", ".", "WSPRINCIPAL_KEY", ")", ")", ";", "subject", ".",...
Sets the original subject with the shared state contents.
[ "Sets", "the", "original", "subject", "with", "the", "shared", "state", "contents", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/jaas/modules/ServerCommonLoginModule.java#L242-L247
70,248
OpenLiberty/open-liberty
dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/jaas/modules/ServerCommonLoginModule.java
ServerCommonLoginModule.setUpSubject
void setUpSubject(final String securityName, final String accessId, final String authMethod) throws LoginException { // Populate a temporary subject in response to a successful authentication. // We use a temporary Subject because if something goes wrong in this flow, // we...
java
void setUpSubject(final String securityName, final String accessId, final String authMethod) throws LoginException { // Populate a temporary subject in response to a successful authentication. // We use a temporary Subject because if something goes wrong in this flow, // we...
[ "void", "setUpSubject", "(", "final", "String", "securityName", ",", "final", "String", "accessId", ",", "final", "String", "authMethod", ")", "throws", "LoginException", "{", "// Populate a temporary subject in response to a successful authentication.", "// We use a temporary ...
Common Subject set up. Guarantees an atomic commit to the subject passed in via initialization. @throws LoginException
[ "Common", "Subject", "set", "up", ".", "Guarantees", "an", "atomic", "commit", "to", "the", "subject", "passed", "in", "via", "initialization", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/jaas/modules/ServerCommonLoginModule.java#L295-L320
70,249
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/MultiScopeRecoveryLog.java
MultiScopeRecoveryLog.payloadWritten
protected void payloadWritten(int payloadSize) { if (tc.isEntryEnabled()) Tr.entry(tc, "payloadWritten", new Object[] { this, payloadSize }); _unwrittenDataSize.addAndGet(-payloadSize); if (tc.isDebugEnabled()) Tr.debug(tc, "unwrittenDataSize = " + _unwrittenDataSiz...
java
protected void payloadWritten(int payloadSize) { if (tc.isEntryEnabled()) Tr.entry(tc, "payloadWritten", new Object[] { this, payloadSize }); _unwrittenDataSize.addAndGet(-payloadSize); if (tc.isDebugEnabled()) Tr.debug(tc, "unwrittenDataSize = " + _unwrittenDataSiz...
[ "protected", "void", "payloadWritten", "(", "int", "payloadSize", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"payloadWritten\"", ",", "new", "Object", "[", "]", "{", "this", ",", "payloadSize", ...
Informs the recovery log that previously unwritten data has been written to disk by one of its recoverable units and no longer needs to be tracked in the unwritten data field. The recovery log must use the supplied information to track the amount of unwritten active data it holds. This call is driven from the recovera...
[ "Informs", "the", "recovery", "log", "that", "previously", "unwritten", "data", "has", "been", "written", "to", "disk", "by", "one", "of", "its", "recoverable", "units", "and", "no", "longer", "needs", "to", "be", "tracked", "in", "the", "unwritten", "data",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/MultiScopeRecoveryLog.java#L2116-L2127
70,250
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/MultiScopeRecoveryLog.java
MultiScopeRecoveryLog.payloadDeleted
protected void payloadDeleted(int totalPayloadSize, int unwrittenPayloadSize) { if (tc.isEntryEnabled()) Tr.entry(tc, "payloadDeleted", new Object[] { this, totalPayloadSize, unwrittenPayloadSize }); _unwrittenDataSize.addAndGet(-unwrittenPayloadSize); synchronized (this) ...
java
protected void payloadDeleted(int totalPayloadSize, int unwrittenPayloadSize) { if (tc.isEntryEnabled()) Tr.entry(tc, "payloadDeleted", new Object[] { this, totalPayloadSize, unwrittenPayloadSize }); _unwrittenDataSize.addAndGet(-unwrittenPayloadSize); synchronized (this) ...
[ "protected", "void", "payloadDeleted", "(", "int", "totalPayloadSize", ",", "int", "unwrittenPayloadSize", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"payloadDeleted\"", ",", "new", "Object", "[", ...
Informs the recovery log that data has been removed from one of its recoverable units. Right now, this means that a recoverable unit and all its content has been removed, but in the future this will also be driven when a single recoverable unit section within a recoverable unit has been removed. The recovery log must u...
[ "Informs", "the", "recovery", "log", "that", "data", "has", "been", "removed", "from", "one", "of", "its", "recoverable", "units", ".", "Right", "now", "this", "means", "that", "a", "recoverable", "unit", "and", "all", "its", "content", "has", "been", "rem...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/MultiScopeRecoveryLog.java#L2184-L2199
70,251
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/MultiScopeRecoveryLog.java
MultiScopeRecoveryLog.addRecoverableUnit
protected void addRecoverableUnit(RecoverableUnit recoverableUnit, boolean recovered) { if (tc.isEntryEnabled()) Tr.entry(tc, "addRecoverableUnit", new Object[] { recoverableUnit, recovered, this }); final long identity = recoverableUnit.identity(); _recoverableUnits.put(identi...
java
protected void addRecoverableUnit(RecoverableUnit recoverableUnit, boolean recovered) { if (tc.isEntryEnabled()) Tr.entry(tc, "addRecoverableUnit", new Object[] { recoverableUnit, recovered, this }); final long identity = recoverableUnit.identity(); _recoverableUnits.put(identi...
[ "protected", "void", "addRecoverableUnit", "(", "RecoverableUnit", "recoverableUnit", ",", "boolean", "recovered", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"addRecoverableUnit\"", ",", "new", "Objec...
Adds a new RecoverableUnitImpl object, keyed from its identity to this classes collection of such objects. @param recoverableUnit The RecoverableUnit to be added @param recovered Flag to indicate if this instances have been created during recovery (true) or normal running (false). If its been created during recovery w...
[ "Adds", "a", "new", "RecoverableUnitImpl", "object", "keyed", "from", "its", "identity", "to", "this", "classes", "collection", "of", "such", "objects", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/MultiScopeRecoveryLog.java#L2378-L2394
70,252
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/MultiScopeRecoveryLog.java
MultiScopeRecoveryLog.removeRecoverableUnitMapEntries
protected RecoverableUnitImpl removeRecoverableUnitMapEntries(long identity) { if (tc.isEntryEnabled()) Tr.entry(tc, "removeRecoverableUnitMapEntries", new Object[] { identity, this }); final RecoverableUnitImpl recoverableUnit = (RecoverableUnitImpl) _recoverableUnits.remove(identity);...
java
protected RecoverableUnitImpl removeRecoverableUnitMapEntries(long identity) { if (tc.isEntryEnabled()) Tr.entry(tc, "removeRecoverableUnitMapEntries", new Object[] { identity, this }); final RecoverableUnitImpl recoverableUnit = (RecoverableUnitImpl) _recoverableUnits.remove(identity);...
[ "protected", "RecoverableUnitImpl", "removeRecoverableUnitMapEntries", "(", "long", "identity", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"removeRecoverableUnitMapEntries\"", ",", "new", "Object", "[", ...
Removes a RecoverableUnitImpl object, keyed from its identity from this classes collection of such objects. @param identity The identity of the RecoverableUnitImpl to be removed @return RecoverableUnitImpl The RecoverableUnitImpl thats no longer associated with the MultiScopeRecoveryLog.
[ "Removes", "a", "RecoverableUnitImpl", "object", "keyed", "from", "its", "identity", "from", "this", "classes", "collection", "of", "such", "objects", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/MultiScopeRecoveryLog.java#L2408-L2423
70,253
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/MultiScopeRecoveryLog.java
MultiScopeRecoveryLog.getRecoverableUnit
protected RecoverableUnitImpl getRecoverableUnit(long identity) { if (tc.isEntryEnabled()) Tr.entry(tc, "getRecoverableUnit", new Object[] { identity, this }); RecoverableUnitImpl recoverableUnit = null; // Only attempt to resolve the recoverable unit if the log is compatible a...
java
protected RecoverableUnitImpl getRecoverableUnit(long identity) { if (tc.isEntryEnabled()) Tr.entry(tc, "getRecoverableUnit", new Object[] { identity, this }); RecoverableUnitImpl recoverableUnit = null; // Only attempt to resolve the recoverable unit if the log is compatible a...
[ "protected", "RecoverableUnitImpl", "getRecoverableUnit", "(", "long", "identity", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getRecoverableUnit\"", ",", "new", "Object", "[", "]", "{", "identity",...
Retrieves a RecoverableUnitImpl object, keyed from its identity from this classes collection of such objects. @param identity The identity of the RecoverableUnitImpl to be retrieved @return RecoverableUnitImpl The required RecoverableUnitImpl
[ "Retrieves", "a", "RecoverableUnitImpl", "object", "keyed", "from", "its", "identity", "from", "this", "classes", "collection", "of", "such", "objects", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/MultiScopeRecoveryLog.java#L2436-L2452
70,254
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/MultiScopeRecoveryLog.java
MultiScopeRecoveryLog.associateLog
@Override public void associateLog(DistributedRecoveryLog otherLog, boolean failAssociatedLog) { if (tc.isEntryEnabled()) Tr.entry(tc, "associateLog", new Object[] { otherLog, failAssociatedLog, this }); if (otherLog instanceof MultiScopeLog) { _associatedLog = (...
java
@Override public void associateLog(DistributedRecoveryLog otherLog, boolean failAssociatedLog) { if (tc.isEntryEnabled()) Tr.entry(tc, "associateLog", new Object[] { otherLog, failAssociatedLog, this }); if (otherLog instanceof MultiScopeLog) { _associatedLog = (...
[ "@", "Override", "public", "void", "associateLog", "(", "DistributedRecoveryLog", "otherLog", ",", "boolean", "failAssociatedLog", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"associateLog\"", ",", "...
Associates another log with this one. PI45254. The code is protects against infinite recursion since associated logs are only marked as failed if the log isn't already mark as failed. The code does NOT protect against deadlock due to synchronization for logA->logB and logB->logA - this is not an issue since failAssocia...
[ "Associates", "another", "log", "with", "this", "one", ".", "PI45254", ".", "The", "code", "is", "protects", "against", "infinite", "recursion", "since", "associated", "logs", "are", "only", "marked", "as", "failed", "if", "the", "log", "isn", "t", "already"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/MultiScopeRecoveryLog.java#L2564-L2577
70,255
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/JFapDiscriminator.java
JFapDiscriminator.getDiscriminatoryDataType
public Class getDiscriminatoryDataType() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getDiscriminatorDataType"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getDiscriminatorDataType"); return com.ibm.wsspi.bytebuffer.WsByteBuffer.class; // F188491 }
java
public Class getDiscriminatoryDataType() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getDiscriminatorDataType"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getDiscriminatorDataType"); return com.ibm.wsspi.bytebuffer.WsByteBuffer.class; // F188491 }
[ "public", "Class", "getDiscriminatoryDataType", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getDiscriminatorDataType\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(",...
Returns the data type this discriminator is able to discriminate for. This is always WsByteBuffer.
[ "Returns", "the", "data", "type", "this", "discriminator", "is", "able", "to", "discriminate", "for", ".", "This", "is", "always", "WsByteBuffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/JFapDiscriminator.java#L176-L182
70,256
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/JFapDiscriminator.java
JFapDiscriminator.getChannel
public Channel getChannel() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getChannel"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getChannel", channel); return channel; }
java
public Channel getChannel() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getChannel"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getChannel", channel); return channel; }
[ "public", "Channel", "getChannel", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getChannel\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ...
Returns the channel this discriminator discriminates on behalf of.
[ "Returns", "the", "channel", "this", "discriminator", "discriminates", "on", "behalf", "of", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/JFapDiscriminator.java#L187-L193
70,257
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/JFapDiscriminator.java
JFapDiscriminator.getWeight
public int getWeight() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getWeight"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getWeight"); // TODO: this probably isn't a good value. return 0; }
java
public int getWeight() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getWeight"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getWeight"); // TODO: this probably isn't a good value. return 0; }
[ "public", "int", "getWeight", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getWeight\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", ...
Get the weighting to use for this discriminator
[ "Get", "the", "weighting", "to", "use", "for", "this", "discriminator" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/JFapDiscriminator.java#L209-L216
70,258
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/BaseSIXAResourceProxy.java
BaseSIXAResourceProxy.join
protected synchronized void join(SIXAResource resource) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "join", resource); resourcesJoinedToThisResource.add(resource); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "joi...
java
protected synchronized void join(SIXAResource resource) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "join", resource); resourcesJoinedToThisResource.add(resource); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "joi...
[ "protected", "synchronized", "void", "join", "(", "SIXAResource", "resource", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",",...
Called when another XAResource is joining to us. @param resource
[ "Called", "when", "another", "XAResource", "is", "joining", "to", "us", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/BaseSIXAResourceProxy.java#L88-L93
70,259
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/BaseSIXAResourceProxy.java
BaseSIXAResourceProxy.unjoin
protected synchronized void unjoin(SIXAResource resource) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unjoin", resource); resourcesJoinedToThisResource.remove(resource); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, t...
java
protected synchronized void unjoin(SIXAResource resource) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unjoin", resource); resourcesJoinedToThisResource.remove(resource); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, t...
[ "protected", "synchronized", "void", "unjoin", "(", "SIXAResource", "resource", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",...
Called when another instance is un-joining from us. @param resource
[ "Called", "when", "another", "instance", "is", "un", "-", "joining", "from", "us", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/BaseSIXAResourceProxy.java#L99-L104
70,260
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelProvider.java
SSLChannelProvider.updatedSslSupport
protected void updatedSslSupport(SSLSupport service, Map<String, Object> props) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "updatedSslSupport", props); } sslSupport = service; // If the default pid has changed.. we need to go hunting f...
java
protected void updatedSslSupport(SSLSupport service, Map<String, Object> props) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "updatedSslSupport", props); } sslSupport = service; // If the default pid has changed.. we need to go hunting f...
[ "protected", "void", "updatedSslSupport", "(", "SSLSupport", "service", ",", "Map", "<", "String", ",", "Object", ">", "props", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "...
This is called if the service is updated. @param ref reference to the service
[ "This", "is", "called", "if", "the", "service", "is", "updated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelProvider.java#L216-L235
70,261
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelProvider.java
SSLChannelProvider.getJSSEProvider
public static JSSEProvider getJSSEProvider() { SSLChannelProvider p = instance.get(); if (p != null) return p.sslSupport.getJSSEProvider(); throw new IllegalStateException("Requested service is null: no active component instance"); }
java
public static JSSEProvider getJSSEProvider() { SSLChannelProvider p = instance.get(); if (p != null) return p.sslSupport.getJSSEProvider(); throw new IllegalStateException("Requested service is null: no active component instance"); }
[ "public", "static", "JSSEProvider", "getJSSEProvider", "(", ")", "{", "SSLChannelProvider", "p", "=", "instance", ".", "get", "(", ")", ";", "if", "(", "p", "!=", "null", ")", "return", "p", ".", "sslSupport", ".", "getJSSEProvider", "(", ")", ";", "thro...
Access the JSSE provider factory service. @return JSSEProviderService - null if not set
[ "Access", "the", "JSSE", "provider", "factory", "service", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelProvider.java#L358-L364
70,262
OpenLiberty/open-liberty
dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelProvider.java
SSLChannelProvider.getJSSEHelper
public static JSSEHelper getJSSEHelper() { SSLChannelProvider p = instance.get(); if (p != null) return p.sslSupport.getJSSEHelper(); throw new IllegalStateException("Requested service is null: no active component instance"); }
java
public static JSSEHelper getJSSEHelper() { SSLChannelProvider p = instance.get(); if (p != null) return p.sslSupport.getJSSEHelper(); throw new IllegalStateException("Requested service is null: no active component instance"); }
[ "public", "static", "JSSEHelper", "getJSSEHelper", "(", ")", "{", "SSLChannelProvider", "p", "=", "instance", ".", "get", "(", ")", ";", "if", "(", "p", "!=", "null", ")", "return", "p", ".", "sslSupport", ".", "getJSSEHelper", "(", ")", ";", "throw", ...
Access the JSSEHelper service. @return JSSEHelperService - null if not set
[ "Access", "the", "JSSEHelper", "service", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLChannelProvider.java#L371-L377
70,263
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/FormatSet.java
FormatSet.getBasicDateFormatter
public static DateFormat getBasicDateFormatter() { // PK42263 - made static // Retrieve a standard Java DateFormat object with desired format, using default locale return customizeDateFormat(DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM), false); }
java
public static DateFormat getBasicDateFormatter() { // PK42263 - made static // Retrieve a standard Java DateFormat object with desired format, using default locale return customizeDateFormat(DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM), false); }
[ "public", "static", "DateFormat", "getBasicDateFormatter", "(", ")", "{", "// PK42263 - made static", "// Retrieve a standard Java DateFormat object with desired format, using default locale", "return", "customizeDateFormat", "(", "DateFormat", ".", "getDateTimeInstance", "(", "DateF...
Return a DateFormat object that can be used to format timestamps in the System.out, System.err and TraceOutput logs. It will use the default date format.
[ "Return", "a", "DateFormat", "object", "that", "can", "be", "used", "to", "format", "timestamps", "in", "the", "System", ".", "out", "System", ".", "err", "and", "TraceOutput", "logs", ".", "It", "will", "use", "the", "default", "date", "format", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/FormatSet.java#L112-L115
70,264
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/FormatSet.java
FormatSet.customizeDateFormat
public static DateFormat customizeDateFormat(DateFormat formatter, boolean isoDateFormat) { String pattern; int patternLength; int endOfSecsIndex; if (!!!isoDateFormat) { if (formatter instanceof SimpleDateFormat) { // Retrieve the pattern from the formatter,...
java
public static DateFormat customizeDateFormat(DateFormat formatter, boolean isoDateFormat) { String pattern; int patternLength; int endOfSecsIndex; if (!!!isoDateFormat) { if (formatter instanceof SimpleDateFormat) { // Retrieve the pattern from the formatter,...
[ "public", "static", "DateFormat", "customizeDateFormat", "(", "DateFormat", "formatter", ",", "boolean", "isoDateFormat", ")", "{", "String", "pattern", ";", "int", "patternLength", ";", "int", "endOfSecsIndex", ";", "if", "(", "!", "!", "!", "isoDateFormat", ")...
Modifies an existing DateFormat object so that it can be used to format timestamps in the System.out, System.err and TraceOutput logs using either default date and time format or ISO-8601 date and time format @param formatter DateFormat object to be modified @param flag to use ISO-8601 date format for output. @return...
[ "Modifies", "an", "existing", "DateFormat", "object", "so", "that", "it", "can", "be", "used", "to", "format", "timestamps", "in", "the", "System", ".", "out", "System", ".", "err", "and", "TraceOutput", "logs", "using", "either", "default", "date", "and", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/FormatSet.java#L127-L164
70,265
OpenLiberty/open-liberty
dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityConfiguration.java
SecurityConfiguration.setAndValidateProperties
private void setAndValidateProperties(String cfgAuthentication, String cfgAuthorization, String cfgUserRegistry) { if ((cfgAuthentication == null) || cfgAuthentication.isEmpty()) { throwIllegalArgumentExceptionMissin...
java
private void setAndValidateProperties(String cfgAuthentication, String cfgAuthorization, String cfgUserRegistry) { if ((cfgAuthentication == null) || cfgAuthentication.isEmpty()) { throwIllegalArgumentExceptionMissin...
[ "private", "void", "setAndValidateProperties", "(", "String", "cfgAuthentication", ",", "String", "cfgAuthorization", ",", "String", "cfgUserRegistry", ")", "{", "if", "(", "(", "cfgAuthentication", "==", "null", ")", "||", "cfgAuthentication", ".", "isEmpty", "(", ...
Sets and validates the configuration properties. If any of the configuration properties are not set, an IllegalArgumentException is thrown. @param cfgAuthentication @param cfgAuthorization @param cfgUserRegistry @throws IllegalArgumentException if any of the configuration elements are not set
[ "Sets", "and", "validates", "the", "configuration", "properties", ".", "If", "any", "of", "the", "configuration", "properties", "are", "not", "set", "an", "IllegalArgumentException", "is", "thrown", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityConfiguration.java#L71-L88
70,266
OpenLiberty/open-liberty
dev/com.ibm.ws.management.j2ee.mejb/src/com/ibm/ws/management/j2ee/mejb/service/ManagementEJBService.java
ManagementEJBService.setServerStarted
@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL) protected synchronized void setServerStarted(ServerStarted serverStarted) { isServerStarted = true; // Start SystemModule if everything else is ready startManagementEJB(); }
java
@Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL) protected synchronized void setServerStarted(ServerStarted serverStarted) { isServerStarted = true; // Start SystemModule if everything else is ready startManagementEJB(); }
[ "@", "Reference", "(", "policy", "=", "ReferencePolicy", ".", "DYNAMIC", ",", "cardinality", "=", "ReferenceCardinality", ".", "OPTIONAL", ")", "protected", "synchronized", "void", "setServerStarted", "(", "ServerStarted", "serverStarted", ")", "{", "isServerStarted",...
Declarative services method that is invoked once the ServerStarted service is available. Only after this method is invoked is the Management EJB system module started. @param serverStarted The server started instance
[ "Declarative", "services", "method", "that", "is", "invoked", "once", "the", "ServerStarted", "service", "is", "available", ".", "Only", "after", "this", "method", "is", "invoked", "is", "the", "Management", "EJB", "system", "module", "started", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.management.j2ee.mejb/src/com/ibm/ws/management/j2ee/mejb/service/ManagementEJBService.java#L93-L99
70,267
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/async/ThreadContextManager.java
ThreadContextManager.saveContextData
public HashMap<String,Object> saveContextData(){ HashMap<String,Object> contextData = new HashMap<String, Object>(); //Save off the data from the other components we have hooks into ComponentMetaDataAccessorImpl cmdai = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor(); ...
java
public HashMap<String,Object> saveContextData(){ HashMap<String,Object> contextData = new HashMap<String, Object>(); //Save off the data from the other components we have hooks into ComponentMetaDataAccessorImpl cmdai = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor(); ...
[ "public", "HashMap", "<", "String", ",", "Object", ">", "saveContextData", "(", ")", "{", "HashMap", "<", "String", ",", "Object", ">", "contextData", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "//Save off the data from the othe...
Save off the context data for the current thread
[ "Save", "off", "the", "context", "data", "for", "the", "current", "thread" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/async/ThreadContextManager.java#L59-L89
70,268
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/DefaultSecurityHelper.java
DefaultSecurityHelper.finalizeSubject
@Override public Subject finalizeSubject(Subject subject, ConnectionRequestInfo reqInfo, CMConfigData cmConfigData) throws ResourceException { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingE...
java
@Override public Subject finalizeSubject(Subject subject, ConnectionRequestInfo reqInfo, CMConfigData cmConfigData) throws ResourceException { final boolean isTracingEnabled = TraceComponent.isAnyTracingEnabled(); if (isTracingE...
[ "@", "Override", "public", "Subject", "finalizeSubject", "(", "Subject", "subject", ",", "ConnectionRequestInfo", "reqInfo", ",", "CMConfigData", "cmConfigData", ")", "throws", "ResourceException", "{", "final", "boolean", "isTracingEnabled", "=", "TraceComponent", ".",...
The finalizeSubject method is used to set what the final Subject will be for processing. The primary intent of this method is to allow the Subject to be defaulted. @param Subject subject @param ConnectionRequestInfo reqInfo @param cmConfigData @return Subject @exception ResourceException
[ "The", "finalizeSubject", "method", "is", "used", "to", "set", "what", "the", "final", "Subject", "will", "be", "for", "processing", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/DefaultSecurityHelper.java#L52-L69
70,269
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/LinkedList.java
LinkedList.remove
public Entry remove(Entry removePointer) { if (tc.isEntryEnabled()) SibTr.entry(tc, "remove", new Object[] { removePointer }); Entry removedEntry = null; //check that the entry to be removed is not null and is in this list if(contains(removePointer)) { //call the int...
java
public Entry remove(Entry removePointer) { if (tc.isEntryEnabled()) SibTr.entry(tc, "remove", new Object[] { removePointer }); Entry removedEntry = null; //check that the entry to be removed is not null and is in this list if(contains(removePointer)) { //call the int...
[ "public", "Entry", "remove", "(", "Entry", "removePointer", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"remove\"", ",", "new", "Object", "[", "]", "{", "removePointer", "}", ")", ";", "En...
Synchronized. Remove an Entry from the list. @param removePointer The Entry to be removed @return The Entry which was removed
[ "Synchronized", ".", "Remove", "an", "Entry", "from", "the", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/LinkedList.java#L253-L299
70,270
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/LinkedList.java
LinkedList.getFirst
public Entry getFirst() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getFirst"); if (tc.isEntryEnabled()) SibTr.exit(tc, "getFirst", first); return first; }
java
public Entry getFirst() { if (tc.isEntryEnabled()) SibTr.entry(tc, "getFirst"); if (tc.isEntryEnabled()) SibTr.exit(tc, "getFirst", first); return first; }
[ "public", "Entry", "getFirst", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getFirst\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "exit", "(", ...
Synchronized. Get the first entry in the list. @return the first entry in the list.
[ "Synchronized", ".", "Get", "the", "first", "entry", "in", "the", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/LinkedList.java#L306-L315
70,271
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/LinkedList.java
LinkedList.getLast
public Entry getLast() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getLast"); SibTr.exit(tc, "getLast", last); } return last; }
java
public Entry getLast() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getLast"); SibTr.exit(tc, "getLast", last); } return last; }
[ "public", "Entry", "getLast", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getLast\"", ")", ";", "SibTr", ".", "exit", "(", "tc", ",", "\"getLast\"", ",", "last", ")", ";", "...
Synchronized. Get the last entry in the list. @return the last entry in the list.
[ "Synchronized", ".", "Get", "the", "last", "entry", "in", "the", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/LinkedList.java#L322-L331
70,272
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java
LocalQPConsumerKeyGroup.addMemberToList
private void addMemberToList(JSConsumerKey key, boolean specificList) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "addMemberToList", new Object[] {key, Boolean.valueOf(specificList)}); if(specificList) { if(specificKeyMembers == null) { //...
java
private void addMemberToList(JSConsumerKey key, boolean specificList) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "addMemberToList", new Object[] {key, Boolean.valueOf(specificList)}); if(specificList) { if(specificKeyMembers == null) { //...
[ "private", "void", "addMemberToList", "(", "JSConsumerKey", "key", ",", "boolean", "specificList", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc"...
Add the member to the correct list @param key @param specificList
[ "Add", "the", "member", "to", "the", "correct", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java#L364-L393
70,273
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java
LocalQPConsumerKeyGroup.removeMember
public void removeMember(JSConsumerKey key) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeMember", key); LocalQPConsumerKey anyKey = null; // We lock the CD so other members are not added/removed while // we do this synchronized(consumerDispatche...
java
public void removeMember(JSConsumerKey key) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeMember", key); LocalQPConsumerKey anyKey = null; // We lock the CD so other members are not added/removed while // we do this synchronized(consumerDispatche...
[ "public", "void", "removeMember", "(", "JSConsumerKey", "key", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"removeMember\"", ",", "k...
Remove a member from the group @param key
[ "Remove", "a", "member", "from", "the", "group" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java#L399-L486
70,274
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java
LocalQPConsumerKeyGroup.resolvedKey
public LocalQPConsumerKey resolvedKey() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resolvedKey"); LocalQPConsumerKey key = null; if(generalMemberCount > 0) { // If we only have one this is easy if(singleMember != null) key = singleMe...
java
public LocalQPConsumerKey resolvedKey() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resolvedKey"); LocalQPConsumerKey key = null; if(generalMemberCount > 0) { // If we only have one this is easy if(singleMember != null) key = singleMe...
[ "public", "LocalQPConsumerKey", "resolvedKey", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"resolvedKey\"", ")", ";", "LocalQPCon...
Return one of the groups non-specific members
[ "Return", "one", "of", "the", "groups", "non", "-", "specific", "members" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java#L630-L669
70,275
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java
LocalQPConsumerKeyGroup.setConsumerActive
public void setConsumerActive(boolean active) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setConsumerActive", active); if(active) { consumerThreadID = Thread.currentThread().getId(); } else { consumerThreadID = 0; } consumerThre...
java
public void setConsumerActive(boolean active) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setConsumerActive", active); if(active) { consumerThreadID = Thread.currentThread().getId(); } else { consumerThreadID = 0; } consumerThre...
[ "public", "void", "setConsumerActive", "(", "boolean", "active", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setConsumerActive\"", ",...
We only want to remember the result of a filter match if it is called as a result of a consumer asking for a message. The consumer indicates that it is asking for a message by calling this method with active set to true. After the consumer has got it's message it should call again with active false. This is because th...
[ "We", "only", "want", "to", "remember", "the", "result", "of", "a", "filter", "match", "if", "it", "is", "called", "as", "a", "result", "of", "a", "consumer", "asking", "for", "a", "message", ".", "The", "consumer", "indicates", "that", "it", "is", "as...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java#L827-L843
70,276
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java
LocalQPConsumerKeyGroup.filterMatches
public boolean filterMatches(AbstractItem item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "filterMatches", item); boolean match = false; LocalQPConsumerKey matchingMember = null; // Hopefully we have a general consumer so we don't need to parse the mess...
java
public boolean filterMatches(AbstractItem item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "filterMatches", item); boolean match = false; LocalQPConsumerKey matchingMember = null; // Hopefully we have a general consumer so we don't need to parse the mess...
[ "public", "boolean", "filterMatches", "(", "AbstractItem", "item", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"filterMatches\"", ",",...
All members of a keyGroup share the same getCursor on the itemStream, which uses this method to filter the items. This allows us to see if an item matches ANY of the members of the group.
[ "All", "members", "of", "a", "keyGroup", "share", "the", "same", "getCursor", "on", "the", "itemStream", "which", "uses", "this", "method", "to", "filter", "the", "items", ".", "This", "allows", "us", "to", "see", "if", "an", "item", "matches", "ANY", "o...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java#L850-L915
70,277
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java
LocalQPConsumerKeyGroup.getMatchingMember
public ConsumableKey getMatchingMember(ConsumableKey preferedKey) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMatchingMember"); ConsumableKey key = null; // The last move of the getCursor found a match if(currentMatch) { // There was a gener...
java
public ConsumableKey getMatchingMember(ConsumableKey preferedKey) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMatchingMember"); ConsumableKey key = null; // The last move of the getCursor found a match if(currentMatch) { // There was a gener...
[ "public", "ConsumableKey", "getMatchingMember", "(", "ConsumableKey", "preferedKey", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getMat...
Returns the member which last matched a message @param preferedKey @return
[ "Returns", "the", "member", "which", "last", "matched", "a", "message" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java#L922-L976
70,278
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java
LocalQPConsumerKeyGroup.attachMessage
public void attachMessage(ConsumableKey consumerKey) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "attachMessage", msgAttachedMember); SibTr.exit(tc, "attachMessage", consumerKey); } if(msgAttachedMember == null) msgAttachedMember = consumerKey...
java
public void attachMessage(ConsumableKey consumerKey) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "attachMessage", msgAttachedMember); SibTr.exit(tc, "attachMessage", consumerKey); } if(msgAttachedMember == null) msgAttachedMember = consumerKey...
[ "public", "void", "attachMessage", "(", "ConsumableKey", "consumerKey", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"attachMessag...
Record the fact that one of the members has a message attached @param consumerKey
[ "Record", "the", "fact", "that", "one", "of", "the", "members", "has", "a", "message", "attached" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java#L982-L1003
70,279
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java
LocalQPConsumerKeyGroup.hasNonSpecificConsumers
public boolean hasNonSpecificConsumers() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "hasNonSpecificConsumers"); boolean value; if (generalMemberCount > 0) value = true; else value = false; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEna...
java
public boolean hasNonSpecificConsumers() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "hasNonSpecificConsumers"); boolean value; if (generalMemberCount > 0) value = true; else value = false; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEna...
[ "public", "boolean", "hasNonSpecificConsumers", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"hasNonSpecificConsumers\"", ")", ";", ...
Only called when consumer is ready and when already holding the ConsumerDispatchers readyConsumerPointLock @return
[ "Only", "called", "when", "consumer", "is", "ready", "and", "when", "already", "holding", "the", "ConsumerDispatchers", "readyConsumerPointLock" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKeyGroup.java#L1199-L1209
70,280
OpenLiberty/open-liberty
dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/CloudantDatabaseService.java
CloudantDatabaseService.createResource
@Override public Object createResource(ResourceInfo info) throws Exception { ComponentMetaData cData = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData(); if (cData != null) applications.add(cData.getJ2EEName().getApplication()); return cloudantS...
java
@Override public Object createResource(ResourceInfo info) throws Exception { ComponentMetaData cData = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData(); if (cData != null) applications.add(cData.getJ2EEName().getApplication()); return cloudantS...
[ "@", "Override", "public", "Object", "createResource", "(", "ResourceInfo", "info", ")", "throws", "Exception", "{", "ComponentMetaData", "cData", "=", "ComponentMetaDataAccessorImpl", ".", "getComponentMetaDataAccessor", "(", ")", ".", "getComponentMetaData", "(", ")",...
Invoked when a cloudant Database is injected or looked up. @param info resource ref info, or null if direct lookup. @return instance of com.cloudant.client.api.Database
[ "Invoked", "when", "a", "cloudant", "Database", "is", "injected", "or", "looked", "up", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/CloudantDatabaseService.java#L64-L75
70,281
OpenLiberty/open-liberty
dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/CloudantDatabaseService.java
CloudantDatabaseService.getCloudantClient
public Object getCloudantClient(ResourceInfo info) throws Exception { return cloudantSvc.getCloudantClient( info == null ? ResourceInfo.AUTH_APPLICATION : info.getAuth(), info == null ? null : info.getLoginPropertyList());...
java
public Object getCloudantClient(ResourceInfo info) throws Exception { return cloudantSvc.getCloudantClient( info == null ? ResourceInfo.AUTH_APPLICATION : info.getAuth(), info == null ? null : info.getLoginPropertyList());...
[ "public", "Object", "getCloudantClient", "(", "ResourceInfo", "info", ")", "throws", "Exception", "{", "return", "cloudantSvc", ".", "getCloudantClient", "(", "info", "==", "null", "?", "ResourceInfo", ".", "AUTH_APPLICATION", ":", "info", ".", "getAuth", "(", "...
Returns the underlying cloudantClient object for this database and the provided resource config @param info The ResourceConfig used with the associated cloudantDatabase lookup @return the cloudantClient object, or null @throws Exception
[ "Returns", "the", "underlying", "cloudantClient", "object", "for", "this", "database", "and", "the", "provided", "resource", "config" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cloudant/src/com/ibm/ws/cloudant/CloudantDatabaseService.java#L108-L112
70,282
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java
DefaultFacelet.getRelativePath
private URL getRelativePath(FacesContext facesContext, String path) throws IOException { URL url = (URL) _relativePaths.get(path); if (url == null) { url = _factory.resolveURL(facesContext, _src, path); if (url != null) { ViewResource viewR...
java
private URL getRelativePath(FacesContext facesContext, String path) throws IOException { URL url = (URL) _relativePaths.get(path); if (url == null) { url = _factory.resolveURL(facesContext, _src, path); if (url != null) { ViewResource viewR...
[ "private", "URL", "getRelativePath", "(", "FacesContext", "facesContext", ",", "String", "path", ")", "throws", "IOException", "{", "URL", "url", "=", "(", "URL", ")", "_relativePaths", ".", "get", "(", "path", ")", ";", "if", "(", "url", "==", "null", "...
Delegates resolution to DefaultFaceletFactory reference. Also, caches URLs for relative paths. @param path a relative url path @return URL pointing to destination @throws IOException if there is a problem creating the URL for the path specified
[ "Delegates", "resolution", "to", "DefaultFaceletFactory", "reference", ".", "Also", "caches", "URLs", "for", "relative", "paths", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java#L470-L492
70,283
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java
DefaultFacelet.include
private void include(AbstractFaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { ctx.pushPageContext(new PageContextImpl()); try { this.refresh(parent); DefaultFaceletContext ctxWrapper = new DefaultF...
java
private void include(AbstractFaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { ctx.pushPageContext(new PageContextImpl()); try { this.refresh(parent); DefaultFaceletContext ctxWrapper = new DefaultF...
[ "private", "void", "include", "(", "AbstractFaceletContext", "ctx", ",", "UIComponent", "parent", ")", "throws", "IOException", ",", "FacesException", ",", "FaceletException", ",", "ELException", "{", "ctx", ".", "pushPageContext", "(", "new", "PageContextImpl", "("...
Given the passed FaceletContext, apply our child FaceletHandlers to the passed parent @see FaceletHandler#apply(FaceletContext, UIComponent) @param ctx the FaceletContext to use for applying our FaceletHandlers @param parent the parent component to apply changes to @throws IOException @throws FacesException @throws Fa...
[ "Given", "the", "passed", "FaceletContext", "apply", "our", "child", "FaceletHandlers", "to", "the", "passed", "parent" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java#L517-L534
70,284
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java
DefaultFacelet.include
public void include(AbstractFaceletContext ctx, UIComponent parent, URL url) throws IOException, FacesException, FaceletException, ELException { DefaultFacelet f = (DefaultFacelet) _factory.getFacelet(ctx, url); f.include(ctx, parent); }
java
public void include(AbstractFaceletContext ctx, UIComponent parent, URL url) throws IOException, FacesException, FaceletException, ELException { DefaultFacelet f = (DefaultFacelet) _factory.getFacelet(ctx, url); f.include(ctx, parent); }
[ "public", "void", "include", "(", "AbstractFaceletContext", "ctx", ",", "UIComponent", "parent", ",", "URL", "url", ")", "throws", "IOException", ",", "FacesException", ",", "FaceletException", ",", "ELException", "{", "DefaultFacelet", "f", "=", "(", "DefaultFace...
Grabs a DefaultFacelet from referenced DefaultFaceletFacotry @see DefaultFaceletFactory#getFacelet(URL) @param ctx FaceletContext to pass to the included Facelet @param parent UIComponent to apply changes to @param url URL source to include Facelet from @throws IOException @throws FacesException @throws FaceletExcepti...
[ "Grabs", "a", "DefaultFacelet", "from", "referenced", "DefaultFaceletFacotry" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java#L576-L581
70,285
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/ReferenceContextImpl.java
ReferenceContextImpl.process
@Override public synchronized void process() throws InjectionException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "process: " + this); // -------------------------------------------------------------------...
java
@Override public synchronized void process() throws InjectionException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "process: " + this); // -------------------------------------------------------------------...
[ "@", "Override", "public", "synchronized", "void", "process", "(", ")", "throws", "InjectionException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabl...
F743-17630CodRv
[ "F743", "-", "17630CodRv" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/ReferenceContextImpl.java#L257-L312
70,286
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/ReferenceContextImpl.java
ReferenceContextImpl.createPersistenceMaps
private void createPersistenceMaps(ComponentNameSpaceConfiguration masterCompNSConfig, List<ComponentNameSpaceConfiguration> compNSConfigs) { Map<Class<?>, Collection<String>> classesToComponents = new HashMap<Class<?>, Collection<String>>(); Map<String, Collection...
java
private void createPersistenceMaps(ComponentNameSpaceConfiguration masterCompNSConfig, List<ComponentNameSpaceConfiguration> compNSConfigs) { Map<Class<?>, Collection<String>> classesToComponents = new HashMap<Class<?>, Collection<String>>(); Map<String, Collection...
[ "private", "void", "createPersistenceMaps", "(", "ComponentNameSpaceConfiguration", "masterCompNSConfig", ",", "List", "<", "ComponentNameSpaceConfiguration", ">", "compNSConfigs", ")", "{", "Map", "<", "Class", "<", "?", ">", ",", "Collection", "<", "String", ">", ...
F743-30682
[ "F743", "-", "30682" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/ReferenceContextImpl.java#L637-L675
70,287
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/ReferenceContextImpl.java
ReferenceContextImpl.dumpJavaColonCompEnvMap
private String dumpJavaColonCompEnvMap() { StringBuffer buffer = new StringBuffer(""); buffer.append("EJBContext.lookup data structure contents:\n"); buffer.append(" Contains **" + ivJavaColonCompEnvMap.size() + "** bindings.\n"); if (!ivJavaColonCompEnvMap.isEmpty()) { Set...
java
private String dumpJavaColonCompEnvMap() { StringBuffer buffer = new StringBuffer(""); buffer.append("EJBContext.lookup data structure contents:\n"); buffer.append(" Contains **" + ivJavaColonCompEnvMap.size() + "** bindings.\n"); if (!ivJavaColonCompEnvMap.isEmpty()) { Set...
[ "private", "String", "dumpJavaColonCompEnvMap", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "\"\"", ")", ";", "buffer", ".", "append", "(", "\"EJBContext.lookup data structure contents:\\n\"", ")", ";", "buffer", ".", "append", "(", "...
Provides nice looking trace output for the EJBContext.lookup data structure.
[ "Provides", "nice", "looking", "trace", "output", "for", "the", "EJBContext", ".", "lookup", "data", "structure", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/ReferenceContextImpl.java#L691-L709
70,288
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/ReferenceContextImpl.java
ReferenceContextImpl.isProcessDynamicNeeded
@Override public boolean isProcessDynamicNeeded(List<Class<?>> injectionClasses) { for (Class<?> klass : injectionClasses) { if (!ivProcessedInjectionClasses.contains(klass)) { return true; } } return false; }
java
@Override public boolean isProcessDynamicNeeded(List<Class<?>> injectionClasses) { for (Class<?> klass : injectionClasses) { if (!ivProcessedInjectionClasses.contains(klass)) { return true; } } return false; }
[ "@", "Override", "public", "boolean", "isProcessDynamicNeeded", "(", "List", "<", "Class", "<", "?", ">", ">", "injectionClasses", ")", "{", "for", "(", "Class", "<", "?", ">", "klass", ":", "injectionClasses", ")", "{", "if", "(", "!", "ivProcessedInjecti...
Returns true if dynamic processing is needed for any of the classes.
[ "Returns", "true", "if", "dynamic", "processing", "is", "needed", "for", "any", "of", "the", "classes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/ReferenceContextImpl.java#L989-L998
70,289
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/KernelFeatureDefinitionImpl.java
KernelFeatureDefinitionImpl.getKernelFeatures
public static List<ProvisioningFeatureDefinition> getKernelFeatures(BundleContext ctx, WsLocationAdmin locationService) { List<ProvisioningFeatureDefinition> result = kernelDefs; if (result == null) { result = kernelDefs = getKernelFeatures(ctx, locationService, false); } ret...
java
public static List<ProvisioningFeatureDefinition> getKernelFeatures(BundleContext ctx, WsLocationAdmin locationService) { List<ProvisioningFeatureDefinition> result = kernelDefs; if (result == null) { result = kernelDefs = getKernelFeatures(ctx, locationService, false); } ret...
[ "public", "static", "List", "<", "ProvisioningFeatureDefinition", ">", "getKernelFeatures", "(", "BundleContext", "ctx", ",", "WsLocationAdmin", "locationService", ")", "{", "List", "<", "ProvisioningFeatureDefinition", ">", "result", "=", "kernelDefs", ";", "if", "("...
Get the kernel feature definitions in use by the runtime. Note: the kernel feature does not live in a standard repository location. It will never be found while iterating over a collection of resources. @param ctx @param locationService @return
[ "Get", "the", "kernel", "feature", "definitions", "in", "use", "by", "the", "runtime", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/KernelFeatureDefinitionImpl.java#L61-L67
70,290
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi_fat/fat/src/com/ibm/ws/microprofile/openapi/fat/utils/OpenAPIConnection.java
OpenAPIConnection.download
public String download() { try { HttpURLConnection conn = getConnection(); return readConnection(conn); } catch (Exception e) { Assert.fail(e.getMessage()); } return null; }
java
public String download() { try { HttpURLConnection conn = getConnection(); return readConnection(conn); } catch (Exception e) { Assert.fail(e.getMessage()); } return null; }
[ "public", "String", "download", "(", ")", "{", "try", "{", "HttpURLConnection", "conn", "=", "getConnection", "(", ")", ";", "return", "readConnection", "(", "conn", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "Assert", ".", "fail", "(", "...
Downloads contents of URL and converts them to a string @return string containing contents of a url
[ "Downloads", "contents", "of", "URL", "and", "converts", "them", "to", "a", "string" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi_fat/fat/src/com/ibm/ws/microprofile/openapi/fat/utils/OpenAPIConnection.java#L97-L107
70,291
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi_fat/fat/src/com/ibm/ws/microprofile/openapi/fat/utils/OpenAPIConnection.java
OpenAPIConnection.downloadModel
public OpenAPI downloadModel() throws Exception { String download = download(); if (download != null) { try { SwaggerParseResult parseResult = new OpenAPIParser().readContents(download, null, null, null); if (parseResult != null) { return p...
java
public OpenAPI downloadModel() throws Exception { String download = download(); if (download != null) { try { SwaggerParseResult parseResult = new OpenAPIParser().readContents(download, null, null, null); if (parseResult != null) { return p...
[ "public", "OpenAPI", "downloadModel", "(", ")", "throws", "Exception", "{", "String", "download", "=", "download", "(", ")", ";", "if", "(", "download", "!=", "null", ")", "{", "try", "{", "SwaggerParseResult", "parseResult", "=", "new", "OpenAPIParser", "("...
Downloads contents of URL and converts them to an OpenAPI model @return an OpenAPI model
[ "Downloads", "contents", "of", "URL", "and", "converts", "them", "to", "an", "OpenAPI", "model" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi_fat/fat/src/com/ibm/ws/microprofile/openapi/fat/utils/OpenAPIConnection.java#L114-L128
70,292
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi_fat/fat/src/com/ibm/ws/microprofile/openapi/fat/utils/OpenAPIConnection.java
OpenAPIConnection.openAPIDocsConnection
public static OpenAPIConnection openAPIDocsConnection(LibertyServer server, boolean secure) { return new OpenAPIConnection(server, OPEN_API_DOCS).secure(secure); }
java
public static OpenAPIConnection openAPIDocsConnection(LibertyServer server, boolean secure) { return new OpenAPIConnection(server, OPEN_API_DOCS).secure(secure); }
[ "public", "static", "OpenAPIConnection", "openAPIDocsConnection", "(", "LibertyServer", "server", ",", "boolean", "secure", ")", "{", "return", "new", "OpenAPIConnection", "(", "server", ",", "OPEN_API_DOCS", ")", ".", "secure", "(", "secure", ")", ";", "}" ]
creates default connection for OpenAPI docs endpoint @param server - server to connect to @param secure - if true connection uses HTTPS @return
[ "creates", "default", "connection", "for", "OpenAPI", "docs", "endpoint" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi_fat/fat/src/com/ibm/ws/microprofile/openapi/fat/utils/OpenAPIConnection.java#L270-L272
70,293
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.openapi_fat/fat/src/com/ibm/ws/microprofile/openapi/fat/utils/OpenAPIConnection.java
OpenAPIConnection.openAPIUIConnection
public static OpenAPIConnection openAPIUIConnection(LibertyServer server, boolean secure) { return new OpenAPIConnection(server, OPEN_API_UI).secure(secure); }
java
public static OpenAPIConnection openAPIUIConnection(LibertyServer server, boolean secure) { return new OpenAPIConnection(server, OPEN_API_UI).secure(secure); }
[ "public", "static", "OpenAPIConnection", "openAPIUIConnection", "(", "LibertyServer", "server", ",", "boolean", "secure", ")", "{", "return", "new", "OpenAPIConnection", "(", "server", ",", "OPEN_API_UI", ")", ".", "secure", "(", "secure", ")", ";", "}" ]
creates default connection for OpenAPI UI endpoint @param server - server to connect to @param secure - if true connection uses HTTPS @return
[ "creates", "default", "connection", "for", "OpenAPI", "UI", "endpoint" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi_fat/fat/src/com/ibm/ws/microprofile/openapi/fat/utils/OpenAPIConnection.java#L281-L283
70,294
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheEntry.java
CacheEntry.processDrsInbound
public void processDrsInbound(long localClock) { // Is dsrClock timestamp from the remote machine missing // or was the CE's timestampls already altered? if (drsClock <= 0) { return; } // Adjust timestamps for this machines clock. long clockDifference = localC...
java
public void processDrsInbound(long localClock) { // Is dsrClock timestamp from the remote machine missing // or was the CE's timestampls already altered? if (drsClock <= 0) { return; } // Adjust timestamps for this machines clock. long clockDifference = localC...
[ "public", "void", "processDrsInbound", "(", "long", "localClock", ")", "{", "// Is dsrClock timestamp from the remote machine missing", "// or was the CE's timestampls already altered?", "if", "(", "drsClock", "<=", "0", ")", "{", "return", ";", "}", "// Adjust timestamps for...
Handle needed processing after receiving a CE from a remote mahine via DRS. (1) Adjust the timestamps on an incomming CE to try and account for clock delta between machines.
[ "Handle", "needed", "processing", "after", "receiving", "a", "CE", "from", "a", "remote", "mahine", "via", "DRS", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheEntry.java#L407-L421
70,295
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheEntry.java
CacheEntry.getValue
@Override public synchronized Object getValue() { if (id != null) { if (serializedValue != null) { long oldSize = -1; if (cacheEntryPool != null) { if (cacheEntryPool.cache.isCacheSizeInMBEnabled()) { oldSize = getObject...
java
@Override public synchronized Object getValue() { if (id != null) { if (serializedValue != null) { long oldSize = -1; if (cacheEntryPool != null) { if (cacheEntryPool.cache.isCacheSizeInMBEnabled()) { oldSize = getObject...
[ "@", "Override", "public", "synchronized", "Object", "getValue", "(", ")", "{", "if", "(", "id", "!=", "null", ")", "{", "if", "(", "serializedValue", "!=", "null", ")", "{", "long", "oldSize", "=", "-", "1", ";", "if", "(", "cacheEntryPool", "!=", "...
Get's the entry's value
[ "Get", "s", "the", "entry", "s", "value" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheEntry.java#L683-L715
70,296
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheEntry.java
CacheEntry.setValue
protected void setValue(Object value) { this.value = value; serializedValue = null; timeStamp = System.currentTimeMillis(); this.valueHashcode = 0; }
java
protected void setValue(Object value) { this.value = value; serializedValue = null; timeStamp = System.currentTimeMillis(); this.valueHashcode = 0; }
[ "protected", "void", "setValue", "(", "Object", "value", ")", "{", "this", ".", "value", "=", "value", ";", "serializedValue", "=", "null", ";", "timeStamp", "=", "System", ".", "currentTimeMillis", "(", ")", ";", "this", ".", "valueHashcode", "=", "0", ...
Set's the entry's value
[ "Set", "s", "the", "entry", "s", "value" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheEntry.java#L727-L732
70,297
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheEntry.java
CacheEntry.reset
public void reset() { if (refCount.get() > 0 && isRefCountingEnabled()) { Tr.warning(tc, "reset called on " + id + " with a refCount of " + refCount); Thread.dumpStack(); } cacheName = null; drsClock = -1; timeStamp = -1; serializedId = null; ...
java
public void reset() { if (refCount.get() > 0 && isRefCountingEnabled()) { Tr.warning(tc, "reset called on " + id + " with a refCount of " + refCount); Thread.dumpStack(); } cacheName = null; drsClock = -1; timeStamp = -1; serializedId = null; ...
[ "public", "void", "reset", "(", ")", "{", "if", "(", "refCount", ".", "get", "(", ")", ">", "0", "&&", "isRefCountingEnabled", "(", ")", ")", "{", "Tr", ".", "warning", "(", "tc", ",", "\"reset called on \"", "+", "id", "+", "\" with a refCount of \"", ...
This brings this CacheEntry back to the same state it had when it was first created. It does not change its lruArray index. It is called by the Cache when one of the preallocated CacheEntry instances is about to be reused for another logical entry.
[ "This", "brings", "this", "CacheEntry", "back", "to", "the", "same", "state", "it", "had", "when", "it", "was", "first", "created", ".", "It", "does", "not", "change", "its", "lruArray", "index", ".", "It", "is", "called", "by", "the", "Cache", "when", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheEntry.java#L790-L838
70,298
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheEntry.java
CacheEntry.copy
public void copy(CacheEntry cacheEntry) { if (cacheEntry == this) return; if (useByteBuffer && this.value != null) { if (this.value instanceof DistributedNioMapObject) { ((DistributedNioMapObject) this.value).release(); } } this.valu...
java
public void copy(CacheEntry cacheEntry) { if (cacheEntry == this) return; if (useByteBuffer && this.value != null) { if (this.value instanceof DistributedNioMapObject) { ((DistributedNioMapObject) this.value).release(); } } this.valu...
[ "public", "void", "copy", "(", "CacheEntry", "cacheEntry", ")", "{", "if", "(", "cacheEntry", "==", "this", ")", "return", ";", "if", "(", "useByteBuffer", "&&", "this", ".", "value", "!=", "null", ")", "{", "if", "(", "this", ".", "value", "instanceof...
This method copies the state of another CacheEntry into this CacheEntry. It is called by the Cache when a CacheEntry is imported from another JVM. @param cacheEntry The CacheEntry that this CacheEntry is copied into.
[ "This", "method", "copies", "the", "state", "of", "another", "CacheEntry", "into", "this", "CacheEntry", ".", "It", "is", "called", "by", "the", "Cache", "when", "a", "CacheEntry", "is", "imported", "from", "another", "JVM", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheEntry.java#L847-L895
70,299
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheEntry.java
CacheEntry.getUserMetaData
@Override public Object getUserMetaData() { if (serializedUserMetaData != null) { try { userMetaData = SerializationUtility.deserialize(serializedUserMetaData, cacheName); } catch (Exception ex) { com.ibm.ws.ffdc.FFDCFilter.processException(ex, "com.ib...
java
@Override public Object getUserMetaData() { if (serializedUserMetaData != null) { try { userMetaData = SerializationUtility.deserialize(serializedUserMetaData, cacheName); } catch (Exception ex) { com.ibm.ws.ffdc.FFDCFilter.processException(ex, "com.ib...
[ "@", "Override", "public", "Object", "getUserMetaData", "(", ")", "{", "if", "(", "serializedUserMetaData", "!=", "null", ")", "{", "try", "{", "userMetaData", "=", "SerializationUtility", ".", "deserialize", "(", "serializedUserMetaData", ",", "cacheName", ")", ...
Get's the userMetaData
[ "Get", "s", "the", "userMetaData" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheEntry.java#L1156-L1167