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
111,600
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSchema.java
JSchema.getPathName
public String getPathName(int accessor) { JMFFieldDef field = getFieldDef(accessor); if (field == null) return null; if (field instanceof JSVariant && ((JSVariant)field).getBoxed() != null) return null; return getPathName(field); }
java
public String getPathName(int accessor) { JMFFieldDef field = getFieldDef(accessor); if (field == null) return null; if (field instanceof JSVariant && ((JSVariant)field).getBoxed() != null) return null; return getPathName(field); }
[ "public", "String", "getPathName", "(", "int", "accessor", ")", "{", "JMFFieldDef", "field", "=", "getFieldDef", "(", "accessor", ")", ";", "if", "(", "field", "==", "null", ")", "return", "null", ";", "if", "(", "field", "instanceof", "JSVariant", "&&", ...
Return the most informative possible path name for an accessor @param accessor the accessor for which path name information is desired @return the desired path name or null if the accessor is invalid (note that null is a valid accessor for the root type if the root type is a field; however, "" is an equivalent accesso...
[ "Return", "the", "most", "informative", "possible", "path", "name", "for", "an", "accessor" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSchema.java#L465-L472
111,601
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSchema.java
JSchema.getPathName
public String getPathName(JMFType type) { if (type instanceof JSVariant) { JMFType boxedBy = ((JSVariant)type).getBoxedBy(); if (boxedBy != null) type = boxedBy; } JMFType parent = type.getParent(); while (parent instanceof JSRepeated) parent = parent.getParent(); if (paren...
java
public String getPathName(JMFType type) { if (type instanceof JSVariant) { JMFType boxedBy = ((JSVariant)type).getBoxedBy(); if (boxedBy != null) type = boxedBy; } JMFType parent = type.getParent(); while (parent instanceof JSRepeated) parent = parent.getParent(); if (paren...
[ "public", "String", "getPathName", "(", "JMFType", "type", ")", "{", "if", "(", "type", "instanceof", "JSVariant", ")", "{", "JMFType", "boxedBy", "=", "(", "(", "JSVariant", ")", "type", ")", ".", "getBoxedBy", "(", ")", ";", "if", "(", "boxedBy", "!=...
Return the most informative possible path name for a JMFType @param type the JMFType for which the path name is desired @return the desired path name
[ "Return", "the", "most", "informative", "possible", "path", "name", "for", "a", "JMFType" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSchema.java#L480-L501
111,602
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSchema.java
JSchema.initialize
private void initialize(Map context) { // Guard against recursion. context.put(jsTypeTree, this); // Create temporary accumulators for the contents of the fields and variants instance // variables. List tmpFields = new ArrayList(); List tmpVariants = new ArrayList(); // Perform tasks assig...
java
private void initialize(Map context) { // Guard against recursion. context.put(jsTypeTree, this); // Create temporary accumulators for the contents of the fields and variants instance // variables. List tmpFields = new ArrayList(); List tmpVariants = new ArrayList(); // Perform tasks assig...
[ "private", "void", "initialize", "(", "Map", "context", ")", "{", "// Guard against recursion.", "context", ".", "put", "(", "jsTypeTree", ",", "this", ")", ";", "// Create temporary accumulators for the contents of the fields and variants instance", "// variables.", "List", ...
calculates the multiChoiceCounts for each node in the tree.
[ "calculates", "the", "multiChoiceCounts", "for", "each", "node", "in", "the", "tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSchema.java#L517-L589
111,603
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSchema.java
JSchema.setAccessors
private void setAccessors(int bias, JMFSchema schema) { int nextBoxBias = bias + fields.length + variants.length; for (int i = 0; i < fields.length; i++) { JSField field = fields[i]; if (field instanceof JSVariant) { JSchema boxed = (JSchema) ((JSVariant)field).getBoxed(); boxed.setA...
java
private void setAccessors(int bias, JMFSchema schema) { int nextBoxBias = bias + fields.length + variants.length; for (int i = 0; i < fields.length; i++) { JSField field = fields[i]; if (field instanceof JSVariant) { JSchema boxed = (JSchema) ((JSVariant)field).getBoxed(); boxed.setA...
[ "private", "void", "setAccessors", "(", "int", "bias", ",", "JMFSchema", "schema", ")", "{", "int", "nextBoxBias", "=", "bias", "+", "fields", ".", "length", "+", "variants", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "field...
permits retrieval of accessors relative to box schemas as well as the public schema.
[ "permits", "retrieval", "of", "accessors", "relative", "to", "box", "schemas", "as", "well", "as", "the", "public", "schema", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSchema.java#L672-L691
111,604
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/com/ibm/ws/jaxrs20/endpoint/AbstractJaxRsWebEndpoint.java
AbstractJaxRsWebEndpoint.getBaseURL
protected String getBaseURL(HttpServletRequest request) { // if (forcedBaseAddress != null) { // return forcedBaseAddress; // } String reqPrefix = request.getRequestURL().toString(); String pathInfo = request.getPathInfo() == null ? "" : request.getPathInfo(); //fix for...
java
protected String getBaseURL(HttpServletRequest request) { // if (forcedBaseAddress != null) { // return forcedBaseAddress; // } String reqPrefix = request.getRequestURL().toString(); String pathInfo = request.getPathInfo() == null ? "" : request.getPathInfo(); //fix for...
[ "protected", "String", "getBaseURL", "(", "HttpServletRequest", "request", ")", "{", "// if (forcedBaseAddress != null) {", "// return forcedBaseAddress;", "// }", "String", "reqPrefix", "=", "request", ".", "getRequestURL", "(", ")", ".", "toString",...
Calculate the base URL based on the HttpServletRequest instance @param request @return
[ "Calculate", "the", "base", "URL", "based", "on", "the", "HttpServletRequest", "instance" ]
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/endpoint/AbstractJaxRsWebEndpoint.java#L230-L254
111,605
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BMStatefulBeanO.java
BMStatefulBeanO.postInvoke
@Override public synchronized void postInvoke(int id, EJSDeployedSupport s) throws RemoteException { // Do the normal postinvoke processing first. super.postInvoke(id, s); final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) ...
java
@Override public synchronized void postInvoke(int id, EJSDeployedSupport s) throws RemoteException { // Do the normal postinvoke processing first. super.postInvoke(id, s); final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) ...
[ "@", "Override", "public", "synchronized", "void", "postInvoke", "(", "int", "id", ",", "EJSDeployedSupport", "s", ")", "throws", "RemoteException", "{", "// Do the normal postinvoke processing first.", "super", ".", "postInvoke", "(", "id", ",", "s", ")", ";", "f...
LIDB2018-1 - added method.
[ "LIDB2018", "-", "1", "-", "added", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BMStatefulBeanO.java#L259-L321
111,606
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/JFapUtils.java
JFapUtils.copyWsByteBuffer
public static int copyWsByteBuffer(WsByteBuffer src, WsByteBuffer dst, int amount) { int amountCopied = amount; int dstRemaining = dst.remaining(); int srcRemaining = src.remaining(); if (amountCopied > dstRemaining) amountCopied = dstRemaining; if (amountCopied > srcRemaining) amountC...
java
public static int copyWsByteBuffer(WsByteBuffer src, WsByteBuffer dst, int amount) { int amountCopied = amount; int dstRemaining = dst.remaining(); int srcRemaining = src.remaining(); if (amountCopied > dstRemaining) amountCopied = dstRemaining; if (amountCopied > srcRemaining) amountC...
[ "public", "static", "int", "copyWsByteBuffer", "(", "WsByteBuffer", "src", ",", "WsByteBuffer", "dst", ",", "int", "amount", ")", "{", "int", "amountCopied", "=", "amount", ";", "int", "dstRemaining", "=", "dst", ".", "remaining", "(", ")", ";", "int", "sr...
Copies up to 'amount' bytes from 'src' to 'dst'. Returns the number of bytes actually copied.
[ "Copies", "up", "to", "amount", "bytes", "from", "src", "to", "dst", ".", "Returns", "the", "number", "of", "bytes", "actually", "copied", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/JFapUtils.java#L88-L106
111,607
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalInputStream.java
InternalInputStream.processNack
public void processNack(ControlNack nm) throws SIResourceException { if (tc.isEntryEnabled()) SibTr.entry(tc, "processNack", nm); long startstamp = nm.getStartTick(); long endstamp = nm.getEndTick(); synchronized (this) { // the following steps are performed: // (1) ch...
java
public void processNack(ControlNack nm) throws SIResourceException { if (tc.isEntryEnabled()) SibTr.entry(tc, "processNack", nm); long startstamp = nm.getStartTick(); long endstamp = nm.getEndTick(); synchronized (this) { // the following steps are performed: // (1) ch...
[ "public", "void", "processNack", "(", "ControlNack", "nm", ")", "throws", "SIResourceException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"processNack\"", ",", "nm", ")", ";", "long", "startstamp"...
This method sends Nacks for any ticks within the range startstamp to endstamp which are in Unknown state Those in Requested should already be being satisfied
[ "This", "method", "sends", "Nacks", "for", "any", "ticks", "within", "the", "range", "startstamp", "to", "endstamp", "which", "are", "in", "Unknown", "state", "Those", "in", "Requested", "should", "already", "be", "being", "satisfied" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalInputStream.java#L242-L296
111,608
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalInputStream.java
InternalInputStream.processAckExpected
public void processAckExpected(long stamp) { if (tc.isEntryEnabled()) SibTr.entry(tc, "processAckExpected", new Object[] { new Long(stamp)}); synchronized (this) { // Send Ack message for ticks up to iack sendAck(); // Send Nack message for ticks between iack and stamp if (...
java
public void processAckExpected(long stamp) { if (tc.isEntryEnabled()) SibTr.entry(tc, "processAckExpected", new Object[] { new Long(stamp)}); synchronized (this) { // Send Ack message for ticks up to iack sendAck(); // Send Nack message for ticks between iack and stamp if (...
[ "public", "void", "processAckExpected", "(", "long", "stamp", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"processAckExpected\"", ",", "new", "Object", "[", "]", "{", "new", "Long", "(", "st...
This method will send an Ack up to the current aggregated Ack prefix and send a Nack for any ticks after this
[ "This", "method", "will", "send", "an", "Ack", "up", "to", "the", "current", "aggregated", "Ack", "prefix", "and", "send", "a", "Nack", "for", "any", "ticks", "after", "this" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/InternalInputStream.java#L304-L363
111,609
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java
HttpObjectFactory.getRequest
public HttpRequestMessageImpl getRequest() { HttpRequestMessageImpl req = (HttpRequestMessageImpl) this.reqPool.get(); if (null == req) { req = new HttpRequestMessageImpl(); } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "getRequ...
java
public HttpRequestMessageImpl getRequest() { HttpRequestMessageImpl req = (HttpRequestMessageImpl) this.reqPool.get(); if (null == req) { req = new HttpRequestMessageImpl(); } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "getRequ...
[ "public", "HttpRequestMessageImpl", "getRequest", "(", ")", "{", "HttpRequestMessageImpl", "req", "=", "(", "HttpRequestMessageImpl", ")", "this", ".", "reqPool", ".", "get", "(", ")", ";", "if", "(", "null", "==", "req", ")", "{", "req", "=", "new", "Http...
Retrieve an uninitialized request message. @return HttpRequestMessageImpl
[ "Retrieve", "an", "uninitialized", "request", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java#L55-L64
111,610
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java
HttpObjectFactory.getRequest
public HttpRequestMessageImpl getRequest(HttpInboundServiceContext hsc) { HttpRequestMessageImpl req = getRequest(); req.init(hsc); return req; }
java
public HttpRequestMessageImpl getRequest(HttpInboundServiceContext hsc) { HttpRequestMessageImpl req = getRequest(); req.init(hsc); return req; }
[ "public", "HttpRequestMessageImpl", "getRequest", "(", "HttpInboundServiceContext", "hsc", ")", "{", "HttpRequestMessageImpl", "req", "=", "getRequest", "(", ")", ";", "req", ".", "init", "(", "hsc", ")", ";", "return", "req", ";", "}" ]
Retrieve an incoming request object from the factory. @param hsc @return HttpRequestMessageImpl
[ "Retrieve", "an", "incoming", "request", "object", "from", "the", "factory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java#L72-L76
111,611
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java
HttpObjectFactory.getRequest
public HttpRequestMessageImpl getRequest(HttpOutboundServiceContext hsc) { HttpRequestMessageImpl req = getRequest(); req.init(hsc); return req; }
java
public HttpRequestMessageImpl getRequest(HttpOutboundServiceContext hsc) { HttpRequestMessageImpl req = getRequest(); req.init(hsc); return req; }
[ "public", "HttpRequestMessageImpl", "getRequest", "(", "HttpOutboundServiceContext", "hsc", ")", "{", "HttpRequestMessageImpl", "req", "=", "getRequest", "(", ")", ";", "req", ".", "init", "(", "hsc", ")", ";", "return", "req", ";", "}" ]
Retrieve an outgoing request object from the factory. @param hsc @return HttpRequestMessageImpl
[ "Retrieve", "an", "outgoing", "request", "object", "from", "the", "factory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java#L84-L88
111,612
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java
HttpObjectFactory.releaseRequest
public void releaseRequest(HttpRequestMessageImpl request) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "releaseRequest: " + request); } this.reqPool.put(request); }
java
public void releaseRequest(HttpRequestMessageImpl request) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "releaseRequest: " + request); } this.reqPool.put(request); }
[ "public", "void", "releaseRequest", "(", "HttpRequestMessageImpl", "request", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"releaseRe...
Return a request object to the factory for pooling. @param request
[ "Return", "a", "request", "object", "to", "the", "factory", "for", "pooling", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java#L95-L100
111,613
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java
HttpObjectFactory.getResponse
public HttpResponseMessageImpl getResponse() { HttpResponseMessageImpl resp = (HttpResponseMessageImpl) this.respPool.get(); if (null == resp) { resp = new HttpResponseMessageImpl(); } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc,...
java
public HttpResponseMessageImpl getResponse() { HttpResponseMessageImpl resp = (HttpResponseMessageImpl) this.respPool.get(); if (null == resp) { resp = new HttpResponseMessageImpl(); } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc,...
[ "public", "HttpResponseMessageImpl", "getResponse", "(", ")", "{", "HttpResponseMessageImpl", "resp", "=", "(", "HttpResponseMessageImpl", ")", "this", ".", "respPool", ".", "get", "(", ")", ";", "if", "(", "null", "==", "resp", ")", "{", "resp", "=", "new",...
Retrieve an uninitialized response message. @return HttpResponseMessageImpl
[ "Retrieve", "an", "uninitialized", "response", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java#L107-L116
111,614
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java
HttpObjectFactory.getResponse
public HttpResponseMessageImpl getResponse(HttpInboundServiceContext hsc) { HttpResponseMessageImpl resp = getResponse(); resp.init(hsc); return resp; }
java
public HttpResponseMessageImpl getResponse(HttpInboundServiceContext hsc) { HttpResponseMessageImpl resp = getResponse(); resp.init(hsc); return resp; }
[ "public", "HttpResponseMessageImpl", "getResponse", "(", "HttpInboundServiceContext", "hsc", ")", "{", "HttpResponseMessageImpl", "resp", "=", "getResponse", "(", ")", ";", "resp", ".", "init", "(", "hsc", ")", ";", "return", "resp", ";", "}" ]
Retrieve an outgoing response object from the factory. @param hsc @return HttpResponseMessageImpl
[ "Retrieve", "an", "outgoing", "response", "object", "from", "the", "factory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java#L124-L128
111,615
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java
HttpObjectFactory.getResponse
public HttpResponseMessageImpl getResponse(HttpOutboundServiceContext hsc) { HttpResponseMessageImpl resp = getResponse(); resp.init(hsc); return resp; }
java
public HttpResponseMessageImpl getResponse(HttpOutboundServiceContext hsc) { HttpResponseMessageImpl resp = getResponse(); resp.init(hsc); return resp; }
[ "public", "HttpResponseMessageImpl", "getResponse", "(", "HttpOutboundServiceContext", "hsc", ")", "{", "HttpResponseMessageImpl", "resp", "=", "getResponse", "(", ")", ";", "resp", ".", "init", "(", "hsc", ")", ";", "return", "resp", ";", "}" ]
Retrieve an incoming response object from the factory. @param hsc @return HttpResponseMessageImpl
[ "Retrieve", "an", "incoming", "response", "object", "from", "the", "factory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java#L136-L140
111,616
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java
HttpObjectFactory.releaseResponse
public void releaseResponse(HttpResponseMessageImpl response) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "releaseResponse: " + response); } this.respPool.put(response); }
java
public void releaseResponse(HttpResponseMessageImpl response) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "releaseResponse: " + response); } this.respPool.put(response); }
[ "public", "void", "releaseResponse", "(", "HttpResponseMessageImpl", "response", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"releas...
Return a response object to the factory for pooling. @param response
[ "Return", "a", "response", "object", "to", "the", "factory", "for", "pooling", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java#L147-L152
111,617
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java
HttpObjectFactory.releaseTrailers
public void releaseTrailers(HttpTrailersImpl h) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "releaseTrailers: " + h); } this.hdrPool.put(h); }
java
public void releaseTrailers(HttpTrailersImpl h) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "releaseTrailers: " + h); } this.hdrPool.put(h); }
[ "public", "void", "releaseTrailers", "(", "HttpTrailersImpl", "h", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"releaseTrailers: \""...
Return a trailers object to the pool. @param h
[ "Return", "a", "trailers", "object", "to", "the", "pool", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpObjectFactory.java#L176-L181
111,618
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/ServletConfig.java
ServletConfig.setStartUpWeight
public void setStartUpWeight(Integer weight) { //save previous weight to see if we need to try to remove and add it again to the list this.previousWeight = this.startUpWeight; if (weight != null) { if (weight.intValue() >= 0) this.startUpWeight = weight; ...
java
public void setStartUpWeight(Integer weight) { //save previous weight to see if we need to try to remove and add it again to the list this.previousWeight = this.startUpWeight; if (weight != null) { if (weight.intValue() >= 0) this.startUpWeight = weight; ...
[ "public", "void", "setStartUpWeight", "(", "Integer", "weight", ")", "{", "//save previous weight to see if we need to try to remove and add it again to the list", "this", ".", "previousWeight", "=", "this", ".", "startUpWeight", ";", "if", "(", "weight", "!=", "null", ")...
Sets the startUpWeight. A null value is translated to the default weight. @param weight
[ "Sets", "the", "startUpWeight", ".", "A", "null", "value", "is", "translated", "to", "the", "default", "weight", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/ServletConfig.java#L180-L194
111,619
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/CommsServerByteBufferPool.java
CommsServerByteBufferPool.allocate
@Override public synchronized CommsServerByteBuffer allocate() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "allocate"); CommsServerByteBuffer buff = (CommsServerByteBuffer) super.allocate(); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "allocate", buff); ...
java
@Override public synchronized CommsServerByteBuffer allocate() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "allocate"); CommsServerByteBuffer buff = (CommsServerByteBuffer) super.allocate(); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "allocate", buff); ...
[ "@", "Override", "public", "synchronized", "CommsServerByteBuffer", "allocate", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"allocate\"", ")", ";", "CommsServerByteBuffer", "buff...
Gets a CommsString from the pool. Any CommsString returned will be initially null. @return CommsString
[ "Gets", "a", "CommsString", "from", "the", "pool", ".", "Any", "CommsString", "returned", "will", "be", "initially", "null", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/CommsServerByteBufferPool.java#L49-L59
111,620
OpenLiberty/open-liberty
dev/com.ibm.ws.security.utility/src/com/ibm/ws/security/utility/utils/CommandUtils.java
CommandUtils.getOption
public static String getOption(String key, boolean forceFormat, Object... args) { String option = options.getString(key); if (forceFormat || args.length > 0) { return MessageFormat.format(option, args); } else { return option; } }
java
public static String getOption(String key, boolean forceFormat, Object... args) { String option = options.getString(key); if (forceFormat || args.length > 0) { return MessageFormat.format(option, args); } else { return option; } }
[ "public", "static", "String", "getOption", "(", "String", "key", ",", "boolean", "forceFormat", ",", "Object", "...", "args", ")", "{", "String", "option", "=", "options", ".", "getString", "(", "key", ")", ";", "if", "(", "forceFormat", "||", "args", "....
get the string from options resource bundle. if forceFormat is set to true or args has value, the code invokes MessageFormat.format method even args is not set. This is for processing double single quotes. Since NLS_MESSAGEFORMAT_ALL is set for options resource bundle, every single quote ' character which needs to be t...
[ "get", "the", "string", "from", "options", "resource", "bundle", ".", "if", "forceFormat", "is", "set", "to", "true", "or", "args", "has", "value", "the", "code", "invokes", "MessageFormat", ".", "format", "method", "even", "args", "is", "not", "set", ".",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.utility/src/com/ibm/ws/security/utility/utils/CommandUtils.java#L37-L44
111,621
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/webapp/UIComponentClassicTagBase.java
UIComponentClassicTagBase.createVerbatimComponentFromBodyContent
protected UIComponent createVerbatimComponentFromBodyContent() { UIOutput verbatimComp = null; if (bodyContent != null) { String strContent = bodyContent.getString(); if (strContent != null) { String trimmedContent = strContent.trim(); ...
java
protected UIComponent createVerbatimComponentFromBodyContent() { UIOutput verbatimComp = null; if (bodyContent != null) { String strContent = bodyContent.getString(); if (strContent != null) { String trimmedContent = strContent.trim(); ...
[ "protected", "UIComponent", "createVerbatimComponentFromBodyContent", "(", ")", "{", "UIOutput", "verbatimComp", "=", "null", ";", "if", "(", "bodyContent", "!=", "null", ")", "{", "String", "strContent", "=", "bodyContent", ".", "getString", "(", ")", ";", "if"...
Creates a UIComponent from the BodyContent
[ "Creates", "a", "UIComponent", "from", "the", "BodyContent" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/webapp/UIComponentClassicTagBase.java#L653-L675
111,622
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/webapp/UIComponentClassicTagBase.java
UIComponentClassicTagBase.encodeBegin
protected void encodeBegin() throws IOException { if (log.isLoggable(Level.FINE)) { log.fine("Entered encodeBegin for client-Id: " + _componentInstance.getClientId(getFacesContext())); } _componentInstance.encodeBegin(getFacesContext()); if (log.isLoggable(Level.F...
java
protected void encodeBegin() throws IOException { if (log.isLoggable(Level.FINE)) { log.fine("Entered encodeBegin for client-Id: " + _componentInstance.getClientId(getFacesContext())); } _componentInstance.encodeBegin(getFacesContext()); if (log.isLoggable(Level.F...
[ "protected", "void", "encodeBegin", "(", ")", "throws", "IOException", "{", "if", "(", "log", ".", "isLoggable", "(", "Level", ".", "FINE", ")", ")", "{", "log", ".", "fine", "(", "\"Entered encodeBegin for client-Id: \"", "+", "_componentInstance", ".", "getC...
Invoke encodeBegin on the associated UIComponent. Subclasses can override this method to perform custom processing before or after the UIComponent method invocation.
[ "Invoke", "encodeBegin", "on", "the", "associated", "UIComponent", ".", "Subclasses", "can", "override", "this", "method", "to", "perform", "custom", "processing", "before", "or", "after", "the", "UIComponent", "method", "invocation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/webapp/UIComponentClassicTagBase.java#L802-L813
111,623
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/webapp/UIComponentClassicTagBase.java
UIComponentClassicTagBase.popTag
private void popTag() { Stack<UIComponentClassicTagBase> stack = getStack(pageContext); int size = stack.size(); stack.remove(size - 1); if (size <= 1) { pageContext.removeAttribute(COMPONENT_STACK_ATTR, PageContext.REQUEST_SCOPE); } }
java
private void popTag() { Stack<UIComponentClassicTagBase> stack = getStack(pageContext); int size = stack.size(); stack.remove(size - 1); if (size <= 1) { pageContext.removeAttribute(COMPONENT_STACK_ATTR, PageContext.REQUEST_SCOPE); } }
[ "private", "void", "popTag", "(", ")", "{", "Stack", "<", "UIComponentClassicTagBase", ">", "stack", "=", "getStack", "(", "pageContext", ")", ";", "int", "size", "=", "stack", ".", "size", "(", ")", ";", "stack", ".", "remove", "(", "size", "-", "1", ...
The pageContext's request scope map is used to hold a stack of JSP tag objects seen so far, so that a new tag can find the parent tag that encloses it. Access to the parent tag is used to find the parent UIComponent for the component associated with this tag plus some other uses.
[ "The", "pageContext", "s", "request", "scope", "map", "is", "used", "to", "hold", "a", "stack", "of", "JSP", "tag", "objects", "seen", "so", "far", "so", "that", "a", "new", "tag", "can", "find", "the", "parent", "tag", "that", "encloses", "it", ".", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/webapp/UIComponentClassicTagBase.java#L916-L927
111,624
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/webapp/UIComponentClassicTagBase.java
UIComponentClassicTagBase.removeFormerFacets
@SuppressWarnings("unchecked") private void removeFormerFacets(UIComponent component) { List<String> formerFacetNames = (List<String>)component.getAttributes().get(FORMER_FACET_NAMES_SET_ATTR); if (formerFacetNames != null) { for (String facetName : formerFacetNames) ...
java
@SuppressWarnings("unchecked") private void removeFormerFacets(UIComponent component) { List<String> formerFacetNames = (List<String>)component.getAttributes().get(FORMER_FACET_NAMES_SET_ATTR); if (formerFacetNames != null) { for (String facetName : formerFacetNames) ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "void", "removeFormerFacets", "(", "UIComponent", "component", ")", "{", "List", "<", "String", ">", "formerFacetNames", "=", "(", "List", "<", "String", ">", ")", "component", ".", "getAttributes", ...
See removeFormerChildren.
[ "See", "removeFormerChildren", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/webapp/UIComponentClassicTagBase.java#L1031-L1060
111,625
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/webapp/UIComponentClassicTagBase.java
UIComponentClassicTagBase.checkFacetNameOnParentExists
private boolean checkFacetNameOnParentExists(UIComponentClassicTagBase parentTag, String facetName) { return parentTag._facetsAdded != null && parentTag._facetsAdded.contains(facetName); }
java
private boolean checkFacetNameOnParentExists(UIComponentClassicTagBase parentTag, String facetName) { return parentTag._facetsAdded != null && parentTag._facetsAdded.contains(facetName); }
[ "private", "boolean", "checkFacetNameOnParentExists", "(", "UIComponentClassicTagBase", "parentTag", ",", "String", "facetName", ")", "{", "return", "parentTag", ".", "_facetsAdded", "!=", "null", "&&", "parentTag", ".", "_facetsAdded", ".", "contains", "(", "facetNam...
check if the facet is already added to the parent
[ "check", "if", "the", "facet", "is", "already", "added", "to", "the", "parent" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/webapp/UIComponentClassicTagBase.java#L1383-L1386
111,626
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/webapp/UIComponentClassicTagBase.java
UIComponentClassicTagBase.addFacetNameToParentTag
private void addFacetNameToParentTag(UIComponentClassicTagBase parentTag, String facetName) { if (parentTag._facetsAdded == null) { parentTag._facetsAdded = new ArrayList<String>(); } parentTag._facetsAdded.add(facetName); }
java
private void addFacetNameToParentTag(UIComponentClassicTagBase parentTag, String facetName) { if (parentTag._facetsAdded == null) { parentTag._facetsAdded = new ArrayList<String>(); } parentTag._facetsAdded.add(facetName); }
[ "private", "void", "addFacetNameToParentTag", "(", "UIComponentClassicTagBase", "parentTag", ",", "String", "facetName", ")", "{", "if", "(", "parentTag", ".", "_facetsAdded", "==", "null", ")", "{", "parentTag", ".", "_facetsAdded", "=", "new", "ArrayList", "<", ...
Notify the enclosing JSP tag of the id of this facet's id. The parent tag will later delete any existing view facets that were not seen during this rendering phase; see doEndTag for details.
[ "Notify", "the", "enclosing", "JSP", "tag", "of", "the", "id", "of", "this", "facet", "s", "id", ".", "The", "parent", "tag", "will", "later", "delete", "any", "existing", "view", "facets", "that", "were", "not", "seen", "during", "this", "rendering", "p...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/webapp/UIComponentClassicTagBase.java#L1392-L1399
111,627
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordCipherUtil.java
PasswordCipherUtil.listCustom
public static String listCustom() throws UnsupportedConfigurationException { String output = null; if (cms != null && !cms.isEmpty()) { if (cms.size() != 1) { // the number of the custom encryption is more than one, an exception is thrown. String message = com...
java
public static String listCustom() throws UnsupportedConfigurationException { String output = null; if (cms != null && !cms.isEmpty()) { if (cms.size() != 1) { // the number of the custom encryption is more than one, an exception is thrown. String message = com...
[ "public", "static", "String", "listCustom", "(", ")", "throws", "UnsupportedConfigurationException", "{", "String", "output", "=", "null", ";", "if", "(", "cms", "!=", "null", "&&", "!", "cms", ".", "isEmpty", "(", ")", ")", "{", "if", "(", "cms", ".", ...
Returns the list of custom password encryption if exists. This method only works under the command line utility environment. @return list of the custom password encryption in JSON format @throws UnsupportedConfigurationException If there are multiple custom password encryption exists.
[ "Returns", "the", "list", "of", "custom", "password", "encryption", "if", "exists", ".", "This", "method", "only", "works", "under", "the", "command", "line", "utility", "environment", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordCipherUtil.java#L113-L124
111,628
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordCipherUtil.java
PasswordCipherUtil.decipher
public static byte[] decipher(byte[] encrypted_bytes, String crypto_algorithm) throws InvalidPasswordCipherException, UnsupportedCryptoAlgorithmException { if (crypto_algorithm == null) { logger.logp(Level.SEVERE, PasswordCipherUtil.class.getName(), "decipher", "PASSWORDUTIL_UNK...
java
public static byte[] decipher(byte[] encrypted_bytes, String crypto_algorithm) throws InvalidPasswordCipherException, UnsupportedCryptoAlgorithmException { if (crypto_algorithm == null) { logger.logp(Level.SEVERE, PasswordCipherUtil.class.getName(), "decipher", "PASSWORDUTIL_UNK...
[ "public", "static", "byte", "[", "]", "decipher", "(", "byte", "[", "]", "encrypted_bytes", ",", "String", "crypto_algorithm", ")", "throws", "InvalidPasswordCipherException", ",", "UnsupportedCryptoAlgorithmException", "{", "if", "(", "crypto_algorithm", "==", "null"...
Decipher the input password using the provided algorithm. @param encrypted_bytes @param crypto_algorithm @return byte[] - decrypted password @throws InvalidPasswordCipherException @throws UnsupportedCryptoAlgorithmException
[ "Decipher", "the", "input", "password", "using", "the", "provided", "algorithm", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordCipherUtil.java#L185-L235
111,629
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordCipherUtil.java
PasswordCipherUtil.encipher
public static byte[] encipher(byte[] decrypted_bytes, String crypto_algorithm) throws InvalidPasswordCipherException, UnsupportedCryptoAlgorithmException { EncryptedInfo info = encipher_internal(decrypted_bytes, crypto_algorithm, (String) null); // TODO check null return info.getEncr...
java
public static byte[] encipher(byte[] decrypted_bytes, String crypto_algorithm) throws InvalidPasswordCipherException, UnsupportedCryptoAlgorithmException { EncryptedInfo info = encipher_internal(decrypted_bytes, crypto_algorithm, (String) null); // TODO check null return info.getEncr...
[ "public", "static", "byte", "[", "]", "encipher", "(", "byte", "[", "]", "decrypted_bytes", ",", "String", "crypto_algorithm", ")", "throws", "InvalidPasswordCipherException", ",", "UnsupportedCryptoAlgorithmException", "{", "EncryptedInfo", "info", "=", "encipher_inter...
Encipher the raw password using the provided algorithm. @param decrypted_bytes @param crypto_algorithm @return byte[] - enciphered value @throws InvalidPasswordCipherException @throws UnsupportedCryptoAlgorithmException
[ "Encipher", "the", "raw", "password", "using", "the", "provided", "algorithm", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordCipherUtil.java#L283-L287
111,630
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/config/CommonConfigUtils.java
CommonConfigUtils.getRequiredConfigAttributeWithDefaultValueAndConfigId
public String getRequiredConfigAttributeWithDefaultValueAndConfigId(Map<String, Object> props, String key, String defaultValue, String configId) { String result = getAndTrimConfigAttribute(props, key); if (key != null && result == null) { if (defaultValue != null) { result = ...
java
public String getRequiredConfigAttributeWithDefaultValueAndConfigId(Map<String, Object> props, String key, String defaultValue, String configId) { String result = getAndTrimConfigAttribute(props, key); if (key != null && result == null) { if (defaultValue != null) { result = ...
[ "public", "String", "getRequiredConfigAttributeWithDefaultValueAndConfigId", "(", "Map", "<", "String", ",", "Object", ">", "props", ",", "String", "key", ",", "String", "defaultValue", ",", "String", "configId", ")", "{", "String", "result", "=", "getAndTrimConfigA...
Returns the value for the configuration attribute matching the key provided. If the value does not exist or is empty, the provided default value will be returned. If the default value is also null, an error message will be logged.
[ "Returns", "the", "value", "for", "the", "configuration", "attribute", "matching", "the", "key", "provided", ".", "If", "the", "value", "does", "not", "exist", "or", "is", "empty", "the", "provided", "default", "value", "will", "be", "returned", ".", "If", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/config/CommonConfigUtils.java#L76-L86
111,631
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/ZipCachingProperties.java
ZipCachingProperties.toRelSec
@Trivial public static String toRelSec(long baseNS, long actualNS, int pad) { return toAbsSec(actualNS - baseNS, pad); }
java
@Trivial public static String toRelSec(long baseNS, long actualNS, int pad) { return toAbsSec(actualNS - baseNS, pad); }
[ "@", "Trivial", "public", "static", "String", "toRelSec", "(", "long", "baseNS", ",", "long", "actualNS", ",", "int", "pad", ")", "{", "return", "toAbsSec", "(", "actualNS", "-", "baseNS", ",", "pad", ")", ";", "}" ]
Display the difference between two nano-seconds values as a decimal seconds value. Display three places after the decimal point, and left the integer value with '0' to a minimum of the specified number of characters. @param baseNS The value to subtract from the second parameter. @param actualNS The from which to subt...
[ "Display", "the", "difference", "between", "two", "nano", "-", "seconds", "values", "as", "a", "decimal", "seconds", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/ZipCachingProperties.java#L458-L461
111,632
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/ZipCachingProperties.java
ZipCachingProperties.toAbsSec
@Trivial public static String toAbsSec(long nano, int padLeft) { if ( nano < 0 ) { return "-" + toAbsSec(-1 * nano, padLeft); } else if ( nano == 0 ) { return PAD.substring(0, padLeft) + "." + PAD.substring(PAD_RIGHT); } String nanoText = Long.toString(nano);...
java
@Trivial public static String toAbsSec(long nano, int padLeft) { if ( nano < 0 ) { return "-" + toAbsSec(-1 * nano, padLeft); } else if ( nano == 0 ) { return PAD.substring(0, padLeft) + "." + PAD.substring(PAD_RIGHT); } String nanoText = Long.toString(nano);...
[ "@", "Trivial", "public", "static", "String", "toAbsSec", "(", "long", "nano", ",", "int", "padLeft", ")", "{", "if", "(", "nano", "<", "0", ")", "{", "return", "\"-\"", "+", "toAbsSec", "(", "-", "1", "*", "nano", ",", "padLeft", ")", ";", "}", ...
Display a nano-seconds value as a decimal seconds value. Display six places after the decimal point, and left the integer value with '0' to a minimum of the specified number of pad characters. Negative values are handled by prepending '-' to the left of the display value of the positive nano-seconds value. This will...
[ "Display", "a", "nano", "-", "seconds", "value", "as", "a", "decimal", "seconds", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/ZipCachingProperties.java#L515-L559
111,633
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureRepository.java
FeatureRepository.dispose
public void dispose() { storeCache(); // PURGE provisioning data! BYE-BYE!! autoFeatures = null; knownFeatures = null; knownBadFeatures = null; for (SubsystemFeatureDefinitionImpl def : cachedFeatures.values()) { def.setProvisioningDetails(null); } ...
java
public void dispose() { storeCache(); // PURGE provisioning data! BYE-BYE!! autoFeatures = null; knownFeatures = null; knownBadFeatures = null; for (SubsystemFeatureDefinitionImpl def : cachedFeatures.values()) { def.setProvisioningDetails(null); } ...
[ "public", "void", "dispose", "(", ")", "{", "storeCache", "(", ")", ";", "// PURGE provisioning data! BYE-BYE!!", "autoFeatures", "=", "null", ";", "knownFeatures", "=", "null", ";", "knownBadFeatures", "=", "null", ";", "for", "(", "SubsystemFeatureDefinitionImpl",...
Release all resources associated with the provisioning operation
[ "Release", "all", "resources", "associated", "with", "the", "provisioning", "operation" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureRepository.java#L152-L163
111,634
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureRepository.java
FeatureRepository.storeCache
public void storeCache() { if (cacheOk && cacheRes != null && isDirty) { OutputStream out = null; try { out = cacheRes.putStream(); PrintWriter writer = new PrintWriter(new OutputStreamWriter(out, "UTF-8")); for (SubsystemFeatureDefinitionI...
java
public void storeCache() { if (cacheOk && cacheRes != null && isDirty) { OutputStream out = null; try { out = cacheRes.putStream(); PrintWriter writer = new PrintWriter(new OutputStreamWriter(out, "UTF-8")); for (SubsystemFeatureDefinitionI...
[ "public", "void", "storeCache", "(", ")", "{", "if", "(", "cacheOk", "&&", "cacheRes", "!=", "null", "&&", "isDirty", ")", "{", "OutputStream", "out", "=", "null", ";", "try", "{", "out", "=", "cacheRes", ".", "putStream", "(", ")", ";", "PrintWriter",...
Write the feature cache file @see #readCache()
[ "Write", "the", "feature", "cache", "file" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureRepository.java#L260-L307
111,635
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureRepository.java
FeatureRepository.readFeatureNameList
private Set<String> readFeatureNameList(String line) { String[] parts = FeatureDefinitionUtils.installedFeatureSplitPattern.split(line); return parts.length > 0 ? Collections.unmodifiableSet(new HashSet<String>(Arrays.asList(parts))) : Collections.<String> emptySet(); }
java
private Set<String> readFeatureNameList(String line) { String[] parts = FeatureDefinitionUtils.installedFeatureSplitPattern.split(line); return parts.length > 0 ? Collections.unmodifiableSet(new HashSet<String>(Arrays.asList(parts))) : Collections.<String> emptySet(); }
[ "private", "Set", "<", "String", ">", "readFeatureNameList", "(", "String", "line", ")", "{", "String", "[", "]", "parts", "=", "FeatureDefinitionUtils", ".", "installedFeatureSplitPattern", ".", "split", "(", "line", ")", ";", "return", "parts", ".", "length"...
Read the list of feature names from the cache string @param line the line read from the cache file @return Set of feature names
[ "Read", "the", "list", "of", "feature", "names", "from", "the", "cache", "string" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureRepository.java#L353-L356
111,636
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureRepository.java
FeatureRepository.setInstalledFeatures
public void setInstalledFeatures(Set<String> newInstalledFeatures, Set<String> newConfiguredFeatures, boolean configurationError) { Set<String> current = installedFeatures; if (!current.equals(newInstalledFeatures)) { isDirty = true; } if (newInstalledFeatures.isEmpty()) ...
java
public void setInstalledFeatures(Set<String> newInstalledFeatures, Set<String> newConfiguredFeatures, boolean configurationError) { Set<String> current = installedFeatures; if (!current.equals(newInstalledFeatures)) { isDirty = true; } if (newInstalledFeatures.isEmpty()) ...
[ "public", "void", "setInstalledFeatures", "(", "Set", "<", "String", ">", "newInstalledFeatures", ",", "Set", "<", "String", ">", "newConfiguredFeatures", ",", "boolean", "configurationError", ")", "{", "Set", "<", "String", ">", "current", "=", "installedFeatures...
Change the active list of installed features @param newInstalledFeatures new set of installed features. Replaces the previous set.
[ "Change", "the", "active", "list", "of", "installed", "features" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureRepository.java#L528-L548
111,637
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureRepository.java
FeatureRepository.lowerFeature
@Trivial public static String lowerFeature(String inFeature) { if (inFeature == null || inFeature.isEmpty()) return inFeature; // Preserve the prefix (no case shift) int colonIndex = inFeature.indexOf(":"); if (colonIndex > -1 && inFeature.length() > colonIndex) { ...
java
@Trivial public static String lowerFeature(String inFeature) { if (inFeature == null || inFeature.isEmpty()) return inFeature; // Preserve the prefix (no case shift) int colonIndex = inFeature.indexOf(":"); if (colonIndex > -1 && inFeature.length() > colonIndex) { ...
[ "@", "Trivial", "public", "static", "String", "lowerFeature", "(", "String", "inFeature", ")", "{", "if", "(", "inFeature", "==", "null", "||", "inFeature", ".", "isEmpty", "(", ")", ")", "return", "inFeature", ";", "// Preserve the prefix (no case shift)", "int...
Get feature name with product extension unchanged and the feature name converted to lower case. note: feature type in featureLocations is case specific. In order for the bundles to be found, the case of the product extension in the feature name needs to be preserved. If it is not, an incorrect bundle repository type w...
[ "Get", "feature", "name", "with", "product", "extension", "unchanged", "and", "the", "feature", "name", "converted", "to", "lower", "case", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureRepository.java#L664-L678
111,638
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureRepository.java
FeatureRepository.removeInstalledFeature
public void removeInstalledFeature(String feature) { this.configurationError = true; HashSet<String> newInstalledFeatures = new HashSet<>(installedFeatures); if (newInstalledFeatures.remove(feature)) { installedFeatures = newInstalledFeatures.isEmpty() ? Collections.<String> emptySet...
java
public void removeInstalledFeature(String feature) { this.configurationError = true; HashSet<String> newInstalledFeatures = new HashSet<>(installedFeatures); if (newInstalledFeatures.remove(feature)) { installedFeatures = newInstalledFeatures.isEmpty() ? Collections.<String> emptySet...
[ "public", "void", "removeInstalledFeature", "(", "String", "feature", ")", "{", "this", ".", "configurationError", "=", "true", ";", "HashSet", "<", "String", ">", "newInstalledFeatures", "=", "new", "HashSet", "<>", "(", "installedFeatures", ")", ";", "if", "...
Remove an installed feature from the list. This is intended to be used to remove features that failed during bundle resolution because of java version restrictions. It will also set configurationError to true, as this should only be called in an error scenario. @param feature The feature to remove
[ "Remove", "an", "installed", "feature", "from", "the", "list", ".", "This", "is", "intended", "to", "be", "used", "to", "remove", "features", "that", "failed", "during", "bundle", "resolution", "because", "of", "java", "version", "restrictions", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureRepository.java#L817-L823
111,639
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxrs.2.0.client/src/com/ibm/ws/jaxrs20/client/JAXRSClientImpl.java
JAXRSClientImpl.target
@Override public WebTarget target(UriBuilder builder) { checkClosed(); WebTargetImpl wt = (WebTargetImpl) super.target(builder); //construct our own webclient JAXRSClientFactoryBean bean = new JAXRSClientFactoryBean(); URI uri = builder.build(); bean.setAddress(uri.t...
java
@Override public WebTarget target(UriBuilder builder) { checkClosed(); WebTargetImpl wt = (WebTargetImpl) super.target(builder); //construct our own webclient JAXRSClientFactoryBean bean = new JAXRSClientFactoryBean(); URI uri = builder.build(); bean.setAddress(uri.t...
[ "@", "Override", "public", "WebTarget", "target", "(", "UriBuilder", "builder", ")", "{", "checkClosed", "(", ")", ";", "WebTargetImpl", "wt", "=", "(", "WebTargetImpl", ")", "super", ".", "target", "(", "builder", ")", ";", "//construct our own webclient", "J...
override this method, then put our webclient into cxf client API
[ "override", "this", "method", "then", "put", "our", "webclient", "into", "cxf", "client", "API" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.client/src/com/ibm/ws/jaxrs20/client/JAXRSClientImpl.java#L159-L220
111,640
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxrs.2.0.client/src/com/ibm/ws/jaxrs20/client/JAXRSClientImpl.java
JAXRSClientImpl.close
@Override public void close() { if (closed.compareAndSet(false, true)) { super.close(); synchronized (baseClients) { for (WebClient wc : baseClients) { wc.close(); } } String moduleName = getModuleName(); ...
java
@Override public void close() { if (closed.compareAndSet(false, true)) { super.close(); synchronized (baseClients) { for (WebClient wc : baseClients) { wc.close(); } } String moduleName = getModuleName(); ...
[ "@", "Override", "public", "void", "close", "(", ")", "{", "if", "(", "closed", ".", "compareAndSet", "(", "false", ",", "true", ")", ")", "{", "super", ".", "close", "(", ")", ";", "synchronized", "(", "baseClients", ")", "{", "for", "(", "WebClient...
make the cxf ClientImpl.close works, and we should close all clients too
[ "make", "the", "cxf", "ClientImpl", ".", "close", "works", "and", "we", "should", "close", "all", "clients", "too" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.client/src/com/ibm/ws/jaxrs20/client/JAXRSClientImpl.java#L225-L254
111,641
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/NioTCPChannel.java
NioTCPChannel.createOutboundSocketIOChannel
public SocketIOChannel createOutboundSocketIOChannel() throws IOException { SocketChannel channel = SocketChannel.open(); Socket socket = channel.socket(); return NioSocketIOChannel.createIOChannel(socket, this); }
java
public SocketIOChannel createOutboundSocketIOChannel() throws IOException { SocketChannel channel = SocketChannel.open(); Socket socket = channel.socket(); return NioSocketIOChannel.createIOChannel(socket, this); }
[ "public", "SocketIOChannel", "createOutboundSocketIOChannel", "(", ")", "throws", "IOException", "{", "SocketChannel", "channel", "=", "SocketChannel", ".", "open", "(", ")", ";", "Socket", "socket", "=", "channel", ".", "socket", "(", ")", ";", "return", "NioSo...
LIDB3618-2 add method
[ "LIDB3618", "-", "2", "add", "method" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/NioTCPChannel.java#L73-L77
111,642
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.displayChannels
public static void displayChannels(TraceComponent logger, ChannelFramework cfw, String message, String prefix) { if (logger.isDebugEnabled()) { chTrace.traceChannels(logger, cfw, message, prefix); } }
java
public static void displayChannels(TraceComponent logger, ChannelFramework cfw, String message, String prefix) { if (logger.isDebugEnabled()) { chTrace.traceChannels(logger, cfw, message, prefix); } }
[ "public", "static", "void", "displayChannels", "(", "TraceComponent", "logger", ",", "ChannelFramework", "cfw", ",", "String", "message", ",", "String", "prefix", ")", "{", "if", "(", "logger", ".", "isDebugEnabled", "(", ")", ")", "{", "chTrace", ".", "trac...
Print channel configuration - for debug. @param logger @param cfw @param message @param prefix
[ "Print", "channel", "configuration", "-", "for", "debug", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L108-L113
111,643
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.debugTrace
@Override protected void debugTrace(Object logTool, String msg, Object... parameters) { Tr.debug((TraceComponent) logTool, msg, parameters); }
java
@Override protected void debugTrace(Object logTool, String msg, Object... parameters) { Tr.debug((TraceComponent) logTool, msg, parameters); }
[ "@", "Override", "protected", "void", "debugTrace", "(", "Object", "logTool", ",", "String", "msg", ",", "Object", "...", "parameters", ")", "{", "Tr", ".", "debug", "(", "(", "TraceComponent", ")", "logTool", ",", "msg", ",", "parameters", ")", ";", "}"...
Debug trace using either Tr or Logger @param logTool Caller's LogTool (should be Logger OR TraceComponent) @param msg Debug message @see ChannelUtilsBase#debugTrace(Object, String)
[ "Debug", "trace", "using", "either", "Tr", "or", "Logger" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L196-L199
111,644
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.extractList
public static String[] extractList(String input, char delimiter) { int end = input.indexOf(delimiter); if (-1 == end) { return new String[] { input.trim() }; } List<String> output = new LinkedList<String>(); int start = 0; do { output.add(input.sub...
java
public static String[] extractList(String input, char delimiter) { int end = input.indexOf(delimiter); if (-1 == end) { return new String[] { input.trim() }; } List<String> output = new LinkedList<String>(); int start = 0; do { output.add(input.sub...
[ "public", "static", "String", "[", "]", "extractList", "(", "String", "input", ",", "char", "delimiter", ")", "{", "int", "end", "=", "input", ".", "indexOf", "(", "delimiter", ")", ";", "if", "(", "-", "1", "==", "end", ")", "{", "return", "new", ...
Convert the input string to a list of strings based on the provided delimiter. @param input @param delimiter @return String[]
[ "Convert", "the", "input", "string", "to", "a", "list", "of", "strings", "based", "on", "the", "provided", "delimiter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L209-L226
111,645
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.extractKey
public static String extractKey(String input) { int index = input.indexOf('='); if (-1 == index) { return input.trim(); } return input.substring(0, index).trim(); }
java
public static String extractKey(String input) { int index = input.indexOf('='); if (-1 == index) { return input.trim(); } return input.substring(0, index).trim(); }
[ "public", "static", "String", "extractKey", "(", "String", "input", ")", "{", "int", "index", "=", "input", ".", "indexOf", "(", "'", "'", ")", ";", "if", "(", "-", "1", "==", "index", ")", "{", "return", "input", ".", "trim", "(", ")", ";", "}",...
Extract the key of a key=value pair contained withint the provided string. If no equals sign is found, then the input is returned with white space trimmed. @param input @return String
[ "Extract", "the", "key", "of", "a", "key", "=", "value", "pair", "contained", "withint", "the", "provided", "string", ".", "If", "no", "equals", "sign", "is", "found", "then", "the", "input", "is", "returned", "with", "white", "space", "trimmed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L236-L242
111,646
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.extractValue
public static String extractValue(String input) { int index = input.indexOf('=') + 1; if (0 == index || index >= input.length()) { return ""; } return input.substring(index).trim(); }
java
public static String extractValue(String input) { int index = input.indexOf('=') + 1; if (0 == index || index >= input.length()) { return ""; } return input.substring(index).trim(); }
[ "public", "static", "String", "extractValue", "(", "String", "input", ")", "{", "int", "index", "=", "input", ".", "indexOf", "(", "'", "'", ")", "+", "1", ";", "if", "(", "0", "==", "index", "||", "index", ">=", "input", ".", "length", "(", ")", ...
Extract the value of a key=value pair contained within the provided string. If no value exists, then an empty string is returned. @param input @return String
[ "Extract", "the", "value", "of", "a", "key", "=", "value", "pair", "contained", "within", "the", "provided", "string", ".", "If", "no", "value", "exists", "then", "an", "empty", "string", "is", "returned", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L252-L258
111,647
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.load
private static synchronized Map<String, List<String>> load(Map<String, Object> config, boolean start, boolean restart) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); if (bTrace && tc.isDebugEnabled()) { Tr.debug(tc, "Loading CHFW config from " + config); } Ma...
java
private static synchronized Map<String, List<String>> load(Map<String, Object> config, boolean start, boolean restart) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); if (bTrace && tc.isDebugEnabled()) { Tr.debug(tc, "Loading CHFW config from " + config); } Ma...
[ "private", "static", "synchronized", "Map", "<", "String", ",", "List", "<", "String", ">", ">", "load", "(", "Map", "<", "String", ",", "Object", ">", "config", ",", "boolean", "start", ",", "boolean", "restart", ")", "{", "final", "boolean", "bTrace", ...
Load and possibly start the provided configuration information. @param config @param start @param restart @return Map<String,List<String>> @see ChannelUtils#loadConfig(Dictionary) @see ChannelUtils#startConfig(Dictionary, boolean)
[ "Load", "and", "possibly", "start", "the", "provided", "configuration", "information", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L334-L370
111,648
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.loadConfig
public static synchronized Map<String, List<String>> loadConfig(Map<String, Object> config) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); boolean usingDelayed = false; if (null == config) { if (delayedConfig.isEmpty()) { return null; } ...
java
public static synchronized Map<String, List<String>> loadConfig(Map<String, Object> config) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); boolean usingDelayed = false; if (null == config) { if (delayedConfig.isEmpty()) { return null; } ...
[ "public", "static", "synchronized", "Map", "<", "String", ",", "List", "<", "String", ">", ">", "loadConfig", "(", "Map", "<", "String", ",", "Object", ">", "config", ")", "{", "final", "boolean", "bTrace", "=", "TraceComponent", ".", "isAnyTracingEnabled", ...
Using the provided configuration, create or update channels, chains, and groups within the channel framework. This will return a map containing lists of created objects. The keys include "factory", "chain", "group", and "channel". The lists will contains the name of the objects such as channel names, chain names, etc....
[ "Using", "the", "provided", "configuration", "create", "or", "update", "channels", "chains", "and", "groups", "within", "the", "channel", "framework", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L385-L407
111,649
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.stopChains
public static void stopChains(List<String> chains, long timeout, final Runnable runOnStop) { if (null == chains || chains.isEmpty()) { return; } final boolean bTrace = TraceComponent.isAnyTracingEnabled(); final ChannelFramework cf = ChannelFrameworkFactory.getChannelFramewor...
java
public static void stopChains(List<String> chains, long timeout, final Runnable runOnStop) { if (null == chains || chains.isEmpty()) { return; } final boolean bTrace = TraceComponent.isAnyTracingEnabled(); final ChannelFramework cf = ChannelFrameworkFactory.getChannelFramewor...
[ "public", "static", "void", "stopChains", "(", "List", "<", "String", ">", "chains", ",", "long", "timeout", ",", "final", "Runnable", "runOnStop", ")", "{", "if", "(", "null", "==", "chains", "||", "chains", ".", "isEmpty", "(", ")", ")", "{", "return...
Utility method that stops any of the chains created by the configuration that might still be running. The provided timeout is used to quiesce any active connections on the chains. @param chains @param timeout in milliseconds - a timeout value of -1 will use the channel framework default quiesce timeout setting
[ "Utility", "method", "that", "stops", "any", "of", "the", "chains", "created", "by", "the", "configuration", "that", "might", "still", "be", "running", ".", "The", "provided", "timeout", "is", "used", "to", "quiesce", "any", "active", "connections", "on", "t...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L846-L914
111,650
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.loadFactories
private static List<String> loadFactories(Map<String, String[]> factories) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); final ChannelFramework cf = ChannelFrameworkFactory.getChannelFramework(); List<String> createdFactories = new ArrayList<String>(factories.size()); S...
java
private static List<String> loadFactories(Map<String, String[]> factories) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); final ChannelFramework cf = ChannelFrameworkFactory.getChannelFramework(); List<String> createdFactories = new ArrayList<String>(factories.size()); S...
[ "private", "static", "List", "<", "String", ">", "loadFactories", "(", "Map", "<", "String", ",", "String", "[", "]", ">", "factories", ")", "{", "final", "boolean", "bTrace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "final", "Chan...
Load channel factories in the framework based on the provided factory configurations. @param factories @return List<String> - factories created successfully
[ "Load", "channel", "factories", "in", "the", "framework", "based", "on", "the", "provided", "factory", "configurations", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L923-L966
111,651
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.defineEndPoint
private static EndPointInfo defineEndPoint(EndPointMgr epm, String name, String[] config) { String host = null; String port = null; for (int i = 0; i < config.length; i++) { String key = ChannelUtils.extractKey(config[i]); if ("host".equalsIgnoreCase(key)) { ...
java
private static EndPointInfo defineEndPoint(EndPointMgr epm, String name, String[] config) { String host = null; String port = null; for (int i = 0; i < config.length; i++) { String key = ChannelUtils.extractKey(config[i]); if ("host".equalsIgnoreCase(key)) { ...
[ "private", "static", "EndPointInfo", "defineEndPoint", "(", "EndPointMgr", "epm", ",", "String", "name", ",", "String", "[", "]", "config", ")", "{", "String", "host", "=", "null", ";", "String", "port", "=", "null", ";", "for", "(", "int", "i", "=", "...
Define a new endpoint definition using the input name and list of properties. @param name @param config @return EndPointInfo @throws IllegalArgumentException if input values are incorrect
[ "Define", "a", "new", "endpoint", "definition", "using", "the", "input", "name", "and", "list", "of", "properties", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L977-L989
111,652
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.loadEndPoints
private static List<String> loadEndPoints(Map<String, String[]> endpoints) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); final EndPointMgr epm = EndPointMgrImpl.getRef(); List<String> createdEndpoints = new ArrayList<String>(endpoints.size()); for (Entry<String, String[...
java
private static List<String> loadEndPoints(Map<String, String[]> endpoints) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); final EndPointMgr epm = EndPointMgrImpl.getRef(); List<String> createdEndpoints = new ArrayList<String>(endpoints.size()); for (Entry<String, String[...
[ "private", "static", "List", "<", "String", ">", "loadEndPoints", "(", "Map", "<", "String", ",", "String", "[", "]", ">", "endpoints", ")", "{", "final", "boolean", "bTrace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "final", "EndP...
Load chain endpoints based on the provided configuration. @param endpoints @return List<String> - endpoints created successfully
[ "Load", "chain", "endpoints", "based", "on", "the", "provided", "configuration", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L997-L1016
111,653
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.fireMissingEvent
private static void fireMissingEvent() { if (delayCheckSignaled) { // already going... return; } ScheduledEventService scheduler = CHFWBundle.getScheduleService(); if (null != scheduler) { delayCheckSignaled = true; ChannelFrameworkImpl cf ...
java
private static void fireMissingEvent() { if (delayCheckSignaled) { // already going... return; } ScheduledEventService scheduler = CHFWBundle.getScheduleService(); if (null != scheduler) { delayCheckSignaled = true; ChannelFrameworkImpl cf ...
[ "private", "static", "void", "fireMissingEvent", "(", ")", "{", "if", "(", "delayCheckSignaled", ")", "{", "// already going...", "return", ";", "}", "ScheduledEventService", "scheduler", "=", "CHFWBundle", ".", "getScheduleService", "(", ")", ";", "if", "(", "n...
Fire the missing config delayed event.
[ "Fire", "the", "missing", "config", "delayed", "event", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L1130-L1142
111,654
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.unloadChains
private static void unloadChains(Iterator<String> chains) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); final ChannelFramework cf = ChannelFrameworkFactory.getChannelFramework(); List<String> runningChains = new LinkedList<String>(); while (chains.hasNext()) { ...
java
private static void unloadChains(Iterator<String> chains) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); final ChannelFramework cf = ChannelFrameworkFactory.getChannelFramework(); List<String> runningChains = new LinkedList<String>(); while (chains.hasNext()) { ...
[ "private", "static", "void", "unloadChains", "(", "Iterator", "<", "String", ">", "chains", ")", "{", "final", "boolean", "bTrace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "final", "ChannelFramework", "cf", "=", "ChannelFrameworkFactory",...
Stop and unload any of the provided chain names that might exist and be currently running. @param chains
[ "Stop", "and", "unload", "any", "of", "the", "provided", "chain", "names", "that", "might", "exist", "and", "be", "currently", "running", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L1150-L1196
111,655
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.loadGroups
private static List<String> loadGroups(Map<String, String[]> groups, boolean start, boolean restart) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); final ChannelFramework cf = ChannelFrameworkFactory.getChannelFramework(); List<String> createdGroups = new ArrayList<String>(groups...
java
private static List<String> loadGroups(Map<String, String[]> groups, boolean start, boolean restart) { final boolean bTrace = TraceComponent.isAnyTracingEnabled(); final ChannelFramework cf = ChannelFrameworkFactory.getChannelFramework(); List<String> createdGroups = new ArrayList<String>(groups...
[ "private", "static", "List", "<", "String", ">", "loadGroups", "(", "Map", "<", "String", ",", "String", "[", "]", ">", "groups", ",", "boolean", "start", ",", "boolean", "restart", ")", "{", "final", "boolean", "bTrace", "=", "TraceComponent", ".", "isA...
Load chain groups in the framework based on the provided group configurations. @param groups @param start @param restart @return List<String> - groups created successfully
[ "Load", "chain", "groups", "in", "the", "framework", "based", "on", "the", "provided", "group", "configurations", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L1290-L1346
111,656
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java
ChannelUtils.checkMissingConfig
public static synchronized void checkMissingConfig() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Checking for missing config"); } if (delayedConfig.isEmpty()) { return; } delayCheckSignaled = false; final Chan...
java
public static synchronized void checkMissingConfig() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Checking for missing config"); } if (delayedConfig.isEmpty()) { return; } delayCheckSignaled = false; final Chan...
[ "public", "static", "synchronized", "void", "checkMissingConfig", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"Checking for mis...
Check and report on any missing configuration.
[ "Check", "and", "report", "on", "any", "missing", "configuration", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChannelUtils.java#L1351-L1374
111,657
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/AmbiguousEJBRefObjectFactory.java
AmbiguousEJBRefObjectFactory.getObjectInstance
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { AmbiguousEJBReferenceException ambiguousEx; if (Tra...
java
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception { AmbiguousEJBReferenceException ambiguousEx; if (Tra...
[ "public", "Object", "getObjectInstance", "(", "Object", "obj", ",", "Name", "name", ",", "Context", "nameCtx", ",", "Hashtable", "<", "?", ",", "?", ">", "environment", ")", "throws", "Exception", "{", "AmbiguousEJBReferenceException", "ambiguousEx", ";", "if", ...
The method is part of the java.naming.spi.ObjectFactory interface and is invoked by javax.naming.spi.NamingManager to process a Reference object. @return the results of the lookup driven from Reference data. If the Reference is unrecognized, this method returns null.
[ "The", "method", "is", "part", "of", "the", "java", ".", "naming", ".", "spi", ".", "ObjectFactory", "interface", "and", "is", "invoked", "by", "javax", ".", "naming", ".", "spi", ".", "NamingManager", "to", "process", "a", "Reference", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/AmbiguousEJBRefObjectFactory.java#L92-L154
111,658
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/TwoTierObjectPool.java
TwoTierObjectPool.getThreadLocalObjectPool
private LocalThreadObjectPool getThreadLocalObjectPool() { if (threadPoolSize <= 0) { // no local thread pool needed. return null; } LocalThreadObjectPool localPool = null; if (threadLocals != null) { localPool = threadLocals.get(); if (loc...
java
private LocalThreadObjectPool getThreadLocalObjectPool() { if (threadPoolSize <= 0) { // no local thread pool needed. return null; } LocalThreadObjectPool localPool = null; if (threadLocals != null) { localPool = threadLocals.get(); if (loc...
[ "private", "LocalThreadObjectPool", "getThreadLocalObjectPool", "(", ")", "{", "if", "(", "threadPoolSize", "<=", "0", ")", "{", "// no local thread pool needed.", "return", "null", ";", "}", "LocalThreadObjectPool", "localPool", "=", "null", ";", "if", "(", "thread...
get a local thread specific pool. To be used for threads that frequently access this pool system.
[ "get", "a", "local", "thread", "specific", "pool", ".", "To", "be", "used", "for", "threads", "that", "frequently", "access", "this", "pool", "system", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/TwoTierObjectPool.java#L203-L220
111,659
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/TwoTierObjectPool.java
TwoTierObjectPool.removeFromInUse
public void removeFromInUse(Object o) { if (null == o) { throw new NullPointerException(); } if (inUseTracking) { inUseTable.remove(o); } }
java
public void removeFromInUse(Object o) { if (null == o) { throw new NullPointerException(); } if (inUseTracking) { inUseTable.remove(o); } }
[ "public", "void", "removeFromInUse", "(", "Object", "o", ")", "{", "if", "(", "null", "==", "o", ")", "{", "throw", "new", "NullPointerException", "(", ")", ";", "}", "if", "(", "inUseTracking", ")", "{", "inUseTable", ".", "remove", "(", "o", ")", "...
remove the object from the inUse before normal release processing would remove it. To be used in when some other code knows that leaving it in the InUse table would create false-positive leak detection hits. @param o
[ "remove", "the", "object", "from", "the", "inUse", "before", "normal", "release", "processing", "would", "remove", "it", ".", "To", "be", "used", "in", "when", "some", "other", "code", "knows", "that", "leaving", "it", "in", "the", "InUse", "table", "would...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/TwoTierObjectPool.java#L230-L238
111,660
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/TwoTierObjectPool.java
TwoTierObjectPool.purgeThreadLocal
public void purgeThreadLocal() { // if thread local pools exist, check to see if we have one created and // therefore need to tell it to purge if (null != threadLocals) { LocalThreadObjectPool pool = threadLocals.get(); if (null != pool) { Object[] data = ...
java
public void purgeThreadLocal() { // if thread local pools exist, check to see if we have one created and // therefore need to tell it to purge if (null != threadLocals) { LocalThreadObjectPool pool = threadLocals.get(); if (null != pool) { Object[] data = ...
[ "public", "void", "purgeThreadLocal", "(", ")", "{", "// if thread local pools exist, check to see if we have one created and", "// therefore need to tell it to purge", "if", "(", "null", "!=", "threadLocals", ")", "{", "LocalThreadObjectPool", "pool", "=", "threadLocals", ".",...
This is used to purge the ThreadLocal level information back to the main group when the thread is being killed off.
[ "This", "is", "used", "to", "purge", "the", "ThreadLocal", "level", "information", "back", "to", "the", "main", "group", "when", "the", "thread", "is", "being", "killed", "off", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/objectpool/TwoTierObjectPool.java#L252-L264
111,661
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/NullRemoteServices.java
NullRemoteServices.batchUpdate
public void batchUpdate(HashMap invalidateIdEvents, HashMap invalidateTemplateEvents, ArrayList pushEntryEvents, ArrayList aliasEntryEvents) { notificationService.batchUpdate(invalidateIdEvents, invalidateTemplateEvents, pushEntryEvents, aliasEntryEvents, cacheUnit); }
java
public void batchUpdate(HashMap invalidateIdEvents, HashMap invalidateTemplateEvents, ArrayList pushEntryEvents, ArrayList aliasEntryEvents) { notificationService.batchUpdate(invalidateIdEvents, invalidateTemplateEvents, pushEntryEvents, aliasEntryEvents, cacheUnit); }
[ "public", "void", "batchUpdate", "(", "HashMap", "invalidateIdEvents", ",", "HashMap", "invalidateTemplateEvents", ",", "ArrayList", "pushEntryEvents", ",", "ArrayList", "aliasEntryEvents", ")", "{", "notificationService", ".", "batchUpdate", "(", "invalidateIdEvents", ",...
This allows the BatchUpdateDaemon to send its batch update events to all CacheUnits. @param invalidateIdEvents A Vector of invalidate by id. @param invalidateTemplateEvents A Vector of invalidate by template. @param pushEntryEvents A Vector of cache entries.
[ "This", "allows", "the", "BatchUpdateDaemon", "to", "send", "its", "batch", "update", "events", "to", "all", "CacheUnits", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/NullRemoteServices.java#L104-L106
111,662
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.health/src/com/ibm/ws/microprofile/health/internal/AppTrackerImpl.java
AppTrackerImpl.isOsgiApp
private boolean isOsgiApp(IServletContext isc) { Object bundleCtxAttr = isc.getAttribute(BUNDLE_CONTEXT_KEY); Tr.debug(tc, "Servet context attr for key = " + BUNDLE_CONTEXT_KEY + ", = " + bundleCtxAttr); if (bundleCtxAttr != null) { return true; } else { return fa...
java
private boolean isOsgiApp(IServletContext isc) { Object bundleCtxAttr = isc.getAttribute(BUNDLE_CONTEXT_KEY); Tr.debug(tc, "Servet context attr for key = " + BUNDLE_CONTEXT_KEY + ", = " + bundleCtxAttr); if (bundleCtxAttr != null) { return true; } else { return fa...
[ "private", "boolean", "isOsgiApp", "(", "IServletContext", "isc", ")", "{", "Object", "bundleCtxAttr", "=", "isc", ".", "getAttribute", "(", "BUNDLE_CONTEXT_KEY", ")", ";", "Tr", ".", "debug", "(", "tc", ",", "\"Servet context attr for key = \"", "+", "BUNDLE_CONT...
Will look into this in the future, hopefully.
[ "Will", "look", "into", "this", "in", "the", "future", "hopefully", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.health/src/com/ibm/ws/microprofile/health/internal/AppTrackerImpl.java#L121-L129
111,663
OpenLiberty/open-liberty
dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/ResAutoLinkReferenceFactoryImpl.java
ResAutoLinkReferenceFactoryImpl.getBindingName
private String getBindingName(ResourceInfo resourceInfo) { String destBindingName = null; String link = resourceInfo.getLink(); if (link == null) { destBindingName = getBindingName(resourceInfo.getName()); } else { destBindingName = InjectionEngineAccessor.getMes...
java
private String getBindingName(ResourceInfo resourceInfo) { String destBindingName = null; String link = resourceInfo.getLink(); if (link == null) { destBindingName = getBindingName(resourceInfo.getName()); } else { destBindingName = InjectionEngineAccessor.getMes...
[ "private", "String", "getBindingName", "(", "ResourceInfo", "resourceInfo", ")", "{", "String", "destBindingName", "=", "null", ";", "String", "link", "=", "resourceInfo", ".", "getLink", "(", ")", ";", "if", "(", "link", "==", "null", ")", "{", "destBinding...
When a message-destination-link is available, look up the binding from message destination link map. If that binding is not available, default to the link name.
[ "When", "a", "message", "-", "destination", "-", "link", "is", "available", "look", "up", "the", "binding", "from", "message", "destination", "link", "map", ".", "If", "that", "binding", "is", "not", "available", "default", "to", "the", "link", "name", "."...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/ResAutoLinkReferenceFactoryImpl.java#L40-L59
111,664
OpenLiberty/open-liberty
dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/ResAutoLinkReferenceFactoryImpl.java
ResAutoLinkReferenceFactoryImpl.getBindingName
public static String getBindingName(String name) { // For "java:" names, come up with a reasonable binding name by removing // "java:" and if possible, the scope (e.g., "global") and "env". if (name.startsWith("java:")) { int begin = "java:".length(); int index = name.in...
java
public static String getBindingName(String name) { // For "java:" names, come up with a reasonable binding name by removing // "java:" and if possible, the scope (e.g., "global") and "env". if (name.startsWith("java:")) { int begin = "java:".length(); int index = name.in...
[ "public", "static", "String", "getBindingName", "(", "String", "name", ")", "{", "// For \"java:\" names, come up with a reasonable binding name by removing", "// \"java:\" and if possible, the scope (e.g., \"global\") and \"env\".", "if", "(", "name", ".", "startsWith", "(", "\"ja...
Determine the binding name that will be used for a reference name. This implements basically the same algorithm as "default bindings" in traditional WAS.
[ "Determine", "the", "binding", "name", "that", "will", "be", "used", "for", "a", "reference", "name", ".", "This", "implements", "basically", "the", "same", "algorithm", "as", "default", "bindings", "in", "traditional", "WAS", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/internal/ResAutoLinkReferenceFactoryImpl.java#L65-L84
111,665
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/persistent/htod/HashtableEntry.java
HashtableEntry.reset
public void reset() { this.location = 0; this.first_created = 0; this.expiration = -1; this.validatorExpiration = -1; // LI4537-24 this.tableid = 0; this.key = null; this.value = null; this.next = 0; this.previous = 0; this.valuelen = -1; this.hash = 0; this.index = 0; this.size = -1; ...
java
public void reset() { this.location = 0; this.first_created = 0; this.expiration = -1; this.validatorExpiration = -1; // LI4537-24 this.tableid = 0; this.key = null; this.value = null; this.next = 0; this.previous = 0; this.valuelen = -1; this.hash = 0; this.index = 0; this.size = -1; ...
[ "public", "void", "reset", "(", ")", "{", "this", ".", "location", "=", "0", ";", "this", ".", "first_created", "=", "0", ";", "this", ".", "expiration", "=", "-", "1", ";", "this", ".", "validatorExpiration", "=", "-", "1", ";", "// LI4537-24", "thi...
resets this HashtableEntry for reuse
[ "resets", "this", "HashtableEntry", "for", "reuse" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/persistent/htod/HashtableEntry.java#L104-L124
111,666
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/StaticCATTransaction.java
StaticCATTransaction.rcvCreateUCTransaction
static void rcvCreateUCTransaction(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr...
java
static void rcvCreateUCTransaction(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr...
[ "static", "void", "rcvCreateUCTransaction", "(", "CommsByteBuffer", "request", ",", "Conversation", "conversation", ",", "int", "requestNumber", ",", "boolean", "allocatedFromBufferPool", ",", "boolean", "partOfExchange", ")", "{", "if", "(", "TraceComponent", ".", "i...
Create an SIUncoordinatedTransaction. Mandatory Fields: BIT16 SICoreConnectionObjectId BIT32 Client transaction Id @param request @param conversation @param requestNumber @param allocatedFromBufferPool @param partOfExchange
[ "Create", "an", "SIUncoordinatedTransaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/StaticCATTransaction.java#L72-L148
111,667
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/StaticCATTransaction.java
StaticCATTransaction.rcvCommitTransaction
static void rcvCommitTransaction(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry...
java
static void rcvCommitTransaction(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry...
[ "static", "void", "rcvCommitTransaction", "(", "CommsByteBuffer", "request", ",", "Conversation", "conversation", ",", "int", "requestNumber", ",", "boolean", "allocatedFromBufferPool", ",", "boolean", "partOfExchange", ")", "{", "if", "(", "TraceComponent", ".", "isA...
Commit the transaction provided by the client. This method uses only required fields. All mandatory fields have a fixed order and size. Mandatory Fields: BIT16 SIMPConnectionObjectId BIT16 SIMPTransactionObjectId @param request @param conversation @param requestNumber @param allocatedFromBufferPool @param par...
[ "Commit", "the", "transaction", "provided", "by", "the", "client", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/StaticCATTransaction.java#L165-L279
111,668
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/StaticCATTransaction.java
StaticCATTransaction.rcvRollbackTransaction
static void rcvRollbackTransaction(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr...
java
static void rcvRollbackTransaction(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr...
[ "static", "void", "rcvRollbackTransaction", "(", "CommsByteBuffer", "request", ",", "Conversation", "conversation", ",", "int", "requestNumber", ",", "boolean", "allocatedFromBufferPool", ",", "boolean", "partOfExchange", ")", "{", "if", "(", "TraceComponent", ".", "i...
Rollback the transaction provided by the client. Mandatory Fields: BIT16 SICoreConnectionObjectId BIT32 Client transaction Id @param request @param conversation @param requestNumber @param allocatedFromBufferPool @param partOfExchange
[ "Rollback", "the", "transaction", "provided", "by", "the", "client", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/StaticCATTransaction.java#L294-L384
111,669
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/DataSlice.java
DataSlice.toPayloadString
public String toPayloadString() { String digits = "0123456789ABCDEF"; StringBuilder retval = new StringBuilder("DataSlice@"); retval.append(hashCode()); retval.append("["); for (int i=_offset; i<(_offset+_length); i++) { retval.append(digits.charAt((_byt...
java
public String toPayloadString() { String digits = "0123456789ABCDEF"; StringBuilder retval = new StringBuilder("DataSlice@"); retval.append(hashCode()); retval.append("["); for (int i=_offset; i<(_offset+_length); i++) { retval.append(digits.charAt((_byt...
[ "public", "String", "toPayloadString", "(", ")", "{", "String", "digits", "=", "\"0123456789ABCDEF\"", ";", "StringBuilder", "retval", "=", "new", "StringBuilder", "(", "\"DataSlice@\"", ")", ";", "retval", ".", "append", "(", "hashCode", "(", ")", ")", ";", ...
This method will output the contents of the slice designated by the provided offset and length. @return
[ "This", "method", "will", "output", "the", "contents", "of", "the", "slice", "designated", "by", "the", "provided", "offset", "and", "length", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/DataSlice.java#L123-L140
111,670
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlJavaScriptUtils.java
HtmlJavaScriptUtils.getClearHiddenCommandFormParamsFunctionName
public static String getClearHiddenCommandFormParamsFunctionName( String formName) { final char separatorChar = FacesContext.getCurrentInstance().getNamingContainerSeparatorChar(); if (formName == null) { return "'" + HtmlRendererUtils.CLEAR_HIDDEN_FIELD_FN_NAME ...
java
public static String getClearHiddenCommandFormParamsFunctionName( String formName) { final char separatorChar = FacesContext.getCurrentInstance().getNamingContainerSeparatorChar(); if (formName == null) { return "'" + HtmlRendererUtils.CLEAR_HIDDEN_FIELD_FN_NAME ...
[ "public", "static", "String", "getClearHiddenCommandFormParamsFunctionName", "(", "String", "formName", ")", "{", "final", "char", "separatorChar", "=", "FacesContext", ".", "getCurrentInstance", "(", ")", ".", "getNamingContainerSeparatorChar", "(", ")", ";", "if", "...
Prefixes the given String with "clear_" and removes special characters @param formName @return String
[ "Prefixes", "the", "given", "String", "with", "clear_", "and", "removes", "special", "characters" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlJavaScriptUtils.java#L534-L548
111,671
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaStoreItem.java
SchemaStoreItem.eventPostCommitRemove
public void eventPostCommitRemove(Transaction tran) throws SevereMessageStoreException { super.eventPostCommitRemove(tran); if (stream != null) stream.removeFromIndex(this); }
java
public void eventPostCommitRemove(Transaction tran) throws SevereMessageStoreException { super.eventPostCommitRemove(tran); if (stream != null) stream.removeFromIndex(this); }
[ "public", "void", "eventPostCommitRemove", "(", "Transaction", "tran", ")", "throws", "SevereMessageStoreException", "{", "super", ".", "eventPostCommitRemove", "(", "tran", ")", ";", "if", "(", "stream", "!=", "null", ")", "stream", ".", "removeFromIndex", "(", ...
from its parent's stream's index.
[ "from", "its", "parent", "s", "stream", "s", "index", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaStoreItem.java#L65-L69
111,672
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaStoreItem.java
SchemaStoreItem.getPersistentData
public List<DataSlice> getPersistentData() { List<DataSlice> slices = new ArrayList<DataSlice>(1); slices.add(new DataSlice(schema.toByteArray())); return slices; }
java
public List<DataSlice> getPersistentData() { List<DataSlice> slices = new ArrayList<DataSlice>(1); slices.add(new DataSlice(schema.toByteArray())); return slices; }
[ "public", "List", "<", "DataSlice", ">", "getPersistentData", "(", ")", "{", "List", "<", "DataSlice", ">", "slices", "=", "new", "ArrayList", "<", "DataSlice", ">", "(", "1", ")", ";", "slices", ".", "add", "(", "new", "DataSlice", "(", "schema", ".",...
The serialized form is wrapped in a DataSlice and returned in a single-entry List. SIB0112b.mfp.1
[ "The", "serialized", "form", "is", "wrapped", "in", "a", "DataSlice", "and", "returned", "in", "a", "single", "-", "entry", "List", ".", "SIB0112b", ".", "mfp", ".", "1" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaStoreItem.java#L73-L77
111,673
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaStoreItem.java
SchemaStoreItem.restore
public void restore(List<DataSlice> slices) { schema = JMFRegistry.instance.createJMFSchema(slices.get(0).getBytes()); }
java
public void restore(List<DataSlice> slices) { schema = JMFRegistry.instance.createJMFSchema(slices.get(0).getBytes()); }
[ "public", "void", "restore", "(", "List", "<", "DataSlice", ">", "slices", ")", "{", "schema", "=", "JMFRegistry", ".", "instance", ".", "createJMFSchema", "(", "slices", ".", "get", "(", "0", ")", ".", "getBytes", "(", ")", ")", ";", "}" ]
Restore this item from serialized form
[ "Restore", "this", "item", "from", "serialized", "form" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaStoreItem.java#L86-L88
111,674
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java
SibRaStaticDestinationEndpointActivation.addMessagingEngine
synchronized protected void addMessagingEngine( final JsMessagingEngine messagingEngine) throws ResourceException { final String methodName = "addMessagingEngine"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagin...
java
synchronized protected void addMessagingEngine( final JsMessagingEngine messagingEngine) throws ResourceException { final String methodName = "addMessagingEngine"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagin...
[ "synchronized", "protected", "void", "addMessagingEngine", "(", "final", "JsMessagingEngine", "messagingEngine", ")", "throws", "ResourceException", "{", "final", "String", "methodName", "=", "\"addMessagingEngine\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEn...
If the messaging engine is one of the required set or there are no required messaging engines and there are no other connections then create a listener. @param messagingEngine the messaging engine to connect to @throws ResourceException if determining the required messaging engines fails or if creation of a listener f...
[ "If", "the", "messaging", "engine", "is", "one", "of", "the", "required", "set", "or", "there", "are", "no", "required", "messaging", "engines", "and", "there", "are", "no", "other", "connections", "then", "create", "a", "listener", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java#L226-L250
111,675
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java
SibRaStaticDestinationEndpointActivation.isListenerRequired
private boolean isListenerRequired(final JsMessagingEngine messagingEngine) throws ResourceException { final String methodName = "isListenerRequired"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); ...
java
private boolean isListenerRequired(final JsMessagingEngine messagingEngine) throws ResourceException { final String methodName = "isListenerRequired"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); ...
[ "private", "boolean", "isListenerRequired", "(", "final", "JsMessagingEngine", "messagingEngine", ")", "throws", "ResourceException", "{", "final", "String", "methodName", "=", "\"isListenerRequired\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ...
Determines if a listener is required for the given messaging engine. @param messagingEngine the messaging engine @return <code>true</code> if the messaging engine is in the required set or the set is empty and there are currently no connections, otherwise <code>false</code> @throws ResourceException if the required me...
[ "Determines", "if", "a", "listener", "is", "required", "for", "the", "given", "messaging", "engine", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java#L293-L345
111,676
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java
SibRaStaticDestinationEndpointActivation.validateDestination
private static String validateDestination( final JsMessagingEngine messagingEngine, final String busName, final String destinationName, final DestinationType destinationType) throws NotSupportedException, ResourceAdapterInternalException { final String methodName = "validate...
java
private static String validateDestination( final JsMessagingEngine messagingEngine, final String busName, final String destinationName, final DestinationType destinationType) throws NotSupportedException, ResourceAdapterInternalException { final String methodName = "validate...
[ "private", "static", "String", "validateDestination", "(", "final", "JsMessagingEngine", "messagingEngine", ",", "final", "String", "busName", ",", "final", "String", "destinationName", ",", "final", "DestinationType", "destinationType", ")", "throws", "NotSupportedExcept...
Validates the given destination information with administration. @param messagingEngine the messaging engine with which to validate @param busName the name of the bus for the destination @param destinationName the name of the destination @param destinationType the type of the destination @return the UUID for the desti...
[ "Validates", "the", "given", "destination", "information", "with", "administration", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java#L367-L492
111,677
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java
SibRaStaticDestinationEndpointActivation.getRequiredMessagingEngines
private Set getRequiredMessagingEngines( final JsMessagingEngine messagingEngine) throws NotSupportedException, ResourceAdapterInternalException { final String methodName = "getRequiredMessagingEngines"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { ...
java
private Set getRequiredMessagingEngines( final JsMessagingEngine messagingEngine) throws NotSupportedException, ResourceAdapterInternalException { final String methodName = "getRequiredMessagingEngines"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { ...
[ "private", "Set", "getRequiredMessagingEngines", "(", "final", "JsMessagingEngine", "messagingEngine", ")", "throws", "NotSupportedException", ",", "ResourceAdapterInternalException", "{", "final", "String", "methodName", "=", "\"getRequiredMessagingEngines\"", ";", "if", "("...
Determines which of the local messaging engines the resource adapter should try and obtain connections to. @param messagingEngine the messaging engine to use for configuration information @return the set of required messaging engines @throws NotSupportedException if there are no configured messaging engines or the des...
[ "Determines", "which", "of", "the", "local", "messaging", "engines", "the", "resource", "adapter", "should", "try", "and", "obtain", "connections", "to", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java#L507-L624
111,678
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java
SibRaStaticDestinationEndpointActivation.createListener
private void createListener(final JsMessagingEngine messagingEngine) throws ResourceException { final String methodName = "createListener"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); } ...
java
private void createListener(final JsMessagingEngine messagingEngine) throws ResourceException { final String methodName = "createListener"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); } ...
[ "private", "void", "createListener", "(", "final", "JsMessagingEngine", "messagingEngine", ")", "throws", "ResourceException", "{", "final", "String", "methodName", "=", "\"createListener\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&"...
Creates a listener to the configured destination on the given messaging engine. @param messagingEngine the messaging engine @throws ResourceException if the creation of the listener fails
[ "Creates", "a", "listener", "to", "the", "configured", "destination", "on", "the", "given", "messaging", "engine", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java#L635-L650
111,679
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java
SibRaStaticDestinationEndpointActivation.messagingEngineStopping
public synchronized void messagingEngineStopping( final JsMessagingEngine messagingEngine, final int mode) { final String methodName = "messagingEngineStopping"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object...
java
public synchronized void messagingEngineStopping( final JsMessagingEngine messagingEngine, final int mode) { final String methodName = "messagingEngineStopping"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object...
[ "public", "synchronized", "void", "messagingEngineStopping", "(", "final", "JsMessagingEngine", "messagingEngine", ",", "final", "int", "mode", ")", "{", "final", "String", "methodName", "=", "\"messagingEngineStopping\"", ";", "if", "(", "TraceComponent", ".", "isAny...
Overrides the parent method so that, if the messaging engine that is stopping was the any one messaging engine to which a connection had been made, if there are still active messaging engines then connect to one of those instead. @param messagingEngine the messaging engine that is stopping @param mode the mode with wh...
[ "Overrides", "the", "parent", "method", "so", "that", "if", "the", "messaging", "engine", "that", "is", "stopping", "was", "the", "any", "one", "messaging", "engine", "to", "which", "a", "connection", "had", "been", "made", "if", "there", "are", "still", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java#L735-L793
111,680
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java
SibRaStaticDestinationEndpointActivation.messagingEngineInitializing
public synchronized void messagingEngineInitializing( final JsMessagingEngine messagingEngine) { final String methodName = "messagingEngineInitializing"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); ...
java
public synchronized void messagingEngineInitializing( final JsMessagingEngine messagingEngine) { final String methodName = "messagingEngineInitializing"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); ...
[ "public", "synchronized", "void", "messagingEngineInitializing", "(", "final", "JsMessagingEngine", "messagingEngine", ")", "{", "final", "String", "methodName", "=", "\"messagingEngineInitializing\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")"...
Notifies the listener that the given messaging engine is initializing. @param messagingEngine the messaging engine
[ "Notifies", "the", "listener", "that", "the", "given", "messaging", "engine", "is", "initializing", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java#L801-L834
111,681
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java
SibRaStaticDestinationEndpointActivation.messagingEngineDestroyed
public void messagingEngineDestroyed(final JsMessagingEngine messagingEngine) { final String methodName = "messagingEngineDestroyed"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); } /* *...
java
public void messagingEngineDestroyed(final JsMessagingEngine messagingEngine) { final String methodName = "messagingEngineDestroyed"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); } /* *...
[ "public", "void", "messagingEngineDestroyed", "(", "final", "JsMessagingEngine", "messagingEngine", ")", "{", "final", "String", "methodName", "=", "\"messagingEngineDestroyed\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", "...
Notifies the listener that the given messaging engine is being destroyed. @param messagingEngine the messaging engine
[ "Notifies", "the", "listener", "that", "the", "given", "messaging", "engine", "is", "being", "destroyed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java#L842-L884
111,682
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java
SibRaStaticDestinationEndpointActivation.messagingEngineTerminated
synchronized void messagingEngineTerminated( final SibRaMessagingEngineConnection connection) { final String methodName = "messagingEngineTerminated"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, connection); ...
java
synchronized void messagingEngineTerminated( final SibRaMessagingEngineConnection connection) { final String methodName = "messagingEngineTerminated"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, connection); ...
[ "synchronized", "void", "messagingEngineTerminated", "(", "final", "SibRaMessagingEngineConnection", "connection", ")", "{", "final", "String", "methodName", "=", "\"messagingEngineTerminated\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&"...
Indicates that the messaging engine for the given connection has terminated. @param connection the connection
[ "Indicates", "that", "the", "messaging", "engine", "for", "the", "given", "connection", "has", "terminated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java#L1118-L1148
111,683
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java
SibRaStaticDestinationEndpointActivation.scheduleCreateRemoteListener
private void scheduleCreateRemoteListener() { final String methodName = "scheduleCreateRemoteListener"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } _timer.schedule(new TimerTask() { public void r...
java
private void scheduleCreateRemoteListener() { final String methodName = "scheduleCreateRemoteListener"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } _timer.schedule(new TimerTask() { public void r...
[ "private", "void", "scheduleCreateRemoteListener", "(", ")", "{", "final", "String", "methodName", "=", "\"scheduleCreateRemoteListener\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", ...
Schedules the creation of a remote listener to take place after the retry interval.
[ "Schedules", "the", "creation", "of", "a", "remote", "listener", "to", "take", "place", "after", "the", "retry", "interval", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaStaticDestinationEndpointActivation.java#L1278-L1317
111,684
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.createMessageProxy
private Message createMessageProxy(Message msgObject) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createMessageProxy", msgObject); Message retObj; try { retObj = (Message) Proxy.newProxyInstance(msgObject.getClass().getClas...
java
private Message createMessageProxy(Message msgObject) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createMessageProxy", msgObject); Message retObj; try { retObj = (Message) Proxy.newProxyInstance(msgObject.getClass().getClas...
[ "private", "Message", "createMessageProxy", "(", "Message", "msgObject", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"c...
This method creates proxy for the given message object. This is used only in Async Send.. Hence this method is called only by client environments. @param msgObject @return Message interface implementation of SIBus.
[ "This", "method", "creates", "proxy", "for", "the", "given", "message", "object", ".", "This", "is", "used", "only", "in", "Async", "Send", "..", "Hence", "this", "method", "is", "called", "only", "by", "client", "environments", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L376-L401
111,685
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.checkNotClosed
void checkNotClosed() throws JMSException { int currentState; synchronized (stateLock) { currentState = state; } if (currentState == CLOSED) { throw (javax.jms.IllegalStateException) JmsErrorUtils.newThrowable(javax.jms.IllegalStateException.class, ...
java
void checkNotClosed() throws JMSException { int currentState; synchronized (stateLock) { currentState = state; } if (currentState == CLOSED) { throw (javax.jms.IllegalStateException) JmsErrorUtils.newThrowable(javax.jms.IllegalStateException.class, ...
[ "void", "checkNotClosed", "(", ")", "throws", "JMSException", "{", "int", "currentState", ";", "synchronized", "(", "stateLock", ")", "{", "currentState", "=", "state", ";", "}", "if", "(", "currentState", "==", "CLOSED", ")", "{", "throw", "(", "javax", "...
This method is called at the beginning of every method that should not work if the Session has been closed. It prevents further execution by throwing a JMSException with a suitable "I'm closed" message.
[ "This", "method", "is", "called", "at", "the", "beginning", "of", "every", "method", "that", "should", "not", "work", "if", "the", "Session", "has", "been", "closed", ".", "It", "prevents", "further", "execution", "by", "throwing", "a", "JMSException", "with...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L1569-L1581
111,686
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.getPassThruProps
Map getPassThruProps() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getPassThruProps"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getPassThruProps", passThruProps); return passThruPr...
java
Map getPassThruProps() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getPassThruProps"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getPassThruProps", passThruProps); return passThruPr...
[ "Map", "getPassThruProps", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getPassThruProps\"", ")", ";", "if", "("...
Return the passThruProps for this Session.
[ "Return", "the", "passThruProps", "for", "this", "Session", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L1586-L1592
111,687
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.getAsyncDeliveryLock
Object getAsyncDeliveryLock() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getAsyncDeliveryLock"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getAsyncDeliveryLock", asyncDeliveryLock); ...
java
Object getAsyncDeliveryLock() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getAsyncDeliveryLock"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getAsyncDeliveryLock", asyncDeliveryLock); ...
[ "Object", "getAsyncDeliveryLock", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getAsyncDeliveryLock\"", ")", ";", ...
Returns the asyncDeliveryLock for this Session.
[ "Returns", "the", "asyncDeliveryLock", "for", "this", "Session", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L1597-L1603
111,688
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.getConnection
Connection getConnection() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getConnection"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getConnection", connection); return connection; ...
java
Connection getConnection() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getConnection"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getConnection", connection); return connection; ...
[ "Connection", "getConnection", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getConnection\"", ")", ";", "if", "(...
This method is used by the JmsMsgConsumerImpl.Consumer constructor to obtain a reference to the exception listener target. Note that this method should _not_ be used to pass properties through from Connection to Producer or Consumer objects - instead use the getPassThruProps method.
[ "This", "method", "is", "used", "by", "the", "JmsMsgConsumerImpl", ".", "Consumer", "constructor", "to", "obtain", "a", "reference", "to", "the", "exception", "listener", "target", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L1613-L1619
111,689
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.getCoreConnection
SICoreConnection getCoreConnection() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCoreConnection"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getCoreConnection", coreConnection); ...
java
SICoreConnection getCoreConnection() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCoreConnection"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getCoreConnection", coreConnection); ...
[ "SICoreConnection", "getCoreConnection", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getCoreConnection\"", ")", ";"...
Returns the coreConnection for this Connection
[ "Returns", "the", "coreConnection", "for", "this", "Connection" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L1624-L1630
111,690
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.instantiateProducer
JmsMsgProducer instantiateProducer(Destination jmsDestination) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "instantiateProducer", jmsDestination); JmsMsgProducer messageProducer = new JmsMsgProducerImpl(jmsDestination, coreConn...
java
JmsMsgProducer instantiateProducer(Destination jmsDestination) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "instantiateProducer", jmsDestination); JmsMsgProducer messageProducer = new JmsMsgProducerImpl(jmsDestination, coreConn...
[ "JmsMsgProducer", "instantiateProducer", "(", "Destination", "jmsDestination", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "t...
This method is overriden by subclasses in order to instantiate an instance of the MsgProducer class. This means that the QueueSession.createSender method can delegate straight to Session.createProducer, and still get back an instance of a QueueSender, rather than a vanilla MessageProducer. Note, since this method is o...
[ "This", "method", "is", "overriden", "by", "subclasses", "in", "order", "to", "instantiate", "an", "instance", "of", "the", "MsgProducer", "class", ".", "This", "means", "that", "the", "QueueSession", ".", "createSender", "method", "can", "delegate", "straight",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L1642-L1649
111,691
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.instantiateConsumer
JmsMsgConsumer instantiateConsumer(ConsumerProperties consumerProperties) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "instantiateConsumer", consumerProperties); JmsMsgConsumer messageConsumer = new JmsMsgConsumerImpl(coreConne...
java
JmsMsgConsumer instantiateConsumer(ConsumerProperties consumerProperties) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "instantiateConsumer", consumerProperties); JmsMsgConsumer messageConsumer = new JmsMsgConsumerImpl(coreConne...
[ "JmsMsgConsumer", "instantiateConsumer", "(", "ConsumerProperties", "consumerProperties", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", ...
This method is overriden by subclasses in order to instantiate an instance of the MsgConsumer class. This means that the QueueSession.createReceiver method can delegate straight to Session.createConsumer, and still get back an instance of a QueueReceiver, rather than a vanilla MessageConsumer. Note, since this method ...
[ "This", "method", "is", "overriden", "by", "subclasses", "in", "order", "to", "instantiate", "an", "instance", "of", "the", "MsgConsumer", "class", ".", "This", "means", "that", "the", "QueueSession", ".", "createReceiver", "method", "can", "delegate", "straight...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L1671-L1678
111,692
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.getProducerCount
public int getProducerCount() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getProducerCount"); int producerCount = producers.size(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getProd...
java
public int getProducerCount() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getProducerCount"); int producerCount = producers.size(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getProd...
[ "public", "int", "getProducerCount", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getProducerCount\"", ")", ";", ...
Return a count of the number of Producers currently open on this Session.
[ "Return", "a", "count", "of", "the", "number", "of", "Producers", "currently", "open", "on", "this", "Session", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L1876-L1883
111,693
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.getConsumerCount
public int getConsumerCount() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getConsumerCount"); int consumerCount = syncConsumers.size(); consumerCount += asyncConsumers.size(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntry...
java
public int getConsumerCount() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getConsumerCount"); int consumerCount = syncConsumers.size(); consumerCount += asyncConsumers.size(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntry...
[ "public", "int", "getConsumerCount", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getConsumerCount\"", ")", ";", ...
Return a count of the number of Consumers currently open on this Session.
[ "Return", "a", "count", "of", "the", "number", "of", "Consumers", "currently", "open", "on", "this", "Session", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L1888-L1896
111,694
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.removeProducer
void removeProducer(JmsMsgProducerImpl producer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeProducer", producer); producers.remove(producer); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(t...
java
void removeProducer(JmsMsgProducerImpl producer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeProducer", producer); producers.remove(producer); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(t...
[ "void", "removeProducer", "(", "JmsMsgProducerImpl", "producer", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"removeProdu...
This method is called by a JmsMsgProducer in order to remove itself from the list of Producers held by the Session. @param JmsMsgProducer The Producer which is calling this method.
[ "This", "method", "is", "called", "by", "a", "JmsMsgProducer", "in", "order", "to", "remove", "itself", "from", "the", "list", "of", "Producers", "held", "by", "the", "Session", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L1904-L1910
111,695
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.removeConsumer
void removeConsumer(JmsMsgConsumerImpl consumer) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeConsumer", consumer); // if DUPS_OK_ACKNOWLEDGE is in use, commit any messages delivered in the // last incomplete bat...
java
void removeConsumer(JmsMsgConsumerImpl consumer) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeConsumer", consumer); // if DUPS_OK_ACKNOWLEDGE is in use, commit any messages delivered in the // last incomplete bat...
[ "void", "removeConsumer", "(", "JmsMsgConsumerImpl", "consumer", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", ...
This method is called by a JmsMsgConsumer in order to remove itself from the list of consumers held by the Session. @param JmsMsgConsumer The Consumer which is calling the method.
[ "This", "method", "is", "called", "by", "a", "JmsMsgConsumer", "in", "order", "to", "remove", "itself", "from", "the", "list", "of", "consumers", "held", "by", "the", "Session", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L1918-L1933
111,696
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.removeBrowser
void removeBrowser(JmsQueueBrowserImpl browser) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeBrowser", browser); browsers.remove(browser); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, ...
java
void removeBrowser(JmsQueueBrowserImpl browser) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeBrowser", browser); browsers.remove(browser); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, ...
[ "void", "removeBrowser", "(", "JmsQueueBrowserImpl", "browser", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"removeBrowse...
This method is called by a JmsQueueBrowser in order to remove itself from the list of Browsers held by the Session. @param JmsQueueBrowser The Browser which is calling this method.
[ "This", "method", "is", "called", "by", "a", "JmsQueueBrowser", "in", "order", "to", "remove", "itself", "from", "the", "list", "of", "Browsers", "held", "by", "the", "Session", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L1941-L1947
111,697
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.notifyMessagePreConsume
void notifyMessagePreConsume(SITransaction transaction) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "notifyMessagePreConsume", transaction); if (!(transaction instanceof SIXAResource)) { // We wish to increment thi...
java
void notifyMessagePreConsume(SITransaction transaction) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "notifyMessagePreConsume", transaction); if (!(transaction instanceof SIXAResource)) { // We wish to increment thi...
[ "void", "notifyMessagePreConsume", "(", "SITransaction", "transaction", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ...
This method should be called when a message has been received by JMS consumer code, but not yet delivered to user code. This occurs when a message is obtained using the core api before calling an asynchronous consumer's onMessage() method. If the message is handled under a local transaction (transacted session, clien...
[ "This", "method", "should", "be", "called", "when", "a", "message", "has", "been", "received", "by", "JMS", "consumer", "code", "but", "not", "yet", "delivered", "to", "user", "code", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L1980-L1995
111,698
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.notifyMessagePostConsume
void notifyMessagePostConsume() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "notifyMessagePostConsume"); if ((acknowledgeMode == Session.DUPS_OK_ACKNOWLEDGE) && (uncommittedReceiveCount >= dupsCommitThreshold)) { co...
java
void notifyMessagePostConsume() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "notifyMessagePostConsume"); if ((acknowledgeMode == Session.DUPS_OK_ACKNOWLEDGE) && (uncommittedReceiveCount >= dupsCommitThreshold)) { co...
[ "void", "notifyMessagePostConsume", "(", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"notifyMes...
This method should be called when a previously received message has been delivered by JMS consumer code to user code. This occurs on return from an asynchronous consumer's onMessage() method. @see #notifyMessagePreConsume(SITransaction) @see #notifyMessageConsumed(SITransaction)
[ "This", "method", "should", "be", "called", "when", "a", "previously", "received", "message", "has", "been", "delivered", "by", "JMS", "consumer", "code", "to", "user", "code", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L2006-L2014
111,699
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java
JmsSessionImpl.getAndResetCommitCount
int getAndResetCommitCount() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getAndResetCommitCount"); int currentUncommittedReceiveCount = uncommittedReceiveCount; uncommittedReceiveCount = 0; if (TraceComponent.isAnyTracingEnabled()...
java
int getAndResetCommitCount() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getAndResetCommitCount"); int currentUncommittedReceiveCount = uncommittedReceiveCount; uncommittedReceiveCount = 0; if (TraceComponent.isAnyTracingEnabled()...
[ "int", "getAndResetCommitCount", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getAndResetCommitCount\"", ")", ";", ...
This method exists for the sole purpose of querying whether an application onMessage called recover under an auto_ack session. It returns the current value of the commit count, and then zeros the value.
[ "This", "method", "exists", "for", "the", "sole", "purpose", "of", "querying", "whether", "an", "application", "onMessage", "called", "recover", "under", "an", "auto_ack", "session", ".", "It", "returns", "the", "current", "value", "of", "the", "commit", "coun...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSessionImpl.java#L2240-L2248