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
110,800
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MDBRuntimeImpl.java
MDBRuntimeImpl.removeAdminObjectService
protected synchronized void removeAdminObjectService(ServiceReference<AdminObjectService> reference) { String id = (String) reference.getProperty(ADMIN_OBJECT_CFG_ID); if (id != null) { removeAdminObjectService(reference, id, false); String jndiName = (String) reference.getPrope...
java
protected synchronized void removeAdminObjectService(ServiceReference<AdminObjectService> reference) { String id = (String) reference.getProperty(ADMIN_OBJECT_CFG_ID); if (id != null) { removeAdminObjectService(reference, id, false); String jndiName = (String) reference.getPrope...
[ "protected", "synchronized", "void", "removeAdminObjectService", "(", "ServiceReference", "<", "AdminObjectService", ">", "reference", ")", "{", "String", "id", "=", "(", "String", ")", "reference", ".", "getProperty", "(", "ADMIN_OBJECT_CFG_ID", ")", ";", "if", "...
Declarative service method for removing an AdminObjectService.
[ "Declarative", "service", "method", "for", "removing", "an", "AdminObjectService", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MDBRuntimeImpl.java#L490-L500
110,801
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MDBRuntimeImpl.java
MDBRuntimeImpl.removeAdminObjectService
protected void removeAdminObjectService(ServiceReference<AdminObjectService> reference, String id, boolean jndiName) { NamedAdminObjectServiceInfo aosInfo = adminObjectServices.get(id); if (aosInfo != null) { aosInfo.getServices(jndiName).removeReference(reference); // If the hi...
java
protected void removeAdminObjectService(ServiceReference<AdminObjectService> reference, String id, boolean jndiName) { NamedAdminObjectServiceInfo aosInfo = adminObjectServices.get(id); if (aosInfo != null) { aosInfo.getServices(jndiName).removeReference(reference); // If the hi...
[ "protected", "void", "removeAdminObjectService", "(", "ServiceReference", "<", "AdminObjectService", ">", "reference", ",", "String", "id", ",", "boolean", "jndiName", ")", "{", "NamedAdminObjectServiceInfo", "aosInfo", "=", "adminObjectServices", ".", "get", "(", "id...
Should be private, but findbugs complains about remove method with SR.
[ "Should", "be", "private", "but", "findbugs", "complains", "about", "remove", "method", "with", "SR", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MDBRuntimeImpl.java#L512-L542
110,802
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MDBRuntimeImpl.java
MDBRuntimeImpl.removeEndPointActivationService
protected synchronized void removeEndPointActivationService(ServiceReference<EndpointActivationService> reference) { String activationSvcId = (String) reference.getProperty(ACT_SPEC_CFG_ID); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "activationSvcId : " ...
java
protected synchronized void removeEndPointActivationService(ServiceReference<EndpointActivationService> reference) { String activationSvcId = (String) reference.getProperty(ACT_SPEC_CFG_ID); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "activationSvcId : " ...
[ "protected", "synchronized", "void", "removeEndPointActivationService", "(", "ServiceReference", "<", "EndpointActivationService", ">", "reference", ")", "{", "String", "activationSvcId", "=", "(", "String", ")", "reference", ".", "getProperty", "(", "ACT_SPEC_CFG_ID", ...
Declarative service method for removing an EndpointActivationService.
[ "Declarative", "service", "method", "for", "removing", "an", "EndpointActivationService", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MDBRuntimeImpl.java#L603-L626
110,803
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MDBRuntimeImpl.java
MDBRuntimeImpl.activateDeferredEndpoints
private void activateDeferredEndpoints(Set<MessageEndpointFactoryImpl> mefs) { for (MessageEndpointFactoryImpl mef : mefs) { if (!mef.runtimeActivated) { try { if (mef.endpointActivationServiceInfo.getAutoStart() == false && mef.shouldActivate == false) { ...
java
private void activateDeferredEndpoints(Set<MessageEndpointFactoryImpl> mefs) { for (MessageEndpointFactoryImpl mef : mefs) { if (!mef.runtimeActivated) { try { if (mef.endpointActivationServiceInfo.getAutoStart() == false && mef.shouldActivate == false) { ...
[ "private", "void", "activateDeferredEndpoints", "(", "Set", "<", "MessageEndpointFactoryImpl", ">", "mefs", ")", "{", "for", "(", "MessageEndpointFactoryImpl", "mef", ":", "mefs", ")", "{", "if", "(", "!", "mef", ".", "runtimeActivated", ")", "{", "try", "{", ...
Attempt to activate a set of endpoints if all services are available and they are not already activated. @see #activateEndpoint
[ "Attempt", "to", "activate", "a", "set", "of", "endpoints", "if", "all", "services", "are", "available", "and", "they", "are", "not", "already", "activated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MDBRuntimeImpl.java#L838-L861
110,804
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MDBRuntimeImpl.java
MDBRuntimeImpl.activateEndpointInternal
private void activateEndpointInternal(MessageEndpointFactoryImpl mef, boolean explicit) throws ResourceException { // Wait for the destination if specified by the MDB. If it is instead // specified on the activationSpec, then the EndpointActivationService // won't be registered until the destin...
java
private void activateEndpointInternal(MessageEndpointFactoryImpl mef, boolean explicit) throws ResourceException { // Wait for the destination if specified by the MDB. If it is instead // specified on the activationSpec, then the EndpointActivationService // won't be registered until the destin...
[ "private", "void", "activateEndpointInternal", "(", "MessageEndpointFactoryImpl", "mef", ",", "boolean", "explicit", ")", "throws", "ResourceException", "{", "// Wait for the destination if specified by the MDB. If it is instead", "// specified on the activationSpec, then the EndpointAc...
Attempt to activate an endpoint if all its services are available. @param explicit true if {@link #activateEndpoint} was called @see #activateEndpoint
[ "Attempt", "to", "activate", "an", "endpoint", "if", "all", "its", "services", "are", "available", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MDBRuntimeImpl.java#L869-L910
110,805
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MDBRuntimeImpl.java
MDBRuntimeImpl.deactivateEndpoints
private void deactivateEndpoints(Set<MessageEndpointFactoryImpl> mefs) { for (MessageEndpointFactoryImpl mef : mefs) { if (mef.runtimeActivated) { deactivateEndpointInternal(mef); } } }
java
private void deactivateEndpoints(Set<MessageEndpointFactoryImpl> mefs) { for (MessageEndpointFactoryImpl mef : mefs) { if (mef.runtimeActivated) { deactivateEndpointInternal(mef); } } }
[ "private", "void", "deactivateEndpoints", "(", "Set", "<", "MessageEndpointFactoryImpl", ">", "mefs", ")", "{", "for", "(", "MessageEndpointFactoryImpl", "mef", ":", "mefs", ")", "{", "if", "(", "mef", ".", "runtimeActivated", ")", "{", "deactivateEndpointInternal...
Deactivates a set of endpoints if they have been activated. @see #activateEndpoint
[ "Deactivates", "a", "set", "of", "endpoints", "if", "they", "have", "been", "activated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.mdb/src/com/ibm/ws/ejbcontainer/mdb/internal/MDBRuntimeImpl.java#L948-L954
110,806
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/PtoPMessageItemStream.java
PtoPMessageItemStream.restore
public void restore(ObjectInputStream ois, int dataVersion) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "restore", new Object[] { ois, new Integer(dataVersion) }); checkPersistentVersionId(dataVersion); try { HashMap hm = (HashMap)ois.readO...
java
public void restore(ObjectInputStream ois, int dataVersion) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "restore", new Object[] { ois, new Integer(dataVersion) }); checkPersistentVersionId(dataVersion); try { HashMap hm = (HashMap)ois.readO...
[ "public", "void", "restore", "(", "ObjectInputStream", "ois", ",", "int", "dataVersion", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", ...
Method restore called by message store. @param data
[ "Method", "restore", "called", "by", "message", "store", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/PtoPMessageItemStream.java#L413-L457
110,807
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/PtoPMessageItemStream.java
PtoPMessageItemStream.getActiveTransactions
public void getActiveTransactions(Set<PersistentTranId> transactionList) throws MessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getActiveTransactions", transactionList); AbstractItem item = null; NonLockingCursor cursor = new...
java
public void getActiveTransactions(Set<PersistentTranId> transactionList) throws MessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getActiveTransactions", transactionList); AbstractItem item = null; NonLockingCursor cursor = new...
[ "public", "void", "getActiveTransactions", "(", "Set", "<", "PersistentTranId", ">", "transactionList", ")", "throws", "MessageStoreException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")"...
getActiveTransactions - This method iterates through all msgs on the itemstream in Removing state and builds a list of all transaction ids involved in the remove
[ "getActiveTransactions", "-", "This", "method", "iterates", "through", "all", "msgs", "on", "the", "itemstream", "in", "Removing", "state", "and", "builds", "a", "list", "of", "all", "transaction", "ids", "involved", "in", "the", "remove" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/PtoPMessageItemStream.java#L942-L970
110,808
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.ltpakeyutil/src/com/ibm/ws/crypto/ltpakeyutil/LTPAKeyFileUtilityImpl.java
LTPAKeyFileUtilityImpl.generateLTPAKeys
protected final Properties generateLTPAKeys(byte[] keyPasswordBytes, final String realm) throws Exception { Properties expProps = null; try { KeyEncryptor encryptor = new KeyEncryptor(keyPasswordBytes); LTPAKeyPair pair = LTPADigSignature.generateLTPAKeyPair(); byte[...
java
protected final Properties generateLTPAKeys(byte[] keyPasswordBytes, final String realm) throws Exception { Properties expProps = null; try { KeyEncryptor encryptor = new KeyEncryptor(keyPasswordBytes); LTPAKeyPair pair = LTPADigSignature.generateLTPAKeyPair(); byte[...
[ "protected", "final", "Properties", "generateLTPAKeys", "(", "byte", "[", "]", "keyPasswordBytes", ",", "final", "String", "realm", ")", "throws", "Exception", "{", "Properties", "expProps", "=", "null", ";", "try", "{", "KeyEncryptor", "encryptor", "=", "new", ...
Generates the LTPA keys and stores them into a Properties object. @param keyPasswordBytes @param realm @return @throws Exception
[ "Generates", "the", "LTPA", "keys", "and", "stores", "them", "into", "a", "Properties", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.ltpakeyutil/src/com/ibm/ws/crypto/ltpakeyutil/LTPAKeyFileUtilityImpl.java#L45-L76
110,809
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.ltpakeyutil/src/com/ibm/ws/crypto/ltpakeyutil/LTPAKeyFileUtilityImpl.java
LTPAKeyFileUtilityImpl.getOutputStream
private OutputStream getOutputStream(final String keyFile) throws IOException { try { return AccessController.doPrivileged(new PrivilegedExceptionAction<OutputStream>() { @Override public OutputStream run() throws IOException { return new FileOutpu...
java
private OutputStream getOutputStream(final String keyFile) throws IOException { try { return AccessController.doPrivileged(new PrivilegedExceptionAction<OutputStream>() { @Override public OutputStream run() throws IOException { return new FileOutpu...
[ "private", "OutputStream", "getOutputStream", "(", "final", "String", "keyFile", ")", "throws", "IOException", "{", "try", "{", "return", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedExceptionAction", "<", "OutputStream", ">", "(", ")", "{", "@"...
Obtain the OutputStream for the given file. @param keyFile @return @throws IOException
[ "Obtain", "the", "OutputStream", "for", "the", "given", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.ltpakeyutil/src/com/ibm/ws/crypto/ltpakeyutil/LTPAKeyFileUtilityImpl.java#L85-L97
110,810
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.ltpakeyutil/src/com/ibm/ws/crypto/ltpakeyutil/LTPAKeyFileUtilityImpl.java
LTPAKeyFileUtilityImpl.addLTPAKeysToFile
protected void addLTPAKeysToFile(OutputStream os, Properties ltpaProps) throws Exception { try { // Write the ltpa key propeperties to ltpaProps.store(os, null); } catch (IOException e) { throw e; } finally { if (os != null) try { ...
java
protected void addLTPAKeysToFile(OutputStream os, Properties ltpaProps) throws Exception { try { // Write the ltpa key propeperties to ltpaProps.store(os, null); } catch (IOException e) { throw e; } finally { if (os != null) try { ...
[ "protected", "void", "addLTPAKeysToFile", "(", "OutputStream", "os", ",", "Properties", "ltpaProps", ")", "throws", "Exception", "{", "try", "{", "// Write the ltpa key propeperties to", "ltpaProps", ".", "store", "(", "os", ",", "null", ")", ";", "}", "catch", ...
Write the LTPA key properties to the given OutputStream. This method will close the OutputStream. @param keyImportFile The import file to be created @param ltpaProps The properties containing the LTPA keys @throws TokenException @throws IOException
[ "Write", "the", "LTPA", "key", "properties", "to", "the", "given", "OutputStream", ".", "This", "method", "will", "close", "the", "OutputStream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.ltpakeyutil/src/com/ibm/ws/crypto/ltpakeyutil/LTPAKeyFileUtilityImpl.java#L109-L124
110,811
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/tagfilescan/TagFileScanVisitor.java
TagFileScanVisitor.checkConflict
private String checkConflict(Element elem, String oldAttrValue, String attr) throws JspCoreException { String result = oldAttrValue; String attrValue = null; if (elem.getAttributeNode(attr) != null ) { attrValue = elem.getAttributeNode(attr).getValue(); } if (attrValue != null) { if (oldAttrValue !...
java
private String checkConflict(Element elem, String oldAttrValue, String attr) throws JspCoreException { String result = oldAttrValue; String attrValue = null; if (elem.getAttributeNode(attr) != null ) { attrValue = elem.getAttributeNode(attr).getValue(); } if (attrValue != null) { if (oldAttrValue !...
[ "private", "String", "checkConflict", "(", "Element", "elem", ",", "String", "oldAttrValue", ",", "String", "attr", ")", "throws", "JspCoreException", "{", "String", "result", "=", "oldAttrValue", ";", "String", "attrValue", "=", "null", ";", "if", "(", "elem"...
new method for jsp2.1ELwork
[ "new", "method", "for", "jsp2", ".", "1ELwork" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/tagfilescan/TagFileScanVisitor.java#L225-L243
110,812
OpenLiberty/open-liberty
dev/com.ibm.ws.artifact.file/src/com/ibm/ws/artifact/file/FileArtifactNotifier.java
FileArtifactNotifier.convertAbsToRelative
private Set<String> convertAbsToRelative(Collection<File> files) { Set<String> result = new HashSet<String>(); for (File f : files) { String fAbsPath = PathUtils.fixPathString(f); //assumption here that f is a dir, and path will end in File.seperator if (fAbsPath.startsWith(rootA...
java
private Set<String> convertAbsToRelative(Collection<File> files) { Set<String> result = new HashSet<String>(); for (File f : files) { String fAbsPath = PathUtils.fixPathString(f); //assumption here that f is a dir, and path will end in File.seperator if (fAbsPath.startsWith(rootA...
[ "private", "Set", "<", "String", ">", "convertAbsToRelative", "(", "Collection", "<", "File", ">", "files", ")", "{", "Set", "<", "String", ">", "result", "=", "new", "HashSet", "<", "String", ">", "(", ")", ";", "for", "(", "File", "f", ":", "files"...
convert java.io.files into relative paths under the root container.
[ "convert", "java", ".", "io", ".", "files", "into", "relative", "paths", "under", "the", "root", "container", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.file/src/com/ibm/ws/artifact/file/FileArtifactNotifier.java#L452-L471
110,813
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPPort.java
TCPPort.processNewConnection
public void processNewConnection(SocketIOChannel socket) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "processNewConnection"); } VirtualConnection vc = vcf.createConnection(); TCPConnLink bc = (TCPConnLink) tcpChannel.getConnectionLink(vc...
java
public void processNewConnection(SocketIOChannel socket) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "processNewConnection"); } VirtualConnection vc = vcf.createConnection(); TCPConnLink bc = (TCPConnLink) tcpChannel.getConnectionLink(vc...
[ "public", "void", "processNewConnection", "(", "SocketIOChannel", "socket", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "tc", ",", "\"processNewC...
Processes a new connection by scheduling initial read. @param socket
[ "Processes", "a", "new", "connection", "by", "scheduling", "initial", "read", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPPort.java#L346-L395
110,814
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/task/TaskList.java
TaskList.declareAlreadyPrecommitted
public final void declareAlreadyPrecommitted() throws TaskListException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "declareAlreadyPrecommitted"); if (STATE_UNTOUCHED == _state) { _state = STATE_END_PRECOMMIT; } else i...
java
public final void declareAlreadyPrecommitted() throws TaskListException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "declareAlreadyPrecommitted"); if (STATE_UNTOUCHED == _state) { _state = STATE_END_PRECOMMIT; } else i...
[ "public", "final", "void", "declareAlreadyPrecommitted", "(", ")", "throws", "TaskListException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",",...
Use this method to declare that a tasklist has already been precommitted. This is used when restoring tasks used to resolve 'in doubt' items from persistence. By doing this we reduce the number of different paths through the state model. @throws TaskListException
[ "Use", "this", "method", "to", "declare", "that", "a", "tasklist", "has", "already", "been", "precommitted", ".", "This", "is", "used", "when", "restoring", "tasks", "used", "to", "resolve", "in", "doubt", "items", "from", "persistence", ".", "By", "doing", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/task/TaskList.java#L294-L313
110,815
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieUtils.java
CookieUtils.needsQuote
private static boolean needsQuote(String value) { if (null == value) return true; int len = value.length(); if (0 == len) { return true; } if ('"' == value.charAt(0)) { if ('"' == value.charAt(len - 1)) { // already wrapped with...
java
private static boolean needsQuote(String value) { if (null == value) return true; int len = value.length(); if (0 == len) { return true; } if ('"' == value.charAt(0)) { if ('"' == value.charAt(len - 1)) { // already wrapped with...
[ "private", "static", "boolean", "needsQuote", "(", "String", "value", ")", "{", "if", "(", "null", "==", "value", ")", "return", "true", ";", "int", "len", "=", "value", ".", "length", "(", ")", ";", "if", "(", "0", "==", "len", ")", "{", "return",...
Return true iff the string contains special characters that need to be quoted. @param value @return boolean
[ "Return", "true", "iff", "the", "string", "contains", "special", "characters", "that", "need", "to", "be", "quoted", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieUtils.java#L137-L160
110,816
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieUtils.java
CookieUtils.maybeQuote
private static void maybeQuote(StringBuilder buff, String value) { // PK48169 - handle a null value as well as an empty one if (null == value || 0 == value.length()) { buff.append("\"\""); } else if (needsQuote(value)) { buff.append('"'); buff.append(value); ...
java
private static void maybeQuote(StringBuilder buff, String value) { // PK48169 - handle a null value as well as an empty one if (null == value || 0 == value.length()) { buff.append("\"\""); } else if (needsQuote(value)) { buff.append('"'); buff.append(value); ...
[ "private", "static", "void", "maybeQuote", "(", "StringBuilder", "buff", ",", "String", "value", ")", "{", "// PK48169 - handle a null value as well as an empty one", "if", "(", "null", "==", "value", "||", "0", "==", "value", ".", "length", "(", ")", ")", "{", ...
Append the input value string to the given buffer, wrapping it with quotes if need be. @param buff @param value
[ "Append", "the", "input", "value", "string", "to", "the", "given", "buffer", "wrapping", "it", "with", "quotes", "if", "need", "be", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieUtils.java#L169-L180
110,817
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieUtils.java
CookieUtils.convertV0Cookie
private static String convertV0Cookie(HttpCookie cookie) { StringBuilder buffer = new StringBuilder(40); // Append name=value buffer.append(cookie.getName()); String value = cookie.getValue(); if (null != value && 0 != value.length()) { buffer.append('='); ...
java
private static String convertV0Cookie(HttpCookie cookie) { StringBuilder buffer = new StringBuilder(40); // Append name=value buffer.append(cookie.getName()); String value = cookie.getValue(); if (null != value && 0 != value.length()) { buffer.append('='); ...
[ "private", "static", "String", "convertV0Cookie", "(", "HttpCookie", "cookie", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", "40", ")", ";", "// Append name=value", "buffer", ".", "append", "(", "cookie", ".", "getName", "(", ")", ")",...
Convert the V0 Cookie into a Cookie header string. @param cookie @return the value of the header.
[ "Convert", "the", "V0", "Cookie", "into", "a", "Cookie", "header", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieUtils.java#L188-L212
110,818
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieUtils.java
CookieUtils.convertV1Cookie
private static String convertV1Cookie(HttpCookie cookie) { StringBuilder buffer = new StringBuilder(40); // Append name=value buffer.append(cookie.getName()); buffer.append('='); maybeQuote(buffer, cookie.getValue()); // Always append the version buffer.append("...
java
private static String convertV1Cookie(HttpCookie cookie) { StringBuilder buffer = new StringBuilder(40); // Append name=value buffer.append(cookie.getName()); buffer.append('='); maybeQuote(buffer, cookie.getValue()); // Always append the version buffer.append("...
[ "private", "static", "String", "convertV1Cookie", "(", "HttpCookie", "cookie", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", "40", ")", ";", "// Append name=value", "buffer", ".", "append", "(", "cookie", ".", "getName", "(", ")", ")",...
Convert the V1 Cookie into a Cookie header string. @param cookie @return the value of the header.
[ "Convert", "the", "V1", "Cookie", "into", "a", "Cookie", "header", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieUtils.java#L220-L253
110,819
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieUtils.java
CookieUtils.convertV1SetCookie
private static String convertV1SetCookie(HttpCookie cookie) { StringBuilder buffer = new StringBuilder(40); // Append name=value buffer.append(cookie.getName()); buffer.append('='); maybeQuote(buffer, cookie.getValue()); // insert version - required buffer.appen...
java
private static String convertV1SetCookie(HttpCookie cookie) { StringBuilder buffer = new StringBuilder(40); // Append name=value buffer.append(cookie.getName()); buffer.append('='); maybeQuote(buffer, cookie.getValue()); // insert version - required buffer.appen...
[ "private", "static", "String", "convertV1SetCookie", "(", "HttpCookie", "cookie", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", "40", ")", ";", "// Append name=value", "buffer", ".", "append", "(", "cookie", ".", "getName", "(", ")", "...
Convert the V1 Cookie into a Set-Cookie header string. @param cookie @return the value of the header.
[ "Convert", "the", "V1", "Cookie", "into", "a", "Set", "-", "Cookie", "header", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieUtils.java#L392-L451
110,820
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/impl/ConversationMetaDataImpl.java
ConversationMetaDataImpl.getRemoteAddress
public InetAddress getRemoteAddress() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getRemoteAddress"); InetAddress result = null; TCPConnectionContext tcpContext = null; ConnectionLink connLinkRef = baseLink.getDeviceLink(); if (connLinkRef !...
java
public InetAddress getRemoteAddress() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getRemoteAddress"); InetAddress result = null; TCPConnectionContext tcpContext = null; ConnectionLink connLinkRef = baseLink.getDeviceLink(); if (connLinkRef !...
[ "public", "InetAddress", "getRemoteAddress", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getRemoteAddress\"", ")", ...
begin F206161.5
[ "begin", "F206161", ".", "5" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/impl/ConversationMetaDataImpl.java#L143-L156
110,821
OpenLiberty/open-liberty
dev/com.ibm.ws.session/src/com/ibm/ws/session/SessionManagerMBeanImpl.java
SessionManagerMBeanImpl.filterUnexpectedKeys
private Map<String, Object> filterUnexpectedKeys(Map<String, Object> inputProps) { Map<String, Object> outputProps = new HashMap<String, Object>(); Set<Entry<String, Object>> entries = inputProps.entrySet(); for (Map.Entry<String, Object> entry : entries) { String key = entry.getKey...
java
private Map<String, Object> filterUnexpectedKeys(Map<String, Object> inputProps) { Map<String, Object> outputProps = new HashMap<String, Object>(); Set<Entry<String, Object>> entries = inputProps.entrySet(); for (Map.Entry<String, Object> entry : entries) { String key = entry.getKey...
[ "private", "Map", "<", "String", ",", "Object", ">", "filterUnexpectedKeys", "(", "Map", "<", "String", ",", "Object", ">", "inputProps", ")", "{", "Map", "<", "String", ",", "Object", ">", "outputProps", "=", "new", "HashMap", "<", "String", ",", "Objec...
Reduce the map to the set of expected keys
[ "Reduce", "the", "map", "to", "the", "set", "of", "expected", "keys" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session/src/com/ibm/ws/session/SessionManagerMBeanImpl.java#L159-L170
110,822
OpenLiberty/open-liberty
dev/com.ibm.ws.session/src/com/ibm/ws/session/SessionManagerMBeanImpl.java
SessionManagerMBeanImpl.publishToRepository
private void publishToRepository(String attributeName, String attributeType, Object oldValue, Object newValue) { super.sendNotification(new AttributeChangeNotification( this, sequenceNum.incrementAndGet(), System.currentTimeMillis(), ...
java
private void publishToRepository(String attributeName, String attributeType, Object oldValue, Object newValue) { super.sendNotification(new AttributeChangeNotification( this, sequenceNum.incrementAndGet(), System.currentTimeMillis(), ...
[ "private", "void", "publishToRepository", "(", "String", "attributeName", ",", "String", "attributeType", ",", "Object", "oldValue", ",", "Object", "newValue", ")", "{", "super", ".", "sendNotification", "(", "new", "AttributeChangeNotification", "(", "this", ",", ...
Send attribute change notification
[ "Send", "attribute", "change", "notification" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session/src/com/ibm/ws/session/SessionManagerMBeanImpl.java#L175-L185
110,823
OpenLiberty/open-liberty
dev/com.ibm.ws.timedexit/src/com/ibm/ws/timedexit/internal/TimedExitThread.java
TimedExitThread.main
public static void main(String[] args) { final boolean testTimeout = true; final boolean testDeadlock = false; final boolean testShutdown = true; final long timeout = 1000; final Object lock1 = new Object(); final Object lock2 = new Object(); final Thread thread...
java
public static void main(String[] args) { final boolean testTimeout = true; final boolean testDeadlock = false; final boolean testShutdown = true; final long timeout = 1000; final Object lock1 = new Object(); final Object lock2 = new Object(); final Thread thread...
[ "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "{", "final", "boolean", "testTimeout", "=", "true", ";", "final", "boolean", "testDeadlock", "=", "false", ";", "final", "boolean", "testShutdown", "=", "true", ";", "final", "long"...
Unit test code - run as Java application from your eclipse workspace
[ "Unit", "test", "code", "-", "run", "as", "Java", "application", "from", "your", "eclipse", "workspace" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.timedexit/src/com/ibm/ws/timedexit/internal/TimedExitThread.java#L183-L262
110,824
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportFactory.java
ServerTransportFactory.startServerComms
public static void startServerComms() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "startServerComms"); try { ServerConnectionManager.initialise(new AcceptListenerFactoryImpl()); } catch (Throwable t) { FFDCFilter.process...
java
public static void startServerComms() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "startServerComms"); try { ServerConnectionManager.initialise(new AcceptListenerFactoryImpl()); } catch (Throwable t) { FFDCFilter.process...
[ "public", "static", "void", "startServerComms", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"startServerComms\"", ")", ";", "tr...
Starts the comms server communications.
[ "Starts", "the", "comms", "server", "communications", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportFactory.java#L71-L87
110,825
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/ltc/impl/LocalTranCoordImpl.java
LocalTranCoordImpl.enlistSynchronization
public void enlistSynchronization(javax.transaction.Synchronization sync) throws IllegalStateException { if (tc.isEntryEnabled()) Tr.entry(tc, "enlistSynchronization", sync); /* Dont need this check on sync enlistment if ((_current == null) || (_current.globalTranExists())) { ...
java
public void enlistSynchronization(javax.transaction.Synchronization sync) throws IllegalStateException { if (tc.isEntryEnabled()) Tr.entry(tc, "enlistSynchronization", sync); /* Dont need this check on sync enlistment if ((_current == null) || (_current.globalTranExists())) { ...
[ "public", "void", "enlistSynchronization", "(", "javax", ".", "transaction", ".", "Synchronization", "sync", ")", "throws", "IllegalStateException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"enlistSynchr...
Enlist a Synchronization object that will be informed upon completion of the local transaction containment boundary. @param sync The Synchronization object to inform of local transaction containment completion @exception IllegalStateException Thrown if the LocalTransactionCoordinator is not in a valid state to execu...
[ "Enlist", "a", "Synchronization", "object", "that", "will", "be", "informed", "upon", "completion", "of", "the", "local", "transaction", "containment", "boundary", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/ltc/impl/LocalTranCoordImpl.java#L523-L587
110,826
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/ltc/impl/LocalTranCoordImpl.java
LocalTranCoordImpl.suspend
protected void suspend() { if (tc.isEntryEnabled()) Tr.entry(tc, "suspend"); _current = null; _state = Suspended; if (tc.isEntryEnabled()) Tr.exit(tc, "suspend"); }
java
protected void suspend() { if (tc.isEntryEnabled()) Tr.entry(tc, "suspend"); _current = null; _state = Suspended; if (tc.isEntryEnabled()) Tr.exit(tc, "suspend"); }
[ "protected", "void", "suspend", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"suspend\"", ")", ";", "_current", "=", "null", ";", "_state", "=", "Suspended", ";", "if", "(", "tc", ".", ...
Suspend any native context off the thread
[ "Suspend", "any", "native", "context", "off", "the", "thread" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/ltc/impl/LocalTranCoordImpl.java#L1265-L1273
110,827
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/ltc/impl/LocalTranCoordImpl.java
LocalTranCoordImpl.resume
protected void resume(LocalTranCurrentImpl current) { if (tc.isEntryEnabled()) Tr.entry(tc, "resume", current); _current = current; _state = Running; if (tc.isEntryEnabled()) Tr.exit(tc, "resume"); }
java
protected void resume(LocalTranCurrentImpl current) { if (tc.isEntryEnabled()) Tr.entry(tc, "resume", current); _current = current; _state = Running; if (tc.isEntryEnabled()) Tr.exit(tc, "resume"); }
[ "protected", "void", "resume", "(", "LocalTranCurrentImpl", "current", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"resume\"", ",", "current", ")", ";", "_current", "=", "current", ";", "_state",...
Resume any native context onto the thread
[ "Resume", "any", "native", "context", "onto", "the", "thread" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/ltc/impl/LocalTranCoordImpl.java#L1276-L1284
110,828
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/ltc/impl/LocalTranCoordImpl.java
LocalTranCoordImpl.getComponentMetadataForLTC
protected void getComponentMetadataForLTC() { if (_deferredConfig) { if (tc.isEntryEnabled()) Tr.entry(tc, "getComponentMetadataForLTC"); _deferredConfig = false; if (tc.isEntryEnabled()) Tr.exit(tc, "getComponentMetadataForLTC"); } }
java
protected void getComponentMetadataForLTC() { if (_deferredConfig) { if (tc.isEntryEnabled()) Tr.entry(tc, "getComponentMetadataForLTC"); _deferredConfig = false; if (tc.isEntryEnabled()) Tr.exit(tc, "getComponentMetadataForLTC"); } }
[ "protected", "void", "getComponentMetadataForLTC", "(", ")", "{", "if", "(", "_deferredConfig", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getComponentMetadataForLTC\"", ")", ";", "_deferredConfig", ...
Complete the deferred LTC start by retrieving the remaining LTC config from component metadata
[ "Complete", "the", "deferred", "LTC", "start", "by", "retrieving", "the", "remaining", "LTC", "config", "from", "component", "metadata" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/ltc/impl/LocalTranCoordImpl.java#L1533-L1541
110,829
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java
ConversationState.setConnectionObjectId
public void setConnectionObjectId(short connectionObjectId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setConnectionObjectId", Short.valueOf(connectionObjectId)); this.connectionObjectId = connectionObjectId; if (TraceComponent.isAny...
java
public void setConnectionObjectId(short connectionObjectId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setConnectionObjectId", Short.valueOf(connectionObjectId)); this.connectionObjectId = connectionObjectId; if (TraceComponent.isAny...
[ "public", "void", "setConnectionObjectId", "(", "short", "connectionObjectId", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
setConnectionObjectId - sets and stores the connection object id @param connectionObjectId
[ "setConnectionObjectId", "-", "sets", "and", "stores", "the", "connection", "object", "id" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java#L164-L171
110,830
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java
ConversationState.setCachedConsumerProps
public void setCachedConsumerProps(CachedSessionProperties props) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setCachedConsumerProps", props); this.cachedProps = props; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
public void setCachedConsumerProps(CachedSessionProperties props) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setCachedConsumerProps", props); this.cachedProps = props; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "public", "void", "setCachedConsumerProps", "(", "CachedSessionProperties", "props", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ...
Sets the cached destination. @param props
[ "Sets", "the", "cached", "destination", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java#L190-L197
110,831
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java
ConversationState.setCachedConsumer
public void setCachedConsumer(CATMainConsumer consumer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setCachedConsumer", consumer); this.cachedConsumer = consumer; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
public void setCachedConsumer(CATMainConsumer consumer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setCachedConsumer", consumer); this.cachedConsumer = consumer; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "public", "void", "setCachedConsumer", "(", "CATMainConsumer", "consumer", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\...
Sets the cached CATMainConsumer @param consumer
[ "Sets", "the", "cached", "CATMainConsumer" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java#L228-L235
110,832
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java
ConversationState.addObject
public synchronized int addObject(Object object) throws ConversationStateFullException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "addObject", "object=" + object); int objectIndex = 0; if (freeSlot == MINUS_ONE) { // Object ...
java
public synchronized int addObject(Object object) throws ConversationStateFullException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "addObject", "object=" + object); int objectIndex = 0; if (freeSlot == MINUS_ONE) { // Object ...
[ "public", "synchronized", "int", "addObject", "(", "Object", "object", ")", "throws", "ConversationStateFullException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry...
addObject - adds a given object to the object store @param object An object that is to be saved into the object store @return Returns an integer that identifies the location of the object in the object store @throws ConversationStateFullException if there is no more space.
[ "addObject", "-", "adds", "a", "given", "object", "to", "the", "object", "store" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java#L282-L340
110,833
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java
ConversationState.extendObjectTable
private synchronized void extendObjectTable() throws ConversationStateFullException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "extendObjectTable"); int newTableSize = (((maxIndex + 1) * OBJECT_TABLE_EXTEND_FACTOR) - OBJECT_TABLE_ORIGIN); ...
java
private synchronized void extendObjectTable() throws ConversationStateFullException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "extendObjectTable"); int newTableSize = (((maxIndex + 1) * OBJECT_TABLE_EXTEND_FACTOR) - OBJECT_TABLE_ORIGIN); ...
[ "private", "synchronized", "void", "extendObjectTable", "(", ")", "throws", "ConversationStateFullException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "t...
extendObjectTable - extends the object store if it is found to be full. The table can be extended until a maximum size. The maximum size can be supplied, or a default size. @throws ConversationStateFullException if there is no more space.
[ "extendObjectTable", "-", "extends", "the", "object", "store", "if", "it", "is", "found", "to", "be", "full", ".", "The", "table", "can", "be", "extended", "until", "a", "maximum", "size", ".", "The", "maximum", "size", "can", "be", "supplied", "or", "a"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java#L349-L393
110,834
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java
ConversationState.getObject
public synchronized Object getObject(int objectIndex) throws IndexOutOfBoundsException, NoSuchElementException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getObject", "" + objectIndex); Object object; if ((object...
java
public synchronized Object getObject(int objectIndex) throws IndexOutOfBoundsException, NoSuchElementException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getObject", "" + objectIndex); Object object; if ((object...
[ "public", "synchronized", "Object", "getObject", "(", "int", "objectIndex", ")", "throws", "IndexOutOfBoundsException", ",", "NoSuchElementException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")"...
getObject - retrieve an object from the object store. @param objectIndex An integer value that identifies the location of the object in the object store. @return Returns the requested object. @throws IndexOutOfBoundsException @throws NoSuchElementException
[ "getObject", "-", "retrieve", "an", "object", "from", "the", "object", "store", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java#L405-L432
110,835
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java
ConversationState.removeObject
public synchronized Object removeObject(int objectIndex) throws IndexOutOfBoundsException, NoSuchElementException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeObject", Integer.valueOf(objectIndex)); if ((objectIndex ...
java
public synchronized Object removeObject(int objectIndex) throws IndexOutOfBoundsException, NoSuchElementException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeObject", Integer.valueOf(objectIndex)); if ((objectIndex ...
[ "public", "synchronized", "Object", "removeObject", "(", "int", "objectIndex", ")", "throws", "IndexOutOfBoundsException", ",", "NoSuchElementException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ...
removeObject - remove an object from the object store. @param objectIndex An integer value that identifies the location of the object in the object store. @return Returns the object that was in that position @throws IndexOutOfBoundsException @throws NoSuchElementException
[ "removeObject", "-", "remove", "an", "object", "from", "the", "object", "store", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java#L444-L508
110,836
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java
ConversationState.dumpObjectTable
public void dumpObjectTable(int numberOfEntries) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dumpObjectTable"); if (numberOfEntries < 0) { throw new IllegalArgumentException(); } if (TraceComponent.isAnyT...
java
public void dumpObjectTable(int numberOfEntries) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dumpObjectTable"); if (numberOfEntries < 0) { throw new IllegalArgumentException(); } if (TraceComponent.isAnyT...
[ "public", "void", "dumpObjectTable", "(", "int", "numberOfEntries", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"dumpOb...
dumpTable - dumps the specified number of entries in the Object Table. @param numberOfEntries The number of entries to be dump.
[ "dumpTable", "-", "dumps", "the", "specified", "number", "of", "entries", "in", "the", "Object", "Table", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java#L537-L557
110,837
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java
ConversationState.setInitialRequestNumber
public void setInitialRequestNumber(int initialRequestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setInitialRequestNumber", Integer.valueOf(initialRequestNumber)); this.requestNumber = initialRequestNumber; if (TraceComponent....
java
public void setInitialRequestNumber(int initialRequestNumber) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setInitialRequestNumber", Integer.valueOf(initialRequestNumber)); this.requestNumber = initialRequestNumber; if (TraceComponent....
[ "public", "void", "setInitialRequestNumber", "(", "int", "initialRequestNumber", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ","...
This method will set the initial request number for this conversation. @param initialRequestNumber
[ "This", "method", "will", "set", "the", "initial", "request", "number", "for", "this", "conversation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java#L590-L597
110,838
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java
ConversationState.getUniqueRequestNumber
public synchronized int getUniqueRequestNumber() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getUniqueRequestNumber"); // Always add two requestNumber += 2; if (requestNumber > Short.MAX_VALUE) { // Reset...
java
public synchronized int getUniqueRequestNumber() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getUniqueRequestNumber"); // Always add two requestNumber += 2; if (requestNumber > Short.MAX_VALUE) { // Reset...
[ "public", "synchronized", "int", "getUniqueRequestNumber", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getUniqueReq...
This method will return a unique number that can be used for JFAP exchanges. as this can be for ME-ME comms unique number is always increased by two. As such, if the initiating peer uses odd request numbers they will always use unique numbers. @return Returns a unique number.
[ "This", "method", "will", "return", "a", "unique", "number", "that", "can", "be", "used", "for", "JFAP", "exchanges", ".", "as", "this", "can", "be", "for", "ME", "-", "ME", "comms", "unique", "number", "is", "always", "increased", "by", "two", ".", "A...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java#L607-L624
110,839
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java
ConversationState.getLastItemsInStore
public synchronized String getLastItemsInStore() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getLastItemsInStore"); String lastItems = ""; // The last item in the store will be at position maxIndex. Dump all the items 100 below that ...
java
public synchronized String getLastItemsInStore() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getLastItemsInStore"); String lastItems = ""; // The last item in the store will be at position maxIndex. Dump all the items 100 below that ...
[ "public", "synchronized", "String", "getLastItemsInStore", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getLastItems...
This method can be used to create a String that details the last 100 items added to the store. It is best used at the time when the object store is full to indicate what is taking up all the space in the store. @return Returns a String containing information about what is in the store.
[ "This", "method", "can", "be", "used", "to", "create", "a", "String", "that", "details", "the", "last", "100", "items", "added", "to", "the", "store", ".", "It", "is", "best", "used", "at", "the", "time", "when", "the", "object", "store", "is", "full",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java#L633-L650
110,840
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java
ConversationState.putChunkedMessageWrapper
public void putChunkedMessageWrapper(long wrapperId, ChunkedMessageWrapper wrapper) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putChunkedMessageWrapper", new Object[] { Long.valueOf(wrapperId), wrapper }); inProgressMessages.put(Long.valueOf...
java
public void putChunkedMessageWrapper(long wrapperId, ChunkedMessageWrapper wrapper) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putChunkedMessageWrapper", new Object[] { Long.valueOf(wrapperId), wrapper }); inProgressMessages.put(Long.valueOf...
[ "public", "void", "putChunkedMessageWrapper", "(", "long", "wrapperId", ",", "ChunkedMessageWrapper", "wrapper", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry",...
Puts a chunked message wrapper into our map. @param wrapperId @param wrapper
[ "Puts", "a", "chunked", "message", "wrapper", "into", "our", "map", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java#L672-L679
110,841
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java
ConversationState.removeChunkedMessageWrapper
public void removeChunkedMessageWrapper(long wrapperId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeChunkedMessageWrapper", Long.valueOf(wrapperId)); inProgressMessages.remove(Long.valueOf(wrapperId)); if (TraceComponent.isAnyTr...
java
public void removeChunkedMessageWrapper(long wrapperId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeChunkedMessageWrapper", Long.valueOf(wrapperId)); inProgressMessages.remove(Long.valueOf(wrapperId)); if (TraceComponent.isAnyTr...
[ "public", "void", "removeChunkedMessageWrapper", "(", "long", "wrapperId", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\...
Removes a chunked message wrapper from our map. @param wrapperId
[ "Removes", "a", "chunked", "message", "wrapper", "from", "our", "map", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ConversationState.java#L686-L693
110,842
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionTarget.java
InjectionTarget.setInjectionBinding
public void setInjectionBinding(InjectionBinding<?> injectionBinding) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setInjectionBinding : " + injectionBinding); ivInjectionBinding = injectionBinding; }
java
public void setInjectionBinding(InjectionBinding<?> injectionBinding) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setInjectionBinding : " + injectionBinding); ivInjectionBinding = injectionBinding; }
[ "public", "void", "setInjectionBinding", "(", "InjectionBinding", "<", "?", ">", "injectionBinding", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc",...
Set the parent InjectionBinding containing the information for this injection target @param injectionBinding
[ "Set", "the", "parent", "InjectionBinding", "containing", "the", "information", "for", "this", "injection", "target" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionTarget.java#L245-L250
110,843
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StringCharArrayAccessor.java
StringCharArrayAccessor.createString
public static String createString(char[] charBuf) { if (!enabled) { return createStringFallback(charBuf); } String str = new String(); try { // try to prevent possible final field setting execution reordering in JIT // (JSR-133/JM...
java
public static String createString(char[] charBuf) { if (!enabled) { return createStringFallback(charBuf); } String str = new String(); try { // try to prevent possible final field setting execution reordering in JIT // (JSR-133/JM...
[ "public", "static", "String", "createString", "(", "char", "[", "]", "charBuf", ")", "{", "if", "(", "!", "enabled", ")", "{", "return", "createStringFallback", "(", "charBuf", ")", ";", "}", "String", "str", "=", "new", "String", "(", ")", ";", "try",...
creates a new java.lang.String by setting the char array directly to the String instance with reflection. @param charBuf char array to be used as java.lang.String content, don't modify it after passing it. @return new java.lang.String
[ "creates", "a", "new", "java", ".", "lang", ".", "String", "by", "setting", "the", "char", "array", "directly", "to", "the", "String", "instance", "with", "reflection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/StringCharArrayAccessor.java#L188-L222
110,844
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/BuzzHash.java
BuzzHash.computeHashCode
public static final long computeHashCode(String str, boolean modifyAlgorithm) { // d179573 Ends // to avoid EBCDIC / ASCII / Unicdoe encoding difference (i.e. z/OS390) // uses toCharArray() instead of getBytes(). char chars[] = str.toCharArray(); // Corrected the algorithm ...
java
public static final long computeHashCode(String str, boolean modifyAlgorithm) { // d179573 Ends // to avoid EBCDIC / ASCII / Unicdoe encoding difference (i.e. z/OS390) // uses toCharArray() instead of getBytes(). char chars[] = str.toCharArray(); // Corrected the algorithm ...
[ "public", "static", "final", "long", "computeHashCode", "(", "String", "str", ",", "boolean", "modifyAlgorithm", ")", "{", "// d179573 Ends", "// to avoid EBCDIC / ASCII / Unicdoe encoding difference (i.e. z/OS390)", "// uses toCharArray() instead of getBytes().", "char", "chars",...
are the same.
[ "are", "the", "same", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/util/BuzzHash.java#L47-L81
110,845
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java
UIViewRoot.addPhaseListener
public void addPhaseListener(PhaseListener phaseListener) { if (phaseListener == null) { throw new NullPointerException("phaseListener"); } getStateHelper().add(PropertyKeys.phaseListeners, phaseListener); }
java
public void addPhaseListener(PhaseListener phaseListener) { if (phaseListener == null) { throw new NullPointerException("phaseListener"); } getStateHelper().add(PropertyKeys.phaseListeners, phaseListener); }
[ "public", "void", "addPhaseListener", "(", "PhaseListener", "phaseListener", ")", "{", "if", "(", "phaseListener", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", "\"phaseListener\"", ")", ";", "}", "getStateHelper", "(", ")", ".", "add", ...
Adds a The phaseListeners attached to ViewRoot.
[ "Adds", "a", "The", "phaseListeners", "attached", "to", "ViewRoot", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java#L311-L319
110,846
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java
UIViewRoot.getAfterPhaseListener
@JSFProperty(returnSignature = "void", methodSignature = "javax.faces.event.PhaseEvent", jspName = "afterPhase", stateHolder=true) public MethodExpression getAfterPhaseListener() { return (MethodExpression) getStateHelper().eval(PropertyKeys.afterPhaseListener); }
java
@JSFProperty(returnSignature = "void", methodSignature = "javax.faces.event.PhaseEvent", jspName = "afterPhase", stateHolder=true) public MethodExpression getAfterPhaseListener() { return (MethodExpression) getStateHelper().eval(PropertyKeys.afterPhaseListener); }
[ "@", "JSFProperty", "(", "returnSignature", "=", "\"void\"", ",", "methodSignature", "=", "\"javax.faces.event.PhaseEvent\"", ",", "jspName", "=", "\"afterPhase\"", ",", "stateHolder", "=", "true", ")", "public", "MethodExpression", "getAfterPhaseListener", "(", ")", ...
MethodBinding pointing to a method that takes a javax.faces.event.PhaseEvent and returns void, called after every phase except for restore view. @return the new afterPhaseListener value
[ "MethodBinding", "pointing", "to", "a", "method", "that", "takes", "a", "javax", ".", "faces", ".", "event", ".", "PhaseEvent", "and", "returns", "void", "called", "after", "every", "phase", "except", "for", "restore", "view", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java#L601-L606
110,847
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java
UIViewRoot.getBeforePhaseListener
@JSFProperty(returnSignature = "void", methodSignature = "javax.faces.event.PhaseEvent", jspName = "beforePhase", stateHolder=true) public MethodExpression getBeforePhaseListener() { return (MethodExpression) getStateHelper().eval(PropertyKeys.beforePhaseListener); }
java
@JSFProperty(returnSignature = "void", methodSignature = "javax.faces.event.PhaseEvent", jspName = "beforePhase", stateHolder=true) public MethodExpression getBeforePhaseListener() { return (MethodExpression) getStateHelper().eval(PropertyKeys.beforePhaseListener); }
[ "@", "JSFProperty", "(", "returnSignature", "=", "\"void\"", ",", "methodSignature", "=", "\"javax.faces.event.PhaseEvent\"", ",", "jspName", "=", "\"beforePhase\"", ",", "stateHolder", "=", "true", ")", "public", "MethodExpression", "getBeforePhaseListener", "(", ")", ...
MethodBinding pointing to a method that takes a javax.faces.event.PhaseEvent and returns void, called before every phase except for restore view. @return the new beforePhaseListener value
[ "MethodBinding", "pointing", "to", "a", "method", "that", "takes", "a", "javax", ".", "faces", ".", "event", ".", "PhaseEvent", "and", "returns", "void", "called", "before", "every", "phase", "except", "for", "restore", "view", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java#L614-L619
110,848
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java
UIViewRoot._broadcastAll
private boolean _broadcastAll(FacesContext context, List<? extends FacesEvent> events, Collection<FacesEvent> eventsAborted) { assert events != null; for (int i = 0; i < events.size(); i++) { FacesEvent event = events...
java
private boolean _broadcastAll(FacesContext context, List<? extends FacesEvent> events, Collection<FacesEvent> eventsAborted) { assert events != null; for (int i = 0; i < events.size(); i++) { FacesEvent event = events...
[ "private", "boolean", "_broadcastAll", "(", "FacesContext", "context", ",", "List", "<", "?", "extends", "FacesEvent", ">", "events", ",", "Collection", "<", "FacesEvent", ">", "eventsAborted", ")", "{", "assert", "events", "!=", "null", ";", "for", "(", "in...
Broadcast all events in the specified collection, stopping the at any time an AbortProcessingException is thrown. @param context the current JSF context @param events the events to broadcast @return @return <code>true</code> if the broadcast was completed without unexpected abortion/exception, <code>false</code> othe...
[ "Broadcast", "all", "events", "in", "the", "specified", "collection", "stopping", "the", "at", "any", "time", "an", "AbortProcessingException", "is", "thrown", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java#L1146-L1235
110,849
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java
UIViewRoot.removePhaseListener
public void removePhaseListener(PhaseListener phaseListener) { if (phaseListener == null) { return; } getStateHelper().remove(PropertyKeys.phaseListeners, phaseListener); }
java
public void removePhaseListener(PhaseListener phaseListener) { if (phaseListener == null) { return; } getStateHelper().remove(PropertyKeys.phaseListeners, phaseListener); }
[ "public", "void", "removePhaseListener", "(", "PhaseListener", "phaseListener", ")", "{", "if", "(", "phaseListener", "==", "null", ")", "{", "return", ";", "}", "getStateHelper", "(", ")", ".", "remove", "(", "PropertyKeys", ".", "phaseListeners", ",", "phase...
Removes a The phaseListeners attached to ViewRoot.
[ "Removes", "a", "The", "phaseListeners", "attached", "to", "ViewRoot", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java#L1333-L1341
110,850
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java
UIViewRoot._process
private boolean _process(FacesContext context, PhaseId phaseId, PhaseProcessor processor) { RuntimeException processingException = null; try { if (!notifyListeners(context, phaseId, getBeforePhaseListener(), true)) { try { ...
java
private boolean _process(FacesContext context, PhaseId phaseId, PhaseProcessor processor) { RuntimeException processingException = null; try { if (!notifyListeners(context, phaseId, getBeforePhaseListener(), true)) { try { ...
[ "private", "boolean", "_process", "(", "FacesContext", "context", ",", "PhaseId", "phaseId", ",", "PhaseProcessor", "processor", ")", "{", "RuntimeException", "processingException", "=", "null", ";", "try", "{", "if", "(", "!", "notifyListeners", "(", "context", ...
Process the specified phase by calling PhaseListener.beforePhase for every phase listeners defined on this view root, then calling the process method of the processor, broadcasting relevant events and finally notifying the afterPhase method of every phase listeners registered on this view root. @param context @param p...
[ "Process", "the", "specified", "phase", "by", "calling", "PhaseListener", ".", "beforePhase", "for", "every", "phase", "listeners", "defined", "on", "this", "view", "root", "then", "calling", "the", "process", "method", "of", "the", "processor", "broadcasting", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java#L1644-L1685
110,851
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java
UIViewRoot._getEvents
private Events _getEvents(PhaseId phaseId) { // Gather the events and purge the event list to prevent concurrent modification during broadcasting int size = _events.size(); List<FacesEvent> anyPhase = new ArrayList<FacesEvent>(size); List<FacesEvent> onPhase = new ArrayList<FacesEven...
java
private Events _getEvents(PhaseId phaseId) { // Gather the events and purge the event list to prevent concurrent modification during broadcasting int size = _events.size(); List<FacesEvent> anyPhase = new ArrayList<FacesEvent>(size); List<FacesEvent> onPhase = new ArrayList<FacesEven...
[ "private", "Events", "_getEvents", "(", "PhaseId", "phaseId", ")", "{", "// Gather the events and purge the event list to prevent concurrent modification during broadcasting", "int", "size", "=", "_events", ".", "size", "(", ")", ";", "List", "<", "FacesEvent", ">", "anyP...
Gathers all event for current and ANY phase @param phaseId current phase id
[ "Gathers", "all", "event", "for", "current", "and", "ANY", "phase" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIViewRoot.java#L1706-L1733
110,852
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java
Pattern.getClause
private boolean getClause(Iterator tokens, List clause) { while(tokens.hasNext()) { Object token = tokens.next(); if (token == matchMany) return true; clause.add(token); } return false; }
java
private boolean getClause(Iterator tokens, List clause) { while(tokens.hasNext()) { Object token = tokens.next(); if (token == matchMany) return true; clause.add(token); } return false; }
[ "private", "boolean", "getClause", "(", "Iterator", "tokens", ",", "List", "clause", ")", "{", "while", "(", "tokens", ".", "hasNext", "(", ")", ")", "{", "Object", "token", "=", "tokens", ".", "next", "(", ")", ";", "if", "(", "token", "==", "matchM...
matchMany, false if it was ended by running out of tokens.
[ "matchMany", "false", "if", "it", "was", "ended", "by", "running", "out", "of", "tokens", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java#L96-L104
110,853
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java
Pattern.checkPrefix
boolean checkPrefix(char[] chars, int[] cursor) { if (prefix == null) return true; else return matchClause(prefix, chars, cursor); }
java
boolean checkPrefix(char[] chars, int[] cursor) { if (prefix == null) return true; else return matchClause(prefix, chars, cursor); }
[ "boolean", "checkPrefix", "(", "char", "[", "]", "chars", ",", "int", "[", "]", "cursor", ")", "{", "if", "(", "prefix", "==", "null", ")", "return", "true", ";", "else", "return", "matchClause", "(", "prefix", ",", "chars", ",", "cursor", ")", ";", ...
Internal method to evaluate a candidate against the prefix
[ "Internal", "method", "to", "evaluate", "a", "candidate", "against", "the", "prefix" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java#L180-L185
110,854
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java
Pattern.matchForward
static boolean matchForward(char[] chars, char[] pattern, int[] cursor) { if (pattern.length > cursor[1] - cursor[0]) return false; int index = 0; while (index < pattern.length) if (chars[cursor[0]++] != pattern[index++]) return false; return true; }
java
static boolean matchForward(char[] chars, char[] pattern, int[] cursor) { if (pattern.length > cursor[1] - cursor[0]) return false; int index = 0; while (index < pattern.length) if (chars[cursor[0]++] != pattern[index++]) return false; return true; }
[ "static", "boolean", "matchForward", "(", "char", "[", "]", "chars", ",", "char", "[", "]", "pattern", ",", "int", "[", "]", "cursor", ")", "{", "if", "(", "pattern", ".", "length", ">", "cursor", "[", "1", "]", "-", "cursor", "[", "0", "]", ")",...
Match characters in a forward direction
[ "Match", "characters", "in", "a", "forward", "direction" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java#L203-L211
110,855
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java
Pattern.checkSuffix
boolean checkSuffix(char[] chars, int[] cursor) { if (suffix == null) return true; // Compute the only possible starting point. This only works because a clause's minlen // is an exact length for SQL-style patterns. This method is overridden for topic // patterns. int start = cursor[1] - suff...
java
boolean checkSuffix(char[] chars, int[] cursor) { if (suffix == null) return true; // Compute the only possible starting point. This only works because a clause's minlen // is an exact length for SQL-style patterns. This method is overridden for topic // patterns. int start = cursor[1] - suff...
[ "boolean", "checkSuffix", "(", "char", "[", "]", "chars", ",", "int", "[", "]", "cursor", ")", "{", "if", "(", "suffix", "==", "null", ")", "return", "true", ";", "// Compute the only possible starting point. This only works because a clause's minlen", "// is an exact...
Internal method to evaluate a candidate against the suffix
[ "Internal", "method", "to", "evaluate", "a", "candidate", "against", "the", "suffix" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java#L214-L229
110,856
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java
Pattern.matchMiddle
public boolean matchMiddle(char[] chars, int start, int end) { if (midClauses == null) return true; int[] cursor = new int[] {start, end}; for (int i = 0; i < midClauses.length; i++) { Clause clause = midClauses[i]; if (!find(clause, chars, cursor)) return false; } return t...
java
public boolean matchMiddle(char[] chars, int start, int end) { if (midClauses == null) return true; int[] cursor = new int[] {start, end}; for (int i = 0; i < midClauses.length; i++) { Clause clause = midClauses[i]; if (!find(clause, chars, cursor)) return false; } return t...
[ "public", "boolean", "matchMiddle", "(", "char", "[", "]", "chars", ",", "int", "start", ",", "int", "end", ")", "{", "if", "(", "midClauses", "==", "null", ")", "return", "true", ";", "int", "[", "]", "cursor", "=", "new", "int", "[", "]", "{", ...
Match a sequence of characters against the midClauses of this pattern
[ "Match", "a", "sequence", "of", "characters", "against", "the", "midClauses", "of", "this", "pattern" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java#L232-L242
110,857
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java
Pattern.find
private boolean find(Clause clause, char[] chars, int[] cursor) { int start = cursor[0]; int end = cursor[1]; while (end - start >= clause.minlen) if (matchClause(clause, chars, cursor)) return true; else cursor[0] = ++start; return false; }
java
private boolean find(Clause clause, char[] chars, int[] cursor) { int start = cursor[0]; int end = cursor[1]; while (end - start >= clause.minlen) if (matchClause(clause, chars, cursor)) return true; else cursor[0] = ++start; return false; }
[ "private", "boolean", "find", "(", "Clause", "clause", ",", "char", "[", "]", "chars", ",", "int", "[", "]", "cursor", ")", "{", "int", "start", "=", "cursor", "[", "0", "]", ";", "int", "end", "=", "cursor", "[", "1", "]", ";", "while", "(", "...
the end of the found portion.
[ "the", "end", "of", "the", "found", "portion", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java#L246-L255
110,858
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java
Pattern.parsePattern
public static Object parsePattern(String pattern, boolean escaped, char escape) { char[] accum = new char[pattern.length()]; int finger = 0; List tokens = new ArrayList(); boolean trivial = true; for (int i = 0; i < pattern.length(); i++) { char c = pattern.charAt(i); if (c == sqlMatchOn...
java
public static Object parsePattern(String pattern, boolean escaped, char escape) { char[] accum = new char[pattern.length()]; int finger = 0; List tokens = new ArrayList(); boolean trivial = true; for (int i = 0; i < pattern.length(); i++) { char c = pattern.charAt(i); if (c == sqlMatchOn...
[ "public", "static", "Object", "parsePattern", "(", "String", "pattern", ",", "boolean", "escaped", ",", "char", "escape", ")", "{", "char", "[", "]", "accum", "=", "new", "char", "[", "pattern", ".", "length", "(", ")", "]", ";", "int", "finger", "=", ...
Parse a string containing a SQL-style pattern @param pattern the string containing the pattern @param escaped true if the string employs an escape character @param escape the escape character (ignored if !escaped) @return an Object representing the result of the parse, as follows. <ul> <li>null if the pattern is syntac...
[ "Parse", "a", "string", "containing", "a", "SQL", "-", "style", "pattern" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/Pattern.java#L272-L305
110,859
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPWriteRequestContextImpl.java
TCPWriteRequestContextImpl.write
@Override public VirtualConnection write(long numBytes, TCPWriteCompletedCallback writeCallback, boolean forceQueue, int timeout) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "write(" + numBytes + ",..," + forceQueue + "," + timeout + ")"); } ...
java
@Override public VirtualConnection write(long numBytes, TCPWriteCompletedCallback writeCallback, boolean forceQueue, int timeout) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "write(" + numBytes + ",..," + forceQueue + "," + timeout + ")"); } ...
[ "@", "Override", "public", "VirtualConnection", "write", "(", "long", "numBytes", ",", "TCPWriteCompletedCallback", "writeCallback", ",", "boolean", "forceQueue", ",", "int", "timeout", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "...
external async write
[ "external", "async", "write" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPWriteRequestContextImpl.java#L260-L295
110,860
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPWriteRequestContextImpl.java
TCPWriteRequestContextImpl.writeInternal
protected VirtualConnection writeInternal(long numBytes, TCPWriteCompletedCallback writeCallback, boolean forceQueue, int time) { int timeout = time; if (timeout == IMMED_TIMEOUT) { immediateTimeout(); return null; } else if (timeout == ABORT_TIMEOUT) { abort(...
java
protected VirtualConnection writeInternal(long numBytes, TCPWriteCompletedCallback writeCallback, boolean forceQueue, int time) { int timeout = time; if (timeout == IMMED_TIMEOUT) { immediateTimeout(); return null; } else if (timeout == ABORT_TIMEOUT) { abort(...
[ "protected", "VirtualConnection", "writeInternal", "(", "long", "numBytes", ",", "TCPWriteCompletedCallback", "writeCallback", ",", "boolean", "forceQueue", ",", "int", "time", ")", "{", "int", "timeout", "=", "time", ";", "if", "(", "timeout", "==", "IMMED_TIMEOU...
internal async write
[ "internal", "async", "write" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPWriteRequestContextImpl.java#L298-L321
110,861
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPWriteRequestContextImpl.java
TCPWriteRequestContextImpl.preProcessOneWriteBuffer
public ByteBuffer preProcessOneWriteBuffer() { // We can process the single buffer case more efficiently than if we // include it as a part of the multi-buffer logic WsByteBufferImpl wsBuffImpl = null; try { wsBuffImpl = (WsByteBufferImpl) getBuffer(); } catch (ClassC...
java
public ByteBuffer preProcessOneWriteBuffer() { // We can process the single buffer case more efficiently than if we // include it as a part of the multi-buffer logic WsByteBufferImpl wsBuffImpl = null; try { wsBuffImpl = (WsByteBufferImpl) getBuffer(); } catch (ClassC...
[ "public", "ByteBuffer", "preProcessOneWriteBuffer", "(", ")", "{", "// We can process the single buffer case more efficiently than if we", "// include it as a part of the multi-buffer logic", "WsByteBufferImpl", "wsBuffImpl", "=", "null", ";", "try", "{", "wsBuffImpl", "=", "(", ...
Before attempting a write of one buffer, perform any work required and return the proper NIO buffer to write out. @return ByteBuffer
[ "Before", "attempting", "a", "write", "of", "one", "buffer", "perform", "any", "work", "required", "and", "return", "the", "proper", "NIO", "buffer", "to", "write", "out", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPWriteRequestContextImpl.java#L428-L446
110,862
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPWriteRequestContextImpl.java
TCPWriteRequestContextImpl.postProcessWriteBuffers
public void postProcessWriteBuffers(long dataWritten) { if (getByteBufferArrayDirect() == null) { try { // see if we should post process just the one buffer case if (((WsByteBufferImpl) getBuffer()).oWsBBDirect != null) { ((WsByteBufferImpl) getBu...
java
public void postProcessWriteBuffers(long dataWritten) { if (getByteBufferArrayDirect() == null) { try { // see if we should post process just the one buffer case if (((WsByteBufferImpl) getBuffer()).oWsBBDirect != null) { ((WsByteBufferImpl) getBu...
[ "public", "void", "postProcessWriteBuffers", "(", "long", "dataWritten", ")", "{", "if", "(", "getByteBufferArrayDirect", "(", ")", "==", "null", ")", "{", "try", "{", "// see if we should post process just the one buffer case", "if", "(", "(", "(", "WsByteBufferImpl"...
After the write call, perform any actions required on the write buffers. @param dataWritten
[ "After", "the", "write", "call", "perform", "any", "actions", "required", "on", "the", "write", "buffers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPWriteRequestContextImpl.java#L495-L524
110,863
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/managedobject/CDIInterceptorManagedObjectFactoryImpl.java
CDIInterceptorManagedObjectFactoryImpl.getCreationalContext
@Override protected WeldCreationalContext<T> getCreationalContext(ManagedObjectInvocationContext<T> invocationContext) throws ManagedObjectException { ManagedObjectContext managedObjectContext = invocationContext.getManagedObjectContext(); @SuppressWarnings("unchecked") WeldCreationalConte...
java
@Override protected WeldCreationalContext<T> getCreationalContext(ManagedObjectInvocationContext<T> invocationContext) throws ManagedObjectException { ManagedObjectContext managedObjectContext = invocationContext.getManagedObjectContext(); @SuppressWarnings("unchecked") WeldCreationalConte...
[ "@", "Override", "protected", "WeldCreationalContext", "<", "T", ">", "getCreationalContext", "(", "ManagedObjectInvocationContext", "<", "T", ">", "invocationContext", ")", "throws", "ManagedObjectException", "{", "ManagedObjectContext", "managedObjectContext", "=", "invoc...
Get the CreationalContext from an existing ManagedObjectInvocationContext @throws ManagedObjectException
[ "Get", "the", "CreationalContext", "from", "an", "existing", "ManagedObjectInvocationContext" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/managedobject/CDIInterceptorManagedObjectFactoryImpl.java#L38-L48
110,864
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMapTable.java
MessageMapTable.getMap
public MessageMap getMap(BigInteger index) { if (array != null) return array[index.intValue()]; else return (MessageMap)hashtable.get(index); }
java
public MessageMap getMap(BigInteger index) { if (array != null) return array[index.intValue()]; else return (MessageMap)hashtable.get(index); }
[ "public", "MessageMap", "getMap", "(", "BigInteger", "index", ")", "{", "if", "(", "array", "!=", "null", ")", "return", "array", "[", "index", ".", "intValue", "(", ")", "]", ";", "else", "return", "(", "MessageMap", ")", "hashtable", ".", "get", "(",...
Get an element from the table
[ "Get", "an", "element", "from", "the", "table" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMapTable.java#L53-L58
110,865
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMapTable.java
MessageMapTable.set
public void set(MessageMap value) { if (array != null) array[value.multiChoice.intValue()] = value; else hashtable.put(value.multiChoice, value); }
java
public void set(MessageMap value) { if (array != null) array[value.multiChoice.intValue()] = value; else hashtable.put(value.multiChoice, value); }
[ "public", "void", "set", "(", "MessageMap", "value", ")", "{", "if", "(", "array", "!=", "null", ")", "array", "[", "value", ".", "multiChoice", ".", "intValue", "(", ")", "]", "=", "value", ";", "else", "hashtable", ".", "put", "(", "value", ".", ...
Set an element into the table
[ "Set", "an", "element", "into", "the", "table" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/MessageMapTable.java#L63-L68
110,866
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/FrameReadProcessor.java
FrameReadProcessor.startNewInboundSession
public H2StreamProcessor startNewInboundSession(Integer streamID) { H2StreamProcessor h2s = null; h2s = muxLink.createNewInboundLink(streamID); return h2s; // call the stream processor with the data it needs to then call "ready" are the underlying HttpInboundLink // (what H2HttpI...
java
public H2StreamProcessor startNewInboundSession(Integer streamID) { H2StreamProcessor h2s = null; h2s = muxLink.createNewInboundLink(streamID); return h2s; // call the stream processor with the data it needs to then call "ready" are the underlying HttpInboundLink // (what H2HttpI...
[ "public", "H2StreamProcessor", "startNewInboundSession", "(", "Integer", "streamID", ")", "{", "H2StreamProcessor", "h2s", "=", "null", ";", "h2s", "=", "muxLink", ".", "createNewInboundLink", "(", "streamID", ")", ";", "return", "h2s", ";", "// call the stream proc...
of the http1.1 HttpInboundLink. HttpInboundLink is wrapped by the H2HttpInboundLinkWrap that the new stream has access to.
[ "of", "the", "http1", ".", "1", "HttpInboundLink", ".", "HttpInboundLink", "is", "wrapped", "by", "the", "H2HttpInboundLinkWrap", "that", "the", "new", "stream", "has", "access", "to", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/FrameReadProcessor.java#L116-L123
110,867
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java
DCEventSource.fireEvent
public void fireEvent(final InvalidationEvent event) { if (bUpdateInvalidationListener) { synchronized (hsInvalidationListeners) { if (invalidationListenerCount > 0) { currentInvalidationListeners = new InvalidationListener[invalidationListenerCount]; ...
java
public void fireEvent(final InvalidationEvent event) { if (bUpdateInvalidationListener) { synchronized (hsInvalidationListeners) { if (invalidationListenerCount > 0) { currentInvalidationListeners = new InvalidationListener[invalidationListenerCount]; ...
[ "public", "void", "fireEvent", "(", "final", "InvalidationEvent", "event", ")", "{", "if", "(", "bUpdateInvalidationListener", ")", "{", "synchronized", "(", "hsInvalidationListeners", ")", "{", "if", "(", "invalidationListenerCount", ">", "0", ")", "{", "currentI...
The listeners are called when the fireEvent method is invoked. @param event The invalidation event to be fired.
[ "The", "listeners", "are", "called", "when", "the", "fireEvent", "method", "is", "invoked", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java#L83-L117
110,868
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java
DCEventSource.addListener
public void addListener(InvalidationListener listener) { synchronized (hsInvalidationListeners) { hsInvalidationListeners.add(listener); invalidationListenerCount = hsInvalidationListeners.size(); bUpdateInvalidationListener = true; } }
java
public void addListener(InvalidationListener listener) { synchronized (hsInvalidationListeners) { hsInvalidationListeners.add(listener); invalidationListenerCount = hsInvalidationListeners.size(); bUpdateInvalidationListener = true; } }
[ "public", "void", "addListener", "(", "InvalidationListener", "listener", ")", "{", "synchronized", "(", "hsInvalidationListeners", ")", "{", "hsInvalidationListeners", ".", "add", "(", "listener", ")", ";", "invalidationListenerCount", "=", "hsInvalidationListeners", "...
This adds a new listener to the Invalidation listener. @param listener The listener to be added.
[ "This", "adds", "a", "new", "listener", "to", "the", "Invalidation", "listener", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java#L123-L129
110,869
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java
DCEventSource.removeListener
public void removeListener(InvalidationListener listener) { synchronized (hsInvalidationListeners) { hsInvalidationListeners.remove(listener); invalidationListenerCount = hsInvalidationListeners.size(); bUpdateInvalidationListener = true; } }
java
public void removeListener(InvalidationListener listener) { synchronized (hsInvalidationListeners) { hsInvalidationListeners.remove(listener); invalidationListenerCount = hsInvalidationListeners.size(); bUpdateInvalidationListener = true; } }
[ "public", "void", "removeListener", "(", "InvalidationListener", "listener", ")", "{", "synchronized", "(", "hsInvalidationListeners", ")", "{", "hsInvalidationListeners", ".", "remove", "(", "listener", ")", ";", "invalidationListenerCount", "=", "hsInvalidationListeners...
This removes a specified listener for Invalidation listener. If it was not already registered then this call is ignored. @param listener The listener to be removed.
[ "This", "removes", "a", "specified", "listener", "for", "Invalidation", "listener", ".", "If", "it", "was", "not", "already", "registered", "then", "this", "call", "is", "ignored", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java#L136-L142
110,870
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java
DCEventSource.shouldInvalidate
public boolean shouldInvalidate (Object id, int sourceOfInvalidation, int causeOfInvalidation) { boolean retVal = true; if (preInvalidationListenerCount > 0) { // In external implementation, catch any exceptions and process try { retVal = currentPreInvalidationListener.shouldInv...
java
public boolean shouldInvalidate (Object id, int sourceOfInvalidation, int causeOfInvalidation) { boolean retVal = true; if (preInvalidationListenerCount > 0) { // In external implementation, catch any exceptions and process try { retVal = currentPreInvalidationListener.shouldInv...
[ "public", "boolean", "shouldInvalidate", "(", "Object", "id", ",", "int", "sourceOfInvalidation", ",", "int", "causeOfInvalidation", ")", "{", "boolean", "retVal", "=", "true", ";", "if", "(", "preInvalidationListenerCount", ">", "0", ")", "{", "// In external imp...
The listeners are called when the preInvalidate method is invoked. @param event The invalidation event to be pre-invalidated.
[ "The", "listeners", "are", "called", "when", "the", "preInvalidate", "method", "is", "invoked", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java#L148-L164
110,871
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java
DCEventSource.addListener
public void addListener(PreInvalidationListener listener) { if (preInvalidationListenerCount == 1 && tc.isDebugEnabled()) Tr.debug(tc, "Over-writing current PreInvalidationListener with new one"); currentPreInvalidationListener = listener; preInvalidationListenerCount = 1; }
java
public void addListener(PreInvalidationListener listener) { if (preInvalidationListenerCount == 1 && tc.isDebugEnabled()) Tr.debug(tc, "Over-writing current PreInvalidationListener with new one"); currentPreInvalidationListener = listener; preInvalidationListenerCount = 1; }
[ "public", "void", "addListener", "(", "PreInvalidationListener", "listener", ")", "{", "if", "(", "preInvalidationListenerCount", "==", "1", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"Over-writing current PreInvalidati...
This adds a new listener to the PreInvalidation listener. @param listener The listener to be added.
[ "This", "adds", "a", "new", "listener", "to", "the", "PreInvalidation", "listener", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java#L170-L175
110,872
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java
DCEventSource.cacheEntryChanged
public void cacheEntryChanged(final ChangeEvent event) { if (bUpdateChangeListener) { synchronized (hsChangeListeners) { if (changeListenerCount > 0) { currentChangeListeners = new ChangeListener[changeListenerCount]; hsChangeListeners.toArray(...
java
public void cacheEntryChanged(final ChangeEvent event) { if (bUpdateChangeListener) { synchronized (hsChangeListeners) { if (changeListenerCount > 0) { currentChangeListeners = new ChangeListener[changeListenerCount]; hsChangeListeners.toArray(...
[ "public", "void", "cacheEntryChanged", "(", "final", "ChangeEvent", "event", ")", "{", "if", "(", "bUpdateChangeListener", ")", "{", "synchronized", "(", "hsChangeListeners", ")", "{", "if", "(", "changeListenerCount", ">", "0", ")", "{", "currentChangeListeners",...
The listeners are called when the cacheEntryChange method is invoked. @param event The Change event to be fired.
[ "The", "listeners", "are", "called", "when", "the", "cacheEntryChange", "method", "is", "invoked", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java#L193-L227
110,873
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java
DCEventSource.addListener
public void addListener(ChangeListener listener) { synchronized (hsChangeListeners) { hsChangeListeners.add(listener); changeListenerCount = hsChangeListeners.size(); bUpdateChangeListener = true; } }
java
public void addListener(ChangeListener listener) { synchronized (hsChangeListeners) { hsChangeListeners.add(listener); changeListenerCount = hsChangeListeners.size(); bUpdateChangeListener = true; } }
[ "public", "void", "addListener", "(", "ChangeListener", "listener", ")", "{", "synchronized", "(", "hsChangeListeners", ")", "{", "hsChangeListeners", ".", "add", "(", "listener", ")", ";", "changeListenerCount", "=", "hsChangeListeners", ".", "size", "(", ")", ...
This adds a new change listener to the Change listener. @param listener The listener to be added.
[ "This", "adds", "a", "new", "change", "listener", "to", "the", "Change", "listener", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java#L233-L239
110,874
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java
DCEventSource.removeListener
public void removeListener(ChangeListener listener) { synchronized (hsChangeListeners) { hsChangeListeners.remove(listener); changeListenerCount = hsChangeListeners.size(); bUpdateChangeListener = true; } }
java
public void removeListener(ChangeListener listener) { synchronized (hsChangeListeners) { hsChangeListeners.remove(listener); changeListenerCount = hsChangeListeners.size(); bUpdateChangeListener = true; } }
[ "public", "void", "removeListener", "(", "ChangeListener", "listener", ")", "{", "synchronized", "(", "hsChangeListeners", ")", "{", "hsChangeListeners", ".", "remove", "(", "listener", ")", ";", "changeListenerCount", "=", "hsChangeListeners", ".", "size", "(", "...
This removes a specified listener for the Change listener. If it was not already registered then this call is ignored. @param listener The listener to be removed.
[ "This", "removes", "a", "specified", "listener", "for", "the", "Change", "listener", ".", "If", "it", "was", "not", "already", "registered", "then", "this", "call", "is", "ignored", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DCEventSource.java#L246-L252
110,875
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/wsspi/kernel/embeddable/ServerBuilder.java
ServerBuilder.addProductExtension
public ServerBuilder addProductExtension(String name, Properties props) { if ((name != null) && (props != null)) { if (productExtensions == null) { productExtensions = new HashMap<String, Properties>(); } this.productExtensions.put(name, props); } ...
java
public ServerBuilder addProductExtension(String name, Properties props) { if ((name != null) && (props != null)) { if (productExtensions == null) { productExtensions = new HashMap<String, Properties>(); } this.productExtensions.put(name, props); } ...
[ "public", "ServerBuilder", "addProductExtension", "(", "String", "name", ",", "Properties", "props", ")", "{", "if", "(", "(", "name", "!=", "null", ")", "&&", "(", "props", "!=", "null", ")", ")", "{", "if", "(", "productExtensions", "==", "null", ")", ...
Add a product extension. <p> The addProductExtension method can be called multiple times to add multiple extensions. <p> When the server is started, any product extension files added by this method will be combined with the product extension files found in other source locations. Any duplicate product names will invok...
[ "Add", "a", "product", "extension", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/wsspi/kernel/embeddable/ServerBuilder.java#L214-L222
110,876
OpenLiberty/open-liberty
dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/SortControl.java
SortControl.getSortKeys
public List<com.ibm.wsspi.security.wim.model.SortKeyType> getSortKeys() { if (sortKeys == null) { sortKeys = new ArrayList<com.ibm.wsspi.security.wim.model.SortKeyType>(); } return this.sortKeys; }
java
public List<com.ibm.wsspi.security.wim.model.SortKeyType> getSortKeys() { if (sortKeys == null) { sortKeys = new ArrayList<com.ibm.wsspi.security.wim.model.SortKeyType>(); } return this.sortKeys; }
[ "public", "List", "<", "com", ".", "ibm", ".", "wsspi", ".", "security", ".", "wim", ".", "model", ".", "SortKeyType", ">", "getSortKeys", "(", ")", "{", "if", "(", "sortKeys", "==", "null", ")", "{", "sortKeys", "=", "new", "ArrayList", "<", "com", ...
Gets the value of the sortKeys property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the sortKeys property. <p> For example, to add...
[ "Gets", "the", "value", "of", "the", "sortKeys", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/SortControl.java#L107-L112
110,877
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/db/DatabaseTaskStore.java
DatabaseTaskStore.appendStateComparison
@Trivial private final Map<String, Object> appendStateComparison(StringBuilder sb, TaskState state, boolean inState) { Map<String, Object> params = new HashMap<String, Object>(); switch (state) { case SCHEDULED: sb.append("t.STATES").append(inState ? "<" : ">=").append(":...
java
@Trivial private final Map<String, Object> appendStateComparison(StringBuilder sb, TaskState state, boolean inState) { Map<String, Object> params = new HashMap<String, Object>(); switch (state) { case SCHEDULED: sb.append("t.STATES").append(inState ? "<" : ">=").append(":...
[ "@", "Trivial", "private", "final", "Map", "<", "String", ",", "Object", ">", "appendStateComparison", "(", "StringBuilder", "sb", ",", "TaskState", "state", ",", "boolean", "inState", ")", "{", "Map", "<", "String", ",", "Object", ">", "params", "=", "new...
Appends conditions to a JPA query to filter based on the presence or absence of the specified state. This method optimizes to avoid the MOD function if possible. @param sb string builder for the query @param state a task state. For example, TaskState.CANCELED @param inState indicates whether to include or exclude resu...
[ "Appends", "conditions", "to", "a", "JPA", "query", "to", "filter", "based", "on", "the", "presence", "or", "absence", "of", "the", "specified", "state", ".", "This", "method", "optimizes", "to", "avoid", "the", "MOD", "function", "if", "possible", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/db/DatabaseTaskStore.java#L127-L160
110,878
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/db/DatabaseTaskStore.java
DatabaseTaskStore.cancel
@Override public boolean cancel(long taskId) throws Exception { StringBuilder update = new StringBuilder(87).append("UPDATE Task t SET t.STATES=") .append(TaskState.CANCELED.bit + TaskState.ENDED.bit) .append(",t.VERSION=t.VERSION+1 WHERE t.ID=:i AND t.STATES<...
java
@Override public boolean cancel(long taskId) throws Exception { StringBuilder update = new StringBuilder(87).append("UPDATE Task t SET t.STATES=") .append(TaskState.CANCELED.bit + TaskState.ENDED.bit) .append(",t.VERSION=t.VERSION+1 WHERE t.ID=:i AND t.STATES<...
[ "@", "Override", "public", "boolean", "cancel", "(", "long", "taskId", ")", "throws", "Exception", "{", "StringBuilder", "update", "=", "new", "StringBuilder", "(", "87", ")", ".", "append", "(", "\"UPDATE Task t SET t.STATES=\"", ")", ".", "append", "(", "Tas...
Update the record for a task in the persistent store to indicate that the task is canceled. @param taskId unique identifier for a persistent task @return true if the state of the task was updated as a result of this method, otherwise false. @throws Exception if an error occurs when attempting to update the persistent ...
[ "Update", "the", "record", "for", "a", "task", "in", "the", "persistent", "store", "to", "indicate", "that", "the", "task", "is", "canceled", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/db/DatabaseTaskStore.java#L169-L192
110,879
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/db/DatabaseTaskStore.java
DatabaseTaskStore.create
@Override public void create(TaskRecord taskRecord) throws Exception { Task task = new Task(taskRecord); EntityManager em = getPersistenceServiceUnit().createEntityManager(); try { em.persist(task); em.flush(); taskRecord.setId(task.ID); } finally ...
java
@Override public void create(TaskRecord taskRecord) throws Exception { Task task = new Task(taskRecord); EntityManager em = getPersistenceServiceUnit().createEntityManager(); try { em.persist(task); em.flush(); taskRecord.setId(task.ID); } finally ...
[ "@", "Override", "public", "void", "create", "(", "TaskRecord", "taskRecord", ")", "throws", "Exception", "{", "Task", "task", "=", "new", "Task", "(", "taskRecord", ")", ";", "EntityManager", "em", "=", "getPersistenceServiceUnit", "(", ")", ".", "createEntit...
Create an entry in the persistent store for a new task. @param taskRecord information about the persistent task @throws Exception if an error occurs when attempting to update the persistent task store.
[ "Create", "an", "entry", "in", "the", "persistent", "store", "for", "a", "new", "task", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/db/DatabaseTaskStore.java#L248-L259
110,880
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/db/DatabaseTaskStore.java
DatabaseTaskStore.createProperty
@FFDCIgnore({ EntityExistsException.class, PersistenceException.class, Exception.class }) @Override public boolean createProperty(String name, String value) throws Exception { EntityManager em = getPersistenceServiceUnit().createEntityManager(); Property property = new Property(name, value); ...
java
@FFDCIgnore({ EntityExistsException.class, PersistenceException.class, Exception.class }) @Override public boolean createProperty(String name, String value) throws Exception { EntityManager em = getPersistenceServiceUnit().createEntityManager(); Property property = new Property(name, value); ...
[ "@", "FFDCIgnore", "(", "{", "EntityExistsException", ".", "class", ",", "PersistenceException", ".", "class", ",", "Exception", ".", "class", "}", ")", "@", "Override", "public", "boolean", "createProperty", "(", "String", "name", ",", "String", "value", ")",...
Create a property entry in the persistent store. @param name unique name for the property. @param value value of the property. @return true if the property was created. False if a property with the same name already exists. @throws Exception if an error occurs when attempting to update the persistent task store.
[ "Create", "a", "property", "entry", "in", "the", "persistent", "store", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/db/DatabaseTaskStore.java#L269-L302
110,881
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/db/DatabaseTaskStore.java
DatabaseTaskStore.getPersistenceServiceUnit
public final PersistenceServiceUnit getPersistenceServiceUnit() throws Exception { lock.readLock().lock(); try { if (destroyed) throw new IllegalStateException(); if (persistenceServiceUnit == null) { // Switch to write lock for lazy initialization...
java
public final PersistenceServiceUnit getPersistenceServiceUnit() throws Exception { lock.readLock().lock(); try { if (destroyed) throw new IllegalStateException(); if (persistenceServiceUnit == null) { // Switch to write lock for lazy initialization...
[ "public", "final", "PersistenceServiceUnit", "getPersistenceServiceUnit", "(", ")", "throws", "Exception", "{", "lock", ".", "readLock", "(", ")", ".", "lock", "(", ")", ";", "try", "{", "if", "(", "destroyed", ")", "throw", "new", "IllegalStateException", "("...
Returns the persistence service unit, lazily initializing if necessary. @return the persistence service unit. @throws Exceptin if an error occurs. @throws IllegalStateException if this instance has been destroyed.
[ "Returns", "the", "persistence", "service", "unit", "lazily", "initializing", "if", "necessary", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/db/DatabaseTaskStore.java#L720-L747
110,882
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/AverageStatisticImpl.java
AverageStatisticImpl.combine
public void combine(WSStatistic otherStat) { if (!validate(otherStat)) return; AverageStatisticImpl other = (AverageStatisticImpl) otherStat; boolean previousCountWasZero = (count == 0); count += other.count; total += other.total; sumOfSquares += other.sumOfS...
java
public void combine(WSStatistic otherStat) { if (!validate(otherStat)) return; AverageStatisticImpl other = (AverageStatisticImpl) otherStat; boolean previousCountWasZero = (count == 0); count += other.count; total += other.total; sumOfSquares += other.sumOfS...
[ "public", "void", "combine", "(", "WSStatistic", "otherStat", ")", "{", "if", "(", "!", "validate", "(", "otherStat", ")", ")", "return", ";", "AverageStatisticImpl", "other", "=", "(", "AverageStatisticImpl", ")", "otherStat", ";", "boolean", "previousCountWasZ...
Combine this StatData with other StatData
[ "Combine", "this", "StatData", "with", "other", "StatData" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/AverageStatisticImpl.java#L183-L204
110,883
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AOBrowserSession.java
AOBrowserSession.next
public synchronized boolean next(long seqNum) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "next", new Long(seqNum)); // cancel the existing alarm and create a new one expiryAlarmHandle.cancel(); expiryAlarmHandle = am.create(parent.getMessagePr...
java
public synchronized boolean next(long seqNum) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "next", new Long(seqNum)); // cancel the existing alarm and create a new one expiryAlarmHandle.cancel(); expiryAlarmHandle = am.create(parent.getMessagePr...
[ "public", "synchronized", "boolean", "next", "(", "long", "seqNum", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"next\"", ",", "ne...
Send the next message in this session to the remote ME. @param seqNum The sequence number for the next message @return true if closed, either because reached end of cursor, or due to some failure, or due to expiry; else false
[ "Send", "the", "next", "message", "in", "this", "session", "to", "the", "remote", "ME", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AOBrowserSession.java#L116-L191
110,884
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AOBrowserSession.java
AOBrowserSession.close
public synchronized final void close() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "close"); closed = true; if (browseCursor != null) { try { browseCursor.finished(); } catch (SISessionDroppedException e) { FFDCFil...
java
public synchronized final void close() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "close"); closed = true; if (browseCursor != null) { try { browseCursor.finished(); } catch (SISessionDroppedException e) { FFDCFil...
[ "public", "synchronized", "final", "void", "close", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"close\"", ")", ";", "closed"...
Close this session
[ "Close", "this", "session" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AOBrowserSession.java#L196-L232
110,885
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AOBrowserSession.java
AOBrowserSession.keepAlive
public synchronized final void keepAlive() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "keepAlive"); if (!closed) { if (expiryAlarmHandle != null) { // cancel the existing alarm expiryAlarmHandle.cancel(); } // create a ...
java
public synchronized final void keepAlive() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "keepAlive"); if (!closed) { if (expiryAlarmHandle != null) { // cancel the existing alarm expiryAlarmHandle.cancel(); } // create a ...
[ "public", "synchronized", "final", "void", "keepAlive", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"keepAlive\"", ")", ";", ...
Keep this session alive
[ "Keep", "this", "session", "alive" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AOBrowserSession.java#L237-L257
110,886
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AOBrowserSession.java
AOBrowserSession.alarm
public void alarm(Object thandle) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "alarm", thandle); synchronized (this) { if (expiryAlarmHandle != null) { expiryAlarmHandle = null; close(); // call into parent asking it to remo...
java
public void alarm(Object thandle) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "alarm", thandle); synchronized (this) { if (expiryAlarmHandle != null) { expiryAlarmHandle = null; close(); // call into parent asking it to remo...
[ "public", "void", "alarm", "(", "Object", "thandle", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"alarm\"", ",", "thandle", ")", ...
The alarm has expired
[ "The", "alarm", "has", "expired" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AOBrowserSession.java#L262-L281
110,887
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATProxyConsumer.java
CATProxyConsumer.setAsynchConsumerCallback
public void setAsynchConsumerCallback(int requestNumber, int maxActiveMessages, long messageLockExpiry, int batchsize, OrderingContext orderContext, ...
java
public void setAsynchConsumerCallback(int requestNumber, int maxActiveMessages, long messageLockExpiry, int batchsize, OrderingContext orderContext, ...
[ "public", "void", "setAsynchConsumerCallback", "(", "int", "requestNumber", ",", "int", "maxActiveMessages", ",", "long", "messageLockExpiry", ",", "int", "batchsize", ",", "OrderingContext", "orderContext", ",", "boolean", "stoppable", ",", "//SIB0115d.comms", "int", ...
Sets the async consumer for a read ahead session. @param requestNumber @param maxActiveMessages @param messageLockExpiry @param batchsize @param orderContext This paramter is ignored for read ahead consumers. @param stoppable (ignored) @param maxSequentialFailures (ignored) @param hiddenMessageDelay
[ "Sets", "the", "async", "consumer", "for", "a", "read", "ahead", "session", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATProxyConsumer.java#L188-L239
110,888
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATProxyConsumer.java
CATProxyConsumer.deleteSet
public void deleteSet(int requestNumber, SIMessageHandle[] msgHandles, int tran, boolean reply) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "deleteSet", new Object[]{requestNumber, msgHandles, tran, reply}); if (Trac...
java
public void deleteSet(int requestNumber, SIMessageHandle[] msgHandles, int tran, boolean reply) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "deleteSet", new Object[]{requestNumber, msgHandles, tran, reply}); if (Trac...
[ "public", "void", "deleteSet", "(", "int", "requestNumber", ",", "SIMessageHandle", "[", "]", "msgHandles", ",", "int", "tran", ",", "boolean", "reply", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEna...
This method will inform the ME that we have consumed messages that are currently locked on our behalf. @param requestNumber The request number that replies should be sent with. @param msgHandles The array of message id's that should be deleted. @param tran @param reply
[ "This", "method", "will", "inform", "the", "ME", "that", "we", "have", "consumed", "messages", "that", "are", "currently", "locked", "on", "our", "behalf", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATProxyConsumer.java#L395-L472
110,889
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATProxyConsumer.java
CATProxyConsumer.sendMessage
int sendMessage(SIBusMessage sibMessage) throws MessageCopyFailedException, IncorrectMessageTypeException, MessageEncodeFailedException, UnsupportedEncodingException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "sendMessag...
java
int sendMessage(SIBusMessage sibMessage) throws MessageCopyFailedException, IncorrectMessageTypeException, MessageEncodeFailedException, UnsupportedEncodingException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "sendMessag...
[ "int", "sendMessage", "(", "SIBusMessage", "sibMessage", ")", "throws", "MessageCopyFailedException", ",", "IncorrectMessageTypeException", ",", "MessageEncodeFailedException", ",", "UnsupportedEncodingException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", ...
This method will send a message to the attached client. @param sibMessage @return Returns the length of the message sent @throws MessageEncodeFailedException @throws IncorrectMessageTypeException @throws MessageCopyFailedException
[ "This", "method", "will", "send", "a", "message", "to", "the", "attached", "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/CATProxyConsumer.java#L655-L679
110,890
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATProxyConsumer.java
CATProxyConsumer.sendEntireMessage
private int sendEntireMessage(SIBusMessage sibMessage, List<DataSlice> messageSlices) throws MessageCopyFailedException, IncorrectMessageTypeException, MessageEncodeFailedException, UnsupportedEncodingException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntr...
java
private int sendEntireMessage(SIBusMessage sibMessage, List<DataSlice> messageSlices) throws MessageCopyFailedException, IncorrectMessageTypeException, MessageEncodeFailedException, UnsupportedEncodingException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntr...
[ "private", "int", "sendEntireMessage", "(", "SIBusMessage", "sibMessage", ",", "List", "<", "DataSlice", ">", "messageSlices", ")", "throws", "MessageCopyFailedException", ",", "IncorrectMessageTypeException", ",", "MessageEncodeFailedException", ",", "UnsupportedEncodingExce...
Send the entire message in one big buffer. If the messageSlices parameter is not null then the message has already been encoded and does not need to be done again. This may be in the case where the message was destined to be sent in chunks but is so small that it does not seem worth it. @param sibMessage The entire me...
[ "Send", "the", "entire", "message", "in", "one", "big", "buffer", ".", "If", "the", "messageSlices", "parameter", "is", "not", "null", "then", "the", "message", "has", "already", "been", "encoded", "and", "does", "not", "need", "to", "be", "done", "again",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATProxyConsumer.java#L804-L861
110,891
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATProxyConsumer.java
CATProxyConsumer.setRequestedBytes
public void setRequestedBytes(int newRequestedBytes) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setRequestedBytes", newRequestedBytes); requestedBytes = newRequestedBytes; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this...
java
public void setRequestedBytes(int newRequestedBytes) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setRequestedBytes", newRequestedBytes); requestedBytes = newRequestedBytes; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this...
[ "public", "void", "setRequestedBytes", "(", "int", "newRequestedBytes", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"se...
This method can be used to set the amount of bytes that the client has requested to keep in the proxy queue. @param newRequestedBytes
[ "This", "method", "can", "be", "used", "to", "set", "the", "amount", "of", "bytes", "that", "the", "client", "has", "requested", "to", "keep", "in", "the", "proxy", "queue", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATProxyConsumer.java#L966-L971
110,892
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATProxyConsumer.java
CATProxyConsumer.setSentBytes
public void setSentBytes(int newSentBytes) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSentBytes", newSentBytes); sentBytes = newSentBytes; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setSentBytes"); }
java
public void setSentBytes(int newSentBytes) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSentBytes", newSentBytes); sentBytes = newSentBytes; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setSentBytes"); }
[ "public", "void", "setSentBytes", "(", "int", "newSentBytes", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"setSentBytes...
This method will update the amount of bytes we have sent to the client. @param newSentBytes
[ "This", "method", "will", "update", "the", "amount", "of", "bytes", "we", "have", "sent", "to", "the", "client", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATProxyConsumer.java#L989-L994
110,893
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATProxyConsumer.java
CATProxyConsumer.setLowestPriority
public void setLowestPriority(short pri) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setLowestPriority", pri); mainConsumer.setLowestPriority(pri); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setLowestPriority"...
java
public void setLowestPriority(short pri) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setLowestPriority", pri); mainConsumer.setLowestPriority(pri); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setLowestPriority"...
[ "public", "void", "setLowestPriority", "(", "short", "pri", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"setLowestPrior...
This method will update the session lowest priority value. @param pri
[ "This", "method", "will", "update", "the", "session", "lowest", "priority", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATProxyConsumer.java#L1001-L1006
110,894
OpenLiberty/open-liberty
dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Group.java
Group.setExtendedProperty
private void setExtendedProperty(String property, Object value) { String dataType = extendedPropertiesDataType.get(property); String valueClass = value.getClass().getSimpleName(); if (dataType.equals(valueClass) && !extendedMultiValuedProperties.contains(property)) { extendedPropert...
java
private void setExtendedProperty(String property, Object value) { String dataType = extendedPropertiesDataType.get(property); String valueClass = value.getClass().getSimpleName(); if (dataType.equals(valueClass) && !extendedMultiValuedProperties.contains(property)) { extendedPropert...
[ "private", "void", "setExtendedProperty", "(", "String", "property", ",", "Object", "value", ")", "{", "String", "dataType", "=", "extendedPropertiesDataType", ".", "get", "(", "property", ")", ";", "String", "valueClass", "=", "value", ".", "getClass", "(", "...
Set an extended property's value. @param property The property to set. @param value The value to set. @throws ClassCastException If the value was not of the correct data type.
[ "Set", "an", "extended", "property", "s", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Group.java#L790-L812
110,895
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSDeleteFringe.java
GBSDeleteFringe.balance
void balance( int t0_depth, DeleteStack stack) { int ntop = stack.topIndex(); InsertStack istack = stack.insertStack(); DeleteStack.Linearizer lxx = stack.linearizer(); DeleteStack.FringeNote xx = stack.fringeNote(); xx.depthDecrease = false; xx.conditionalDecrease = fals...
java
void balance( int t0_depth, DeleteStack stack) { int ntop = stack.topIndex(); InsertStack istack = stack.insertStack(); DeleteStack.Linearizer lxx = stack.linearizer(); DeleteStack.FringeNote xx = stack.fringeNote(); xx.depthDecrease = false; xx.conditionalDecrease = fals...
[ "void", "balance", "(", "int", "t0_depth", ",", "DeleteStack", "stack", ")", "{", "int", "ntop", "=", "stack", ".", "topIndex", "(", ")", ";", "InsertStack", "istack", "=", "stack", ".", "insertStack", "(", ")", ";", "DeleteStack", ".", "Linearizer", "lx...
Balance a fringe following delete.
[ "Balance", "a", "fringe", "following", "delete", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSDeleteFringe.java#L45-L75
110,896
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSDeleteFringe.java
GBSDeleteFringe.leftFringe
private void leftFringe( DeleteStack.Linearizer lxx, DeleteStack.FringeNote xx, InsertStack istack, GBSNode f, GBSNode g, boolean gLeft, int t0_depth) { GBSNode w = f.rightChild(); /* The right brother of delete fringe */ GBSNode s = ...
java
private void leftFringe( DeleteStack.Linearizer lxx, DeleteStack.FringeNote xx, InsertStack istack, GBSNode f, GBSNode g, boolean gLeft, int t0_depth) { GBSNode w = f.rightChild(); /* The right brother of delete fringe */ GBSNode s = ...
[ "private", "void", "leftFringe", "(", "DeleteStack", ".", "Linearizer", "lxx", ",", "DeleteStack", ".", "FringeNote", "xx", ",", "InsertStack", "istack", ",", "GBSNode", "f", ",", "GBSNode", "g", ",", "boolean", "gLeft", ",", "int", "t0_depth", ")", "{", "...
Handle the case where we deleted from a left fringe.
[ "Handle", "the", "case", "where", "we", "deleted", "from", "a", "left", "fringe", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSDeleteFringe.java#L81-L161
110,897
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSDeleteFringe.java
GBSDeleteFringe.rightFringe
private void rightFringe( DeleteStack.Linearizer lxx, DeleteStack.FringeNote xx, InsertStack istack, GBSNode f, GBSNode g, boolean gLeft) { GBSNode w = f.leftChild(); /* The left brother of delete fringe */ GBSNode s = f.rightChild(); /* t0 fr...
java
private void rightFringe( DeleteStack.Linearizer lxx, DeleteStack.FringeNote xx, InsertStack istack, GBSNode f, GBSNode g, boolean gLeft) { GBSNode w = f.leftChild(); /* The left brother of delete fringe */ GBSNode s = f.rightChild(); /* t0 fr...
[ "private", "void", "rightFringe", "(", "DeleteStack", ".", "Linearizer", "lxx", ",", "DeleteStack", ".", "FringeNote", "xx", ",", "InsertStack", "istack", ",", "GBSNode", "f", ",", "GBSNode", "g", ",", "boolean", "gLeft", ")", "{", "GBSNode", "w", "=", "f"...
Handle the case where we deleted from a right fringe.
[ "Handle", "the", "case", "where", "we", "deleted", "from", "a", "right", "fringe", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSDeleteFringe.java#L202-L257
110,898
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSDeleteFringe.java
GBSDeleteFringe.rightDepth
private void rightDepth( DeleteStack.FringeNote xx, int fbalance) { switch (fbalance) /* Original father balance factor */ { case 1: /* Have deleted from right of right-heavy*/ /* Is now balanced but dept...
java
private void rightDepth( DeleteStack.FringeNote xx, int fbalance) { switch (fbalance) /* Original father balance factor */ { case 1: /* Have deleted from right of right-heavy*/ /* Is now balanced but dept...
[ "private", "void", "rightDepth", "(", "DeleteStack", ".", "FringeNote", "xx", ",", "int", "fbalance", ")", "{", "switch", "(", "fbalance", ")", "/* Original father balance factor */", "{", "case", "1", ":", "/* Have deleted from right of right-heavy*/", "/* Is n...
Given the original balance factor from the original parent of the t0 sub-tree from which we deleted from the right side, determine the possible new balance factor and depth decrease indicator.
[ "Given", "the", "original", "balance", "factor", "from", "the", "original", "parent", "of", "the", "t0", "sub", "-", "tree", "from", "which", "we", "deleted", "from", "the", "right", "side", "determine", "the", "possible", "new", "balance", "factor", "and", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSDeleteFringe.java#L265-L293
110,899
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSDeleteFringe.java
GBSDeleteFringe.lastFringe
private void lastFringe( DeleteStack.FringeNote xx, GBSNode g, boolean gLeft, DeleteStack stack, int ntop, InsertStack istack) { if (gLeft) { /* Original father was left child */ stack.setNode(ntop, g.leftChild());/* Put new le...
java
private void lastFringe( DeleteStack.FringeNote xx, GBSNode g, boolean gLeft, DeleteStack stack, int ntop, InsertStack istack) { if (gLeft) { /* Original father was left child */ stack.setNode(ntop, g.leftChild());/* Put new le...
[ "private", "void", "lastFringe", "(", "DeleteStack", ".", "FringeNote", "xx", ",", "GBSNode", "g", ",", "boolean", "gLeft", ",", "DeleteStack", "stack", ",", "int", "ntop", ",", "InsertStack", "istack", ")", "{", "if", "(", "gLeft", ")", "{", "/* Original ...
Examine the final fringe and re-balance if necessary. <p>Examine the fringe that was produced by either rightFringe or lastFringe. As this fringe may have resulted from the combination of one or more partial fringes it may now require input fringe rebalancing.</p> @param g grandparent @param gLeft If true, f was lef...
[ "Examine", "the", "final", "fringe", "and", "re", "-", "balance", "if", "necessary", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSDeleteFringe.java#L311-L373