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
67,800
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/NodeStack.java
NodeStack.innerProcessSubTree
private void innerProcessSubTree( GBSNode p, int initialState, int topIndex) { boolean done = false; _topIndex = topIndex; _endp = p; _endIndex = _idx; GBSNode q; /* Used for tree walking */ int s = initialState; while...
java
private void innerProcessSubTree( GBSNode p, int initialState, int topIndex) { boolean done = false; _topIndex = topIndex; _endp = p; _endIndex = _idx; GBSNode q; /* Used for tree walking */ int s = initialState; while...
[ "private", "void", "innerProcessSubTree", "(", "GBSNode", "p", ",", "int", "initialState", ",", "int", "topIndex", ")", "{", "boolean", "done", "=", "false", ";", "_topIndex", "=", "topIndex", ";", "_endp", "=", "p", ";", "_endIndex", "=", "_idx", ";", "...
Walk through an entire sub-tree, invoking processNode on each node. <p>Walk through a sub-tree, invoking processNode on each node. processNode is an abstract megthod that is implemented by subclasses.</p> @param p The node at which to start. @param initialState The initial state of the walk, which is one of VISIT_LEF...
[ "Walk", "through", "an", "entire", "sub", "-", "tree", "invoking", "processNode", "on", "each", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/NodeStack.java#L309-L367
67,801
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/NodeStack.java
NodeStack.stateName
public String stateName( int state) { String name = "Unknown state = " + state; switch(state) { case NodeStack.VISIT_LEFT: name = "VISIT_LEFT"; break; case NodeStack.PROCESS_CURRENT: name = "PROCESS_CURRENT"; break; case NodeStack.VISIT_RIGHT: ...
java
public String stateName( int state) { String name = "Unknown state = " + state; switch(state) { case NodeStack.VISIT_LEFT: name = "VISIT_LEFT"; break; case NodeStack.PROCESS_CURRENT: name = "PROCESS_CURRENT"; break; case NodeStack.VISIT_RIGHT: ...
[ "public", "String", "stateName", "(", "int", "state", ")", "{", "String", "name", "=", "\"Unknown state = \"", "+", "state", ";", "switch", "(", "state", ")", "{", "case", "NodeStack", ".", "VISIT_LEFT", ":", "name", "=", "\"VISIT_LEFT\"", ";", "break", ";...
Return the name of a node state
[ "Return", "the", "name", "of", "a", "node", "state" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/NodeStack.java#L390-L410
67,802
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/ExceptionUtil.java
ExceptionUtil.logException
public final static void logException(TraceComponent compTc, Throwable t, EJBMethodMetaData m, BeanO bean) { //d408351 - only log recursive exceptions if they have not been logged before if (hasBeenLogged(t)) { return; } BeanId beanId = null; if (bean != null) { ...
java
public final static void logException(TraceComponent compTc, Throwable t, EJBMethodMetaData m, BeanO bean) { //d408351 - only log recursive exceptions if they have not been logged before if (hasBeenLogged(t)) { return; } BeanId beanId = null; if (bean != null) { ...
[ "public", "final", "static", "void", "logException", "(", "TraceComponent", "compTc", ",", "Throwable", "t", ",", "EJBMethodMetaData", "m", ",", "BeanO", "bean", ")", "{", "//d408351 - only log recursive exceptions if they have not been logged before", "if", "(", "hasBeen...
d408351 - added new signature with customizable TraceComponent
[ "d408351", "-", "added", "new", "signature", "with", "customizable", "TraceComponent" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/ExceptionUtil.java#L82-L109
67,803
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/ExceptionUtil.java
ExceptionUtil.findRootCause
static public Throwable findRootCause(Throwable throwable) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "findRootCause: " + throwable); } Throwable root = throwable; Throwable next = root; while (next != null) { root ...
java
static public Throwable findRootCause(Throwable throwable) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "findRootCause: " + throwable); } Throwable root = throwable; Throwable next = root; while (next != null) { root ...
[ "static", "public", "Throwable", "findRootCause", "(", "Throwable", "throwable", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "tc", ",", "\"find...
Finds the root cause of a Throwable that occured. This routine will continue to look through chained Throwables until it cannot find another chained Throwable and return the last one in the chain as the root cause. @param throwable must be a non-null reference of a Throwable object to be processed.
[ "Finds", "the", "root", "cause", "of", "a", "Throwable", "that", "occured", ".", "This", "routine", "will", "continue", "to", "look", "through", "chained", "Throwables", "until", "it", "cannot", "find", "another", "chained", "Throwable", "and", "return", "the"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/ExceptionUtil.java#L127-L186
67,804
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/ExceptionUtil.java
ExceptionUtil.Exception
public static Exception Exception(Throwable cause) { return (cause instanceof Exception) ? (Exception) cause : new Exception("See nested Throwable", cause); }
java
public static Exception Exception(Throwable cause) { return (cause instanceof Exception) ? (Exception) cause : new Exception("See nested Throwable", cause); }
[ "public", "static", "Exception", "Exception", "(", "Throwable", "cause", ")", "{", "return", "(", "cause", "instanceof", "Exception", ")", "?", "(", "Exception", ")", "cause", ":", "new", "Exception", "(", "\"See nested Throwable\"", ",", "cause", ")", ";", ...
F71894.1
[ "F71894", ".", "1" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/ExceptionUtil.java#L266-L268
67,805
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/ClientBehaviorHandler.java
ClientBehaviorHandler.createAttachedObjectTarget
protected ClientBehaviorAttachedObjectTargetImpl createAttachedObjectTarget(FaceletContext ctx) { ClientBehaviorAttachedObjectTargetImpl target = new ClientBehaviorAttachedObjectTargetImpl(); if (_event != null) { target.setEvent(_event.getValueExpression(ctx, String.cla...
java
protected ClientBehaviorAttachedObjectTargetImpl createAttachedObjectTarget(FaceletContext ctx) { ClientBehaviorAttachedObjectTargetImpl target = new ClientBehaviorAttachedObjectTargetImpl(); if (_event != null) { target.setEvent(_event.getValueExpression(ctx, String.cla...
[ "protected", "ClientBehaviorAttachedObjectTargetImpl", "createAttachedObjectTarget", "(", "FaceletContext", "ctx", ")", "{", "ClientBehaviorAttachedObjectTargetImpl", "target", "=", "new", "ClientBehaviorAttachedObjectTargetImpl", "(", ")", ";", "if", "(", "_event", "!=", "nu...
Create a new AttachedObjectTarget instance to be added on the target list. @return
[ "Create", "a", "new", "AttachedObjectTarget", "instance", "to", "be", "added", "on", "the", "target", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/ClientBehaviorHandler.java#L195-L216
67,806
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointMgrImpl.java
EndPointMgrImpl.registerEndpointMBean
private void registerEndpointMBean(String name, EndPointInfoImpl ep) { endpointMBeans.put(name, registerMBeanAsService(name, ep)); }
java
private void registerEndpointMBean(String name, EndPointInfoImpl ep) { endpointMBeans.put(name, registerMBeanAsService(name, ep)); }
[ "private", "void", "registerEndpointMBean", "(", "String", "name", ",", "EndPointInfoImpl", "ep", ")", "{", "endpointMBeans", ".", "put", "(", "name", ",", "registerMBeanAsService", "(", "name", ",", "ep", ")", ")", ";", "}" ]
Register an endpoint MBean and publish it. @param endpoint
[ "Register", "an", "endpoint", "MBean", "and", "publish", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointMgrImpl.java#L134-L136
67,807
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointMgrImpl.java
EndPointMgrImpl.updateEndpointMBean
private EndPointInfoImpl updateEndpointMBean(String name, String host, int port) { EndPointInfoImpl existingEP = endpoints.get(name); existingEP.updateHost(host); existingEP.updatePort(port); return existingEP; }
java
private EndPointInfoImpl updateEndpointMBean(String name, String host, int port) { EndPointInfoImpl existingEP = endpoints.get(name); existingEP.updateHost(host); existingEP.updatePort(port); return existingEP; }
[ "private", "EndPointInfoImpl", "updateEndpointMBean", "(", "String", "name", ",", "String", "host", ",", "int", "port", ")", "{", "EndPointInfoImpl", "existingEP", "=", "endpoints", ".", "get", "(", "name", ")", ";", "existingEP", ".", "updateHost", "(", "host...
Update an existing endpoint MBean, which will emit change notifications. @param name The name of the EndPoint which was updated @param host The current host value (may or may not have changed) @param port The current port value (may or may not have changed)
[ "Update", "an", "existing", "endpoint", "MBean", "which", "will", "emit", "change", "notifications", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointMgrImpl.java#L145-L150
67,808
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointMgrImpl.java
EndPointMgrImpl.destroyEndpointMBeans
private void destroyEndpointMBeans() { for (Map.Entry<String, ServiceRegistration<DynamicMBean>> mbean : endpointMBeans.entrySet()) { String mbeanName = mbean.getKey(); endpointMBeans.remove(mbeanName); mbean.getValue().unregister(); } }
java
private void destroyEndpointMBeans() { for (Map.Entry<String, ServiceRegistration<DynamicMBean>> mbean : endpointMBeans.entrySet()) { String mbeanName = mbean.getKey(); endpointMBeans.remove(mbeanName); mbean.getValue().unregister(); } }
[ "private", "void", "destroyEndpointMBeans", "(", ")", "{", "for", "(", "Map", ".", "Entry", "<", "String", ",", "ServiceRegistration", "<", "DynamicMBean", ">", ">", "mbean", ":", "endpointMBeans", ".", "entrySet", "(", ")", ")", "{", "String", "mbeanName", ...
For each registered MBean, unpublish, unregister and remove from the map.
[ "For", "each", "registered", "MBean", "unpublish", "unregister", "and", "remove", "from", "the", "map", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointMgrImpl.java#L155-L161
67,809
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointMgrImpl.java
EndPointMgrImpl.destroyEndpoints
public static void destroyEndpoints() { EndPointMgrImpl _this = (EndPointMgrImpl) getRef(); synchronized (_this.endpoints) { _this.destroyEndpointMBeans(); _this.endpoints.clear(); } }
java
public static void destroyEndpoints() { EndPointMgrImpl _this = (EndPointMgrImpl) getRef(); synchronized (_this.endpoints) { _this.destroyEndpointMBeans(); _this.endpoints.clear(); } }
[ "public", "static", "void", "destroyEndpoints", "(", ")", "{", "EndPointMgrImpl", "_this", "=", "(", "EndPointMgrImpl", ")", "getRef", "(", ")", ";", "synchronized", "(", "_this", ".", "endpoints", ")", "{", "_this", ".", "destroyEndpointMBeans", "(", ")", "...
Destroy all of the defined endpoints.
[ "Destroy", "all", "of", "the", "defined", "endpoints", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointMgrImpl.java#L166-L172
67,810
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointMgrImpl.java
EndPointMgrImpl.unregisterMBeanInService
private void unregisterMBeanInService(String name) { ServiceRegistration<DynamicMBean> existingMBean = endpointMBeans.remove(name); if (existingMBean != null) { existingMBean.unregister(); } }
java
private void unregisterMBeanInService(String name) { ServiceRegistration<DynamicMBean> existingMBean = endpointMBeans.remove(name); if (existingMBean != null) { existingMBean.unregister(); } }
[ "private", "void", "unregisterMBeanInService", "(", "String", "name", ")", "{", "ServiceRegistration", "<", "DynamicMBean", ">", "existingMBean", "=", "endpointMBeans", ".", "remove", "(", "name", ")", ";", "if", "(", "existingMBean", "!=", "null", ")", "{", "...
Remove the MBean from the map of registered MBeans and unregister it. @param name endpoint name of the mbean to be unregistered
[ "Remove", "the", "MBean", "from", "the", "map", "of", "registered", "MBeans", "and", "unregister", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointMgrImpl.java#L214-L219
67,811
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointMgrImpl.java
EndPointMgrImpl.removeEndPoint
@Override public void removeEndPoint(String name) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Deleting endpoint: " + name); } synchronized (this.endpoints) { if (this.endpoints.remove(name) != null) { unregisterM...
java
@Override public void removeEndPoint(String name) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Deleting endpoint: " + name); } synchronized (this.endpoints) { if (this.endpoints.remove(name) != null) { unregisterM...
[ "@", "Override", "public", "void", "removeEndPoint", "(", "String", "name", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"Deletin...
Delete the endpoint that matches the provided name. @param name
[ "Delete", "the", "endpoint", "that", "matches", "the", "provided", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/EndPointMgrImpl.java#L226-L237
67,812
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/TagUtils.java
TagUtils.getTokensArray
private static String[] getTokensArray(String tokenComposite) throws ParseException { if (tokenComposite == null || "".equals(tokenComposite)) { return null; } return parseNameTokens(tokenComposite); }
java
private static String[] getTokensArray(String tokenComposite) throws ParseException { if (tokenComposite == null || "".equals(tokenComposite)) { return null; } return parseNameTokens(tokenComposite); }
[ "private", "static", "String", "[", "]", "getTokensArray", "(", "String", "tokenComposite", ")", "throws", "ParseException", "{", "if", "(", "tokenComposite", "==", "null", "||", "\"\"", ".", "equals", "(", "tokenComposite", ")", ")", "{", "return", "null", ...
Takes a string that is a composite of tokens, extracts tokens delimited by any whitespace character sequence combination and returns a String array of such tokens. @throws ParseException In case of invalid character in the specified composite. The only invalid character is a comma (',').
[ "Takes", "a", "string", "that", "is", "a", "composite", "of", "tokens", "extracts", "tokens", "delimited", "by", "any", "whitespace", "character", "sequence", "combination", "and", "returns", "a", "String", "array", "of", "such", "tokens", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/TagUtils.java#L278-L287
67,813
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/TagUtils.java
TagUtils.parseNameTokens
static public String[] parseNameTokens(String stringValue) { if (stringValue == null) { return null; } ArrayList<String> list = new ArrayList<String>(5); int length = stringValue.length(); boolean inSpace = true; int start = 0; for (int i = 0; i < length; i++) { ...
java
static public String[] parseNameTokens(String stringValue) { if (stringValue == null) { return null; } ArrayList<String> list = new ArrayList<String>(5); int length = stringValue.length(); boolean inSpace = true; int start = 0; for (int i = 0; i < length; i++) { ...
[ "static", "public", "String", "[", "]", "parseNameTokens", "(", "String", "stringValue", ")", "{", "if", "(", "stringValue", "==", "null", ")", "{", "return", "null", ";", "}", "ArrayList", "<", "String", ">", "list", "=", "new", "ArrayList", "<", "Strin...
Parses a whitespace separated series of name tokens. @param stringValue the full string @return an array of each constituent value, or null if there are no tokens (that is, the string is empty or all whitespace)
[ "Parses", "a", "whitespace", "separated", "series", "of", "name", "tokens", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/TagUtils.java#L318-L371
67,814
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/FlowType.java
FlowType.getKey
public static FlowType getKey(int ordinal) { if (ordinal >= 0 && ordinal < _values.length) { return _values[ordinal]; } return null; }
java
public static FlowType getKey(int ordinal) { if (ordinal >= 0 && ordinal < _values.length) { return _values[ordinal]; } return null; }
[ "public", "static", "FlowType", "getKey", "(", "int", "ordinal", ")", "{", "if", "(", "ordinal", ">=", "0", "&&", "ordinal", "<", "_values", ".", "length", ")", "{", "return", "_values", "[", "ordinal", "]", ";", "}", "return", "null", ";", "}" ]
Fetch the FlowType for a particular integer. @param ordinal The integer to find a FlowType for. @return FlowType, null if it does match a defined FlowType
[ "Fetch", "the", "FlowType", "for", "a", "particular", "integer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/FlowType.java#L84-L89
67,815
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/Chain.java
Chain.containsChannel
public boolean containsChannel(String channelName) { boolean found = false; for (int i = 0; i < channels.length; i++) { if (channels[i].getName().equals(channelName)) { found = true; break; } } if (TraceComponent.isAnyTracingEnabled...
java
public boolean containsChannel(String channelName) { boolean found = false; for (int i = 0; i < channels.length; i++) { if (channels[i].getName().equals(channelName)) { found = true; break; } } if (TraceComponent.isAnyTracingEnabled...
[ "public", "boolean", "containsChannel", "(", "String", "channelName", ")", "{", "boolean", "found", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "channels", ".", "length", ";", "i", "++", ")", "{", "if", "(", "channels", "[", ...
Check whether this chain contains the input channel name. @param channelName @return boolean
[ "Check", "whether", "this", "chain", "contains", "the", "input", "channel", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/Chain.java#L135-L147
67,816
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/com/ibm/ws/jaxrs20/utils/UriEncoder.java
UriEncoder.needsEncoding
private static boolean needsEncoding(String s, boolean relax, boolean[] unreserved) { int len = s.length(); for (int i = 0; i < len; ++i) { char c = s.charAt(i); if (c == '%' && relax) { continue; } if (c > unreserved.length) { ...
java
private static boolean needsEncoding(String s, boolean relax, boolean[] unreserved) { int len = s.length(); for (int i = 0; i < len; ++i) { char c = s.charAt(i); if (c == '%' && relax) { continue; } if (c > unreserved.length) { ...
[ "private", "static", "boolean", "needsEncoding", "(", "String", "s", ",", "boolean", "relax", ",", "boolean", "[", "]", "unreserved", ")", "{", "int", "len", "=", "s", ".", "length", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", ...
Determines if the input string contains any invalid URI characters that require encoding @param uri the string to test @return true if the the input string contains only valid URI characters
[ "Determines", "if", "the", "input", "string", "contains", "any", "invalid", "URI", "characters", "that", "require", "encoding" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/com/ibm/ws/jaxrs20/utils/UriEncoder.java#L411-L426
67,817
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/comms/ConnectionProperties.java
ConnectionProperties.getWLMEndPointData
public Object getWLMEndPointData() { if (mode != PropertiesType.WLM_EP) { throw new SIErrorException( nls.getFormattedMessage("INVALID_METHOD_FOR_OBJECT_TYPE_SICO0006", null, "INVALID_METHOD_FOR_OBJECT_TYPE_SICO0006") // D270373 ); } return wlmEndPointData; }
java
public Object getWLMEndPointData() { if (mode != PropertiesType.WLM_EP) { throw new SIErrorException( nls.getFormattedMessage("INVALID_METHOD_FOR_OBJECT_TYPE_SICO0006", null, "INVALID_METHOD_FOR_OBJECT_TYPE_SICO0006") // D270373 ); } return wlmEndPointData; }
[ "public", "Object", "getWLMEndPointData", "(", ")", "{", "if", "(", "mode", "!=", "PropertiesType", ".", "WLM_EP", ")", "{", "throw", "new", "SIErrorException", "(", "nls", ".", "getFormattedMessage", "(", "\"INVALID_METHOD_FOR_OBJECT_TYPE_SICO0006\"", ",", "null", ...
Returns the WLM endpoint data associated with this instance of connection properties. This is only valid if the instance was created to use the WLM endpoint mode of operation. An IllegalArgumentException will be thrown, otherwise.
[ "Returns", "the", "WLM", "endpoint", "data", "associated", "with", "this", "instance", "of", "connection", "properties", ".", "This", "is", "only", "valid", "if", "the", "instance", "was", "created", "to", "use", "the", "WLM", "endpoint", "mode", "of", "oper...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/comms/ConnectionProperties.java#L110-L119
67,818
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java
HttpDispatcher.getContextRootNotFoundMessage
public static String getContextRootNotFoundMessage() { // this does not return a default string, since the caller may (and does in our case) choose to build a runtime // dependent string. HttpDispatcher f = instance.get().get(); if (f != null) return f.appOrContextRootNotFou...
java
public static String getContextRootNotFoundMessage() { // this does not return a default string, since the caller may (and does in our case) choose to build a runtime // dependent string. HttpDispatcher f = instance.get().get(); if (f != null) return f.appOrContextRootNotFou...
[ "public", "static", "String", "getContextRootNotFoundMessage", "(", ")", "{", "// this does not return a default string, since the caller may (and does in our case) choose to build a runtime", "// dependent string.", "HttpDispatcher", "f", "=", "instance", ".", "get", "(", ")", "."...
Get the value for the appOrContextRootMissingMessage custom property. return null if it was not set. @return String the value for the appOrContextRootMissingMessage custom property, null if it was not set.
[ "Get", "the", "value", "for", "the", "appOrContextRootMissingMessage", "custom", "property", ".", "return", "null", "if", "it", "was", "not", "set", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java#L253-L262
67,819
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java
HttpDispatcher.isTrusted
public boolean isTrusted(String hostAddr, String headerName) { if (!wcTrusted) { return false; } if (HttpHeaderKeys.isSensitivePrivateHeader(headerName)) { // if this is a sensitive private header, check trustedSensitiveHeaderOrigin values return isTrustedForS...
java
public boolean isTrusted(String hostAddr, String headerName) { if (!wcTrusted) { return false; } if (HttpHeaderKeys.isSensitivePrivateHeader(headerName)) { // if this is a sensitive private header, check trustedSensitiveHeaderOrigin values return isTrustedForS...
[ "public", "boolean", "isTrusted", "(", "String", "hostAddr", ",", "String", "headerName", ")", "{", "if", "(", "!", "wcTrusted", ")", "{", "return", "false", ";", "}", "if", "(", "HttpHeaderKeys", ".", "isSensitivePrivateHeader", "(", "headerName", ")", ")",...
Check to see if the source host address is one we allow for specification of private headers This takes into account the hosts defined in trustedHeaderOrigin and trustedSensitiveHeaderOrigin. Note, trustedSensitiveHeaderOrigin takes precedence over trustedHeaderOrigin; so if trustedHeaderOrigin="none" while trustedSe...
[ "Check", "to", "see", "if", "the", "source", "host", "address", "is", "one", "we", "allow", "for", "specification", "of", "private", "headers" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java#L442-L466
67,820
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java
HttpDispatcher.isTrustedForSensitiveHeaders
public boolean isTrustedForSensitiveHeaders(String hostAddr) { if (!useSensitivePrivateHeaders) { // trustedSensitiveHeaderOrigin list is either unset (defaults to "none") or explicitly set to "none" return false; } if (restrictSensitiveHeaderOrigin == null) { ...
java
public boolean isTrustedForSensitiveHeaders(String hostAddr) { if (!useSensitivePrivateHeaders) { // trustedSensitiveHeaderOrigin list is either unset (defaults to "none") or explicitly set to "none" return false; } if (restrictSensitiveHeaderOrigin == null) { ...
[ "public", "boolean", "isTrustedForSensitiveHeaders", "(", "String", "hostAddr", ")", "{", "if", "(", "!", "useSensitivePrivateHeaders", ")", "{", "// trustedSensitiveHeaderOrigin list is either unset (defaults to \"none\") or explicitly set to \"none\"", "return", "false", ";", "...
Check to see if the source host address is one we allow for specification of sensitive private headers @param hostAddr The source host address @return true if hostAddr is a trusted source of sensitive private headers
[ "Check", "to", "see", "if", "the", "source", "host", "address", "is", "one", "we", "allow", "for", "specification", "of", "sensitive", "private", "headers" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java#L474-L486
67,821
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java
HttpDispatcher.getExecutorService
public static ExecutorService getExecutorService() { HttpDispatcher f = instance.get().get(); if (f == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "HttpDispatcher instance not found"); } return null; ...
java
public static ExecutorService getExecutorService() { HttpDispatcher f = instance.get().get(); if (f == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "HttpDispatcher instance not found"); } return null; ...
[ "public", "static", "ExecutorService", "getExecutorService", "(", ")", "{", "HttpDispatcher", "f", "=", "instance", ".", "get", "(", ")", ".", "get", "(", ")", ";", "if", "(", "f", "==", "null", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEn...
Access the collaboration engine. @return CollaborationEngine - null if not found
[ "Access", "the", "collaboration", "engine", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java#L597-L611
67,822
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java
HttpDispatcher.getCHFWBundle
public static CHFWBundle getCHFWBundle() { HttpDispatcher f = instance.get().get(); if (f != null) return f.chfw; return null; }
java
public static CHFWBundle getCHFWBundle() { HttpDispatcher f = instance.get().get(); if (f != null) return f.chfw; return null; }
[ "public", "static", "CHFWBundle", "getCHFWBundle", "(", ")", "{", "HttpDispatcher", "f", "=", "instance", ".", "get", "(", ")", ".", "get", "(", ")", ";", "if", "(", "f", "!=", "null", ")", "return", "f", ".", "chfw", ";", "return", "null", ";", "}...
Access the channel framework bundle. @return CHFWBundle
[ "Access", "the", "channel", "framework", "bundle", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java#L670-L676
67,823
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java
HttpDispatcher.getBufferManager
public static WsByteBufferPoolManager getBufferManager() { final CHFWBundle chfw = getCHFWBundle(); if (null == chfw) { return ChannelFrameworkFactory.getBufferManager(); } return chfw.getBufferManager(); }
java
public static WsByteBufferPoolManager getBufferManager() { final CHFWBundle chfw = getCHFWBundle(); if (null == chfw) { return ChannelFrameworkFactory.getBufferManager(); } return chfw.getBufferManager(); }
[ "public", "static", "WsByteBufferPoolManager", "getBufferManager", "(", ")", "{", "final", "CHFWBundle", "chfw", "=", "getCHFWBundle", "(", ")", ";", "if", "(", "null", "==", "chfw", ")", "{", "return", "ChannelFrameworkFactory", ".", "getBufferManager", "(", ")...
Access the current reference to the bytebuffer pool manager. @return WsByteBufferPoolManager
[ "Access", "the", "current", "reference", "to", "the", "bytebuffer", "pool", "manager", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java#L683-L689
67,824
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java
HttpDispatcher.getFramework
public static ChannelFramework getFramework() { final CHFWBundle chfw = getCHFWBundle(); if (null == chfw) { return ChannelFrameworkFactory.getChannelFramework(); } return chfw.getFramework(); }
java
public static ChannelFramework getFramework() { final CHFWBundle chfw = getCHFWBundle(); if (null == chfw) { return ChannelFrameworkFactory.getChannelFramework(); } return chfw.getFramework(); }
[ "public", "static", "ChannelFramework", "getFramework", "(", ")", "{", "final", "CHFWBundle", "chfw", "=", "getCHFWBundle", "(", ")", ";", "if", "(", "null", "==", "chfw", ")", "{", "return", "ChannelFrameworkFactory", ".", "getChannelFramework", "(", ")", ";"...
Access the current reference to the channel framework instance. @return ChannelFramework
[ "Access", "the", "current", "reference", "to", "the", "channel", "framework", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java#L696-L702
67,825
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java
HttpDispatcher.setWorkClassifier
@Reference(name = "workClassifier", policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL) protected void setWorkClassifier(WorkClassifier service) { workClassifier = service; }
java
@Reference(name = "workClassifier", policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.OPTIONAL) protected void setWorkClassifier(WorkClassifier service) { workClassifier = service; }
[ "@", "Reference", "(", "name", "=", "\"workClassifier\"", ",", "policy", "=", "ReferencePolicy", ".", "DYNAMIC", ",", "cardinality", "=", "ReferenceCardinality", ".", "OPTIONAL", ")", "protected", "void", "setWorkClassifier", "(", "WorkClassifier", "service", ")", ...
DS method for setting the Work Classification service reference. @param service
[ "DS", "method", "for", "setting", "the", "Work", "Classification", "service", "reference", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java#L739-L742
67,826
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java
HttpDispatcher.getWorkClassifier
public static WorkClassifier getWorkClassifier() { HttpDispatcher f = instance.get().get(); if (f != null) return f.workClassifier; return null; }
java
public static WorkClassifier getWorkClassifier() { HttpDispatcher f = instance.get().get(); if (f != null) return f.workClassifier; return null; }
[ "public", "static", "WorkClassifier", "getWorkClassifier", "(", ")", "{", "HttpDispatcher", "f", "=", "instance", ".", "get", "(", ")", ".", "get", "(", ")", ";", "if", "(", "f", "!=", "null", ")", "return", "f", ".", "workClassifier", ";", "return", "...
Access to the WorkClassifier @return WorkClassifier - null if not found
[ "Access", "to", "the", "WorkClassifier" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/HttpDispatcher.java#L760-L766
67,827
OpenLiberty/open-liberty
dev/com.ibm.ws.management.j2ee/src/com/ibm/websphere/management/j2ee/J2EEManagementObjectNameFactory.java
J2EEManagementObjectNameFactory.createObjectName
private static ObjectName createObjectName(String type, String name, Hashtable<String, String> props) { props.put(KEY_TYPE, type); props.put(KEY_NAME, name); try { return new ObjectName(DOMAIN_NAME, props); } catch (MalformedObjectNameException e) { throw new Ill...
java
private static ObjectName createObjectName(String type, String name, Hashtable<String, String> props) { props.put(KEY_TYPE, type); props.put(KEY_NAME, name); try { return new ObjectName(DOMAIN_NAME, props); } catch (MalformedObjectNameException e) { throw new Ill...
[ "private", "static", "ObjectName", "createObjectName", "(", "String", "type", ",", "String", "name", ",", "Hashtable", "<", "String", ",", "String", ">", "props", ")", "{", "props", ".", "put", "(", "KEY_TYPE", ",", "type", ")", ";", "props", ".", "put",...
Common object name factory method. The properties table must be an {@link Hashtable} because the object name constructor {@link Object#ObjectName String, Hashtable)} takes a parameter of this type. @param type The type of the object name. See {@link #KEY_TYPE}. @param name The name of the object name. See {@link #KEY...
[ "Common", "object", "name", "factory", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.management.j2ee/src/com/ibm/websphere/management/j2ee/J2EEManagementObjectNameFactory.java#L105-L114
67,828
OpenLiberty/open-liberty
dev/com.ibm.ws.management.j2ee/src/com/ibm/websphere/management/j2ee/J2EEManagementObjectNameFactory.java
J2EEManagementObjectNameFactory.createApplicationObjectName
public static ObjectName createApplicationObjectName(String name, String serverName) { Hashtable<String, String> props = new Hashtable<String, String>(); props.put(TYPE_SERVER, serverName); return createObjectName(TYPE_APPLICATION, name, props); }
java
public static ObjectName createApplicationObjectName(String name, String serverName) { Hashtable<String, String> props = new Hashtable<String, String>(); props.put(TYPE_SERVER, serverName); return createObjectName(TYPE_APPLICATION, name, props); }
[ "public", "static", "ObjectName", "createApplicationObjectName", "(", "String", "name", ",", "String", "serverName", ")", "{", "Hashtable", "<", "String", ",", "String", ">", "props", "=", "new", "Hashtable", "<", "String", ",", "String", ">", "(", ")", ";",...
Application and module factory methods ...
[ "Application", "and", "module", "factory", "methods", "..." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.management.j2ee/src/com/ibm/websphere/management/j2ee/J2EEManagementObjectNameFactory.java#L134-L138
67,829
OpenLiberty/open-liberty
dev/com.ibm.ws.management.j2ee/src/com/ibm/websphere/management/j2ee/J2EEManagementObjectNameFactory.java
J2EEManagementObjectNameFactory.createEJBModuleObjectName
public static ObjectName createEJBModuleObjectName(String uri, String appName, String serverName) { return createModuleObjectName(ModuleType.EJBModule, uri, appName, serverName); }
java
public static ObjectName createEJBModuleObjectName(String uri, String appName, String serverName) { return createModuleObjectName(ModuleType.EJBModule, uri, appName, serverName); }
[ "public", "static", "ObjectName", "createEJBModuleObjectName", "(", "String", "uri", ",", "String", "appName", ",", "String", "serverName", ")", "{", "return", "createModuleObjectName", "(", "ModuleType", ".", "EJBModule", ",", "uri", ",", "appName", ",", "serverN...
EJB factory methods ...
[ "EJB", "factory", "methods", "..." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.management.j2ee/src/com/ibm/websphere/management/j2ee/J2EEManagementObjectNameFactory.java#L149-L151
67,830
OpenLiberty/open-liberty
dev/com.ibm.ws.management.j2ee/src/com/ibm/websphere/management/j2ee/J2EEManagementObjectNameFactory.java
J2EEManagementObjectNameFactory.createWebModuleObjectName
public static ObjectName createWebModuleObjectName(String moduleURI, String appName, String serverName) { return createModuleObjectName(ModuleType.WebModule, moduleURI, appName, serverName); }
java
public static ObjectName createWebModuleObjectName(String moduleURI, String appName, String serverName) { return createModuleObjectName(ModuleType.WebModule, moduleURI, appName, serverName); }
[ "public", "static", "ObjectName", "createWebModuleObjectName", "(", "String", "moduleURI", ",", "String", "appName", ",", "String", "serverName", ")", "{", "return", "createModuleObjectName", "(", "ModuleType", ".", "WebModule", ",", "moduleURI", ",", "appName", ","...
Servlet factory methods ...
[ "Servlet", "factory", "methods", "..." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.management.j2ee/src/com/ibm/websphere/management/j2ee/J2EEManagementObjectNameFactory.java#L163-L165
67,831
OpenLiberty/open-liberty
dev/com.ibm.ws.management.j2ee/src/com/ibm/websphere/management/j2ee/J2EEManagementObjectNameFactory.java
J2EEManagementObjectNameFactory.createJavaMailObjectName
public static ObjectName createJavaMailObjectName(String serverName, String mailSessionID, int resourceCounter) { Hashtable<String, String> props = new Hashtable<String, String>(); props.put(TYPE_SERVER, serverName); props.put(MAIL_SESSION_ID, mailSessionID); props.put(RESOURCE_ID, TYPE_...
java
public static ObjectName createJavaMailObjectName(String serverName, String mailSessionID, int resourceCounter) { Hashtable<String, String> props = new Hashtable<String, String>(); props.put(TYPE_SERVER, serverName); props.put(MAIL_SESSION_ID, mailSessionID); props.put(RESOURCE_ID, TYPE_...
[ "public", "static", "ObjectName", "createJavaMailObjectName", "(", "String", "serverName", ",", "String", "mailSessionID", ",", "int", "resourceCounter", ")", "{", "Hashtable", "<", "String", ",", "String", ">", "props", "=", "new", "Hashtable", "<", "String", "...
Java mail factory methods ...
[ "Java", "mail", "factory", "methods", "..." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.management.j2ee/src/com/ibm/websphere/management/j2ee/J2EEManagementObjectNameFactory.java#L177-L191
67,832
OpenLiberty/open-liberty
dev/com.ibm.ws.management.j2ee/src/com/ibm/websphere/management/j2ee/J2EEManagementObjectNameFactory.java
J2EEManagementObjectNameFactory.createResourceObjectName
public static ObjectName createResourceObjectName(String serverName, String resourceType, String keyName) { ObjectName objectName; Hashtable<String, String> props = new Hashtable<String, String>(); props.put(TYPE_SERVER, serverName); objectName = createObjectName(resourceType, keyName, ...
java
public static ObjectName createResourceObjectName(String serverName, String resourceType, String keyName) { ObjectName objectName; Hashtable<String, String> props = new Hashtable<String, String>(); props.put(TYPE_SERVER, serverName); objectName = createObjectName(resourceType, keyName, ...
[ "public", "static", "ObjectName", "createResourceObjectName", "(", "String", "serverName", ",", "String", "resourceType", ",", "String", "keyName", ")", "{", "ObjectName", "objectName", ";", "Hashtable", "<", "String", ",", "String", ">", "props", "=", "new", "H...
Creates a Resource ObjectName for a Resource MBean @param serverName @param keyName @return ObjectName is the JSR77 spec naming convention for Resource MBeans
[ "Creates", "a", "Resource", "ObjectName", "for", "a", "Resource", "MBean" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.management.j2ee/src/com/ibm/websphere/management/j2ee/J2EEManagementObjectNameFactory.java#L200-L209
67,833
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/application/ResourceHandlerImpl.java
ResourceHandlerImpl.libraryExists
@Override public boolean libraryExists(String libraryName) { FacesContext facesContext = FacesContext.getCurrentInstance(); String localePrefix = getLocalePrefixForLocateResource(facesContext); final List<String> contracts = facesContext.getResourceLibraryContracts(); String pa...
java
@Override public boolean libraryExists(String libraryName) { FacesContext facesContext = FacesContext.getCurrentInstance(); String localePrefix = getLocalePrefixForLocateResource(facesContext); final List<String> contracts = facesContext.getResourceLibraryContracts(); String pa...
[ "@", "Override", "public", "boolean", "libraryExists", "(", "String", "libraryName", ")", "{", "FacesContext", "facesContext", "=", "FacesContext", ".", "getCurrentInstance", "(", ")", ";", "String", "localePrefix", "=", "getLocalePrefixForLocateResource", "(", "faces...
Check if a library exists or not. This is done delegating to each ResourceLoader used, because each one has a different prefix and way to load resources.
[ "Check", "if", "a", "library", "exists", "or", "not", ".", "This", "is", "done", "delegating", "to", "each", "ResourceLoader", "used", "because", "each", "one", "has", "a", "different", "prefix", "and", "way", "to", "load", "resources", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/application/ResourceHandlerImpl.java#L793-L891
67,834
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractMapEntry.java
AbstractMapEntry.setValue
public Object setValue(Token object) { Object result = value; value = object; return result; }
java
public Object setValue(Token object) { Object result = value; value = object; return result; }
[ "public", "Object", "setValue", "(", "Token", "object", ")", "{", "Object", "result", "=", "value", ";", "value", "=", "object", ";", "return", "result", ";", "}" ]
Sets the value for this entry @param object the new value @return the previous value
[ "Sets", "the", "value", "for", "this", "entry" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractMapEntry.java#L73-L77
67,835
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/StandardMatchingStrategy.java
StandardMatchingStrategy.getMatchResponse
@Override protected MatchResponse getMatchResponse(SecurityConstraint securityConstraint, String resourceName, String method) { CollectionMatch collectionMatch = getCollectionMatch(securityConstraint.getWebResourceCollections(), resourceName, method); if (CollectionMatch.RESPONSE_NO_MATCH.equals(co...
java
@Override protected MatchResponse getMatchResponse(SecurityConstraint securityConstraint, String resourceName, String method) { CollectionMatch collectionMatch = getCollectionMatch(securityConstraint.getWebResourceCollections(), resourceName, method); if (CollectionMatch.RESPONSE_NO_MATCH.equals(co...
[ "@", "Override", "protected", "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 standard method algorithm. @param resourceName The resource name. @param method The HTTP method. @return
[ "Gets", "the", "response", "object", "that", "contains", "the", "roles", "the", "SSL", "required", "and", "access", "precluded", "indicators", ".", "Gets", "the", "response", "using", "the", "standard", "method", "algorithm", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/metadata/StandardMatchingStrategy.java#L47-L64
67,836
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/DynamicVirtualHostManager.java
DynamicVirtualHostManager.purge
public void purge() { synchronized(this){ // Clear all references to VirtualHost objects for (DynamicVirtualHost host : hostMap.values()) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Purge host : " + host.hashCode...
java
public void purge() { synchronized(this){ // Clear all references to VirtualHost objects for (DynamicVirtualHost host : hostMap.values()) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Purge host : " + host.hashCode...
[ "public", "void", "purge", "(", ")", "{", "synchronized", "(", "this", ")", "{", "// Clear all references to VirtualHost objects", "for", "(", "DynamicVirtualHost", "host", ":", "hostMap", ".", "values", "(", ")", ")", "{", "if", "(", "TraceComponent", ".", "i...
Called when the webcontainer is deactivated. This will clean up all maps within the host manager to facilitate garbage collection and clean up.
[ "Called", "when", "the", "webcontainer", "is", "deactivated", ".", "This", "will", "clean", "up", "all", "maps", "within", "the", "host", "manager", "to", "facilitate", "garbage", "collection", "and", "clean", "up", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/DynamicVirtualHostManager.java#L115-L131
67,837
OpenLiberty/open-liberty
dev/com.ibm.ws.security.credentials.ssotoken/src/com/ibm/ws/security/credentials/ssotoken/internal/SSOTokenCredentialProvider.java
SSOTokenCredentialProvider.setSsoTokenCredential
private void setSsoTokenCredential(Subject subject, String principalAccessId) throws CredentialException { try { TokenManager tokenManager = tokenManagerRef.getService(); SingleSignonToken ssoToken = null; Set<Token> tokens = subject.getPrivateCredentials(...
java
private void setSsoTokenCredential(Subject subject, String principalAccessId) throws CredentialException { try { TokenManager tokenManager = tokenManagerRef.getService(); SingleSignonToken ssoToken = null; Set<Token> tokens = subject.getPrivateCredentials(...
[ "private", "void", "setSsoTokenCredential", "(", "Subject", "subject", ",", "String", "principalAccessId", ")", "throws", "CredentialException", "{", "try", "{", "TokenManager", "tokenManager", "=", "tokenManagerRef", ".", "getService", "(", ")", ";", "SingleSignonTok...
Create an SSO token for the specified accessId. @param subject @param principalAccessId @throws TokenCreationFailedException
[ "Create", "an", "SSO", "token", "for", "the", "specified", "accessId", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.credentials.ssotoken/src/com/ibm/ws/security/credentials/ssotoken/internal/SSOTokenCredentialProvider.java#L95-L115
67,838
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/MemoryObjectStore.java
MemoryObjectStore.get
public ManagedObject get(Token token) { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) { trace.entry(this, cclass, "get", token); trace.exit(this, cclass, ...
java
public ManagedObject get(Token token) { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) { trace.entry(this, cclass, "get", token); trace.exit(this, cclass, ...
[ "public", "ManagedObject", "get", "(", "Token", "token", ")", "{", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "{", "trace", ".", "entry", "(", "this", ",", "cclass", ",", "\"get\"", ...
Retrieve an object in the store. For MemoryObjectStores this should only be called for a ManagedObject that was lost over a restart so null is returned. @param token representing the object to be retrieved. @return ManagedObject the object from the store, always null.
[ "Retrieve", "an", "object", "in", "the", "store", ".", "For", "MemoryObjectStores", "this", "should", "only", "be", "called", "for", "a", "ManagedObject", "that", "was", "lost", "over", "a", "restart", "so", "null", "is", "returned", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/MemoryObjectStore.java#L90-L113
67,839
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/MemoryObjectStore.java
MemoryObjectStore.flush
public synchronized void flush() throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) { trace.entry(this, cclass, "flush"); trace.exit(this, cclass, ...
java
public synchronized void flush() throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) { trace.entry(this, cclass, "flush"); trace.exit(this, cclass, ...
[ "public", "synchronized", "void", "flush", "(", ")", "throws", "ObjectManagerException", "{", "if", "(", "Tracing", ".", "isAnyTracingEnabled", "(", ")", "&&", "trace", ".", "isEntryEnabled", "(", ")", ")", "{", "trace", ".", "entry", "(", "this", ",", "cc...
For MemoryObjectstore there is nothing to do. @see com.ibm.ws.objectManager.ObjectStore#flush()
[ "For", "MemoryObjectstore", "there", "is", "nothing", "to", "do", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/MemoryObjectStore.java#L191-L202
67,840
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.ejb/src/com/ibm/ws/jaxws/ejb/EJBJaxWsModuleInfoBuilderHelper.java
EJBJaxWsModuleInfoBuilderHelper.buildEjbWebServiceEndpointInfos
static void buildEjbWebServiceEndpointInfos(EndpointInfoBuilder endpointInfoBuilder, EndpointInfoBuilderContext ctx, JaxWsServerMetaData jaxWsServerMetaData, List<EJBEndpoint> ejbEndpoints, JaxWsModuleInfo jaxWsModuleInfo) throws UnableToAdaptException { Set<St...
java
static void buildEjbWebServiceEndpointInfos(EndpointInfoBuilder endpointInfoBuilder, EndpointInfoBuilderContext ctx, JaxWsServerMetaData jaxWsServerMetaData, List<EJBEndpoint> ejbEndpoints, JaxWsModuleInfo jaxWsModuleInfo) throws UnableToAdaptException { Set<St...
[ "static", "void", "buildEjbWebServiceEndpointInfos", "(", "EndpointInfoBuilder", "endpointInfoBuilder", ",", "EndpointInfoBuilderContext", "ctx", ",", "JaxWsServerMetaData", "jaxWsServerMetaData", ",", "List", "<", "EJBEndpoint", ">", "ejbEndpoints", ",", "JaxWsModuleInfo", "...
build Web Service endpoint infos @param endpointInfoBuilder @param ctx @param jaxWsServerMetaData @param ejbEndpoints @param jaxWsModuleInfo @return @throws UnableToAdaptException
[ "build", "Web", "Service", "endpoint", "infos" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.ejb/src/com/ibm/ws/jaxws/ejb/EJBJaxWsModuleInfoBuilderHelper.java#L41-L61
67,841
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/Jose4jRsaJWK.java
Jose4jRsaJWK.getInstance
public static Jose4jRsaJWK getInstance(int size, String alg, String use, String type) { String kid = RandomUtils.getRandomAlphaNumeric(KID_LENGTH); KeyPairGenerator keyGenerator = null; try { keyGenerator = KeyPairGenerator.getInstance("RSA"); } catch (NoSuchAlgorithmExcepti...
java
public static Jose4jRsaJWK getInstance(int size, String alg, String use, String type) { String kid = RandomUtils.getRandomAlphaNumeric(KID_LENGTH); KeyPairGenerator keyGenerator = null; try { keyGenerator = KeyPairGenerator.getInstance("RSA"); } catch (NoSuchAlgorithmExcepti...
[ "public", "static", "Jose4jRsaJWK", "getInstance", "(", "int", "size", ",", "String", "alg", ",", "String", "use", ",", "String", "type", ")", "{", "String", "kid", "=", "RandomUtils", ".", "getRandomAlphaNumeric", "(", "KID_LENGTH", ")", ";", "KeyPairGenerato...
generate a new JWK with the specified parameters @param size @param alg @param use @param type @return
[ "generate", "a", "new", "JWK", "with", "the", "specified", "parameters" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/Jose4jRsaJWK.java#L60-L87
67,842
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/Jose4jRsaJWK.java
Jose4jRsaJWK.getInstance
public static Jose4jRsaJWK getInstance(String alg, String use, PublicKey publicKey, PrivateKey privateKey, String kid) { //String kid = RandomUtils.getRandomAlphaNumeric(KID_LENGTH); RSAPublicKey pubKey = (RSAPublicKey) publicKey; RSAPrivateKey priKey = (RSAPrivateKey) privateKey; Jose4...
java
public static Jose4jRsaJWK getInstance(String alg, String use, PublicKey publicKey, PrivateKey privateKey, String kid) { //String kid = RandomUtils.getRandomAlphaNumeric(KID_LENGTH); RSAPublicKey pubKey = (RSAPublicKey) publicKey; RSAPrivateKey priKey = (RSAPrivateKey) privateKey; Jose4...
[ "public", "static", "Jose4jRsaJWK", "getInstance", "(", "String", "alg", ",", "String", "use", ",", "PublicKey", "publicKey", ",", "PrivateKey", "privateKey", ",", "String", "kid", ")", "{", "//String kid = RandomUtils.getRandomAlphaNumeric(KID_LENGTH);", "RSAPublicKey", ...
alg, use, publicKey, privateKey
[ "alg", "use", "publicKey", "privateKey" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/Jose4jRsaJWK.java#L118-L131
67,843
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/JAXRSInvoker.java
JAXRSInvoker.reprocessFormParams
private List<Object> reprocessFormParams(Method method, List<Object> origParams, Message m) { Form form = null; boolean hasFormParamAnnotations = false; Object[] newValues = new Object[origParams.size()]; java.lang.reflect.Parameter[] methodParams = method.getParameters(); for (i...
java
private List<Object> reprocessFormParams(Method method, List<Object> origParams, Message m) { Form form = null; boolean hasFormParamAnnotations = false; Object[] newValues = new Object[origParams.size()]; java.lang.reflect.Parameter[] methodParams = method.getParameters(); for (i...
[ "private", "List", "<", "Object", ">", "reprocessFormParams", "(", "Method", "method", ",", "List", "<", "Object", ">", "origParams", ",", "Message", "m", ")", "{", "Form", "form", "=", "null", ";", "boolean", "hasFormParamAnnotations", "=", "false", ";", ...
Liberty change start - CXF-7860
[ "Liberty", "change", "start", "-", "CXF", "-", "7860" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/JAXRSInvoker.java#L313-L352
67,844
OpenLiberty/open-liberty
dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/RepositoryResolutionException.java
RepositoryResolutionException.filterVersions
private Collection<LibertyVersion> filterVersions(Collection<LibertyVersion> minimumVersions, String version) { LibertyVersion versionToMatch = LibertyVersion.valueOf(version); if (versionToMatch == null) { return minimumVersions; } Collection<LibertyVersion> filteredVersions...
java
private Collection<LibertyVersion> filterVersions(Collection<LibertyVersion> minimumVersions, String version) { LibertyVersion versionToMatch = LibertyVersion.valueOf(version); if (versionToMatch == null) { return minimumVersions; } Collection<LibertyVersion> filteredVersions...
[ "private", "Collection", "<", "LibertyVersion", ">", "filterVersions", "(", "Collection", "<", "LibertyVersion", ">", "minimumVersions", ",", "String", "version", ")", "{", "LibertyVersion", "versionToMatch", "=", "LibertyVersion", ".", "valueOf", "(", "version", ")...
This will filter the supplied versions to make sure they all have the same major, minor and micro parts as the supplied version. This may return the original collection. @param minimumVersions @param version @return The filtered versions, may be empty but won't be <code>null</code>
[ "This", "will", "filter", "the", "supplied", "versions", "to", "make", "sure", "they", "all", "have", "the", "same", "major", "minor", "and", "micro", "parts", "as", "the", "supplied", "version", ".", "This", "may", "return", "the", "original", "collection",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.resolver/src/com/ibm/ws/repository/resolver/RepositoryResolutionException.java#L125-L137
67,845
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/flow/impl/DefaultFacesFlowProvider.java
DefaultFacesFlowProvider.createOrRestoreMap
Map<Object, Object> createOrRestoreMap(FacesContext context, String prefix, boolean create) { ExternalContext external = context.getExternalContext(); Map<String, Object> sessionMap = external.getSessionMap(); Map<Object, Object> map = (Map<Object, Object>) sessionMap.get(prefix); ...
java
Map<Object, Object> createOrRestoreMap(FacesContext context, String prefix, boolean create) { ExternalContext external = context.getExternalContext(); Map<String, Object> sessionMap = external.getSessionMap(); Map<Object, Object> map = (Map<Object, Object>) sessionMap.get(prefix); ...
[ "Map", "<", "Object", ",", "Object", ">", "createOrRestoreMap", "(", "FacesContext", "context", ",", "String", "prefix", ",", "boolean", "create", ")", "{", "ExternalContext", "external", "=", "context", ".", "getExternalContext", "(", ")", ";", "Map", "<", ...
Create a new subkey-wrapper of the session map with the given prefix. This wrapper is used to implement the maps for the flash scope. For more information see the SubKeyMap doc.
[ "Create", "a", "new", "subkey", "-", "wrapper", "of", "the", "session", "map", "with", "the", "given", "prefix", ".", "This", "wrapper", "is", "used", "to", "implement", "the", "maps", "for", "the", "flash", "scope", ".", "For", "more", "information", "s...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/flow/impl/DefaultFacesFlowProvider.java#L122-L135
67,846
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/config/tss/TSSConfigHelper.java
TSSConfigHelper.getTSSConfig
public static TSSConfig getTSSConfig(Map<String, Object> props, Map<OptionsKey, List<TransportAddress>> addrMap, Bundle bundle) throws Exception { TSSConfig tssConfig = new TSSConfig(); List<Map<String, Object>> tssConfigs = Nester.nest(CSIV2_CONFIGURATION, props); if (!tssConfigs.isEmpty()) { ...
java
public static TSSConfig getTSSConfig(Map<String, Object> props, Map<OptionsKey, List<TransportAddress>> addrMap, Bundle bundle) throws Exception { TSSConfig tssConfig = new TSSConfig(); List<Map<String, Object>> tssConfigs = Nester.nest(CSIV2_CONFIGURATION, props); if (!tssConfigs.isEmpty()) { ...
[ "public", "static", "TSSConfig", "getTSSConfig", "(", "Map", "<", "String", ",", "Object", ">", "props", ",", "Map", "<", "OptionsKey", ",", "List", "<", "TransportAddress", ">", ">", "addrMap", ",", "Bundle", "bundle", ")", "throws", "Exception", "{", "TS...
Returns a TSSConfig object initialized with the input object as an XML string. @param addrMap TODO @return a TSSConfig object @throws org.apache.geronimo.common.propertyeditor.PropertyEditorException An IOException occured.
[ "Returns", "a", "TSSConfig", "object", "initialized", "with", "the", "input", "object", "as", "an", "XML", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/config/tss/TSSConfigHelper.java#L81-L120
67,847
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileDataStore.java
ZipFileDataStore.addFirst
public ZipFileData addFirst(ZipFileData newFirstData) { String newFirstPath = newFirstData.path; Cell dupCell = cells.get(newFirstPath); if ( dupCell != null ) { throw new IllegalArgumentException("Path [ " + newFirstPath + " ] is already stored"); } Cell oldFirstCe...
java
public ZipFileData addFirst(ZipFileData newFirstData) { String newFirstPath = newFirstData.path; Cell dupCell = cells.get(newFirstPath); if ( dupCell != null ) { throw new IllegalArgumentException("Path [ " + newFirstPath + " ] is already stored"); } Cell oldFirstCe...
[ "public", "ZipFileData", "addFirst", "(", "ZipFileData", "newFirstData", ")", "{", "String", "newFirstPath", "=", "newFirstData", ".", "path", ";", "Cell", "dupCell", "=", "cells", ".", "get", "(", "newFirstPath", ")", ";", "if", "(", "dupCell", "!=", "null"...
Add data as new first data. Answer the previous first data. Throw an exception if the path of the new data is already stored. @param newFirstData The new data to put as the first stored data. @return The data which was previously the first stored data. Null if the store was empty.
[ "Add", "data", "as", "new", "first", "data", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileDataStore.java#L264-L280
67,848
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileDataStore.java
ZipFileDataStore.addLast
public ZipFileData addLast(ZipFileData newLastData) { String newLastPath = newLastData.path; Cell dupCell = cells.get(newLastPath); if ( dupCell != null ) { throw new IllegalArgumentException("Path [ " + newLastPath + " ] is already stored"); } Cell oldLastCell = an...
java
public ZipFileData addLast(ZipFileData newLastData) { String newLastPath = newLastData.path; Cell dupCell = cells.get(newLastPath); if ( dupCell != null ) { throw new IllegalArgumentException("Path [ " + newLastPath + " ] is already stored"); } Cell oldLastCell = an...
[ "public", "ZipFileData", "addLast", "(", "ZipFileData", "newLastData", ")", "{", "String", "newLastPath", "=", "newLastData", ".", "path", ";", "Cell", "dupCell", "=", "cells", ".", "get", "(", "newLastPath", ")", ";", "if", "(", "dupCell", "!=", "null", "...
Add data as new last data. Answer the previous last data. Throw an exception if the path of the new data is already stored. @param newLastData The new data to put as the last stored data. @return The data which was previously the last stored data. Null if the store was empty.
[ "Add", "data", "as", "new", "last", "data", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileDataStore.java#L294-L310
67,849
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileDataStore.java
ZipFileDataStore.addLast
public ZipFileData addLast(ZipFileData newLastData, int maximumSize) { String newLastPath = newLastData.path; Cell dupCell = cells.get(newLastPath); if ( dupCell != null ) { throw new IllegalArgumentException("Path [ " + newLastPath + " ] is already stored"); } int ...
java
public ZipFileData addLast(ZipFileData newLastData, int maximumSize) { String newLastPath = newLastData.path; Cell dupCell = cells.get(newLastPath); if ( dupCell != null ) { throw new IllegalArgumentException("Path [ " + newLastPath + " ] is already stored"); } int ...
[ "public", "ZipFileData", "addLast", "(", "ZipFileData", "newLastData", ",", "int", "maximumSize", ")", "{", "String", "newLastPath", "=", "newLastData", ".", "path", ";", "Cell", "dupCell", "=", "cells", ".", "get", "(", "newLastPath", ")", ";", "if", "(", ...
Add data as the last data of the store. If the addition pushes a cell out of the list, answer the data of the cell which was removed. Throw an exception if the path of the new data is already stored. @param newLastData The new data to add as the last data of the store. @param maximumSize The maximum size of the stor...
[ "Add", "data", "as", "the", "last", "data", "of", "the", "store", ".", "If", "the", "addition", "pushes", "a", "cell", "out", "of", "the", "list", "answer", "the", "data", "of", "the", "cell", "which", "was", "removed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileDataStore.java#L325-L358
67,850
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/ApplicationMonitor.java
ApplicationMonitor.refresh
public void refresh(ApplicationMonitorConfig config) { _config.set(config); UpdateTrigger trigger = config.getUpdateTrigger(); if (trigger != UpdateTrigger.DISABLED) { // Start all existing listeners for (ApplicationListeners listeners : _appListeners.values()) { ...
java
public void refresh(ApplicationMonitorConfig config) { _config.set(config); UpdateTrigger trigger = config.getUpdateTrigger(); if (trigger != UpdateTrigger.DISABLED) { // Start all existing listeners for (ApplicationListeners listeners : _appListeners.values()) { ...
[ "public", "void", "refresh", "(", "ApplicationMonitorConfig", "config", ")", "{", "_config", ".", "set", "(", "config", ")", ";", "UpdateTrigger", "trigger", "=", "config", ".", "getUpdateTrigger", "(", ")", ";", "if", "(", "trigger", "!=", "UpdateTrigger", ...
Starts the service with properties @param properties - a collection of optional variables set by the user in the server xml
[ "Starts", "the", "service", "with", "properties" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/ApplicationMonitor.java#L101-L118
67,851
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/ApplicationMonitor.java
ApplicationMonitor.addApplication
@FFDCIgnore(value = UnableToAdaptException.class) public void addApplication(ApplicationInstallInfo installInfo) { // ...and now create the new... start by asking the handler what needs monitoring final Collection<Notification> notificationsToMonitor; final boolean listenForRootStructuralCha...
java
@FFDCIgnore(value = UnableToAdaptException.class) public void addApplication(ApplicationInstallInfo installInfo) { // ...and now create the new... start by asking the handler what needs monitoring final Collection<Notification> notificationsToMonitor; final boolean listenForRootStructuralCha...
[ "@", "FFDCIgnore", "(", "value", "=", "UnableToAdaptException", ".", "class", ")", "public", "void", "addApplication", "(", "ApplicationInstallInfo", "installInfo", ")", "{", "// ...and now create the new... start by asking the handler what needs monitoring", "final", "Collecti...
adds an application's information to the update monitor
[ "adds", "an", "application", "s", "information", "to", "the", "update", "monitor" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/ApplicationMonitor.java#L123-L179
67,852
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/ApplicationMonitor.java
ApplicationMonitor.removeApplication
public void removeApplication(String pid) { // remove the application listener from the set we know about and stop it ApplicationListeners listeners = _appListeners.remove(pid); //check that the app is known, this can be run after the app is already removed. if (listeners != null) { ...
java
public void removeApplication(String pid) { // remove the application listener from the set we know about and stop it ApplicationListeners listeners = _appListeners.remove(pid); //check that the app is known, this can be run after the app is already removed. if (listeners != null) { ...
[ "public", "void", "removeApplication", "(", "String", "pid", ")", "{", "// remove the application listener from the set we know about and stop it", "ApplicationListeners", "listeners", "=", "_appListeners", ".", "remove", "(", "pid", ")", ";", "//check that the app is known, th...
Removes an application from the update monitor @param pid
[ "Removes", "an", "application", "from", "the", "update", "monitor" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/monitor/ApplicationMonitor.java#L186-L194
67,853
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TEBeanLifeCycleInfo.java
TEBeanLifeCycleInfo.traceEJBCallEntry
public static void traceEJBCallEntry(String methodDesc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(BeanLifeCycle_EJBCallEntry_Type_Str).append(DataDelimiter) ...
java
public static void traceEJBCallEntry(String methodDesc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(BeanLifeCycle_EJBCallEntry_Type_Str).append(DataDelimiter) ...
[ "public", "static", "void", "traceEJBCallEntry", "(", "String", "methodDesc", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "StringBuffer", "sbuf", "=", "new", "StringBuffer"...
This is called by the EJB container server code to write a ejb method callback entry record to the trace log, if enabled.
[ "This", "is", "called", "by", "the", "EJB", "container", "server", "code", "to", "write", "a", "ejb", "method", "callback", "entry", "record", "to", "the", "trace", "log", "if", "enabled", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TEBeanLifeCycleInfo.java#L30-L43
67,854
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TEBeanLifeCycleInfo.java
TEBeanLifeCycleInfo.traceEJBCallExit
public static void traceEJBCallExit(String methodDesc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(BeanLifeCycle_EJBCallExit_Type_Str).append(DataDelimiter) ...
java
public static void traceEJBCallExit(String methodDesc) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(BeanLifeCycle_EJBCallExit_Type_Str).append(DataDelimiter) ...
[ "public", "static", "void", "traceEJBCallExit", "(", "String", "methodDesc", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "StringBuffer", "sbuf", "=", "new", "StringBuffer",...
This is called by the EJB container server code to write a ejb method callback exit record to the trace log, if enabled.
[ "This", "is", "called", "by", "the", "EJB", "container", "server", "code", "to", "write", "a", "ejb", "method", "callback", "exit", "record", "to", "the", "trace", "log", "if", "enabled", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TEBeanLifeCycleInfo.java#L49-L62
67,855
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TEBeanLifeCycleInfo.java
TEBeanLifeCycleInfo.traceBeanState
public static void traceBeanState(int oldState, String oldString, int newState, String newString) // d167264 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(BeanLifeCycle_St...
java
public static void traceBeanState(int oldState, String oldString, int newState, String newString) // d167264 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { StringBuffer sbuf = new StringBuffer(); sbuf .append(BeanLifeCycle_St...
[ "public", "static", "void", "traceBeanState", "(", "int", "oldState", ",", "String", "oldString", ",", "int", "newState", ",", "String", "newString", ")", "// d167264", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", ...
This is called by the EJB container server code to write a ejb bean state record to the trace log, if enabled.
[ "This", "is", "called", "by", "the", "EJB", "container", "server", "code", "to", "write", "a", "ejb", "bean", "state", "record", "to", "the", "trace", "log", "if", "enabled", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TEBeanLifeCycleInfo.java#L68-L85
67,856
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.add
protected synchronized void add(Object id, int bufferType, int cause, int source, boolean fromDepIdTemplateInvalidation, boolean fireEvent, boolean isAlias) { final String methodName = "add(Object)"; if (id == null) { return; } if (bufferType == EXPLICIT_BUFFER) {...
java
protected synchronized void add(Object id, int bufferType, int cause, int source, boolean fromDepIdTemplateInvalidation, boolean fireEvent, boolean isAlias) { final String methodName = "add(Object)"; if (id == null) { return; } if (bufferType == EXPLICIT_BUFFER) {...
[ "protected", "synchronized", "void", "add", "(", "Object", "id", ",", "int", "bufferType", ",", "int", "cause", ",", "int", "source", ",", "boolean", "fromDepIdTemplateInvalidation", ",", "boolean", "fireEvent", ",", "boolean", "isAlias", ")", "{", "final", "S...
Call this method to store a cache id in the one of invalidation buffers. The entry is going to remove from the disk using LPBT. @param id - Object @param eventAlreadyFired - boolean to select which invalidation buffer is used to store.
[ "Call", "this", "method", "to", "store", "a", "cache", "id", "in", "the", "one", "of", "invalidation", "buffers", ".", "The", "entry", "is", "going", "to", "remove", "from", "the", "disk", "using", "LPBT", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L92-L132
67,857
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.add
protected synchronized void add(ValueSet idSet, int bufferType, int cause, int source, boolean fromDepIdTemplateInvalidation, boolean fireEvent, boolean checkFull) { final String methodName = "add(ValueSet)"; if (idSet == null || idSet.isEmpty()) { return; } int s...
java
protected synchronized void add(ValueSet idSet, int bufferType, int cause, int source, boolean fromDepIdTemplateInvalidation, boolean fireEvent, boolean checkFull) { final String methodName = "add(ValueSet)"; if (idSet == null || idSet.isEmpty()) { return; } int s...
[ "protected", "synchronized", "void", "add", "(", "ValueSet", "idSet", ",", "int", "bufferType", ",", "int", "cause", ",", "int", "source", ",", "boolean", "fromDepIdTemplateInvalidation", ",", "boolean", "fireEvent", ",", "boolean", "checkFull", ")", "{", "final...
Call this method to store a collection of cache ids in the one of invalidation buffers. The entries are going to remove from the disk using LPBT. @param idSet - ValueSet used to store a collection of Ids. @param eventAlreadyFired - boolean to select which invalidation buffer is used to store. @param checkFull - boolea...
[ "Call", "this", "method", "to", "store", "a", "collection", "of", "cache", "ids", "in", "the", "one", "of", "invalidation", "buffers", ".", "The", "entries", "are", "going", "to", "remove", "from", "the", "disk", "using", "LPBT", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L145-L192
67,858
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.get
protected synchronized Object get(int bufferType) { // final String methodName = "get(boolean)"; Object id = null; if (bufferType == this.EXPLICIT_BUFFER) { if (!this.explicitBuffer.isEmpty()) { Set s = this.explicitBuffer.keySet(); Iterator it = s.ite...
java
protected synchronized Object get(int bufferType) { // final String methodName = "get(boolean)"; Object id = null; if (bufferType == this.EXPLICIT_BUFFER) { if (!this.explicitBuffer.isEmpty()) { Set s = this.explicitBuffer.keySet(); Iterator it = s.ite...
[ "protected", "synchronized", "Object", "get", "(", "int", "bufferType", ")", "{", "// final String methodName = \"get(boolean)\";", "Object", "id", "=", "null", ";", "if", "(", "bufferType", "==", "this", ".", "EXPLICIT_BUFFER", ")", "{", "if", "(", "!", "this",...
Call this method when a cache id is retrieved from one of invalidation buffers. The entry is being used to remove from the disk using LPBT. @param bufferType - specify the invalidation buffer. @return Object cache id.
[ "Call", "this", "method", "when", "a", "cache", "id", "is", "retrieved", "from", "one", "of", "invalidation", "buffers", ".", "The", "entry", "is", "being", "used", "to", "remove", "from", "the", "disk", "using", "LPBT", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L215-L247
67,859
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.remove
protected synchronized void remove(Object id, int bufferType, boolean returnToPool) { // final String methodName = "remove(Object,bufferType)"; if (id == null) { return; } if (bufferType == this.EXPLICIT_BUFFER) { this.explicitBuffer.remove(id); } else if ...
java
protected synchronized void remove(Object id, int bufferType, boolean returnToPool) { // final String methodName = "remove(Object,bufferType)"; if (id == null) { return; } if (bufferType == this.EXPLICIT_BUFFER) { this.explicitBuffer.remove(id); } else if ...
[ "protected", "synchronized", "void", "remove", "(", "Object", "id", ",", "int", "bufferType", ",", "boolean", "returnToPool", ")", "{", "// final String methodName = \"remove(Object,bufferType)\";", "if", "(", "id", "==", "null", ")", "{", "return", ";", "}", "if"...
returnToPool boolean is used by GC buffer only
[ "returnToPool", "boolean", "is", "used", "by", "GC", "buffer", "only" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L310-L336
67,860
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.remove
protected synchronized void remove(Object id) { // final String methodName = "remove(Object)"; if (id == null) { return; } this.explicitBuffer.remove(id); this.scanBuffer.remove(id); // this.garbageCollectorBuffer.remove(id); // if (id instanceof HTODD...
java
protected synchronized void remove(Object id) { // final String methodName = "remove(Object)"; if (id == null) { return; } this.explicitBuffer.remove(id); this.scanBuffer.remove(id); // this.garbageCollectorBuffer.remove(id); // if (id instanceof HTODD...
[ "protected", "synchronized", "void", "remove", "(", "Object", "id", ")", "{", "// final String methodName = \"remove(Object)\";", "if", "(", "id", "==", "null", ")", "{", "return", ";", "}", "this", ".", "explicitBuffer", ".", "remove", "(", "id", ")", ";", ...
Call this method to remove a specified cache id from invalidation buffers excluding garbage collector buffers.
[ "Call", "this", "method", "to", "remove", "a", "specified", "cache", "id", "from", "invalidation", "buffers", "excluding", "garbage", "collector", "buffers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L341-L353
67,861
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.getAndRemoveFromExplicitBuffer
protected synchronized ValueSet getAndRemoveFromExplicitBuffer() { final String methodName = "getAndRemoveFromExplicitBuffer()"; ValueSet valueSet = null; if (this.explicitBuffer.size() == 0) { valueSet = new ValueSet(1); } else { valueSet = new ValueSet(this.expl...
java
protected synchronized ValueSet getAndRemoveFromExplicitBuffer() { final String methodName = "getAndRemoveFromExplicitBuffer()"; ValueSet valueSet = null; if (this.explicitBuffer.size() == 0) { valueSet = new ValueSet(1); } else { valueSet = new ValueSet(this.expl...
[ "protected", "synchronized", "ValueSet", "getAndRemoveFromExplicitBuffer", "(", ")", "{", "final", "String", "methodName", "=", "\"getAndRemoveFromExplicitBuffer()\"", ";", "ValueSet", "valueSet", "=", "null", ";", "if", "(", "this", ".", "explicitBuffer", ".", "size"...
Call this method to get and remove all the cache ids from explicit buffer. @return ValueSet - a collection of cache ids NOT including alias ids.
[ "Call", "this", "method", "to", "get", "and", "remove", "all", "the", "cache", "ids", "from", "explicit", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L360-L380
67,862
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.findAndRemoveFromGCBuffer
protected synchronized boolean findAndRemoveFromGCBuffer(long expirationTime, int hashcode, int size) { EvictionTableEntry evt = null; int i; for (i = 0; i < garbageCollectorBuffer.size(); i++) { evt = (EvictionTableEntry) garbageCollectorBuffer.get(i); if (evt.expiration...
java
protected synchronized boolean findAndRemoveFromGCBuffer(long expirationTime, int hashcode, int size) { EvictionTableEntry evt = null; int i; for (i = 0; i < garbageCollectorBuffer.size(); i++) { evt = (EvictionTableEntry) garbageCollectorBuffer.get(i); if (evt.expiration...
[ "protected", "synchronized", "boolean", "findAndRemoveFromGCBuffer", "(", "long", "expirationTime", ",", "int", "hashcode", ",", "int", "size", ")", "{", "EvictionTableEntry", "evt", "=", "null", ";", "int", "i", ";", "for", "(", "i", "=", "0", ";", "i", "...
Call this method to get and remove the EVT from GC buffer. @return boolean indicate whether it is found from GC buffer.
[ "Call", "this", "method", "to", "get", "and", "remove", "the", "EVT", "from", "GC", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L387-L404
67,863
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.clear
protected synchronized void clear(int bufferType) { final String methodName = "clear()"; if (bufferType == HTODInvalidationBuffer.EXPLICIT_BUFFER) { this.explicitBuffer.clear(); } else if (bufferType == HTODInvalidationBuffer.SCAN_BUFFER) { this.scanBuffer.clear(); ...
java
protected synchronized void clear(int bufferType) { final String methodName = "clear()"; if (bufferType == HTODInvalidationBuffer.EXPLICIT_BUFFER) { this.explicitBuffer.clear(); } else if (bufferType == HTODInvalidationBuffer.SCAN_BUFFER) { this.scanBuffer.clear(); ...
[ "protected", "synchronized", "void", "clear", "(", "int", "bufferType", ")", "{", "final", "String", "methodName", "=", "\"clear()\"", ";", "if", "(", "bufferType", "==", "HTODInvalidationBuffer", ".", "EXPLICIT_BUFFER", ")", "{", "this", ".", "explicitBuffer", ...
Call this method to clear the invalidation buffers. @param forEventAlreadyFired - true to clear invalidation buffer which is used for event already fired. @param forEventNotFired - true to clear invalidation buffer which is used for event not fired.
[ "Call", "this", "method", "to", "clear", "the", "invalidation", "buffers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L414-L429
67,864
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.invokeBackgroundInvalidation
protected synchronized void invokeBackgroundInvalidation(boolean scan) { final String methodName = "invokeBackgroundInvalidation()"; if (!stopping) { synchronized (cod.diskCleanupThread.dcMonitor) { if (cod.diskCleanupThread.currentThread != null) { this.c...
java
protected synchronized void invokeBackgroundInvalidation(boolean scan) { final String methodName = "invokeBackgroundInvalidation()"; if (!stopping) { synchronized (cod.diskCleanupThread.dcMonitor) { if (cod.diskCleanupThread.currentThread != null) { this.c...
[ "protected", "synchronized", "void", "invokeBackgroundInvalidation", "(", "boolean", "scan", ")", "{", "final", "String", "methodName", "=", "\"invokeBackgroundInvalidation()\"", ";", "if", "(", "!", "stopping", ")", "{", "synchronized", "(", "cod", ".", "diskCleanu...
Call this method to invoke LPBT. @param scan - true to disk cache for expired entries.
[ "Call", "this", "method", "to", "invoke", "LPBT", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L437-L452
67,865
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.contains
protected synchronized boolean contains(Object id) { boolean found = false; if (this.explicitBuffer.containsKey(id) || this.scanBuffer.contains(id)) { found = true; } return found; }
java
protected synchronized boolean contains(Object id) { boolean found = false; if (this.explicitBuffer.containsKey(id) || this.scanBuffer.contains(id)) { found = true; } return found; }
[ "protected", "synchronized", "boolean", "contains", "(", "Object", "id", ")", "{", "boolean", "found", "=", "false", ";", "if", "(", "this", ".", "explicitBuffer", ".", "containsKey", "(", "id", ")", "||", "this", ".", "scanBuffer", ".", "contains", "(", ...
Call this method to check whether a specified id exists in the invalidation explicit or scan buffer. @param id - cache id. @return boolean - true means a specified id is found.
[ "Call", "this", "method", "to", "check", "whether", "a", "specified", "id", "exists", "in", "the", "invalidation", "explicit", "or", "scan", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L461-L467
67,866
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.isFull
@Trivial public synchronized boolean isFull() { // final String methodName = "isFull()"; boolean isFull = false; int size = this.explicitBuffer.size() + this.scanBuffer.size() + this.garbageCollectorBuffer.size(); if (size > this.maxInvalidationBufferSize || (System.currentTimeMillis...
java
@Trivial public synchronized boolean isFull() { // final String methodName = "isFull()"; boolean isFull = false; int size = this.explicitBuffer.size() + this.scanBuffer.size() + this.garbageCollectorBuffer.size(); if (size > this.maxInvalidationBufferSize || (System.currentTimeMillis...
[ "@", "Trivial", "public", "synchronized", "boolean", "isFull", "(", ")", "{", "// final String methodName = \"isFull()\";", "boolean", "isFull", "=", "false", ";", "int", "size", "=", "this", ".", "explicitBuffer", ".", "size", "(", ")", "+", "this", ".", "sca...
Call this method to check whether a "full" condition is met to start LPBT. @return boolean - true means the condition "full".
[ "Call", "this", "method", "to", "check", "whether", "a", "full", "condition", "is", "met", "to", "start", "LPBT", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L474-L488
67,867
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.filter
protected synchronized void filter(ValueSet filterValueSet) { boolean explicitBufferEmpty = this.explicitBuffer.isEmpty(); boolean scanBufferEmpty = this.scanBuffer.isEmpty(); if (filterValueSet != null && !filterValueSet.isEmpty() && (!explicitBufferEmpty || !scanBufferEmpty)) { Ite...
java
protected synchronized void filter(ValueSet filterValueSet) { boolean explicitBufferEmpty = this.explicitBuffer.isEmpty(); boolean scanBufferEmpty = this.scanBuffer.isEmpty(); if (filterValueSet != null && !filterValueSet.isEmpty() && (!explicitBufferEmpty || !scanBufferEmpty)) { Ite...
[ "protected", "synchronized", "void", "filter", "(", "ValueSet", "filterValueSet", ")", "{", "boolean", "explicitBufferEmpty", "=", "this", ".", "explicitBuffer", ".", "isEmpty", "(", ")", ";", "boolean", "scanBufferEmpty", "=", "this", ".", "scanBuffer", ".", "i...
Call this method to filter out the specified collection of cache ids based on invalidation buffers. @param filterValueSet - a collection of cache ids,
[ "Call", "this", "method", "to", "filter", "out", "the", "specified", "collection", "of", "cache", "ids", "based", "on", "invalidation", "buffers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L496-L510
67,868
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.size
@Trivial protected synchronized int size(int bufferType) { if (bufferType == EXPLICIT_BUFFER) { return this.explicitBuffer.size(); } else if (bufferType == SCAN_BUFFER) { return this.scanBuffer.size(); } else if (bufferType == GC_BUFFER) { return this.garb...
java
@Trivial protected synchronized int size(int bufferType) { if (bufferType == EXPLICIT_BUFFER) { return this.explicitBuffer.size(); } else if (bufferType == SCAN_BUFFER) { return this.scanBuffer.size(); } else if (bufferType == GC_BUFFER) { return this.garb...
[ "@", "Trivial", "protected", "synchronized", "int", "size", "(", "int", "bufferType", ")", "{", "if", "(", "bufferType", "==", "EXPLICIT_BUFFER", ")", "{", "return", "this", ".", "explicitBuffer", ".", "size", "(", ")", ";", "}", "else", "if", "(", "buff...
Call this method to get the size from one of invalidation buffers. @param eventAlreadyFired - boolean to select which invalidation buffer is used to get the size. @return int - the size.
[ "Call", "this", "method", "to", "get", "the", "size", "from", "one", "of", "invalidation", "buffers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L559-L569
67,869
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.isBackgroundInvalidationInProgress
protected synchronized boolean isBackgroundInvalidationInProgress() { boolean cleanupThreadRunning = false; if (this.cod.diskCleanupThread != null) { synchronized (cod.diskCleanupThread.dcMonitor) { cleanupThreadRunning = this.cod.diskCleanupThread.currentThread != null; ...
java
protected synchronized boolean isBackgroundInvalidationInProgress() { boolean cleanupThreadRunning = false; if (this.cod.diskCleanupThread != null) { synchronized (cod.diskCleanupThread.dcMonitor) { cleanupThreadRunning = this.cod.diskCleanupThread.currentThread != null; ...
[ "protected", "synchronized", "boolean", "isBackgroundInvalidationInProgress", "(", ")", "{", "boolean", "cleanupThreadRunning", "=", "false", ";", "if", "(", "this", ".", "cod", ".", "diskCleanupThread", "!=", "null", ")", "{", "synchronized", "(", "cod", ".", "...
Call this method to check the state of "LPBT in Progress". @return boolean - the state.
[ "Call", "this", "method", "to", "check", "the", "state", "of", "LPBT", "in", "Progress", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L604-L619
67,870
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.isLoopOnce
protected synchronized boolean isLoopOnce() { final String methodName = "isLoopOnce()"; if (loopOnce) { traceDebug(methodName, "cacheName=" + this.cod.cacheName + " isLoopOnce=" + loopOnce + " explicitBuffer=" + explicitBuffer.size() + " scanBuffer=" + this.scanBuffer.siz...
java
protected synchronized boolean isLoopOnce() { final String methodName = "isLoopOnce()"; if (loopOnce) { traceDebug(methodName, "cacheName=" + this.cod.cacheName + " isLoopOnce=" + loopOnce + " explicitBuffer=" + explicitBuffer.size() + " scanBuffer=" + this.scanBuffer.siz...
[ "protected", "synchronized", "boolean", "isLoopOnce", "(", ")", "{", "final", "String", "methodName", "=", "\"isLoopOnce()\"", ";", "if", "(", "loopOnce", ")", "{", "traceDebug", "(", "methodName", ",", "\"cacheName=\"", "+", "this", ".", "cod", ".", "cacheNam...
Call this method to check the state of "Loop Once". @return boolean - the state.
[ "Call", "this", "method", "to", "check", "the", "state", "of", "Loop", "Once", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L626-L633
67,871
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java
HTODInvalidationBuffer.setStopping
protected synchronized void setStopping(boolean stopping) { final String methodName = "setStopping()"; this.stopping = stopping; traceDebug(methodName, "cacheName=" + this.cod.cacheName + " stopping=" + this.stopping); }
java
protected synchronized void setStopping(boolean stopping) { final String methodName = "setStopping()"; this.stopping = stopping; traceDebug(methodName, "cacheName=" + this.cod.cacheName + " stopping=" + this.stopping); }
[ "protected", "synchronized", "void", "setStopping", "(", "boolean", "stopping", ")", "{", "final", "String", "methodName", "=", "\"setStopping()\"", ";", "this", ".", "stopping", "=", "stopping", ";", "traceDebug", "(", "methodName", ",", "\"cacheName=\"", "+", ...
Call this method to set the state of "Stopping". No more invoking the LPBT. @param stopping - boolean to set true or false.
[ "Call", "this", "method", "to", "set", "the", "state", "of", "Stopping", ".", "No", "more", "invoking", "the", "LPBT", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/HTODInvalidationBuffer.java#L662-L666
67,872
OpenLiberty/open-liberty
dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/internal/ExtendedConfigurationImpl.java
ExtendedConfigurationImpl.updateProperties
@Override public void updateProperties(Dictionary<String, Object> properties) throws IOException { lock.lock(); try { doUpdateProperties(properties); } finally { lock.unlock(); } }
java
@Override public void updateProperties(Dictionary<String, Object> properties) throws IOException { lock.lock(); try { doUpdateProperties(properties); } finally { lock.unlock(); } }
[ "@", "Override", "public", "void", "updateProperties", "(", "Dictionary", "<", "String", ",", "Object", ">", "properties", ")", "throws", "IOException", "{", "lock", ".", "lock", "(", ")", ";", "try", "{", "doUpdateProperties", "(", "properties", ")", ";", ...
without other guards, separating updating the properties and sending configuration events can result in missing and duplicate update events even if every update is eventually associated with an event.
[ "without", "other", "guards", "separating", "updating", "the", "properties", "and", "sending", "configuration", "events", "can", "result", "in", "missing", "and", "duplicate", "update", "events", "even", "if", "every", "update", "is", "eventually", "associated", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/internal/ExtendedConfigurationImpl.java#L433-L441
67,873
OpenLiberty/open-liberty
dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/internal/ExtendedConfigurationImpl.java
ExtendedConfigurationImpl.updateCache
@Override public void updateCache(Dictionary<String, Object> properties, Set<ConfigID> references, Set<String> newUniques) throws IOException { lock.lock(); try { removeReferences(); setProperties(properties); this.references = references; this.unique...
java
@Override public void updateCache(Dictionary<String, Object> properties, Set<ConfigID> references, Set<String> newUniques) throws IOException { lock.lock(); try { removeReferences(); setProperties(properties); this.references = references; this.unique...
[ "@", "Override", "public", "void", "updateCache", "(", "Dictionary", "<", "String", ",", "Object", ">", "properties", ",", "Set", "<", "ConfigID", ">", "references", ",", "Set", "<", "String", ">", "newUniques", ")", "throws", "IOException", "{", "lock", "...
Updates ConfigurationAdmin's cache with current config properties. If replaceProp is set to true, current config properties is replace with the given properties before caching and the internal pid-to-config table is updated to reflect the new config properties. @param properties @param replaceProp @param isMetaTypePro...
[ "Updates", "ConfigurationAdmin", "s", "cache", "with", "current", "config", "properties", ".", "If", "replaceProp", "is", "set", "to", "true", "current", "config", "properties", "is", "replace", "with", "the", "given", "properties", "before", "caching", "and", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/internal/ExtendedConfigurationImpl.java#L474-L492
67,874
OpenLiberty/open-liberty
dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/internal/ExtendedConfigurationImpl.java
ExtendedConfigurationImpl.setProperties
private void setProperties(Dictionary<String, ?> d) { if (d == null) { this.properties = null; return; } ConfigurationDictionary newDictionary = new ConfigurationDictionary(); Enumeration<String> keys = d.keys(); while (keys.hasMoreElements()) { ...
java
private void setProperties(Dictionary<String, ?> d) { if (d == null) { this.properties = null; return; } ConfigurationDictionary newDictionary = new ConfigurationDictionary(); Enumeration<String> keys = d.keys(); while (keys.hasMoreElements()) { ...
[ "private", "void", "setProperties", "(", "Dictionary", "<", "String", ",", "?", ">", "d", ")", "{", "if", "(", "d", "==", "null", ")", "{", "this", ".", "properties", "=", "null", ";", "return", ";", "}", "ConfigurationDictionary", "newDictionary", "=", ...
This is not part of Configuration interface. It sets configuration dictionary with specified dictionary and updates configuration attributes if they are not set and found in given dictionary. @param d
[ "This", "is", "not", "part", "of", "Configuration", "interface", ".", "It", "sets", "configuration", "dictionary", "with", "specified", "dictionary", "and", "updates", "configuration", "attributes", "if", "they", "are", "not", "set", "and", "found", "in", "given...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/admin/internal/ExtendedConfigurationImpl.java#L588-L627
67,875
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/PageContextImpl.java
PageContextImpl.proprietaryEvaluate
@SuppressWarnings("unchecked") public static Object proprietaryEvaluate(final String expression, final Class expectedType, final PageContext pageContext, final ProtectedFunctionMapper functionMap, final boolean escape) throws ELException { Object retValue; ExpressionFactory exprFactorySetInPageContext = (...
java
@SuppressWarnings("unchecked") public static Object proprietaryEvaluate(final String expression, final Class expectedType, final PageContext pageContext, final ProtectedFunctionMapper functionMap, final boolean escape) throws ELException { Object retValue; ExpressionFactory exprFactorySetInPageContext = (...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "Object", "proprietaryEvaluate", "(", "final", "String", "expression", ",", "final", "Class", "expectedType", ",", "final", "PageContext", "pageContext", ",", "final", "ProtectedFunctionMapper", "...
Proprietary method to evaluate EL expressions. XXX - This method should go away once the EL interpreter moves out of JSTL and into its own project. For now, this is necessary because the standard machinery is too slow. @param expression The expression to be evaluated @param expectedType The expected resulting type @pa...
[ "Proprietary", "method", "to", "evaluate", "EL", "expressions", ".", "XXX", "-", "This", "method", "should", "go", "away", "once", "the", "EL", "interpreter", "moves", "out", "of", "JSTL", "and", "into", "its", "own", "project", ".", "For", "now", "this", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/PageContextImpl.java#L779-L800
67,876
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/EventManager.java
EventManager.addListener
public void addListener(InstallEventListener listener, String notificationType) { if (listener == null || notificationType == null) return; if (notificationType.isEmpty()) return; if (listenersMap == null) { listenersMap = new HashMap<String, Collection<Instal...
java
public void addListener(InstallEventListener listener, String notificationType) { if (listener == null || notificationType == null) return; if (notificationType.isEmpty()) return; if (listenersMap == null) { listenersMap = new HashMap<String, Collection<Instal...
[ "public", "void", "addListener", "(", "InstallEventListener", "listener", ",", "String", "notificationType", ")", "{", "if", "(", "listener", "==", "null", "||", "notificationType", "==", "null", ")", "return", ";", "if", "(", "notificationType", ".", "isEmpty",...
Adds an install event listener to the listenersMap with a specified notification type @param listener InstallEventListener to add @param notificationType Notification type of listener
[ "Adds", "an", "install", "event", "listener", "to", "the", "listenersMap", "with", "a", "specified", "notification", "type" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/EventManager.java#L35-L49
67,877
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/EventManager.java
EventManager.removeListener
public void removeListener(InstallEventListener listener) { if (listenersMap != null) { for (Collection<InstallEventListener> listeners : listenersMap.values()) { listeners.remove(listener); } } }
java
public void removeListener(InstallEventListener listener) { if (listenersMap != null) { for (Collection<InstallEventListener> listeners : listenersMap.values()) { listeners.remove(listener); } } }
[ "public", "void", "removeListener", "(", "InstallEventListener", "listener", ")", "{", "if", "(", "listenersMap", "!=", "null", ")", "{", "for", "(", "Collection", "<", "InstallEventListener", ">", "listeners", ":", "listenersMap", ".", "values", "(", ")", ")"...
Removes a listener from listenersMap @param listener Listener to remove
[ "Removes", "a", "listener", "from", "listenersMap" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/EventManager.java#L56-L62
67,878
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/EventManager.java
EventManager.fireProgressEvent
public void fireProgressEvent(int state, int progress, String message) throws Exception { if (listenersMap != null) { Collection<InstallEventListener> listeners = listenersMap.get(InstallConstants.EVENT_TYPE_PROGRESS); if (listeners != null) { for (InstallEventListener li...
java
public void fireProgressEvent(int state, int progress, String message) throws Exception { if (listenersMap != null) { Collection<InstallEventListener> listeners = listenersMap.get(InstallConstants.EVENT_TYPE_PROGRESS); if (listeners != null) { for (InstallEventListener li...
[ "public", "void", "fireProgressEvent", "(", "int", "state", ",", "int", "progress", ",", "String", "message", ")", "throws", "Exception", "{", "if", "(", "listenersMap", "!=", "null", ")", "{", "Collection", "<", "InstallEventListener", ">", "listeners", "=", ...
Fires progress event messages @param state The state integer @param progress The progress integer @param message The message to be displayed @throws Exception
[ "Fires", "progress", "event", "messages" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/EventManager.java#L72-L81
67,879
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/ReadAheadQueue.java
ReadAheadQueue.putToFront
public void putToFront(QueueData queueData, short msgBatch) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putToFront", new Object[]{queueData, msgBatch}); _put(queueData, msgBatch, false); if (TraceComponent.is...
java
public void putToFront(QueueData queueData, short msgBatch) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putToFront", new Object[]{queueData, msgBatch}); _put(queueData, msgBatch, false); if (TraceComponent.is...
[ "public", "void", "putToFront", "(", "QueueData", "queueData", ",", "short", "msgBatch", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",",...
Places a message on to the front of the proxy queue so that the next get operation will consume it. @param queueData @param msgBatch
[ "Places", "a", "message", "on", "to", "the", "front", "of", "the", "proxy", "queue", "so", "that", "the", "next", "get", "operation", "will", "consume", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/ReadAheadQueue.java#L267-L275
67,880
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/ReadAheadQueue.java
ReadAheadQueue.getBatch
public synchronized JsMessage[] getBatch(int batchSize, short id) throws SIResourceException, SIConnectionDroppedException, SIConnectionLostException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getBatch", ""+batchSize); int size; synchronized(que...
java
public synchronized JsMessage[] getBatch(int batchSize, short id) throws SIResourceException, SIConnectionDroppedException, SIConnectionLostException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getBatch", ""+batchSize); int size; synchronized(que...
[ "public", "synchronized", "JsMessage", "[", "]", "getBatch", "(", "int", "batchSize", ",", "short", "id", ")", "throws", "SIResourceException", ",", "SIConnectionDroppedException", ",", "SIConnectionLostException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingE...
Gets a batch of several messages from the queue. @param batchSize @param id @return JsMessage[] The batch of messages (or null if the queue is empty) @throws SIResourceException @throws SIConnectionDroppedException @throws SIConnectionLostException
[ "Gets", "a", "batch", "of", "several", "messages", "from", "the", "queue", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/ReadAheadQueue.java#L596-L614
67,881
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/ReadAheadQueue.java
ReadAheadQueue.setTrackBytes
public synchronized void setTrackBytes(boolean trackBytes) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setTrackBytes", trackBytes); this.trackBytes = trackBytes; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setT...
java
public synchronized void setTrackBytes(boolean trackBytes) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setTrackBytes", trackBytes); this.trackBytes = trackBytes; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setT...
[ "public", "synchronized", "void", "setTrackBytes", "(", "boolean", "trackBytes", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", "...
Sets the trackBytes parameter. This flag is used to indicate whether this queue should keep track of the bytes on the queue and request more from the server when it is running low. @param trackBytes
[ "Sets", "the", "trackBytes", "parameter", ".", "This", "flag", "is", "used", "to", "indicate", "whether", "this", "queue", "should", "keep", "track", "of", "the", "bytes", "on", "the", "queue", "and", "request", "more", "from", "the", "server", "when", "it...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/ReadAheadQueue.java#L876-L881
67,882
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/ByteBufferOutputStream.java
ByteBufferOutputStream.reset
public void reset() { current = null; _hasWritten = false; byteBuffersRetrieved = false; limit = -1; total = 0; if (!byteBuffersRetrieved) { ListIterator<WsByteBuffer> it = bbList.listIterator(); while (it.hasNext()) { WsByteBuffer next = it.next(); next.r...
java
public void reset() { current = null; _hasWritten = false; byteBuffersRetrieved = false; limit = -1; total = 0; if (!byteBuffersRetrieved) { ListIterator<WsByteBuffer> it = bbList.listIterator(); while (it.hasNext()) { WsByteBuffer next = it.next(); next.r...
[ "public", "void", "reset", "(", ")", "{", "current", "=", "null", ";", "_hasWritten", "=", "false", ";", "byteBuffersRetrieved", "=", "false", ";", "limit", "=", "-", "1", ";", "total", "=", "0", ";", "if", "(", "!", "byteBuffersRetrieved", ")", "{", ...
clean up...
[ "clean", "up", "..." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/ByteBufferOutputStream.java#L77-L94
67,883
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/ByteBufferOutputStream.java
ByteBufferOutputStream.write
public void write(byte[] buf, int offset, int len) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { // 306998.15 Tr.debug(tc, "write len --> " + len + ", limit->" + limit); } if (len < 0) { if (tc.isErrorEnabled()) Tr.error(tc, "Illegal.Ar...
java
public void write(byte[] buf, int offset, int len) throws IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { // 306998.15 Tr.debug(tc, "write len --> " + len + ", limit->" + limit); } if (len < 0) { if (tc.isErrorEnabled()) Tr.error(tc, "Illegal.Ar...
[ "public", "void", "write", "(", "byte", "[", "]", "buf", ",", "int", "offset", ",", "int", "len", ")", "throws", "IOException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{...
Writes a byte array
[ "Writes", "a", "byte", "array" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/ByteBufferOutputStream.java#L127-L186
67,884
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/WorkManagerImpl.java
WorkManagerImpl.doWork
@Override public void doWork( Work work, long startTimeout, ExecutionContext execContext, WorkListener workListener) throws WorkException { try { beforeRunCheck(work, workListener, startTimeout); ...
java
@Override public void doWork( Work work, long startTimeout, ExecutionContext execContext, WorkListener workListener) throws WorkException { try { beforeRunCheck(work, workListener, startTimeout); ...
[ "@", "Override", "public", "void", "doWork", "(", "Work", "work", ",", "long", "startTimeout", ",", "ExecutionContext", "execContext", ",", "WorkListener", "workListener", ")", "throws", "WorkException", "{", "try", "{", "beforeRunCheck", "(", "work", ",", "work...
This method does not return until the work is completed as the caller expects to wait until the work is completed before getting control back. This method accomplishes this by NOT spinning a thread. @pre providerId != null @param work @param startTimeout @param execContext @param workListener @throws WorkException @s...
[ "This", "method", "does", "not", "return", "until", "the", "work", "is", "completed", "as", "the", "caller", "expects", "to", "wait", "until", "the", "work", "is", "completed", "before", "getting", "control", "back", ".", "This", "method", "accomplishes", "t...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/WorkManagerImpl.java#L102-L122
67,885
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/WorkManagerImpl.java
WorkManagerImpl.scheduleWork
@Override public void scheduleWork( Work work, long startTimeout, ExecutionContext execContext, WorkListener workListener) throws WorkException { try { beforeRunCheck(work, workLi...
java
@Override public void scheduleWork( Work work, long startTimeout, ExecutionContext execContext, WorkListener workListener) throws WorkException { try { beforeRunCheck(work, workLi...
[ "@", "Override", "public", "void", "scheduleWork", "(", "Work", "work", ",", "long", "startTimeout", ",", "ExecutionContext", "execContext", ",", "WorkListener", "workListener", ")", "throws", "WorkException", "{", "try", "{", "beforeRunCheck", "(", "work", ",", ...
This method puts the work on a queue that is later processed by the "scheduler" thread. This allows the method to return to the caller without having to wait for the thread to start. @pre providerId != null @param work @param startTimeout @param execContext @param workListener @throws WorkException @exception NullPoi...
[ "This", "method", "puts", "the", "work", "on", "a", "queue", "that", "is", "later", "processed", "by", "the", "scheduler", "thread", ".", "This", "allows", "the", "method", "to", "return", "to", "the", "caller", "without", "having", "to", "wait", "for", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/WorkManagerImpl.java#L236-L262
67,886
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/WorkManagerImpl.java
WorkManagerImpl.beforeRunCheck
@Trivial private void beforeRunCheck( Work work, WorkListener workListener, long startTimeout) throws WorkRejectedException { WorkRejectedException wrex = null; if (work == null) { wrex = new...
java
@Trivial private void beforeRunCheck( Work work, WorkListener workListener, long startTimeout) throws WorkRejectedException { WorkRejectedException wrex = null; if (work == null) { wrex = new...
[ "@", "Trivial", "private", "void", "beforeRunCheck", "(", "Work", "work", ",", "WorkListener", "workListener", ",", "long", "startTimeout", ")", "throws", "WorkRejectedException", "{", "WorkRejectedException", "wrex", "=", "null", ";", "if", "(", "work", "==", "...
Input parameter checks that can be done before calling run. @param work @param workListener @param startTimeout @throws WorkRejectedException
[ "Input", "parameter", "checks", "that", "can", "be", "done", "before", "calling", "run", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/WorkManagerImpl.java#L273-L295
67,887
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/WorkManagerImpl.java
WorkManagerImpl.stop
public void stop() { final boolean trace = TraceComponent.isAnyTracingEnabled(); // Stop accepting work stopped = true; // Cancel futures for submitted work for (Future<Void> future = futures.poll(); future != null; future = futures.poll()) if (!future.isDone() && f...
java
public void stop() { final boolean trace = TraceComponent.isAnyTracingEnabled(); // Stop accepting work stopped = true; // Cancel futures for submitted work for (Future<Void> future = futures.poll(); future != null; future = futures.poll()) if (!future.isDone() && f...
[ "public", "void", "stop", "(", ")", "{", "final", "boolean", "trace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "// Stop accepting work", "stopped", "=", "true", ";", "// Cancel futures for submitted work", "for", "(", "Future", "<", "Void"...
Provides a way to stop the WorkManager.
[ "Provides", "a", "way", "to", "stop", "the", "WorkManager", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/WorkManagerImpl.java#L311-L329
67,888
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/ListenerPortImpl.java
ListenerPortImpl.close
public void close() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "close"); // begin F177053 ChannelFramework framework = ChannelFrameworkFactory.getChannelFramework(); // F196678.10 try { framework.stopChain(chainInbound, CHAIN_STOP_TIME); } catch (Ch...
java
public void close() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "close"); // begin F177053 ChannelFramework framework = ChannelFrameworkFactory.getChannelFramework(); // F196678.10 try { framework.stopChain(chainInbound, CHAIN_STOP_TIME); } catch (Ch...
[ "public", "void", "close", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"close\"", ")", ";", "// begin F177053", "ChannelFramework", "framework", "=", "ChannelFrameworkFactory", ...
Stops the listener port listening. @see ListenerPort#close()
[ "Stops", "the", "listener", "port", "listening", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/ListenerPortImpl.java#L73-L98
67,889
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/ListenerPortImpl.java
ListenerPortImpl.getAcceptListener
public AcceptListener getAcceptListener() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getAcceptListener"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getAcceptListener", acceptListener); return acceptListener; }
java
public AcceptListener getAcceptListener() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getAcceptListener"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getAcceptListener", acceptListener); return acceptListener; }
[ "public", "AcceptListener", "getAcceptListener", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getAcceptListener\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")"...
Returns the accept listener associated with this listener port. @see ListenerPort#getAcceptListener()
[ "Returns", "the", "accept", "listener", "associated", "with", "this", "listener", "port", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/ListenerPortImpl.java#L105-L111
67,890
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/ListenerPortImpl.java
ListenerPortImpl.getPortNumber
public int getPortNumber() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getPortNumber"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getPortNumber", "" + portNumber); return portNumber; }
java
public int getPortNumber() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getPortNumber"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getPortNumber", "" + portNumber); return portNumber; }
[ "public", "int", "getPortNumber", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getPortNumber\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr",...
Returns the port number associated with this listener port. @see ListenerPort#getPortNumber()
[ "Returns", "the", "port", "number", "associated", "with", "this", "listener", "port", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/ListenerPortImpl.java#L118-L124
67,891
OpenLiberty/open-liberty
dev/com.ibm.ws.rest.handler/src/com/ibm/wsspi/rest/handler/helper/DefaultRoutingHelper.java
DefaultRoutingHelper.containsRoutingContext
public static boolean containsRoutingContext(RESTRequest request) { if (request.getHeader(RESTHandlerContainer.COLLECTIVE_HOST_NAMES) != null) { return true; } //No routing header found, so check query strings return getQueryParameterValue(request, RESTHandlerContainer.COLLE...
java
public static boolean containsRoutingContext(RESTRequest request) { if (request.getHeader(RESTHandlerContainer.COLLECTIVE_HOST_NAMES) != null) { return true; } //No routing header found, so check query strings return getQueryParameterValue(request, RESTHandlerContainer.COLLE...
[ "public", "static", "boolean", "containsRoutingContext", "(", "RESTRequest", "request", ")", "{", "if", "(", "request", ".", "getHeader", "(", "RESTHandlerContainer", ".", "COLLECTIVE_HOST_NAMES", ")", "!=", "null", ")", "{", "return", "true", ";", "}", "//No ro...
Quick check for multiple routing context, without actually fetching all pieces
[ "Quick", "check", "for", "multiple", "routing", "context", "without", "actually", "fetching", "all", "pieces" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.rest.handler/src/com/ibm/wsspi/rest/handler/helper/DefaultRoutingHelper.java#L106-L113
67,892
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/JPAPersistenceManagerImpl.java
JPAPersistenceManagerImpl.createPsu
private PersistenceServiceUnit createPsu(int jobInstanceVersion, int jobExecutionVersion) throws Exception { return databaseStore.createPersistenceServiceUnit(getJobInstanceEntityClass(jobInstanceVersion).getClassLoader(), getJobExecutionEntityClass(jobE...
java
private PersistenceServiceUnit createPsu(int jobInstanceVersion, int jobExecutionVersion) throws Exception { return databaseStore.createPersistenceServiceUnit(getJobInstanceEntityClass(jobInstanceVersion).getClassLoader(), getJobExecutionEntityClass(jobE...
[ "private", "PersistenceServiceUnit", "createPsu", "(", "int", "jobInstanceVersion", ",", "int", "jobExecutionVersion", ")", "throws", "Exception", "{", "return", "databaseStore", ".", "createPersistenceServiceUnit", "(", "getJobInstanceEntityClass", "(", "jobInstanceVersion",...
Creates a PersistenceServiceUnit using the specified entity versions.
[ "Creates", "a", "PersistenceServiceUnit", "using", "the", "specified", "entity", "versions", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/JPAPersistenceManagerImpl.java#L270-L278
67,893
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/JPAPersistenceManagerImpl.java
JPAPersistenceManagerImpl.updateJobExecutionAndInstanceFinalStatus
public JobExecution updateJobExecutionAndInstanceFinalStatus(PersistenceServiceUnit psu, final long jobExecutionId, final BatchStatus finalBatchStatus, ...
java
public JobExecution updateJobExecutionAndInstanceFinalStatus(PersistenceServiceUnit psu, final long jobExecutionId, final BatchStatus finalBatchStatus, ...
[ "public", "JobExecution", "updateJobExecutionAndInstanceFinalStatus", "(", "PersistenceServiceUnit", "psu", ",", "final", "long", "jobExecutionId", ",", "final", "BatchStatus", "finalBatchStatus", ",", "final", "String", "finalExitStatus", ",", "final", "Date", "endTime", ...
This method is called during recovery, as well as during normal operation. Note this is public but not part of the IPersistenceManagerService interface, since there's no equivalent for in-mem persistence. Set the final batchStatus, exitStatus, and endTime for the given jobExecutionId.
[ "This", "method", "is", "called", "during", "recovery", "as", "well", "as", "during", "normal", "operation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/JPAPersistenceManagerImpl.java#L1128-L1170
67,894
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/JPAPersistenceManagerImpl.java
JPAPersistenceManagerImpl.getStepExecutionsTopLevelFromJobExecutionId
@Override public List<StepExecution> getStepExecutionsTopLevelFromJobExecutionId(final long jobExecutionId) throws NoSuchJobExecutionException { final EntityManager em = getPsu().createEntityManager(); try { List<StepExecution> exec = new TranRequest<List<StepExecution>>(em) { ...
java
@Override public List<StepExecution> getStepExecutionsTopLevelFromJobExecutionId(final long jobExecutionId) throws NoSuchJobExecutionException { final EntityManager em = getPsu().createEntityManager(); try { List<StepExecution> exec = new TranRequest<List<StepExecution>>(em) { ...
[ "@", "Override", "public", "List", "<", "StepExecution", ">", "getStepExecutionsTopLevelFromJobExecutionId", "(", "final", "long", "jobExecutionId", ")", "throws", "NoSuchJobExecutionException", "{", "final", "EntityManager", "em", "=", "getPsu", "(", ")", ".", "creat...
order by start time, ascending
[ "order", "by", "start", "time", "ascending" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/JPAPersistenceManagerImpl.java#L1980-L2005
67,895
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/JPAPersistenceManagerImpl.java
JPAPersistenceManagerImpl.updateRemotablePartitionOnRecovery
public RemotablePartitionEntity updateRemotablePartitionOnRecovery(PersistenceServiceUnit psu, final RemotablePartitionEntity partition) { // TODO Auto-generated method stub EntityManager em = psu.createEntityManager(); try {...
java
public RemotablePartitionEntity updateRemotablePartitionOnRecovery(PersistenceServiceUnit psu, final RemotablePartitionEntity partition) { // TODO Auto-generated method stub EntityManager em = psu.createEntityManager(); try {...
[ "public", "RemotablePartitionEntity", "updateRemotablePartitionOnRecovery", "(", "PersistenceServiceUnit", "psu", ",", "final", "RemotablePartitionEntity", "partition", ")", "{", "// TODO Auto-generated method stub", "EntityManager", "em", "=", "psu", ".", "createEntityManager", ...
This method is called during recovery Set the lastUpdated for the given RemotablePartitionEntity
[ "This", "method", "is", "called", "during", "recovery" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/JPAPersistenceManagerImpl.java#L2110-L2127
67,896
OpenLiberty/open-liberty
dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/SessionImpl.java
SessionImpl.addMessageHandler
public <T> void addMessageHandler(Class<T> clazz, Whole<T> handler) { connLink.addMessageHandler(clazz, handler); }
java
public <T> void addMessageHandler(Class<T> clazz, Whole<T> handler) { connLink.addMessageHandler(clazz, handler); }
[ "public", "<", "T", ">", "void", "addMessageHandler", "(", "Class", "<", "T", ">", "clazz", ",", "Whole", "<", "T", ">", "handler", ")", "{", "connLink", ".", "addMessageHandler", "(", "clazz", ",", "handler", ")", ";", "}" ]
websocket 1.1 methods
[ "websocket", "1", ".", "1", "methods" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/SessionImpl.java#L503-L505
67,897
OpenLiberty/open-liberty
dev/com.ibm.ws.webserver.plugin.utility/src/com/ibm/ws/webserver/plugin/utility/utils/PluginUtilityConsole.java
PluginUtilityConsole.promptForUser
public String promptForUser(String arg) { String user = console.readLine(CommandUtils.getMessage("user.enterText", arg) + " "); return user; }
java
public String promptForUser(String arg) { String user = console.readLine(CommandUtils.getMessage("user.enterText", arg) + " "); return user; }
[ "public", "String", "promptForUser", "(", "String", "arg", ")", "{", "String", "user", "=", "console", ".", "readLine", "(", "CommandUtils", ".", "getMessage", "(", "\"user.enterText\"", ",", "arg", ")", "+", "\" \"", ")", ";", "return", "user", ";", "}" ]
Prompt the user to enter text. @return Entered String
[ "Prompt", "the", "user", "to", "enter", "text", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webserver.plugin.utility/src/com/ibm/ws/webserver/plugin/utility/utils/PluginUtilityConsole.java#L46-L50
67,898
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbOnePhaseXaResourceImpl.java
WSRdbOnePhaseXaResourceImpl.end
public void end(Xid xid, int flags) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, "end", new Object[] { ivManagedConnection, AdapterUtil.toString(xid), ...
java
public void end(Xid xid, int flags) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, "end", new Object[] { ivManagedConnection, AdapterUtil.toString(xid), ...
[ "public", "void", "end", "(", "Xid", "xid", ",", "int", "flags", ")", "throws", "XAException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "this", ",...
XAException with return code XA_RBROLLBACK
[ "XAException", "with", "return", "code", "XA_RBROLLBACK" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbOnePhaseXaResourceImpl.java#L236-L265
67,899
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbOnePhaseXaResourceImpl.java
WSRdbOnePhaseXaResourceImpl.rollback
public void rollback(Xid xid) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, "rollback", new Object[] { ivManagedConnection, AdapterUtil.toString(xid) }); ...
java
public void rollback(Xid xid) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, "rollback", new Object[] { ivManagedConnection, AdapterUtil.toString(xid) }); ...
[ "public", "void", "rollback", "(", "Xid", "xid", ")", "throws", "XAException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "this", ",", "tc", ",", "\...
XAER_RMERR return code in XAException
[ "XAER_RMERR", "return", "code", "in", "XAException" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbOnePhaseXaResourceImpl.java#L422-L483