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
66,100
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/api/impl/JobOperatorImplSuspendTran.java
JobOperatorImplSuspendTran.resumeTran
private void resumeTran(Transaction tran) { if (tran != null) { try { tranMgr.resume(tran); } catch (Exception e) { throw new BatchRuntimeException("Failed to resume transaction after JobOperator method", e); } } }
java
private void resumeTran(Transaction tran) { if (tran != null) { try { tranMgr.resume(tran); } catch (Exception e) { throw new BatchRuntimeException("Failed to resume transaction after JobOperator method", e); } } }
[ "private", "void", "resumeTran", "(", "Transaction", "tran", ")", "{", "if", "(", "tran", "!=", "null", ")", "{", "try", "{", "tranMgr", ".", "resume", "(", "tran", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "new", "BatchRuntim...
Resume the given tran.
[ "Resume", "the", "given", "tran", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/api/impl/JobOperatorImplSuspendTran.java#L109-L117
66,101
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/provider/ProviderFactory.java
ProviderFactory.addAndSortReaders
private void addAndSortReaders(List<ProviderInfo<MessageBodyReader<?>>> newReaders, boolean forceSort) { Comparator<ProviderInfo<MessageBodyReader<?>>> comparator = null; if (!customComparatorAvailable(MessageBodyReader.class)) { comparator = new MessageBodyReaderComparator(readerMediaTypesM...
java
private void addAndSortReaders(List<ProviderInfo<MessageBodyReader<?>>> newReaders, boolean forceSort) { Comparator<ProviderInfo<MessageBodyReader<?>>> comparator = null; if (!customComparatorAvailable(MessageBodyReader.class)) { comparator = new MessageBodyReaderComparator(readerMediaTypesM...
[ "private", "void", "addAndSortReaders", "(", "List", "<", "ProviderInfo", "<", "MessageBodyReader", "<", "?", ">", ">", ">", "newReaders", ",", "boolean", "forceSort", ")", "{", "Comparator", "<", "ProviderInfo", "<", "MessageBodyReader", "<", "?", ">", ">", ...
Liberty code change start
[ "Liberty", "code", "change", "start" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/provider/ProviderFactory.java#L907-L914
66,102
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/provider/ProviderFactory.java
ProviderFactory.getGenericInterfaces
private static Type[] getGenericInterfaces(Class<?> cls, Class<?> expectedClass, Class<?> commonBaseCls) { if (Object.class == cls) { return emptyType; } Type[] cachedTypes = getTypes(cls, expectedClass, commonBaseCls); if (cache...
java
private static Type[] getGenericInterfaces(Class<?> cls, Class<?> expectedClass, Class<?> commonBaseCls) { if (Object.class == cls) { return emptyType; } Type[] cachedTypes = getTypes(cls, expectedClass, commonBaseCls); if (cache...
[ "private", "static", "Type", "[", "]", "getGenericInterfaces", "(", "Class", "<", "?", ">", "cls", ",", "Class", "<", "?", ">", "expectedClass", ",", "Class", "<", "?", ">", "commonBaseCls", ")", "{", "if", "(", "Object", ".", "class", "==", "cls", "...
Add the result to cache before return
[ "Add", "the", "result", "to", "cache", "before", "return" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/provider/ProviderFactory.java#L1527-L1560
66,103
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/FutureCollectionCompletionListener.java
FutureCollectionCompletionListener.onCompletion
void onCompletion(Collection<ApplicationDependency> dependencies) { if (!dependencies.isEmpty()) { for (ApplicationDependency dependency : dependencies) { dependency.onCompletion(this); } } }
java
void onCompletion(Collection<ApplicationDependency> dependencies) { if (!dependencies.isEmpty()) { for (ApplicationDependency dependency : dependencies) { dependency.onCompletion(this); } } }
[ "void", "onCompletion", "(", "Collection", "<", "ApplicationDependency", ">", "dependencies", ")", "{", "if", "(", "!", "dependencies", ".", "isEmpty", "(", ")", ")", "{", "for", "(", "ApplicationDependency", "dependency", ":", "dependencies", ")", "{", "depen...
"final Field Semantics".
[ "final", "Field", "Semantics", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager/src/com/ibm/ws/app/manager/internal/FutureCollectionCompletionListener.java#L49-L55
66,104
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/naming/EJBJavaColonNamingHelper.java
EJBJavaColonNamingHelper.hasObjectWithPrefix
@Override public boolean hasObjectWithPrefix(JavaColonNamespace namespace, String name) throws NamingException { JavaColonNamespaceBindings<EJBBinding> bindings; boolean result = false; Lock readLock = null; ComponentMetaData cmd = null; try { // This helper on...
java
@Override public boolean hasObjectWithPrefix(JavaColonNamespace namespace, String name) throws NamingException { JavaColonNamespaceBindings<EJBBinding> bindings; boolean result = false; Lock readLock = null; ComponentMetaData cmd = null; try { // This helper on...
[ "@", "Override", "public", "boolean", "hasObjectWithPrefix", "(", "JavaColonNamespace", "namespace", ",", "String", "name", ")", "throws", "NamingException", "{", "JavaColonNamespaceBindings", "<", "EJBBinding", ">", "bindings", ";", "boolean", "result", "=", "false",...
can suppress warning - if cmd is null NamingException will be thrown by getComponentMetaData
[ "can", "suppress", "warning", "-", "if", "cmd", "is", "null", "NamingException", "will", "be", "thrown", "by", "getComponentMetaData" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/naming/EJBJavaColonNamingHelper.java#L295-L338
66,105
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/naming/EJBJavaColonNamingHelper.java
EJBJavaColonNamingHelper.removeGlobalBindings
public void removeGlobalBindings(List<String> names) { Lock writeLock = javaColonLock.writeLock(); writeLock.lock(); try { for (String name : names) { javaColonGlobalBindings.unbind(name); } } finally { writeLock.unlock(); } ...
java
public void removeGlobalBindings(List<String> names) { Lock writeLock = javaColonLock.writeLock(); writeLock.lock(); try { for (String name : names) { javaColonGlobalBindings.unbind(name); } } finally { writeLock.unlock(); } ...
[ "public", "void", "removeGlobalBindings", "(", "List", "<", "String", ">", "names", ")", "{", "Lock", "writeLock", "=", "javaColonLock", ".", "writeLock", "(", ")", ";", "writeLock", ".", "lock", "(", ")", ";", "try", "{", "for", "(", "String", "name", ...
Remove names from the global mapping. @param names List of names to remove.
[ "Remove", "names", "from", "the", "global", "mapping", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/naming/EJBJavaColonNamingHelper.java#L363-L374
66,106
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/naming/EJBJavaColonNamingHelper.java
EJBJavaColonNamingHelper.getAppBindingMap
private JavaColonNamespaceBindings<EJBBinding> getAppBindingMap(ApplicationMetaData amd) { @SuppressWarnings("unchecked") JavaColonNamespaceBindings<EJBBinding> bindingMap = (JavaColonNamespaceBindings<EJBBinding>) amd.getMetaData(amdSlot); if (bindingMap == null) { bindingMap = new ...
java
private JavaColonNamespaceBindings<EJBBinding> getAppBindingMap(ApplicationMetaData amd) { @SuppressWarnings("unchecked") JavaColonNamespaceBindings<EJBBinding> bindingMap = (JavaColonNamespaceBindings<EJBBinding>) amd.getMetaData(amdSlot); if (bindingMap == null) { bindingMap = new ...
[ "private", "JavaColonNamespaceBindings", "<", "EJBBinding", ">", "getAppBindingMap", "(", "ApplicationMetaData", "amd", ")", "{", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "JavaColonNamespaceBindings", "<", "EJBBinding", ">", "bindingMap", "=", "(", "JavaColon...
Get the EJBBinding map from the application meta data. Initialize if it is null. @param amd @return Map for the lookup names and binding object.
[ "Get", "the", "EJBBinding", "map", "from", "the", "application", "meta", "data", ".", "Initialize", "if", "it", "is", "null", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/naming/EJBJavaColonNamingHelper.java#L417-L425
66,107
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/naming/EJBJavaColonNamingHelper.java
EJBJavaColonNamingHelper.getModuleBindingMap
private JavaColonNamespaceBindings<EJBBinding> getModuleBindingMap(ModuleMetaData mmd) { @SuppressWarnings("unchecked") JavaColonNamespaceBindings<EJBBinding> bindingMap = (JavaColonNamespaceBindings<EJBBinding>) mmd.getMetaData(mmdSlot); if (bindingMap == null) { bindingMap = new Ja...
java
private JavaColonNamespaceBindings<EJBBinding> getModuleBindingMap(ModuleMetaData mmd) { @SuppressWarnings("unchecked") JavaColonNamespaceBindings<EJBBinding> bindingMap = (JavaColonNamespaceBindings<EJBBinding>) mmd.getMetaData(mmdSlot); if (bindingMap == null) { bindingMap = new Ja...
[ "private", "JavaColonNamespaceBindings", "<", "EJBBinding", ">", "getModuleBindingMap", "(", "ModuleMetaData", "mmd", ")", "{", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "JavaColonNamespaceBindings", "<", "EJBBinding", ">", "bindingMap", "=", "(", "JavaColonNa...
Get the EJBBinding map from the module meta data. Initialize if it is null. @param mmd @return Map for the lookup names and binding object.
[ "Get", "the", "EJBBinding", "map", "from", "the", "module", "meta", "data", ".", "Initialize", "if", "it", "is", "null", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/naming/EJBJavaColonNamingHelper.java#L434-L442
66,108
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/naming/EJBJavaColonNamingHelper.java
EJBJavaColonNamingHelper.removeAppBindings
public void removeAppBindings(ModuleMetaData mmd, List<String> names) { ApplicationMetaData amd = mmd.getApplicationMetaData(); Lock writeLock = javaColonLock.writeLock(); writeLock.lock(); try { JavaColonNamespaceBindings<EJBBinding> bindings = getAppBindingMap(amd); ...
java
public void removeAppBindings(ModuleMetaData mmd, List<String> names) { ApplicationMetaData amd = mmd.getApplicationMetaData(); Lock writeLock = javaColonLock.writeLock(); writeLock.lock(); try { JavaColonNamespaceBindings<EJBBinding> bindings = getAppBindingMap(amd); ...
[ "public", "void", "removeAppBindings", "(", "ModuleMetaData", "mmd", ",", "List", "<", "String", ">", "names", ")", "{", "ApplicationMetaData", "amd", "=", "mmd", ".", "getApplicationMetaData", "(", ")", ";", "Lock", "writeLock", "=", "javaColonLock", ".", "wr...
Remove names from the application mapping. If all the bindings have been removed for an application, remove the application mapping. @param moduleMetaData Name of the application being used. @param names List of names to remove.
[ "Remove", "names", "from", "the", "application", "mapping", ".", "If", "all", "the", "bindings", "have", "been", "removed", "for", "an", "application", "remove", "the", "application", "mapping", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/naming/EJBJavaColonNamingHelper.java#L451-L469
66,109
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/naming/EJBJavaColonNamingHelper.java
EJBJavaColonNamingHelper.throwCannotInstanciateUnsupported
private void throwCannotInstanciateUnsupported(EJBBinding binding, JavaColonNamespace jndiType, String lookupName, String messageId) throws NameNotFoundException { ...
java
private void throwCannotInstanciateUnsupported(EJBBinding binding, JavaColonNamespace jndiType, String lookupName, String messageId) throws NameNotFoundException { ...
[ "private", "void", "throwCannotInstanciateUnsupported", "(", "EJBBinding", "binding", ",", "JavaColonNamespace", "jndiType", ",", "String", "lookupName", ",", "String", "messageId", ")", "throws", "NameNotFoundException", "{", "J2EEName", "j2eeName", "=", "getJ2EEName", ...
Internal method to throw a NameNotFoundException for unsupported Home and Remote interfaces. @param binding @param jndiType @param lookupName @param cmd @param messageId @throws NameNotFoundException
[ "Internal", "method", "to", "throw", "a", "NameNotFoundException", "for", "unsupported", "Home", "and", "Remote", "interfaces", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer/src/com/ibm/ws/ejbcontainer/osgi/internal/naming/EJBJavaColonNamingHelper.java#L566-L579
66,110
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/RESTAppListener.java
RESTAppListener.unsetVirtualHost
protected void unsetVirtualHost(VirtualHost vhost) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Unset vhost: ", vhost); } secureVirtualHost = null; }
java
protected void unsetVirtualHost(VirtualHost vhost) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Unset vhost: ", vhost); } secureVirtualHost = null; }
[ "protected", "void", "unsetVirtualHost", "(", "VirtualHost", "vhost", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "{", "Tr", ".", "event", "(", "tc", ",", "\"Unset vhost: \"",...
Unset required VirtualHost. This will be called after deactivate
[ "Unset", "required", "VirtualHost", ".", "This", "will", "be", "called", "after", "deactivate" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/RESTAppListener.java#L153-L158
66,111
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/RESTAppListener.java
RESTAppListener.createJMXWorkAreaResourceIfChanged
private synchronized void createJMXWorkAreaResourceIfChanged(VirtualHost vhost) { // Make sure our context root has been registered... String contextRoot = registeredContextRoot; if (contextRoot != null) { // Make sure that we are dealing with the secure port before writing the fil...
java
private synchronized void createJMXWorkAreaResourceIfChanged(VirtualHost vhost) { // Make sure our context root has been registered... String contextRoot = registeredContextRoot; if (contextRoot != null) { // Make sure that we are dealing with the secure port before writing the fil...
[ "private", "synchronized", "void", "createJMXWorkAreaResourceIfChanged", "(", "VirtualHost", "vhost", ")", "{", "// Make sure our context root has been registered... ", "String", "contextRoot", "=", "registeredContextRoot", ";", "if", "(", "contextRoot", "!=", "null", ")", ...
Called to create the work area resource. Only re-generate the file if this is the first time or something in the url has changed. @param appPath standard url path received from the virtual host
[ "Called", "to", "create", "the", "work", "area", "resource", ".", "Only", "re", "-", "generate", "the", "file", "if", "this", "is", "the", "first", "time", "or", "something", "in", "the", "url", "has", "changed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/RESTAppListener.java#L166-L204
66,112
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/RESTAppListener.java
RESTAppListener.setLocationService
@Reference(service = WsLocationAdmin.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MANDATORY) protected void setLocationService(WsLocationAdmin locationService) { this.locationService = locationService; if (restJMXAddressWorkareaFile == nul...
java
@Reference(service = WsLocationAdmin.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MANDATORY) protected void setLocationService(WsLocationAdmin locationService) { this.locationService = locationService; if (restJMXAddressWorkareaFile == nul...
[ "@", "Reference", "(", "service", "=", "WsLocationAdmin", ".", "class", ",", "policy", "=", "ReferencePolicy", ".", "DYNAMIC", ",", "cardinality", "=", "ReferenceCardinality", ".", "MANDATORY", ")", "protected", "void", "setLocationService", "(", "WsLocationAdmin", ...
Set the dynamic reference to the WsLocationAdmin service. If the service is replaced, the new service will be set before the old is removed. @param locationService
[ "Set", "the", "dynamic", "reference", "to", "the", "WsLocationAdmin", "service", ".", "If", "the", "service", "is", "replaced", "the", "new", "service", "will", "be", "set", "before", "the", "old", "is", "removed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/RESTAppListener.java#L234-L245
66,113
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/service/ConnectionFactoryService.java
ConnectionFactoryService.getConnectionFactoryInterfaceNames
public final List<String> getConnectionFactoryInterfaceNames() { return cfInterfaceNames instanceof String ? Collections.singletonList((String) cfInterfaceNames) // : cfInterfaceNames instanceof String[] ? Arrays.asList((String[]) cfInterfaceNames) // ...
java
public final List<String> getConnectionFactoryInterfaceNames() { return cfInterfaceNames instanceof String ? Collections.singletonList((String) cfInterfaceNames) // : cfInterfaceNames instanceof String[] ? Arrays.asList((String[]) cfInterfaceNames) // ...
[ "public", "final", "List", "<", "String", ">", "getConnectionFactoryInterfaceNames", "(", ")", "{", "return", "cfInterfaceNames", "instanceof", "String", "?", "Collections", ".", "singletonList", "(", "(", "String", ")", "cfInterfaceNames", ")", "//", ":", "cfInte...
This method is provided for the connection factory validator. @return list of fully qualified names of the connection factory interfaces that this resource factory creates.
[ "This", "method", "is", "provided", "for", "the", "connection", "factory", "validator", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/service/ConnectionFactoryService.java#L216-L220
66,114
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/service/ConnectionFactoryService.java
ConnectionFactoryService.destroyConnectionFactories
private void destroyConnectionFactories(boolean destroyImmediately) { lock.writeLock().lock(); try { if (isInitialized.get()) { // Mark all connection factories as disabled isInitialized.set(false); // Destroy the connection factories ...
java
private void destroyConnectionFactories(boolean destroyImmediately) { lock.writeLock().lock(); try { if (isInitialized.get()) { // Mark all connection factories as disabled isInitialized.set(false); // Destroy the connection factories ...
[ "private", "void", "destroyConnectionFactories", "(", "boolean", "destroyImmediately", ")", "{", "lock", ".", "writeLock", "(", ")", ".", "lock", "(", ")", ";", "try", "{", "if", "(", "isInitialized", ".", "get", "(", ")", ")", "{", "// Mark all connection f...
Utility method to destroy connection factory instances. @param destroyImmediately indicates to immediately destroy instead of deferring to later.
[ "Utility", "method", "to", "destroy", "connection", "factory", "instances", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/service/ConnectionFactoryService.java#L248-L265
66,115
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/service/ConnectionFactoryService.java
ConnectionFactoryService.getReauthenticationSupport
@Override @Trivial public boolean getReauthenticationSupport() { return Boolean.TRUE.equals(bootstrapContextRef.getReference().getProperty(REAUTHENTICATION_SUPPORT)); }
java
@Override @Trivial public boolean getReauthenticationSupport() { return Boolean.TRUE.equals(bootstrapContextRef.getReference().getProperty(REAUTHENTICATION_SUPPORT)); }
[ "@", "Override", "@", "Trivial", "public", "boolean", "getReauthenticationSupport", "(", ")", "{", "return", "Boolean", ".", "TRUE", ".", "equals", "(", "bootstrapContextRef", ".", "getReference", "(", ")", ".", "getProperty", "(", "REAUTHENTICATION_SUPPORT", ")",...
Indicates whether or not reauthentication of connections is enabled. @return true if reauthentication of connections is enabled. Otherwise false.
[ "Indicates", "whether", "or", "not", "reauthentication", "of", "connections", "is", "enabled", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/service/ConnectionFactoryService.java#L320-L324
66,116
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/service/ConnectionFactoryService.java
ConnectionFactoryService.getTransactionSupport
@Override public TransactionSupportLevel getTransactionSupport() { // If ManagedConnectionFactory implements TransactionSupport, that takes priority TransactionSupportLevel transactionSupport = mcf instanceof TransactionSupport ? ((TransactionSupport) mcf).getTransactionSupport() : null; //...
java
@Override public TransactionSupportLevel getTransactionSupport() { // If ManagedConnectionFactory implements TransactionSupport, that takes priority TransactionSupportLevel transactionSupport = mcf instanceof TransactionSupport ? ((TransactionSupport) mcf).getTransactionSupport() : null; //...
[ "@", "Override", "public", "TransactionSupportLevel", "getTransactionSupport", "(", ")", "{", "// If ManagedConnectionFactory implements TransactionSupport, that takes priority", "TransactionSupportLevel", "transactionSupport", "=", "mcf", "instanceof", "TransactionSupport", "?", "("...
Indicates the level of transaction support. @return constant indicating the transaction support of the resource adapter.
[ "Indicates", "the", "level", "of", "transaction", "support", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/service/ConnectionFactoryService.java#L362-L388
66,117
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/LockFreeIndexedStack.java
LockFreeIndexedStack.clean
public StackNode<E> clean() { do { final StackNode<E> oldTop = top.get(); if (top.compareAndSet(oldTop, null)) return oldTop; } while (true); }
java
public StackNode<E> clean() { do { final StackNode<E> oldTop = top.get(); if (top.compareAndSet(oldTop, null)) return oldTop; } while (true); }
[ "public", "StackNode", "<", "E", ">", "clean", "(", ")", "{", "do", "{", "final", "StackNode", "<", "E", ">", "oldTop", "=", "top", ".", "get", "(", ")", ";", "if", "(", "top", ".", "compareAndSet", "(", "oldTop", ",", "null", ")", ")", "return",...
Remove all nodes from stack and return the old top node. @return the old top node, which can be used to iterate over all cleaned stack elements.
[ "Remove", "all", "nodes", "from", "stack", "and", "return", "the", "old", "top", "node", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/LockFreeIndexedStack.java#L42-L49
66,118
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/LockFreeIndexedStack.java
LockFreeIndexedStack.pop
public E pop() { StackNode<E> oldTop, newTop; while (true) { oldTop = top.get(); if (oldTop == null) return null; newTop = oldTop.next; if (top.compareAndSet(oldTop, newTop)) break; } return oldTop.data; ...
java
public E pop() { StackNode<E> oldTop, newTop; while (true) { oldTop = top.get(); if (oldTop == null) return null; newTop = oldTop.next; if (top.compareAndSet(oldTop, newTop)) break; } return oldTop.data; ...
[ "public", "E", "pop", "(", ")", "{", "StackNode", "<", "E", ">", "oldTop", ",", "newTop", ";", "while", "(", "true", ")", "{", "oldTop", "=", "top", ".", "get", "(", ")", ";", "if", "(", "oldTop", "==", "null", ")", "return", "null", ";", "newT...
Pop data from the Stack. @return topmost element of the stack, or null if stack is empty.
[ "Pop", "data", "from", "the", "Stack", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/LockFreeIndexedStack.java#L76-L89
66,119
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/LockFreeIndexedStack.java
LockFreeIndexedStack.push
public void push(E d) { StackNode<E> oldTop, newTop; newTop = new StackNode<E>(d); while (true) { oldTop = top.get(); newTop.next = oldTop; if (oldTop != null) newTop.index = oldTop.index + 1; else newTop.index = 0...
java
public void push(E d) { StackNode<E> oldTop, newTop; newTop = new StackNode<E>(d); while (true) { oldTop = top.get(); newTop.next = oldTop; if (oldTop != null) newTop.index = oldTop.index + 1; else newTop.index = 0...
[ "public", "void", "push", "(", "E", "d", ")", "{", "StackNode", "<", "E", ">", "oldTop", ",", "newTop", ";", "newTop", "=", "new", "StackNode", "<", "E", ">", "(", "d", ")", ";", "while", "(", "true", ")", "{", "oldTop", "=", "top", ".", "get",...
Push data onto Stack. @param d data to be pushed onto the stack.
[ "Push", "data", "onto", "Stack", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/LockFreeIndexedStack.java#L125-L140
66,120
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/LockFreeIndexedStack.java
LockFreeIndexedStack.peek
public E peek() { final StackNode<E> oldTop = top.get(); if (oldTop == null) { return null; } else { return oldTop.data; } }
java
public E peek() { final StackNode<E> oldTop = top.get(); if (oldTop == null) { return null; } else { return oldTop.data; } }
[ "public", "E", "peek", "(", ")", "{", "final", "StackNode", "<", "E", ">", "oldTop", "=", "top", ".", "get", "(", ")", ";", "if", "(", "oldTop", "==", "null", ")", "{", "return", "null", ";", "}", "else", "{", "return", "oldTop", ".", "data", "...
Return copy of the top data on the Stack @return copy of top of stack, or null if empty.
[ "Return", "copy", "of", "the", "top", "data", "on", "the", "Stack" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/LockFreeIndexedStack.java#L204-L211
66,121
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/ItemReference.java
ItemReference.setSizeRefsByMsgSize
public void setSizeRefsByMsgSize(boolean sizeByMsgSize) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSizeRefsByMsgSize", Boolean.valueOf(sizeByMsgSize)); this._sizeRefsByMsgSize = sizeByMsgSize; if (TraceComponent.isAnyTracingEnabled() && tc....
java
public void setSizeRefsByMsgSize(boolean sizeByMsgSize) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSizeRefsByMsgSize", Boolean.valueOf(sizeByMsgSize)); this._sizeRefsByMsgSize = sizeByMsgSize; if (TraceComponent.isAnyTracingEnabled() && tc....
[ "public", "void", "setSizeRefsByMsgSize", "(", "boolean", "sizeByMsgSize", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\...
PK57207 Called when adding this reference to a reference stream when to specify that sib.msgstore.jdbcSpillSizeRefsByMsgSize has been enabled
[ "PK57207", "Called", "when", "adding", "this", "reference", "to", "a", "reference", "stream", "when", "to", "specify", "that", "sib", ".", "msgstore", ".", "jdbcSpillSizeRefsByMsgSize", "has", "been", "enabled" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/ItemReference.java#L181-L188
66,122
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/ItemReference.java
ItemReference.getInMemoryDataSize
public int getInMemoryDataSize() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getInMemoryDataSize"); int dataSize; // If tuning has requested return the size of the message we reference, // then delegate to the message. Otherwise call our...
java
public int getInMemoryDataSize() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getInMemoryDataSize"); int dataSize; // If tuning has requested return the size of the message we reference, // then delegate to the message. Otherwise call our...
[ "public", "int", "getInMemoryDataSize", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getInMemoryDataSize\"", ")", ...
PK57207 Returns an estimated size for this message reference
[ "PK57207", "Returns", "an", "estimated", "size", "for", "this", "message", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/ItemReference.java#L206-L234
66,123
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/transactions/impl/MSDelegatingLocalTransaction.java
MSDelegatingLocalTransaction.begin
public void begin() throws SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "begin"); // Are we currently in use? do we have work // we still need to commit? if (_state == TransactionState.STATE_ACTIVE && _workList != ...
java
public void begin() throws SIIncorrectCallException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "begin"); // Are we currently in use? do we have work // we still need to commit? if (_state == TransactionState.STATE_ACTIVE && _workList != ...
[ "public", "void", "begin", "(", ")", "throws", "SIIncorrectCallException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"begi...
Begin a new local transaction by readying this object for re-use by the ItemStream interfaces. @exception SIIncorrectCallException Thrown if existing work has not been completed.
[ "Begin", "a", "new", "local", "transaction", "by", "readying", "this", "object", "for", "re", "-", "use", "by", "the", "ItemStream", "interfaces", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/transactions/impl/MSDelegatingLocalTransaction.java#L236-L263
66,124
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/transactions/impl/MSDelegatingLocalTransaction.java
MSDelegatingLocalTransaction.rollback
public void rollback() throws SIIncorrectCallException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "rollback"); if (_state != TransactionState.STATE_ACTIVE) { SIIncorrectCallException sie = new SIIncorrectCallExce...
java
public void rollback() throws SIIncorrectCallException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "rollback"); if (_state != TransactionState.STATE_ACTIVE) { SIIncorrectCallException sie = new SIIncorrectCallExce...
[ "public", "void", "rollback", "(", ")", "throws", "SIIncorrectCallException", ",", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "thi...
Rollback all work associated with this local transaction. @exception SIIncorrectCallException Thrown if this transaction has already been completed. @exception SIResourceException Thrown if an unknown MessageStore error occurs.
[ "Rollback", "all", "work", "associated", "with", "this", "local", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/transactions/impl/MSDelegatingLocalTransaction.java#L447-L512
66,125
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionEngineAccessor.java
InjectionEngineAccessor.setInjectionEngine
static void setInjectionEngine(InternalInjectionEngine ie) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setInjectionEngine : " + ie); svInstance = ie; }
java
static void setInjectionEngine(InternalInjectionEngine ie) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "setInjectionEngine : " + ie); svInstance = ie; }
[ "static", "void", "setInjectionEngine", "(", "InternalInjectionEngine", "ie", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"setInjectionEngi...
F46994.2
[ "F46994", ".", "2" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionEngineAccessor.java#L70-L75
66,126
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/jitdeploy/CORBA_Utils.java
CORBA_Utils.isRemoteable
public static boolean isRemoteable(Class<?> valueClass, int rmicCompatible) { // NOTE: This logic must be kept in sync with write_value. return valueClass.isInterface() && valueClass != Serializable.class && valueClass != Externalizable.class && (isCORBAObje...
java
public static boolean isRemoteable(Class<?> valueClass, int rmicCompatible) { // NOTE: This logic must be kept in sync with write_value. return valueClass.isInterface() && valueClass != Serializable.class && valueClass != Externalizable.class && (isCORBAObje...
[ "public", "static", "boolean", "isRemoteable", "(", "Class", "<", "?", ">", "valueClass", ",", "int", "rmicCompatible", ")", "{", "// NOTE: This logic must be kept in sync with write_value.", "return", "valueClass", ".", "isInterface", "(", ")", "&&", "valueClass", "!...
Determines whether a value of the specified type could be a remote object reference. This should return true if read_Object or read_abstract_interface is used for this type. @param clazz class for a method parameter or return type that needs to be read from an input stream @param rmicCompatible rmic compatibility flag...
[ "Determines", "whether", "a", "value", "of", "the", "specified", "type", "could", "be", "a", "remote", "object", "reference", ".", "This", "should", "return", "true", "if", "read_Object", "or", "read_abstract_interface", "is", "used", "for", "this", "type", "....
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/jitdeploy/CORBA_Utils.java#L268-L277
66,127
OpenLiberty/open-liberty
dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/util/JNDIHelper.java
JNDIHelper.hasJNDIScheme
public static boolean hasJNDIScheme(String jndiName) { int colonIndex = jndiName.indexOf(':'); int slashIndex = jndiName.indexOf('/'); return colonIndex != -1 && (slashIndex == -1 || colonIndex < slashIndex); }
java
public static boolean hasJNDIScheme(String jndiName) { int colonIndex = jndiName.indexOf(':'); int slashIndex = jndiName.indexOf('/'); return colonIndex != -1 && (slashIndex == -1 || colonIndex < slashIndex); }
[ "public", "static", "boolean", "hasJNDIScheme", "(", "String", "jndiName", ")", "{", "int", "colonIndex", "=", "jndiName", ".", "indexOf", "(", "'", "'", ")", ";", "int", "slashIndex", "=", "jndiName", ".", "indexOf", "(", "'", "'", ")", ";", "return", ...
Return true if a JNDI name has a scheme.
[ "Return", "true", "if", "a", "JNDI", "name", "has", "a", "scheme", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection/src/com/ibm/ws/injectionengine/osgi/util/JNDIHelper.java#L20-L24
66,128
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/GzipOutputHandler.java
GzipOutputHandler.writeHeader
private List<WsByteBuffer> writeHeader(List<WsByteBuffer> list) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Writing gzip header information"); } WsByteBuffer hdr = HttpDispatcher.getBufferManager().allocateDirect(GZIP_Header.length); hdr...
java
private List<WsByteBuffer> writeHeader(List<WsByteBuffer> list) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Writing gzip header information"); } WsByteBuffer hdr = HttpDispatcher.getBufferManager().allocateDirect(GZIP_Header.length); hdr...
[ "private", "List", "<", "WsByteBuffer", ">", "writeHeader", "(", "List", "<", "WsByteBuffer", ">", "list", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "deb...
Write the gzip header onto the output list. @param list @return List<WsByteBuffer>
[ "Write", "the", "gzip", "header", "onto", "the", "output", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/GzipOutputHandler.java#L78-L88
66,129
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/GzipOutputHandler.java
GzipOutputHandler.makeBuffer
private WsByteBuffer makeBuffer(int len) { WsByteBuffer buffer = HttpDispatcher.getBufferManager().allocateDirect(len); buffer.put(this.buf, 0, len); buffer.flip(); return buffer; }
java
private WsByteBuffer makeBuffer(int len) { WsByteBuffer buffer = HttpDispatcher.getBufferManager().allocateDirect(len); buffer.put(this.buf, 0, len); buffer.flip(); return buffer; }
[ "private", "WsByteBuffer", "makeBuffer", "(", "int", "len", ")", "{", "WsByteBuffer", "buffer", "=", "HttpDispatcher", ".", "getBufferManager", "(", ")", ".", "allocateDirect", "(", "len", ")", ";", "buffer", ".", "put", "(", "this", ".", "buf", ",", "0", ...
Create the output bytebuffer based on the output compressed storage. @param len @return WsByteBuffer
[ "Create", "the", "output", "bytebuffer", "based", "on", "the", "output", "compressed", "storage", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/GzipOutputHandler.java#L191-L196
66,130
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/GzipOutputHandler.java
GzipOutputHandler.writeInt
private void writeInt(int value, byte[] data, int offset) { int index = offset; data[index++] = (byte) (value & 0xff); data[index++] = (byte) ((value >> 8) & 0xff); data[index++] = (byte) ((value >> 16) & 0xff); data[index++] = (byte) ((value >> 24) & 0xff); }
java
private void writeInt(int value, byte[] data, int offset) { int index = offset; data[index++] = (byte) (value & 0xff); data[index++] = (byte) ((value >> 8) & 0xff); data[index++] = (byte) ((value >> 16) & 0xff); data[index++] = (byte) ((value >> 24) & 0xff); }
[ "private", "void", "writeInt", "(", "int", "value", ",", "byte", "[", "]", "data", ",", "int", "offset", ")", "{", "int", "index", "=", "offset", ";", "data", "[", "index", "++", "]", "=", "(", "byte", ")", "(", "value", "&", "0xff", ")", ";", ...
Write an integer into the output space, starting at the input offset. @param value @param data @param offset
[ "Write", "an", "integer", "into", "the", "output", "space", "starting", "at", "the", "input", "offset", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/compression/GzipOutputHandler.java#L287-L293
66,131
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/com/ibm/ws/jaxrs20/injection/AbstractParamInjectionBinding.java
AbstractParamInjectionBinding.getInjectedObjectFromCXF
protected Object getInjectedObjectFromCXF(Class<?> classType, Type genericType, Annotation[] memberAnnotations, ParamInjectionMetadata paramInjectionMetadata) { Parameter p =...
java
protected Object getInjectedObjectFromCXF(Class<?> classType, Type genericType, Annotation[] memberAnnotations, ParamInjectionMetadata paramInjectionMetadata) { Parameter p =...
[ "protected", "Object", "getInjectedObjectFromCXF", "(", "Class", "<", "?", ">", "classType", ",", "Type", "genericType", ",", "Annotation", "[", "]", "memberAnnotations", ",", "ParamInjectionMetadata", "paramInjectionMetadata", ")", "{", "Parameter", "p", "=", "Reso...
real create the paramter object based CXF implementation @param classType @param genericType @param memberAnnotations @param paramInjectionMetadata @return
[ "real", "create", "the", "paramter", "object", "based", "CXF", "implementation" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/com/ibm/ws/jaxrs20/injection/AbstractParamInjectionBinding.java#L172-L195
66,132
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeOutputByteBufferUtil.java
UpgradeOutputByteBufferUtil.setBufferSize
private void setBufferSize(int size) { this.amountToBuffer = size; this.bbSize = (49152 < size) ? 32768 : 8192; int numBuffers = (size / this.bbSize); if (0 == size || 0 != (size % this.bbSize)) { numBuffers++; } this._output = new WsByteBuffer[numBuffers]; ...
java
private void setBufferSize(int size) { this.amountToBuffer = size; this.bbSize = (49152 < size) ? 32768 : 8192; int numBuffers = (size / this.bbSize); if (0 == size || 0 != (size % this.bbSize)) { numBuffers++; } this._output = new WsByteBuffer[numBuffers]; ...
[ "private", "void", "setBufferSize", "(", "int", "size", ")", "{", "this", ".", "amountToBuffer", "=", "size", ";", "this", ".", "bbSize", "=", "(", "49152", "<", "size", ")", "?", "32768", ":", "8192", ";", "int", "numBuffers", "=", "(", "size", "/",...
Set the amount of data to buffer internally before the stream itself initiates a flush. A zero size means no buffer is done, each write call will flush data. @param size @throws IllegalStateException if already writing data or closed
[ "Set", "the", "amount", "of", "data", "to", "buffer", "internally", "before", "the", "stream", "itself", "initiates", "a", "flush", ".", "A", "zero", "size", "means", "no", "buffer", "is", "done", "each", "write", "call", "will", "flush", "data", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeOutputByteBufferUtil.java#L274-L286
66,133
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeOutputByteBufferUtil.java
UpgradeOutputByteBufferUtil.clear
private void clear() { if (null != this._output) { for (int i = 0; i < this._output.length; i++) { if (null != this._output[i]) { this._output[i].release(); this._output[i] = null; } } } this.outputIn...
java
private void clear() { if (null != this._output) { for (int i = 0; i < this._output.length; i++) { if (null != this._output[i]) { this._output[i].release(); this._output[i] = null; } } } this.outputIn...
[ "private", "void", "clear", "(", ")", "{", "if", "(", "null", "!=", "this", ".", "_output", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "_output", ".", "length", ";", "i", "++", ")", "{", "if", "(", "null", "!=", ...
Release any current buffer content in the stream.
[ "Release", "any", "current", "buffer", "content", "in", "the", "stream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/util/UpgradeOutputByteBufferUtil.java#L603-L616
66,134
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/ApplicationTracker.java
ApplicationTracker.addStartedApplication
@Reference(service = Application.class, cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, target = "(application.state=STARTED)") protected void addStartedApplication(ServiceReference<Application> ref) { ExecutorService executor; ...
java
@Reference(service = Application.class, cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, target = "(application.state=STARTED)") protected void addStartedApplication(ServiceReference<Application> ref) { ExecutorService executor; ...
[ "@", "Reference", "(", "service", "=", "Application", ".", "class", ",", "cardinality", "=", "ReferenceCardinality", ".", "MULTIPLE", ",", "policy", "=", "ReferencePolicy", ".", "DYNAMIC", ",", "target", "=", "\"(application.state=STARTED)\"", ")", "protected", "v...
Declarative Services method for setting a started Application instance @param ref reference to the service
[ "Declarative", "Services", "method", "for", "setting", "a", "started", "Application", "instance" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/ApplicationTracker.java#L73-L93
66,135
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/ApplicationTracker.java
ApplicationTracker.addStartingApplication
@Reference(service = Application.class, cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, target = "(application.state=STARTING)") protected void addStartingApplication(ServiceReference<Application> ref) { String appName = (String) re...
java
@Reference(service = Application.class, cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, target = "(application.state=STARTING)") protected void addStartingApplication(ServiceReference<Application> ref) { String appName = (String) re...
[ "@", "Reference", "(", "service", "=", "Application", ".", "class", ",", "cardinality", "=", "ReferenceCardinality", ".", "MULTIPLE", ",", "policy", "=", "ReferencePolicy", ".", "DYNAMIC", ",", "target", "=", "\"(application.state=STARTING)\"", ")", "protected", "...
Declarative Services method for setting a starting Application instance @param ref reference to the service
[ "Declarative", "Services", "method", "for", "setting", "a", "starting", "Application", "instance" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/ApplicationTracker.java#L100-L113
66,136
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/ApplicationTracker.java
ApplicationTracker.isStarted
boolean isStarted(String appName) { lock.readLock().lock(); try { return appStates.get(appName) == ApplicationState.STARTED; } finally { lock.readLock().unlock(); } }
java
boolean isStarted(String appName) { lock.readLock().lock(); try { return appStates.get(appName) == ApplicationState.STARTED; } finally { lock.readLock().unlock(); } }
[ "boolean", "isStarted", "(", "String", "appName", ")", "{", "lock", ".", "readLock", "(", ")", ".", "lock", "(", ")", ";", "try", "{", "return", "appStates", ".", "get", "(", "appName", ")", "==", "ApplicationState", ".", "STARTED", ";", "}", "finally"...
Returns true if the application with the specified name is started, otherwise false. @return true if the application with the specified name is started, otherwise false.
[ "Returns", "true", "if", "the", "application", "with", "the", "specified", "name", "is", "started", "otherwise", "false", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/ApplicationTracker.java#L151-L158
66,137
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/ApplicationTracker.java
ApplicationTracker.removeStartedApplication
protected void removeStartedApplication(ServiceReference<Application> ref) { String appName = (String) ref.getProperty(NAME); lock.writeLock().lock(); try { appStates.remove(appName); } finally { lock.writeLock().unlock(); } }
java
protected void removeStartedApplication(ServiceReference<Application> ref) { String appName = (String) ref.getProperty(NAME); lock.writeLock().lock(); try { appStates.remove(appName); } finally { lock.writeLock().unlock(); } }
[ "protected", "void", "removeStartedApplication", "(", "ServiceReference", "<", "Application", ">", "ref", ")", "{", "String", "appName", "=", "(", "String", ")", "ref", ".", "getProperty", "(", "NAME", ")", ";", "lock", ".", "writeLock", "(", ")", ".", "lo...
Declarative Services method for unsetting a started Application instance @param ref reference to the service
[ "Declarative", "Services", "method", "for", "unsetting", "a", "started", "Application", "instance" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/ApplicationTracker.java#L165-L173
66,138
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/NLS.java
NLS.objectsToString
String objectsToString(String key, Object objects) { java.io.StringWriter stringWriter = new java.io.StringWriter(); stringWriter.write(key); stringWriter.write(":"); if (objects == null) { stringWriter.write("\n"); } else if (objects instanceof Object[]) { ...
java
String objectsToString(String key, Object objects) { java.io.StringWriter stringWriter = new java.io.StringWriter(); stringWriter.write(key); stringWriter.write(":"); if (objects == null) { stringWriter.write("\n"); } else if (objects instanceof Object[]) { ...
[ "String", "objectsToString", "(", "String", "key", ",", "Object", "objects", ")", "{", "java", ".", "io", ".", "StringWriter", "stringWriter", "=", "new", "java", ".", "io", ".", "StringWriter", "(", ")", ";", "stringWriter", ".", "write", "(", "key", ")...
Create a simple default formatted string. @param key which would look up the message in a resource bundle. @param objects which would be inserted into the message. @return String the formatted String.
[ "Create", "a", "simple", "default", "formatted", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/NLS.java#L84-L109
66,139
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/HotSpotJavaDumperImpl.java
HotSpotJavaDumperImpl.getPID
private static String getPID() { String name = ManagementFactory.getRuntimeMXBean().getName(); int index = name.indexOf('@'); if (index == -1) { return null; } String pid = name.substring(0, index); if (!pid.matches("[0-9]+")) { return null; ...
java
private static String getPID() { String name = ManagementFactory.getRuntimeMXBean().getName(); int index = name.indexOf('@'); if (index == -1) { return null; } String pid = name.substring(0, index); if (!pid.matches("[0-9]+")) { return null; ...
[ "private", "static", "String", "getPID", "(", ")", "{", "String", "name", "=", "ManagementFactory", ".", "getRuntimeMXBean", "(", ")", ".", "getName", "(", ")", ";", "int", "index", "=", "name", ".", "indexOf", "(", "'", "'", ")", ";", "if", "(", "in...
Return the current process ID.
[ "Return", "the", "current", "process", "ID", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/HotSpotJavaDumperImpl.java#L46-L59
66,140
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/HotSpotJavaDumperImpl.java
HotSpotJavaDumperImpl.createNewFile
private File createNewFile(File outputDir, String prefix, String extension) throws IOException { String dateTime = new SimpleDateFormat("yyyyMMdd.HHmmss").format(new Date()); File outputFile; do { String pid = PID == null ? "" : PID + '.'; int sequenceNumber = nextSequenc...
java
private File createNewFile(File outputDir, String prefix, String extension) throws IOException { String dateTime = new SimpleDateFormat("yyyyMMdd.HHmmss").format(new Date()); File outputFile; do { String pid = PID == null ? "" : PID + '.'; int sequenceNumber = nextSequenc...
[ "private", "File", "createNewFile", "(", "File", "outputDir", ",", "String", "prefix", ",", "String", "extension", ")", "throws", "IOException", "{", "String", "dateTime", "=", "new", "SimpleDateFormat", "(", "\"yyyyMMdd.HHmmss\"", ")", ".", "format", "(", "new"...
Create a dump file with a unique name. @param outputDir the directory to contain the file @param prefix the prefix for the filename @param extension the file extension, not including a leading "." @return the created file
[ "Create", "a", "dump", "file", "with", "a", "unique", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/HotSpotJavaDumperImpl.java#L116-L126
66,141
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/HotSpotJavaDumperImpl.java
HotSpotJavaDumperImpl.createThreadDump
private File createThreadDump(File outputDir) { // Determine if we're using Java Attach (VirtualMachine.remoteDataDump) // or the DiagnosticCommand MBean. Java Attach is only available on // JREs (not JDKs) and sometimes fails to connect, but we prefer it when // available because Diagn...
java
private File createThreadDump(File outputDir) { // Determine if we're using Java Attach (VirtualMachine.remoteDataDump) // or the DiagnosticCommand MBean. Java Attach is only available on // JREs (not JDKs) and sometimes fails to connect, but we prefer it when // available because Diagn...
[ "private", "File", "createThreadDump", "(", "File", "outputDir", ")", "{", "// Determine if we're using Java Attach (VirtualMachine.remoteDataDump)", "// or the DiagnosticCommand MBean. Java Attach is only available on", "// JREs (not JDKs) and sometimes fails to connect, but we prefer it when"...
Create a thread dump. This is the same output normally printed to the console when a kill -QUIT or Ctrl-Break is sent to the process. @param outputDir the server output directory @return the resulting file, or null if the dump could not be created
[ "Create", "a", "thread", "dump", ".", "This", "is", "the", "same", "output", "normally", "printed", "to", "the", "console", "when", "a", "kill", "-", "QUIT", "or", "Ctrl", "-", "Break", "is", "sent", "to", "the", "process", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/HotSpotJavaDumperImpl.java#L162-L236
66,142
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/HotSpotJavaDumperImpl.java
HotSpotJavaDumperImpl.getAttachedVirtualMachine
private synchronized VirtualMachine getAttachedVirtualMachine() throws VirtualMachineException { if (PID == null) { // Java Attach requires a PID. return null; } if (vm == null) { vm = createVirtualMachine(); } return vm.isAttached() ? vm : nu...
java
private synchronized VirtualMachine getAttachedVirtualMachine() throws VirtualMachineException { if (PID == null) { // Java Attach requires a PID. return null; } if (vm == null) { vm = createVirtualMachine(); } return vm.isAttached() ? vm : nu...
[ "private", "synchronized", "VirtualMachine", "getAttachedVirtualMachine", "(", ")", "throws", "VirtualMachineException", "{", "if", "(", "PID", "==", "null", ")", "{", "// Java Attach requires a PID.", "return", "null", ";", "}", "if", "(", "vm", "==", "null", ")"...
Returns sun.tools.attach.HotSpotVirtualMachine, if possible.
[ "Returns", "sun", ".", "tools", ".", "attach", ".", "HotSpotVirtualMachine", "if", "possible", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/HotSpotJavaDumperImpl.java#L241-L251
66,143
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/HotSpotJavaDumperImpl.java
HotSpotJavaDumperImpl.createVirtualMachine
private VirtualMachine createVirtualMachine() throws VirtualMachineException { ClassLoader toolsClassLoader; File toolsJar = getToolsJar(); if (toolsJar == null) { // The attach classes are on the boot classpath on Mac. toolsClassLoader = HotSpotJavaDumperImpl.class.getC...
java
private VirtualMachine createVirtualMachine() throws VirtualMachineException { ClassLoader toolsClassLoader; File toolsJar = getToolsJar(); if (toolsJar == null) { // The attach classes are on the boot classpath on Mac. toolsClassLoader = HotSpotJavaDumperImpl.class.getC...
[ "private", "VirtualMachine", "createVirtualMachine", "(", ")", "throws", "VirtualMachineException", "{", "ClassLoader", "toolsClassLoader", ";", "File", "toolsJar", "=", "getToolsJar", "(", ")", ";", "if", "(", "toolsJar", "==", "null", ")", "{", "// The attach clas...
Create a VirtualMachine wrapper.
[ "Create", "a", "VirtualMachine", "wrapper", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/HotSpotJavaDumperImpl.java#L256-L286
66,144
OpenLiberty/open-liberty
dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Person.java
Person.getManager
public List<com.ibm.wsspi.security.wim.model.IdentifierType> getManager() { if (manager == null) { manager = new ArrayList<com.ibm.wsspi.security.wim.model.IdentifierType>(); } return this.manager; }
java
public List<com.ibm.wsspi.security.wim.model.IdentifierType> getManager() { if (manager == null) { manager = new ArrayList<com.ibm.wsspi.security.wim.model.IdentifierType>(); } return this.manager; }
[ "public", "List", "<", "com", ".", "ibm", ".", "wsspi", ".", "security", ".", "wim", ".", "model", ".", "IdentifierType", ">", "getManager", "(", ")", "{", "if", "(", "manager", "==", "null", ")", "{", "manager", "=", "new", "ArrayList", "<", "com", ...
Gets the value of the manager 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 manager property. <p> For example, to add a...
[ "Gets", "the", "value", "of", "the", "manager", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Person.java#L1153-L1158
66,145
OpenLiberty/open-liberty
dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Person.java
Person.getSecretary
public List<com.ibm.wsspi.security.wim.model.IdentifierType> getSecretary() { if (secretary == null) { secretary = new ArrayList<com.ibm.wsspi.security.wim.model.IdentifierType>(); } return this.secretary; }
java
public List<com.ibm.wsspi.security.wim.model.IdentifierType> getSecretary() { if (secretary == null) { secretary = new ArrayList<com.ibm.wsspi.security.wim.model.IdentifierType>(); } return this.secretary; }
[ "public", "List", "<", "com", ".", "ibm", ".", "wsspi", ".", "security", ".", "wim", ".", "model", ".", "IdentifierType", ">", "getSecretary", "(", ")", "{", "if", "(", "secretary", "==", "null", ")", "{", "secretary", "=", "new", "ArrayList", "<", "...
Gets the value of the secretary 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 secretary property. <p> For example, to a...
[ "Gets", "the", "value", "of", "the", "secretary", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Person.java#L1190-L1195
66,146
OpenLiberty/open-liberty
dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Person.java
Person.getHomeAddress
public List<com.ibm.wsspi.security.wim.model.AddressType> getHomeAddress() { if (homeAddress == null) { homeAddress = new ArrayList<com.ibm.wsspi.security.wim.model.AddressType>(); } return this.homeAddress; }
java
public List<com.ibm.wsspi.security.wim.model.AddressType> getHomeAddress() { if (homeAddress == null) { homeAddress = new ArrayList<com.ibm.wsspi.security.wim.model.AddressType>(); } return this.homeAddress; }
[ "public", "List", "<", "com", ".", "ibm", ".", "wsspi", ".", "security", ".", "wim", ".", "model", ".", "AddressType", ">", "getHomeAddress", "(", ")", "{", "if", "(", "homeAddress", "==", "null", ")", "{", "homeAddress", "=", "new", "ArrayList", "<", ...
Gets the value of the homeAddress 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 homeAddress property. <p> For example, ...
[ "Gets", "the", "value", "of", "the", "homeAddress", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Person.java#L1449-L1454
66,147
OpenLiberty/open-liberty
dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Person.java
Person.getBusinessAddress
public List<com.ibm.wsspi.security.wim.model.AddressType> getBusinessAddress() { if (businessAddress == null) { businessAddress = new ArrayList<com.ibm.wsspi.security.wim.model.AddressType>(); } return this.businessAddress; }
java
public List<com.ibm.wsspi.security.wim.model.AddressType> getBusinessAddress() { if (businessAddress == null) { businessAddress = new ArrayList<com.ibm.wsspi.security.wim.model.AddressType>(); } return this.businessAddress; }
[ "public", "List", "<", "com", ".", "ibm", ".", "wsspi", ".", "security", ".", "wim", ".", "model", ".", "AddressType", ">", "getBusinessAddress", "(", ")", "{", "if", "(", "businessAddress", "==", "null", ")", "{", "businessAddress", "=", "new", "ArrayLi...
Gets the value of the businessAddress 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 businessAddress property. <p> For e...
[ "Gets", "the", "value", "of", "the", "businessAddress", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/Person.java#L1486-L1491
66,148
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/support/JaxWsMetaDataManager.java
JaxWsMetaDataManager.getModuleMetaData
public static ModuleMetaData getModuleMetaData() { ComponentMetaData cmd = getComponentMetaData(); ModuleMetaData mmd = null; if (cmd != null) { mmd = cmd.getModuleMetaData(); } if (tc.isDebugEnabled()) { Tr.debug(tc, "ModuleMetaData object is " + (mmd !...
java
public static ModuleMetaData getModuleMetaData() { ComponentMetaData cmd = getComponentMetaData(); ModuleMetaData mmd = null; if (cmd != null) { mmd = cmd.getModuleMetaData(); } if (tc.isDebugEnabled()) { Tr.debug(tc, "ModuleMetaData object is " + (mmd !...
[ "public", "static", "ModuleMetaData", "getModuleMetaData", "(", ")", "{", "ComponentMetaData", "cmd", "=", "getComponentMetaData", "(", ")", ";", "ModuleMetaData", "mmd", "=", "null", ";", "if", "(", "cmd", "!=", "null", ")", "{", "mmd", "=", "cmd", ".", "...
Gets the metadata for the module
[ "Gets", "the", "metadata", "for", "the", "module" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/support/JaxWsMetaDataManager.java#L129-L142
66,149
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/DeleteNode.java
DeleteNode.setDelete
void setDelete( GBSNode deleteNode, int deleteIndex) { _deleteNode = deleteNode; _deleteIndex = deleteIndex; _notFound = false; }
java
void setDelete( GBSNode deleteNode, int deleteIndex) { _deleteNode = deleteNode; _deleteIndex = deleteIndex; _notFound = false; }
[ "void", "setDelete", "(", "GBSNode", "deleteNode", ",", "int", "deleteIndex", ")", "{", "_deleteNode", "=", "deleteNode", ";", "_deleteIndex", "=", "deleteIndex", ";", "_notFound", "=", "false", ";", "}" ]
Remember the information about the delete point. @param deleteNode The node in which the object resides. @param deleteIndex The index within the node to the entry to be deleted.
[ "Remember", "the", "information", "about", "the", "delete", "point", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/DeleteNode.java#L104-L111
66,150
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/DeleteNode.java
DeleteNode.setTarget
void setTarget( GBSNode targetNode, int targetIndex, int type) { _targetNode = targetNode; _targetIndex = targetIndex; _type = type; }
java
void setTarget( GBSNode targetNode, int targetIndex, int type) { _targetNode = targetNode; _targetIndex = targetIndex; _type = type; }
[ "void", "setTarget", "(", "GBSNode", "targetNode", ",", "int", "targetIndex", ",", "int", "type", ")", "{", "_targetNode", "=", "targetNode", ";", "_targetIndex", "=", "targetIndex", ";", "_type", "=", "type", ";", "}" ]
Remember the information about the target point. @param targetNode The node in which the target object resides. @param targetIndex The index within the node to the entry to be overlayed by the key in the delete point. @param type Defines the manner in which the overlay is to be done.
[ "Remember", "the", "information", "about", "the", "target", "point", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/DeleteNode.java#L122-L130
66,151
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/DeleteNode.java
DeleteNode.reset
void reset() { _deleteNode = null; _deleteIndex = 0; _targetNode = null; _targetIndex = 0; _type = NONE; _notFound = true; }
java
void reset() { _deleteNode = null; _deleteIndex = 0; _targetNode = null; _targetIndex = 0; _type = NONE; _notFound = true; }
[ "void", "reset", "(", ")", "{", "_deleteNode", "=", "null", ";", "_deleteIndex", "=", "0", ";", "_targetNode", "=", "null", ";", "_targetIndex", "=", "0", ";", "_type", "=", "NONE", ";", "_notFound", "=", "true", ";", "}" ]
Return this object to its original post-construction state.
[ "Return", "this", "object", "to", "its", "original", "post", "-", "construction", "state", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/DeleteNode.java#L142-L150
66,152
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java
ShutdownHook.getPID
private String getPID(String dir, String serverName) { String pid = null; if (platformType == SelfExtractUtils.PlatformType_CYGWIN) { String pidFile = dir + File.separator + "wlp" + File.separator + "usr" + File.separator + "servers" + File.separator + ".pid" + File.separator ...
java
private String getPID(String dir, String serverName) { String pid = null; if (platformType == SelfExtractUtils.PlatformType_CYGWIN) { String pidFile = dir + File.separator + "wlp" + File.separator + "usr" + File.separator + "servers" + File.separator + ".pid" + File.separator ...
[ "private", "String", "getPID", "(", "String", "dir", ",", "String", "serverName", ")", "{", "String", "pid", "=", "null", ";", "if", "(", "platformType", "==", "SelfExtractUtils", ".", "PlatformType_CYGWIN", ")", "{", "String", "pidFile", "=", "dir", "+", ...
Return PID from server directory for cygwin environment only. @return PID string or null if not cygwin environment or exception occurs @throws IOException, FileNotFoundException if anything goes wrong
[ "Return", "PID", "from", "server", "directory", "for", "cygwin", "environment", "only", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java#L72-L95
66,153
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java
ShutdownHook.stopServer
private void stopServer() throws IOException { // build stop command for Unix platforms String cmd = dir + File.separator + "wlp" + File.separator + "bin" + File.separator + "server stop " + serverName; if (platformType == SelfExtractUtils.PlatformType_UNIX) { // use command as-is ...
java
private void stopServer() throws IOException { // build stop command for Unix platforms String cmd = dir + File.separator + "wlp" + File.separator + "bin" + File.separator + "server stop " + serverName; if (platformType == SelfExtractUtils.PlatformType_UNIX) { // use command as-is ...
[ "private", "void", "stopServer", "(", ")", "throws", "IOException", "{", "// build stop command for Unix platforms", "String", "cmd", "=", "dir", "+", "File", ".", "separator", "+", "\"wlp\"", "+", "File", ".", "separator", "+", "\"bin\"", "+", "File", ".", "s...
Run server stop command @throws IOException if exec fails
[ "Run", "server", "stop", "command" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java#L102-L117
66,154
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java
ShutdownHook.startAsyncDelete
private void startAsyncDelete() throws IOException { Runtime rt = Runtime.getRuntime(); File scriptFile = null; if (platformType == SelfExtractUtils.PlatformType_UNIX) { scriptFile = writeCleanupFile(SelfExtractUtils.PlatformType_UNIX); rt.exec("chmod 750 " + scriptFile.g...
java
private void startAsyncDelete() throws IOException { Runtime rt = Runtime.getRuntime(); File scriptFile = null; if (platformType == SelfExtractUtils.PlatformType_UNIX) { scriptFile = writeCleanupFile(SelfExtractUtils.PlatformType_UNIX); rt.exec("chmod 750 " + scriptFile.g...
[ "private", "void", "startAsyncDelete", "(", ")", "throws", "IOException", "{", "Runtime", "rt", "=", "Runtime", ".", "getRuntime", "(", ")", ";", "File", "scriptFile", "=", "null", ";", "if", "(", "platformType", "==", "SelfExtractUtils", ".", "PlatformType_UN...
Start async deletion using background script @throws IOException
[ "Start", "async", "deletion", "using", "background", "script" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java#L124-L142
66,155
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java
ShutdownHook.writeWindowsCleanup
private void writeWindowsCleanup(File file, BufferedWriter bw) throws IOException { bw.write("set max=30\n"); bw.write("set cnt=0\n"); bw.write("set dir=" + dir + "\n"); bw.write("echo delete %dir%\n"); bw.write(":while\n"); bw.write(" if exist %dir% (\n"); bw.w...
java
private void writeWindowsCleanup(File file, BufferedWriter bw) throws IOException { bw.write("set max=30\n"); bw.write("set cnt=0\n"); bw.write("set dir=" + dir + "\n"); bw.write("echo delete %dir%\n"); bw.write(":while\n"); bw.write(" if exist %dir% (\n"); bw.w...
[ "private", "void", "writeWindowsCleanup", "(", "File", "file", ",", "BufferedWriter", "bw", ")", "throws", "IOException", "{", "bw", ".", "write", "(", "\"set max=30\\n\"", ")", ";", "bw", ".", "write", "(", "\"set cnt=0\\n\"", ")", ";", "bw", ".", "write", ...
Write logic for windows cleanup script @param file - script File object @param bw - bufferedWriter to write into script file @throws IOException
[ "Write", "logic", "for", "windows", "cleanup", "script" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java#L151-L166
66,156
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java
ShutdownHook.writeUnixCleanup
private void writeUnixCleanup(File file, BufferedWriter bw) throws IOException { bw.write("echo begin delete" + "\n"); bw.write("n=0" + "\n"); bw.write("while [ $n -ne 1 ]; do" + "\n"); bw.write(" sleep 3" + "\n"); bw.write(" if [ -e " + dir.replace('\\', '/') + " ]; then" + "\...
java
private void writeUnixCleanup(File file, BufferedWriter bw) throws IOException { bw.write("echo begin delete" + "\n"); bw.write("n=0" + "\n"); bw.write("while [ $n -ne 1 ]; do" + "\n"); bw.write(" sleep 3" + "\n"); bw.write(" if [ -e " + dir.replace('\\', '/') + " ]; then" + "\...
[ "private", "void", "writeUnixCleanup", "(", "File", "file", ",", "BufferedWriter", "bw", ")", "throws", "IOException", "{", "bw", ".", "write", "(", "\"echo begin delete\"", "+", "\"\\n\"", ")", ";", "bw", ".", "write", "(", "\"n=0\"", "+", "\"\\n\"", ")", ...
Write logic for Unix cleanup script @param file - script File object @param bw - bufferedWriter to write into script file @throws IOException
[ "Write", "logic", "for", "Unix", "cleanup", "script" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java#L175-L189
66,157
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java
ShutdownHook.writeCygwinCleanup
private void writeCygwinCleanup(File file, BufferedWriter bw) throws IOException { // Under cygwin, must explicitly kill the process that runs // the server. It simply does not die on its own. And it's // JVM holds file locks which will prevent cleanup of extraction // directory. So kill...
java
private void writeCygwinCleanup(File file, BufferedWriter bw) throws IOException { // Under cygwin, must explicitly kill the process that runs // the server. It simply does not die on its own. And it's // JVM holds file locks which will prevent cleanup of extraction // directory. So kill...
[ "private", "void", "writeCygwinCleanup", "(", "File", "file", ",", "BufferedWriter", "bw", ")", "throws", "IOException", "{", "// Under cygwin, must explicitly kill the process that runs", "// the server. It simply does not die on its own. And it's", "// JVM holds file locks which will...
Write logic for Cygwin cleanup script @param file - script File object @param bw - bufferedWriter to write into script file @throws IOException
[ "Write", "logic", "for", "Cygwin", "cleanup", "script" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java#L198-L207
66,158
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java
ShutdownHook.run
public void run() { try { stopServer(); // first, stop server // wait on error/output stream threads to complete // note on Windows the streams never close, so wait with brief timeout if (!System.getProperty("os.name").startsWith("Win")) { out.joi...
java
public void run() { try { stopServer(); // first, stop server // wait on error/output stream threads to complete // note on Windows the streams never close, so wait with brief timeout if (!System.getProperty("os.name").startsWith("Win")) { out.joi...
[ "public", "void", "run", "(", ")", "{", "try", "{", "stopServer", "(", ")", ";", "// first, stop server", "// wait on error/output stream threads to complete", "// note on Windows the streams never close, so wait with brief timeout", "if", "(", "!", "System", ".", "getPropert...
Main method for shutdown hook. Job of this hook is to stop server and delete extraction directory.
[ "Main", "method", "for", "shutdown", "hook", ".", "Job", "of", "this", "hook", "is", "to", "stop", "server", "and", "delete", "extraction", "directory", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/ShutdownHook.java#L265-L285
66,159
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java
LogRecord.position
protected int position() { if (tc.isEntryEnabled()) Tr.entry(tc, "position", this); int position = _absolutePosition + _buffer.position(); if (tc.isEntryEnabled()) Tr.exit(tc, "position", new Integer(position)); return position; }
java
protected int position() { if (tc.isEntryEnabled()) Tr.entry(tc, "position", this); int position = _absolutePosition + _buffer.position(); if (tc.isEntryEnabled()) Tr.exit(tc, "position", new Integer(position)); return position; }
[ "protected", "int", "position", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"position\"", ",", "this", ")", ";", "int", "position", "=", "_absolutePosition", "+", "_buffer", ".", "position...
Returns the position of the byte cursor for the mapped byte buffer. @return The byte cursor position.
[ "Returns", "the", "position", "of", "the", "byte", "cursor", "for", "the", "mapped", "byte", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java#L151-L159
66,160
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java
LogRecord.position
protected void position(int newPosition) { if (tc.isEntryEnabled()) Tr.entry(tc, "position", new Object[]{this,new Integer(newPosition)}); newPosition -= _absolutePosition; _buffer.position(newPosition); if (tc.isEntryEnabled()) Tr.exit(tc, "position"); }
java
protected void position(int newPosition) { if (tc.isEntryEnabled()) Tr.entry(tc, "position", new Object[]{this,new Integer(newPosition)}); newPosition -= _absolutePosition; _buffer.position(newPosition); if (tc.isEntryEnabled()) Tr.exit(tc, "position"); }
[ "protected", "void", "position", "(", "int", "newPosition", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"position\"", ",", "new", "Object", "[", "]", "{", "this", ",", "new", "Integer", "(", ...
Sets the position of the byte cursor for the mapped byte buffer. @param newPosition The required byte cursor position
[ "Sets", "the", "position", "of", "the", "byte", "cursor", "for", "the", "mapped", "byte", "buffer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java#L169-L177
66,161
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java
LogRecord.advancePosition
protected void advancePosition(int bytes) { if (tc.isEntryEnabled()) Tr.entry(tc, "advancePosition", new Object[] {this, new Integer(bytes)}); final int newPosition = _buffer.position() + bytes; _buffer.position(newPosition); if (tc.isDebugEnabled()) Tr.debug(tc, "Buffer's position now...
java
protected void advancePosition(int bytes) { if (tc.isEntryEnabled()) Tr.entry(tc, "advancePosition", new Object[] {this, new Integer(bytes)}); final int newPosition = _buffer.position() + bytes; _buffer.position(newPosition); if (tc.isDebugEnabled()) Tr.debug(tc, "Buffer's position now...
[ "protected", "void", "advancePosition", "(", "int", "bytes", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"advancePosition\"", ",", "new", "Object", "[", "]", "{", "this", ",", "new", "Integer",...
Moves the current byte cursor position for the mapped byte buffer forwards. @param bytes The offset in bytes to move to.
[ "Moves", "the", "current", "byte", "cursor", "position", "for", "the", "mapped", "byte", "buffer", "forwards", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java#L202-L212
66,162
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java
LogRecord.get
protected void get(byte[] bytes) { if (tc.isEntryEnabled()) Tr.entry(tc, "get",new Object[] {this,new Integer(bytes.length)}); _buffer.get(bytes); if (tc.isDebugEnabled()) Tr.debug(tc, RLSUtils.toHexString(bytes, RLSUtils.MAX_DISPLAY_BYTES)); if (tc.isEntryEnabled()) Tr.exit(tc, "get"); }
java
protected void get(byte[] bytes) { if (tc.isEntryEnabled()) Tr.entry(tc, "get",new Object[] {this,new Integer(bytes.length)}); _buffer.get(bytes); if (tc.isDebugEnabled()) Tr.debug(tc, RLSUtils.toHexString(bytes, RLSUtils.MAX_DISPLAY_BYTES)); if (tc.isEntryEnabled()) Tr.exit(tc, "get"); }
[ "protected", "void", "get", "(", "byte", "[", "]", "bytes", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"get\"", ",", "new", "Object", "[", "]", "{", "this", ",", "new", "Integer", "(", ...
Getter method used to read bytes.length bytes from the mapped byte buffer at the current byte cursor position into the supplied byte array. The byte cursor is advanced by bytes.length. @param bytes The target byte array into which the bytes will be read.
[ "Getter", "method", "used", "to", "read", "bytes", ".", "length", "bytes", "from", "the", "mapped", "byte", "buffer", "at", "the", "current", "byte", "cursor", "position", "into", "the", "supplied", "byte", "array", ".", "The", "byte", "cursor", "is", "adv...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java#L224-L232
66,163
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java
LogRecord.getInt
protected int getInt() { if (tc.isEntryEnabled()) Tr.entry(tc, "getInt",this); int data = _buffer.getInt(); if (tc.isEntryEnabled()) Tr.exit(tc, "getInt",new Integer(data)); return data; }
java
protected int getInt() { if (tc.isEntryEnabled()) Tr.entry(tc, "getInt",this); int data = _buffer.getInt(); if (tc.isEntryEnabled()) Tr.exit(tc, "getInt",new Integer(data)); return data; }
[ "protected", "int", "getInt", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getInt\"", ",", "this", ")", ";", "int", "data", "=", "_buffer", ".", "getInt", "(", ")", ";", "if", "(", ...
Getter method used to read an integer from the mapped byte buffer at the current byte cursor position. The byte cursor is advanced by the size of an integer. @return The int value read from the mapped byte buffer.
[ "Getter", "method", "used", "to", "read", "an", "integer", "from", "the", "mapped", "byte", "buffer", "at", "the", "current", "byte", "cursor", "position", ".", "The", "byte", "cursor", "is", "advanced", "by", "the", "size", "of", "an", "integer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java#L244-L252
66,164
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java
LogRecord.getLong
protected long getLong() { if (tc.isEntryEnabled()) Tr.entry(tc, "getLong",this); long data = _buffer.getLong(); if (tc.isEntryEnabled()) Tr.exit(tc, "getLong", new Long(data)); return data; }
java
protected long getLong() { if (tc.isEntryEnabled()) Tr.entry(tc, "getLong",this); long data = _buffer.getLong(); if (tc.isEntryEnabled()) Tr.exit(tc, "getLong", new Long(data)); return data; }
[ "protected", "long", "getLong", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getLong\"", ",", "this", ")", ";", "long", "data", "=", "_buffer", ".", "getLong", "(", ")", ";", "if", "...
Getter method used to a long from the mapped byte buffer at the current byte cursor position. The byte cursor is advanced by the size of a long. @return The long value read from the mapped byte buffer.
[ "Getter", "method", "used", "to", "a", "long", "from", "the", "mapped", "byte", "buffer", "at", "the", "current", "byte", "cursor", "position", ".", "The", "byte", "cursor", "is", "advanced", "by", "the", "size", "of", "a", "long", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java#L263-L271
66,165
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java
LogRecord.getShort
protected short getShort() { if (tc.isEntryEnabled()) Tr.entry(tc, "getShort",this); short data = _buffer.getShort(); if (tc.isEntryEnabled()) Tr.exit(tc, "getShort", new Short(data)); return data; }
java
protected short getShort() { if (tc.isEntryEnabled()) Tr.entry(tc, "getShort",this); short data = _buffer.getShort(); if (tc.isEntryEnabled()) Tr.exit(tc, "getShort", new Short(data)); return data; }
[ "protected", "short", "getShort", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getShort\"", ",", "this", ")", ";", "short", "data", "=", "_buffer", ".", "getShort", "(", ")", ";", "if"...
Getter method used to a short from the mapped byte buffer at the current byte cursor position. The byte cursor is advanced by the size of a short. @return The short value read from the mapped byte buffer.
[ "Getter", "method", "used", "to", "a", "short", "from", "the", "mapped", "byte", "buffer", "at", "the", "current", "byte", "cursor", "position", ".", "The", "byte", "cursor", "is", "advanced", "by", "the", "size", "of", "a", "short", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java#L282-L290
66,166
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java
LogRecord.getBoolean
protected boolean getBoolean() { if (tc.isEntryEnabled()) Tr.entry(tc, "getBoolean", this); byte dataByte = _buffer.get(); boolean data = (dataByte == TRUE); if (tc.isEntryEnabled()) Tr.exit(tc, "getBoolean", new Boolean(data)); return data; ...
java
protected boolean getBoolean() { if (tc.isEntryEnabled()) Tr.entry(tc, "getBoolean", this); byte dataByte = _buffer.get(); boolean data = (dataByte == TRUE); if (tc.isEntryEnabled()) Tr.exit(tc, "getBoolean", new Boolean(data)); return data; ...
[ "protected", "boolean", "getBoolean", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getBoolean\"", ",", "this", ")", ";", "byte", "dataByte", "=", "_buffer", ".", "get", "(", ")", ";", ...
Getter method used to a boolean from the mapped byte buffer at the current byte cursor position. The byte cursor is advanced by the size of a boolean. @return The boolean value read from the mapped byte buffer.
[ "Getter", "method", "used", "to", "a", "boolean", "from", "the", "mapped", "byte", "buffer", "at", "the", "current", "byte", "cursor", "position", ".", "The", "byte", "cursor", "is", "advanced", "by", "the", "size", "of", "a", "boolean", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogRecord.java#L301-L310
66,167
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/ChunkStepControllerImpl.java
ChunkStepControllerImpl.readItem
private Object readItem() { Object itemRead = null; try { currentChunkStatus.incrementItemsTouchedInCurrentChunk(); // call read listeners before and after the actual read for (ItemReadListenerProxy readListenerProxy : itemReadListeners) { readList...
java
private Object readItem() { Object itemRead = null; try { currentChunkStatus.incrementItemsTouchedInCurrentChunk(); // call read listeners before and after the actual read for (ItemReadListenerProxy readListenerProxy : itemReadListeners) { readList...
[ "private", "Object", "readItem", "(", ")", "{", "Object", "itemRead", "=", "null", ";", "try", "{", "currentChunkStatus", ".", "incrementItemsTouchedInCurrentChunk", "(", ")", ";", "// call read listeners before and after the actual read", "for", "(", "ItemReadListenerPro...
Reads an item from the reader @return the item read
[ "Reads", "an", "item", "from", "the", "reader" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/ChunkStepControllerImpl.java#L316-L387
66,168
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/ChunkStepControllerImpl.java
ChunkStepControllerImpl.publishCheckpointEvent
private void publishCheckpointEvent(String stepName, long jobInstanceId, long jobExecutionId, long stepExecutionId) { BatchEventsPublisher publisher = getBatchEventsPublisher(); if (publisher != null) { String correlationId = runtimeWorkUnitExecution.getCorrelationId(); publishe...
java
private void publishCheckpointEvent(String stepName, long jobInstanceId, long jobExecutionId, long stepExecutionId) { BatchEventsPublisher publisher = getBatchEventsPublisher(); if (publisher != null) { String correlationId = runtimeWorkUnitExecution.getCorrelationId(); publishe...
[ "private", "void", "publishCheckpointEvent", "(", "String", "stepName", ",", "long", "jobInstanceId", ",", "long", "jobExecutionId", ",", "long", "stepExecutionId", ")", "{", "BatchEventsPublisher", "publisher", "=", "getBatchEventsPublisher", "(", ")", ";", "if", "...
Helper method to publish checkpoint event @param stepName @param jobInstanceId @param jobExecutionId
[ "Helper", "method", "to", "publish", "checkpoint", "event" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/ChunkStepControllerImpl.java#L718-L725
66,169
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/ChunkStepControllerImpl.java
ChunkStepControllerImpl.initStepTransactionTimeout
private int initStepTransactionTimeout() { logger.entering(sourceClass, "initStepTransactionTimeout"); Properties p = runtimeStepExecution.getProperties(); int timeout = DEFAULT_TRAN_TIMEOUT_SECONDS; // default as per spec. if (p != null && !p.isEmpty()) { String propertyTim...
java
private int initStepTransactionTimeout() { logger.entering(sourceClass, "initStepTransactionTimeout"); Properties p = runtimeStepExecution.getProperties(); int timeout = DEFAULT_TRAN_TIMEOUT_SECONDS; // default as per spec. if (p != null && !p.isEmpty()) { String propertyTim...
[ "private", "int", "initStepTransactionTimeout", "(", ")", "{", "logger", ".", "entering", "(", "sourceClass", ",", "\"initStepTransactionTimeout\"", ")", ";", "Properties", "p", "=", "runtimeStepExecution", ".", "getProperties", "(", ")", ";", "int", "timeout", "=...
Note we can rely on the StepContext properties already having been set at this point. @return global transaction timeout defined in step properties. default timeout value is 180
[ "Note", "we", "can", "rely", "on", "the", "StepContext", "properties", "already", "having", "been", "set", "at", "this", "point", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/controller/impl/ChunkStepControllerImpl.java#L1072-L1088
66,170
OpenLiberty/open-liberty
dev/com.ibm.ws.javaee.ddmodel/src/com/ibm/ws/javaee/ddmodel/AnySimpleType.java
AnySimpleType.replaceWhitespace
@Trivial private static String replaceWhitespace(String value) { final int length = value.length(); for (int i = 0; i < length; ++i) { char c = value.charAt(i); if (c < 0x20 && (c == 0x9 || c == 0xA || c == 0xD)) { return replace0(value, i, length); ...
java
@Trivial private static String replaceWhitespace(String value) { final int length = value.length(); for (int i = 0; i < length; ++i) { char c = value.charAt(i); if (c < 0x20 && (c == 0x9 || c == 0xA || c == 0xD)) { return replace0(value, i, length); ...
[ "@", "Trivial", "private", "static", "String", "replaceWhitespace", "(", "String", "value", ")", "{", "final", "int", "length", "=", "value", ".", "length", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "++", "i", "...
Replaces all occurrences of 0x9, 0xA and 0xD with 0x20.
[ "Replaces", "all", "occurrences", "of", "0x9", "0xA", "and", "0xD", "with", "0x20", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmodel/src/com/ibm/ws/javaee/ddmodel/AnySimpleType.java#L179-L189
66,171
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/MessageProcessorStore.java
MessageProcessorStore.setMessagingEngineUuid
private void setMessagingEngineUuid(SIBUuid8 uuid) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setMessagingEngineUuid", new Object[] { uuid }); messagingEngineUuid = uuid; if (tc.isEntryEnabled()) SibTr.exit(tc, "setMessagingEngineUuid"); }
java
private void setMessagingEngineUuid(SIBUuid8 uuid) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setMessagingEngineUuid", new Object[] { uuid }); messagingEngineUuid = uuid; if (tc.isEntryEnabled()) SibTr.exit(tc, "setMessagingEngineUuid"); }
[ "private", "void", "setMessagingEngineUuid", "(", "SIBUuid8", "uuid", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setMessagingEngineUuid\"", ",", "new", "Object", "[", "]", "{", "uuid", "}", ...
Set the messagingEngineUuid. @param uuid
[ "Set", "the", "messagingEngineUuid", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/MessageProcessorStore.java#L129-L138
66,172
OpenLiberty/open-liberty
dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/nester/Nester.java
Nester.nest
public static Map<String, List<Map<String, Object>>> nest(Map<String, Object> map, String... keys) { Map<String, List<Map<String, Object>>> result = new HashMap<String, List<Map<String, Object>>>(keys.length); String keyMatch = ""; for (String key : keys) { result.put(key, new ArrayL...
java
public static Map<String, List<Map<String, Object>>> nest(Map<String, Object> map, String... keys) { Map<String, List<Map<String, Object>>> result = new HashMap<String, List<Map<String, Object>>>(keys.length); String keyMatch = ""; for (String key : keys) { result.put(key, new ArrayL...
[ "public", "static", "Map", "<", "String", ",", "List", "<", "Map", "<", "String", ",", "Object", ">", ">", ">", "nest", "(", "Map", "<", "String", ",", "Object", ">", "map", ",", "String", "...", "keys", ")", "{", "Map", "<", "String", ",", "List...
Extracts all sub configurations starting with any of the specified keys @param map flattened properties @param keys keys of interest @return map keyed by (supplied) key of lists of extracted nested configurations
[ "Extracts", "all", "sub", "configurations", "starting", "with", "any", "of", "the", "specified", "keys" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/nester/Nester.java#L90-L109
66,173
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/SelfExtractRun.java
SelfExtractRun.getUserHome
private static String getUserHome() { String home; if (platformType == SelfExtractUtils.PlatformType_CYGWIN) { home = System.getenv("HOME"); } else { home = System.getProperty("user.home"); } return home; }
java
private static String getUserHome() { String home; if (platformType == SelfExtractUtils.PlatformType_CYGWIN) { home = System.getenv("HOME"); } else { home = System.getProperty("user.home"); } return home; }
[ "private", "static", "String", "getUserHome", "(", ")", "{", "String", "home", ";", "if", "(", "platformType", "==", "SelfExtractUtils", ".", "PlatformType_CYGWIN", ")", "{", "home", "=", "System", ".", "getenv", "(", "\"HOME\"", ")", ";", "}", "else", "{"...
Determine user home based on platform type. Java user.home property is correct in all cases except for cygwin. For cygwin, user.home is Windows home, so use HOME env var instead. @return user home directory
[ "Determine", "user", "home", "based", "on", "platform", "type", ".", "Java", "user", ".", "home", "property", "is", "correct", "in", "all", "cases", "except", "for", "cygwin", ".", "For", "cygwin", "user", ".", "home", "is", "Windows", "home", "so", "use...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/SelfExtractRun.java#L53-L63
66,174
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/SelfExtractRun.java
SelfExtractRun.createIfNeeded
private static String createIfNeeded(String dir) { File f = new File(dir); if (f.exists()) { return dir; } else { boolean success = f.mkdirs(); if (success) return dir; else return null; } }
java
private static String createIfNeeded(String dir) { File f = new File(dir); if (f.exists()) { return dir; } else { boolean success = f.mkdirs(); if (success) return dir; else return null; } }
[ "private", "static", "String", "createIfNeeded", "(", "String", "dir", ")", "{", "File", "f", "=", "new", "File", "(", "dir", ")", ";", "if", "(", "f", ".", "exists", "(", ")", ")", "{", "return", "dir", ";", "}", "else", "{", "boolean", "success",...
Create input directory if it does not exist @return directory name
[ "Create", "input", "directory", "if", "it", "does", "not", "exist" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/SelfExtractRun.java#L80-L91
66,175
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/SelfExtractRun.java
SelfExtractRun.jarFileName
private static String jarFileName() { // do this first so we can access extractor, ok to invoke more than once createExtractor(); // get <name> from path/<name>.jar String fullyQualifiedFileName = extractor.container.getName(); int lastSeparator = fullyQualifiedFileName.lastIndex...
java
private static String jarFileName() { // do this first so we can access extractor, ok to invoke more than once createExtractor(); // get <name> from path/<name>.jar String fullyQualifiedFileName = extractor.container.getName(); int lastSeparator = fullyQualifiedFileName.lastIndex...
[ "private", "static", "String", "jarFileName", "(", ")", "{", "// do this first so we can access extractor, ok to invoke more than once", "createExtractor", "(", ")", ";", "// get <name> from path/<name>.jar", "String", "fullyQualifiedFileName", "=", "extractor", ".", "container",...
Return jar file name from input archive @return <name> from path/<name>.jar
[ "Return", "jar", "file", "name", "from", "input", "archive" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/SelfExtractRun.java#L98-L110
66,176
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/SelfExtractRun.java
SelfExtractRun.disable2PC
private static void disable2PC(String extractDirectory, String serverName) throws IOException { String fileName = extractDirectory + File.separator + "wlp" + File.separator + "usr" + File.separator + "servers" + File.separator + serverName + File.separator + "jvm.options"; Buff...
java
private static void disable2PC(String extractDirectory, String serverName) throws IOException { String fileName = extractDirectory + File.separator + "wlp" + File.separator + "usr" + File.separator + "servers" + File.separator + serverName + File.separator + "jvm.options"; Buff...
[ "private", "static", "void", "disable2PC", "(", "String", "extractDirectory", ",", "String", "serverName", ")", "throws", "IOException", "{", "String", "fileName", "=", "extractDirectory", "+", "File", ".", "separator", "+", "\"wlp\"", "+", "File", ".", "separat...
Write property into jvm.options to disable 2PC transactions. 2PC transactions are disabled by default because default transaction log is stored in extract directory and therefore foils transaction recovery if the server terminates unexpectedly. @param extractDirectory @param serverName @throws IOException
[ "Write", "property", "into", "jvm", ".", "options", "to", "disable", "2PC", "transactions", ".", "2PC", "transactions", "are", "disabled", "by", "default", "because", "default", "transaction", "log", "is", "stored", "in", "extract", "directory", "and", "therefor...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/SelfExtractRun.java#L176-L218
66,177
OpenLiberty/open-liberty
dev/wlp.lib.extract/src/wlp/lib/extract/SelfExtractRun.java
SelfExtractRun.runServer
private static int runServer(String extractDirectory, String serverName, String[] args) throws IOException, InterruptedException { int rc = 0; Runtime rt = Runtime.getRuntime(); String action = "run"; if (System.getenv("WLP_JAR_DEBUG") != null) action = "debug"; //...
java
private static int runServer(String extractDirectory, String serverName, String[] args) throws IOException, InterruptedException { int rc = 0; Runtime rt = Runtime.getRuntime(); String action = "run"; if (System.getenv("WLP_JAR_DEBUG") != null) action = "debug"; //...
[ "private", "static", "int", "runServer", "(", "String", "extractDirectory", ",", "String", "serverName", ",", "String", "[", "]", "args", ")", "throws", "IOException", ",", "InterruptedException", "{", "int", "rc", "=", "0", ";", "Runtime", "rt", "=", "Runti...
Run server extracted from jar If environment variable WLP_JAR_DEBUG is set, use 'server debug' instead @param extractDirectory @param serverName @return server run return code @throws IOException @throws InterruptedException
[ "Run", "server", "extracted", "from", "jar", "If", "environment", "variable", "WLP_JAR_DEBUG", "is", "set", "use", "server", "debug", "instead" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/SelfExtractRun.java#L230-L277
66,178
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/J2CGlobalConfigProperties.java
J2CGlobalConfigProperties.isInitialized
private void isInitialized(boolean condition, String propName) { if (condition == true) { IllegalStateException e = new IllegalStateException("J2CGlobalConfigProperties: internal error. Set once property already set."); Tr.error(tc, "SET_ONCE_PROP_ALREADY_SET_J2CA0159", (Object) null); ...
java
private void isInitialized(boolean condition, String propName) { if (condition == true) { IllegalStateException e = new IllegalStateException("J2CGlobalConfigProperties: internal error. Set once property already set."); Tr.error(tc, "SET_ONCE_PROP_ALREADY_SET_J2CA0159", (Object) null); ...
[ "private", "void", "isInitialized", "(", "boolean", "condition", ",", "String", "propName", ")", "{", "if", "(", "condition", "==", "true", ")", "{", "IllegalStateException", "e", "=", "new", "IllegalStateException", "(", "\"J2CGlobalConfigProperties: internal error. ...
Utility method for set once methods.
[ "Utility", "method", "for", "set", "once", "methods", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/J2CGlobalConfigProperties.java#L784-L790
66,179
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/J2CGlobalConfigProperties.java
J2CGlobalConfigProperties.applyRequestGroupConfigChanges
public synchronized final void applyRequestGroupConfigChanges() { // Note: on the following call the "false,true" forces the change notification // to be sent. The listener will then pick up all property values in the // group. if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabl...
java
public synchronized final void applyRequestGroupConfigChanges() { // Note: on the following call the "false,true" forces the change notification // to be sent. The listener will then pick up all property values in the // group. if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabl...
[ "public", "synchronized", "final", "void", "applyRequestGroupConfigChanges", "(", ")", "{", "// Note: on the following call the \"false,true\" forces the change notification", "// to be sent. The listener will then pick up all property values in the", "// group.", "if", "(", "TraceCompone...
Request Stat variable group
[ "Request", "Stat", "variable", "group" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/J2CGlobalConfigProperties.java#L895-L906
66,180
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToObjectMap.java
IdToObjectMap.get
public Object get(int key) throws SIErrorException // D214655 { if (tc.isEntryEnabled()) SibTr.entry(tc, "get"); if (tc.isDebugEnabled()) SibTr.debug(tc, "key: "+key); // f174137 captiveComparitorKey.setValue(key); if (t...
java
public Object get(int key) throws SIErrorException // D214655 { if (tc.isEntryEnabled()) SibTr.entry(tc, "get"); if (tc.isDebugEnabled()) SibTr.debug(tc, "key: "+key); // f174137 captiveComparitorKey.setValue(key); if (t...
[ "public", "Object", "get", "(", "int", "key", ")", "throws", "SIErrorException", "// D214655", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"get\"", ")", ";", "if", "(", "tc", ".", "isDebugEnabled...
Retrives the object associated with a particular key from the map. @param key @return Object @throws SIErrorException if the element did not exist
[ "Retrives", "the", "object", "associated", "with", "a", "particular", "key", "from", "the", "map", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToObjectMap.java#L113-L137
66,181
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToObjectMap.java
IdToObjectMap.remove
public Object remove(int key) throws SIErrorException // D214655 { if (tc.isEntryEnabled()) SibTr.entry(tc, "remove", ""+key); captiveComparitorKey.setValue(key); // Start D214655 Object retObject = map.remove(captiveComparitorKey); if (retObject == n...
java
public Object remove(int key) throws SIErrorException // D214655 { if (tc.isEntryEnabled()) SibTr.entry(tc, "remove", ""+key); captiveComparitorKey.setValue(key); // Start D214655 Object retObject = map.remove(captiveComparitorKey); if (retObject == n...
[ "public", "Object", "remove", "(", "int", "key", ")", "throws", "SIErrorException", "// D214655", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"remove\"", ",", "\"\"", "+", "key", ")", ";", "capti...
Removes an object from the map. @param key @return Object @throws SIErrorException if the element did not exist
[ "Removes", "an", "object", "from", "the", "map", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToObjectMap.java#L145-L166
66,182
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToObjectMap.java
IdToObjectMap.iterator
public Iterator iterator() { if (tc.isEntryEnabled()) SibTr.entry(tc, "iterator"); if (tc.isEntryEnabled()) SibTr.exit(tc, "iterator"); return map.values().iterator(); }
java
public Iterator iterator() { if (tc.isEntryEnabled()) SibTr.entry(tc, "iterator"); if (tc.isEntryEnabled()) SibTr.exit(tc, "iterator"); return map.values().iterator(); }
[ "public", "Iterator", "iterator", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"iterator\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "exit", "(...
Returns an iterator with which to browse the values @return Iterator
[ "Returns", "an", "iterator", "with", "which", "to", "browse", "the", "values" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToObjectMap.java#L174-L180
66,183
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToObjectMap.java
IdToObjectMap.containsKey
public boolean containsKey(int id) { if (tc.isEntryEnabled()) SibTr.entry(tc, "get", ""+id); captiveComparitorKey.setValue(id); final boolean result = map.containsKey(captiveComparitorKey); if (tc.isEntryEnabled()) SibTr.exit(tc, "get", ""+result); return result; }
java
public boolean containsKey(int id) { if (tc.isEntryEnabled()) SibTr.entry(tc, "get", ""+id); captiveComparitorKey.setValue(id); final boolean result = map.containsKey(captiveComparitorKey); if (tc.isEntryEnabled()) SibTr.exit(tc, "get", ""+result); return result; }
[ "public", "boolean", "containsKey", "(", "int", "id", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"get\"", ",", "\"\"", "+", "id", ")", ";", "captiveComparitorKey", ".", "setValue", "(", "...
Determines if the specified id is present in the IdToObjectMap @param id the id to check @return boolean true if (and only if) the id is present in the map.
[ "Determines", "if", "the", "specified", "id", "is", "present", "in", "the", "IdToObjectMap" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToObjectMap.java#L203-L212
66,184
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/JIT_Debug.java
JIT_Debug.checkCast
public static Object checkCast(Object value, Object object, String valueClassName) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ClassLoader valueLoader = value == null ? null : AccessController.doPrivileged(new GetClassLoaderPrivileged(...
java
public static Object checkCast(Object value, Object object, String valueClassName) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { ClassLoader valueLoader = value == null ? null : AccessController.doPrivileged(new GetClassLoaderPrivileged(...
[ "public", "static", "Object", "checkCast", "(", "Object", "value", ",", "Object", "object", ",", "String", "valueClassName", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", ...
Called by JIT-deployed code that is performing a checkcast. For the convenience of generated code, the input value is returned directly. @param value the value being cast @param object the object performing the cast @param valueClassName the expected class name @return value
[ "Called", "by", "JIT", "-", "deployed", "code", "that", "is", "performing", "a", "checkcast", ".", "For", "the", "convenience", "of", "generated", "code", "the", "input", "value", "is", "returned", "directly", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/JIT_Debug.java#L39-L72
66,185
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.getNode
GBSNode getNode(Object newKey) { GBSNode p; if (_nodePool == null) p = new GBSNode(this, newKey); else { p = _nodePool; _nodePool = p.rightChild(); p.reset(newKey); } return p; }
java
GBSNode getNode(Object newKey) { GBSNode p; if (_nodePool == null) p = new GBSNode(this, newKey); else { p = _nodePool; _nodePool = p.rightChild(); p.reset(newKey); } return p; }
[ "GBSNode", "getNode", "(", "Object", "newKey", ")", "{", "GBSNode", "p", ";", "if", "(", "_nodePool", "==", "null", ")", "p", "=", "new", "GBSNode", "(", "this", ",", "newKey", ")", ";", "else", "{", "p", "=", "_nodePool", ";", "_nodePool", "=", "p...
Allocate a new node for the tree. @param newKey The initial key for the new node. @return The new node.
[ "Allocate", "a", "new", "node", "for", "the", "tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L344-L356
66,186
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.prePopulate
public void prePopulate(int x) { for (int i = 0; i < x; i++) { GBSNode p = new GBSNode(this); releaseNode(p); } }
java
public void prePopulate(int x) { for (int i = 0; i < x; i++) { GBSNode p = new GBSNode(this); releaseNode(p); } }
[ "public", "void", "prePopulate", "(", "int", "x", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "x", ";", "i", "++", ")", "{", "GBSNode", "p", "=", "new", "GBSNode", "(", "this", ")", ";", "releaseNode", "(", "p", ")", ";", "}", ...
Add some number of free nodes to the node pool for testing. @param x The number of nodes to add.
[ "Add", "some", "number", "of", "free", "nodes", "to", "the", "node", "pool", "for", "testing", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L363-L370
66,187
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.maximumFringeImbalance
public int maximumFringeImbalance() { int maxBal; GBSNode q = root(); if (q.leftChild() == null) { maxBal = kFactor() - 1; if (maxBal < 3) maxBal = 3; } else { if ((kFactor() % 3) == 0) maxBal...
java
public int maximumFringeImbalance() { int maxBal; GBSNode q = root(); if (q.leftChild() == null) { maxBal = kFactor() - 1; if (maxBal < 3) maxBal = 3; } else { if ((kFactor() % 3) == 0) maxBal...
[ "public", "int", "maximumFringeImbalance", "(", ")", "{", "int", "maxBal", ";", "GBSNode", "q", "=", "root", "(", ")", ";", "if", "(", "q", ".", "leftChild", "(", ")", "==", "null", ")", "{", "maxBal", "=", "kFactor", "(", ")", "-", "1", ";", "if...
Return the maximum imbalance allowed for a fringe. <p>This depends on the K Factor and on whether or not the tree is a special case of a single fringe.</p>
[ "Return", "the", "maximum", "imbalance", "allowed", "for", "a", "fringe", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L505-L523
66,188
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.calcTZeroDepth
private int calcTZeroDepth(int proposedK) { int d = -1; if ( (proposedK >= 0) && (proposedK < _t0_d.length) ) d = _t0_d[proposedK]; if (d < 0) { String x = "K Factor (" + proposedK + ") is invalid.\n" + "Valid K factors are: " + kFactor...
java
private int calcTZeroDepth(int proposedK) { int d = -1; if ( (proposedK >= 0) && (proposedK < _t0_d.length) ) d = _t0_d[proposedK]; if (d < 0) { String x = "K Factor (" + proposedK + ") is invalid.\n" + "Valid K factors are: " + kFactor...
[ "private", "int", "calcTZeroDepth", "(", "int", "proposedK", ")", "{", "int", "d", "=", "-", "1", ";", "if", "(", "(", "proposedK", ">=", "0", ")", "&&", "(", "proposedK", "<", "_t0_d", ".", "length", ")", ")", "d", "=", "_t0_d", "[", "proposedK", ...
Set the depth of a T0 sub-tree.
[ "Set", "the", "depth", "of", "a", "T0", "sub", "-", "tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L528-L541
66,189
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.checkForPossibleIndexChange
static boolean checkForPossibleIndexChange( int v1, int v2, Throwable exc, String msg) { ...
java
static boolean checkForPossibleIndexChange( int v1, int v2, Throwable exc, String msg) { ...
[ "static", "boolean", "checkForPossibleIndexChange", "(", "int", "v1", ",", "int", "v2", ",", "Throwable", "exc", ",", "String", "msg", ")", "{", "if", "(", "v1", "!=", "v2", ")", "return", "pessimisticNeeded", ";", "else", "{", "GBSTreeException", "x", "="...
Process an exception that may have occurred while the index was changing. <p>An optimistic search hit an exception that may have been caused by a change in the index in mid-search. The two parameters v1 and v2 represent the index vno at the time the search started and at the time the exception was caught. If the two...
[ "Process", "an", "exception", "that", "may", "have", "occurred", "while", "the", "index", "was", "changing", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L589-L603
66,190
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.iterator
public Iterator iterator() { GBSIterator x = new GBSIterator(this); Iterator q = (Iterator) x; return q; }
java
public Iterator iterator() { GBSIterator x = new GBSIterator(this); Iterator q = (Iterator) x; return q; }
[ "public", "Iterator", "iterator", "(", ")", "{", "GBSIterator", "x", "=", "new", "GBSIterator", "(", "this", ")", ";", "Iterator", "q", "=", "(", "Iterator", ")", "x", ";", "return", "q", ";", "}" ]
Create and return an Iterator positioned on the beginning of the tree. <p>The Iterator is not actually positioned on the beginning of the tree. It has no position at all. The first time Iterator.next() is invoked it will position itself on the beginning of the tree.</p>
[ "Create", "and", "return", "an", "Iterator", "positioned", "on", "the", "beginning", "of", "the", "tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L612-L617
66,191
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.searchEqual
public Object searchEqual( Object searchKey) { SearchComparator comp = searchComparator(SearchComparator.EQ); Object p = find(comp, searchKey); return p; }
java
public Object searchEqual( Object searchKey) { SearchComparator comp = searchComparator(SearchComparator.EQ); Object p = find(comp, searchKey); return p; }
[ "public", "Object", "searchEqual", "(", "Object", "searchKey", ")", "{", "SearchComparator", "comp", "=", "searchComparator", "(", "SearchComparator", ".", "EQ", ")", ";", "Object", "p", "=", "find", "(", "comp", ",", "searchKey", ")", ";", "return", "p", ...
Find the first key in the index that is equal to the given key. @param searchKey The key to be found. @return The first key in the index that is equal to the supplied key (searchKey).
[ "Find", "the", "first", "key", "in", "the", "index", "that", "is", "equal", "to", "the", "given", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L627-L633
66,192
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.searchGreater
public Object searchGreater( Object searchKey) { SearchComparator comp = searchComparator(SearchComparator.GT); Object p = find(comp, searchKey); return p; }
java
public Object searchGreater( Object searchKey) { SearchComparator comp = searchComparator(SearchComparator.GT); Object p = find(comp, searchKey); return p; }
[ "public", "Object", "searchGreater", "(", "Object", "searchKey", ")", "{", "SearchComparator", "comp", "=", "searchComparator", "(", "SearchComparator", ".", "GT", ")", ";", "Object", "p", "=", "find", "(", "comp", ",", "searchKey", ")", ";", "return", "p", ...
Find the first key in the index that is greater than the given key. @param searchKey The key to be found. @return The first key in the index that is strictly greater than the supplied key (searchKey).
[ "Find", "the", "first", "key", "in", "the", "index", "that", "is", "greater", "than", "the", "given", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L643-L649
66,193
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.searchGreaterOrEqual
public Object searchGreaterOrEqual( Object searchKey) { SearchComparator comp = searchComparator(SearchComparator.GE); Object p = find(comp, searchKey); return p; }
java
public Object searchGreaterOrEqual( Object searchKey) { SearchComparator comp = searchComparator(SearchComparator.GE); Object p = find(comp, searchKey); return p; }
[ "public", "Object", "searchGreaterOrEqual", "(", "Object", "searchKey", ")", "{", "SearchComparator", "comp", "=", "searchComparator", "(", "SearchComparator", ".", "GE", ")", ";", "Object", "p", "=", "find", "(", "comp", ",", "searchKey", ")", ";", "return", ...
Find the first key in the index that is greater than or equal to the given key. @param searchKey The key to be found. @return The first key in the index that is greater than or equal to the supplied key (searchKey).
[ "Find", "the", "first", "key", "in", "the", "index", "that", "is", "greater", "than", "or", "equal", "to", "the", "given", "key", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L660-L666
66,194
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.getSearchNode
private SearchNode getSearchNode() { Object x = _searchNode.get(); SearchNode g = null; if (x != null) { g = (SearchNode) x; g.reset(); } else { g = new SearchNode(); x = (Object) g; _searchNode.set(x...
java
private SearchNode getSearchNode() { Object x = _searchNode.get(); SearchNode g = null; if (x != null) { g = (SearchNode) x; g.reset(); } else { g = new SearchNode(); x = (Object) g; _searchNode.set(x...
[ "private", "SearchNode", "getSearchNode", "(", ")", "{", "Object", "x", "=", "_searchNode", ".", "get", "(", ")", ";", "SearchNode", "g", "=", "null", ";", "if", "(", "x", "!=", "null", ")", "{", "g", "=", "(", "SearchNode", ")", "x", ";", "g", "...
Find a SearchNode for use by the current thread. <p>Allocation of a SearchNode is more expensive than serial reuse. This is a very cheap form of pooling done by attaching a SearchNode to each thread that calls find.</p>
[ "Find", "a", "SearchNode", "for", "use", "by", "the", "current", "thread", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L678-L694
66,195
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.optimisticFind
private boolean optimisticFind( SearchComparator comp, Object searchKey, SearchNode point) { point.reset(); int v1 = _vno; if (root() != null) { if ((v...
java
private boolean optimisticFind( SearchComparator comp, Object searchKey, SearchNode point) { point.reset(); int v1 = _vno; if (root() != null) { if ((v...
[ "private", "boolean", "optimisticFind", "(", "SearchComparator", "comp", ",", "Object", "searchKey", ",", "SearchNode", "point", ")", "{", "point", ".", "reset", "(", ")", ";", "int", "v1", "=", "_vno", ";", "if", "(", "root", "(", ")", "!=", "null", "...
Optimistic find in a GBS Tree
[ "Optimistic", "find", "in", "a", "GBS", "Tree" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L728-L765
66,196
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.pessimisticFind
private void pessimisticFind( SearchComparator comp, Object searchKey, SearchNode point) { point.reset(); synchronized(this) { internalFind(comp, searchKey, point);...
java
private void pessimisticFind( SearchComparator comp, Object searchKey, SearchNode point) { point.reset(); synchronized(this) { internalFind(comp, searchKey, point);...
[ "private", "void", "pessimisticFind", "(", "SearchComparator", "comp", ",", "Object", "searchKey", ",", "SearchNode", "point", ")", "{", "point", ".", "reset", "(", ")", ";", "synchronized", "(", "this", ")", "{", "internalFind", "(", "comp", ",", "searchKey...
Pessimistic find in a GBS Tree
[ "Pessimistic", "find", "in", "a", "GBS", "Tree" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L771-L783
66,197
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.iteratorFind
synchronized Object iteratorFind( DeleteStack stack, SearchComparator comp, Object searchKey, SearchNode point) { point.reset(); GB...
java
synchronized Object iteratorFind( DeleteStack stack, SearchComparator comp, Object searchKey, SearchNode point) { point.reset(); GB...
[ "synchronized", "Object", "iteratorFind", "(", "DeleteStack", "stack", ",", "SearchComparator", "comp", ",", "Object", "searchKey", ",", "SearchNode", "point", ")", "{", "point", ".", "reset", "(", ")", ";", "GBSNode", "p", "=", "root", "(", ")", ";", "GBS...
Search the index from an Iterator. <p>Search the index to find one of the following:</p> <ol> <li>An index entry that is exactly equal to the supplied key, <li>An index entry that is strictly greater than the supplied key, or <li>An index entry that is greater than or equal to the supplied key. </ol> <p>This is calle...
[ "Search", "the", "index", "from", "an", "Iterator", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L860-L932
66,198
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.leftSearch
private void leftSearch( SearchComparator comp, GBSNode p, GBSNode r, Object searchKey, SearchNode point) { if (r == null) ...
java
private void leftSearch( SearchComparator comp, GBSNode p, GBSNode r, Object searchKey, SearchNode point) { if (r == null) ...
[ "private", "void", "leftSearch", "(", "SearchComparator", "comp", ",", "GBSNode", "p", ",", "GBSNode", "r", ",", "Object", "searchKey", ",", "SearchNode", "point", ")", "{", "if", "(", "r", "==", "null", ")", "/* There is no upper predecessor */", "{", ...
Search after falling off a left edge. <p>We have fallen off of the left edge because the search key is less than the median of the current node. In the example below if the current node is GHI then the previous node is DEF and the desired key is greater than E and less than H. If the curent node is MNO the previous ...
[ "Search", "after", "falling", "off", "a", "left", "edge", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L985-L1018
66,199
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java
GBSTree.rightSearch
private void rightSearch( SearchComparator comp, GBSNode p, GBSNode l, Object searchKey, SearchNode point) { int xcc = comp.compa...
java
private void rightSearch( SearchComparator comp, GBSNode p, GBSNode l, Object searchKey, SearchNode point) { int xcc = comp.compa...
[ "private", "void", "rightSearch", "(", "SearchComparator", "comp", ",", "GBSNode", "p", ",", "GBSNode", "l", ",", "Object", "searchKey", ",", "SearchNode", "point", ")", "{", "int", "xcc", "=", "comp", ".", "compare", "(", "searchKey", ",", "p", ".", "ri...
Search after falling off a right edge. <p>We have fallen off of the right edge because the search key is greater than the median of the current node. In the example below if the current node is GHI then the successor node is JKL and the desired key is greater than H and less than K. If the curent node is MNO the suc...
[ "Search", "after", "falling", "off", "a", "right", "edge", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/gbs/GBSTree.java#L1063-L1090