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
partition
stringclasses
1 value
alibaba/java-dns-cache-manipulator
library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java
DnsCacheManipulator.setDnsCache
public static void setDnsCache(Properties properties) { for (Map.Entry<Object, Object> entry : properties.entrySet()) { final String host = (String) entry.getKey(); String ipList = (String) entry.getValue(); ipList = ipList.trim(); if (ipList.isEmpty()) continue;...
java
public static void setDnsCache(Properties properties) { for (Map.Entry<Object, Object> entry : properties.entrySet()) { final String host = (String) entry.getKey(); String ipList = (String) entry.getValue(); ipList = ipList.trim(); if (ipList.isEmpty()) continue;...
[ "public", "static", "void", "setDnsCache", "(", "Properties", "properties", ")", "{", "for", "(", "Map", ".", "Entry", "<", "Object", ",", "Object", ">", "entry", ":", "properties", ".", "entrySet", "(", ")", ")", "{", "final", "String", "host", "=", "...
Set dns cache entries by properties @param properties input properties. eg. {@code www.example.com=42.42.42.42}, or {@code www.example.com=42.42.42.42,43.43.43.43} @throws DnsCacheManipulatorException Operation fail
[ "Set", "dns", "cache", "entries", "by", "properties" ]
eab50ee5c27671f9159b55458301f9429b2fcc47
https://github.com/alibaba/java-dns-cache-manipulator/blob/eab50ee5c27671f9159b55458301f9429b2fcc47/library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java#L71-L82
train
alibaba/java-dns-cache-manipulator
library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java
DnsCacheManipulator.loadDnsCacheConfig
public static void loadDnsCacheConfig(String propertiesFileName) { InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesFileName); if (inputStream == null) { inputStream = DnsCacheManipulator.class.getClassLoader().getResourceAsStream(propert...
java
public static void loadDnsCacheConfig(String propertiesFileName) { InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesFileName); if (inputStream == null) { inputStream = DnsCacheManipulator.class.getClassLoader().getResourceAsStream(propert...
[ "public", "static", "void", "loadDnsCacheConfig", "(", "String", "propertiesFileName", ")", "{", "InputStream", "inputStream", "=", "Thread", ".", "currentThread", "(", ")", ".", "getContextClassLoader", "(", ")", ".", "getResourceAsStream", "(", "propertiesFileName",...
Load dns config from the specified properties file on classpath, then set dns cache. @param propertiesFileName specified properties file name on classpath. @throws DnsCacheManipulatorException Operation fail @see DnsCacheManipulator#setDnsCache(java.util.Properties)
[ "Load", "dns", "config", "from", "the", "specified", "properties", "file", "on", "classpath", "then", "set", "dns", "cache", "." ]
eab50ee5c27671f9159b55458301f9429b2fcc47
https://github.com/alibaba/java-dns-cache-manipulator/blob/eab50ee5c27671f9159b55458301f9429b2fcc47/library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java#L106-L125
train
alibaba/java-dns-cache-manipulator
library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java
DnsCacheManipulator.getDnsCache
@Nullable public static DnsCacheEntry getDnsCache(String host) { try { return InetAddressCacheUtil.getInetAddressCache(host); } catch (Exception e) { throw new DnsCacheManipulatorException("Fail to getDnsCache, cause: " + e.toString(), e); } }
java
@Nullable public static DnsCacheEntry getDnsCache(String host) { try { return InetAddressCacheUtil.getInetAddressCache(host); } catch (Exception e) { throw new DnsCacheManipulatorException("Fail to getDnsCache, cause: " + e.toString(), e); } }
[ "@", "Nullable", "public", "static", "DnsCacheEntry", "getDnsCache", "(", "String", "host", ")", "{", "try", "{", "return", "InetAddressCacheUtil", ".", "getInetAddressCache", "(", "host", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "ne...
Get dns cache. @return dns cache. return {@code null} if no entry for host or dns cache is expired. @throws DnsCacheManipulatorException Operation fail
[ "Get", "dns", "cache", "." ]
eab50ee5c27671f9159b55458301f9429b2fcc47
https://github.com/alibaba/java-dns-cache-manipulator/blob/eab50ee5c27671f9159b55458301f9429b2fcc47/library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java#L133-L140
train
alibaba/java-dns-cache-manipulator
library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java
DnsCacheManipulator.listDnsCache
public static List<DnsCacheEntry> listDnsCache() { try { return InetAddressCacheUtil.listInetAddressCache().getCache(); } catch (Exception e) { throw new DnsCacheManipulatorException("Fail to listDnsCache, cause: " + e.toString(), e); } }
java
public static List<DnsCacheEntry> listDnsCache() { try { return InetAddressCacheUtil.listInetAddressCache().getCache(); } catch (Exception e) { throw new DnsCacheManipulatorException("Fail to listDnsCache, cause: " + e.toString(), e); } }
[ "public", "static", "List", "<", "DnsCacheEntry", ">", "listDnsCache", "(", ")", "{", "try", "{", "return", "InetAddressCacheUtil", ".", "listInetAddressCache", "(", ")", ".", "getCache", "(", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw...
Get all dns cache entries. @return dns cache entries @throws DnsCacheManipulatorException Operation fail @see #getWholeDnsCache() @since 1.2.0
[ "Get", "all", "dns", "cache", "entries", "." ]
eab50ee5c27671f9159b55458301f9429b2fcc47
https://github.com/alibaba/java-dns-cache-manipulator/blob/eab50ee5c27671f9159b55458301f9429b2fcc47/library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java#L162-L168
train
alibaba/java-dns-cache-manipulator
library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java
DnsCacheManipulator.getWholeDnsCache
public static DnsCache getWholeDnsCache() { try { return InetAddressCacheUtil.listInetAddressCache(); } catch (Exception e) { throw new DnsCacheManipulatorException("Fail to getWholeDnsCache, cause: " + e.toString(), e); } }
java
public static DnsCache getWholeDnsCache() { try { return InetAddressCacheUtil.listInetAddressCache(); } catch (Exception e) { throw new DnsCacheManipulatorException("Fail to getWholeDnsCache, cause: " + e.toString(), e); } }
[ "public", "static", "DnsCache", "getWholeDnsCache", "(", ")", "{", "try", "{", "return", "InetAddressCacheUtil", ".", "listInetAddressCache", "(", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "new", "DnsCacheManipulatorException", "(", "\"Fa...
Get whole dns cache info. @return dns cache entries @throws DnsCacheManipulatorException Operation fail @since 1.2.0
[ "Get", "whole", "dns", "cache", "info", "." ]
eab50ee5c27671f9159b55458301f9429b2fcc47
https://github.com/alibaba/java-dns-cache-manipulator/blob/eab50ee5c27671f9159b55458301f9429b2fcc47/library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java#L177-L183
train
alibaba/java-dns-cache-manipulator
library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java
DnsCacheManipulator.removeDnsCache
public static void removeDnsCache(String host) { try { InetAddressCacheUtil.removeInetAddressCache(host); } catch (Exception e) { final String message = String.format("Fail to removeDnsCache for host %s, cause: %s", host, e.toString()); throw new DnsCacheManipulatorEx...
java
public static void removeDnsCache(String host) { try { InetAddressCacheUtil.removeInetAddressCache(host); } catch (Exception e) { final String message = String.format("Fail to removeDnsCache for host %s, cause: %s", host, e.toString()); throw new DnsCacheManipulatorEx...
[ "public", "static", "void", "removeDnsCache", "(", "String", "host", ")", "{", "try", "{", "InetAddressCacheUtil", ".", "removeInetAddressCache", "(", "host", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "final", "String", "message", "=", "String...
Remove dns cache entry, cause lookup dns server for host after. @param host host @throws DnsCacheManipulatorException Operation fail @see DnsCacheManipulator#clearDnsCache
[ "Remove", "dns", "cache", "entry", "cause", "lookup", "dns", "server", "for", "host", "after", "." ]
eab50ee5c27671f9159b55458301f9429b2fcc47
https://github.com/alibaba/java-dns-cache-manipulator/blob/eab50ee5c27671f9159b55458301f9429b2fcc47/library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java#L192-L199
train
alibaba/java-dns-cache-manipulator
library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java
DnsCacheManipulator.setDnsNegativeCachePolicy
public static void setDnsNegativeCachePolicy(int negativeCacheSeconds) { try { InetAddressCacheUtil.setDnsNegativeCachePolicy(negativeCacheSeconds); } catch (Exception e) { throw new DnsCacheManipulatorException("Fail to setDnsNegativeCachePolicy, cause: " + e.toString(), e); ...
java
public static void setDnsNegativeCachePolicy(int negativeCacheSeconds) { try { InetAddressCacheUtil.setDnsNegativeCachePolicy(negativeCacheSeconds); } catch (Exception e) { throw new DnsCacheManipulatorException("Fail to setDnsNegativeCachePolicy, cause: " + e.toString(), e); ...
[ "public", "static", "void", "setDnsNegativeCachePolicy", "(", "int", "negativeCacheSeconds", ")", "{", "try", "{", "InetAddressCacheUtil", ".", "setDnsNegativeCachePolicy", "(", "negativeCacheSeconds", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw"...
Set JVM DNS negative cache policy @param negativeCacheSeconds set default dns cache time. Special input case: <ul> <li> {@code -1} means never expired.(In effect, all negative value)</li> <li> {@code 0} never cached.</li> </ul> @throws DnsCacheManipulatorException Operation fail @since 1.3.0
[ "Set", "JVM", "DNS", "negative", "cache", "policy" ]
eab50ee5c27671f9159b55458301f9429b2fcc47
https://github.com/alibaba/java-dns-cache-manipulator/blob/eab50ee5c27671f9159b55458301f9429b2fcc47/library/src/main/java/com/alibaba/dcm/DnsCacheManipulator.java#L286-L292
train
DreaminginCodeZH/MaterialProgressBar
library/src/main/java/me/zhanghai/android/materialprogressbar/internal/DrawableContainerCompat.java
DrawableContainerCompat.initializeDrawableForDisplay
private void initializeDrawableForDisplay(Drawable d) { if (mBlockInvalidateCallback == null) { mBlockInvalidateCallback = new BlockInvalidateCallback(); } // Temporary fix for suspending callbacks during initialization. We // don't want any of these setters causing an invali...
java
private void initializeDrawableForDisplay(Drawable d) { if (mBlockInvalidateCallback == null) { mBlockInvalidateCallback = new BlockInvalidateCallback(); } // Temporary fix for suspending callbacks during initialization. We // don't want any of these setters causing an invali...
[ "private", "void", "initializeDrawableForDisplay", "(", "Drawable", "d", ")", "{", "if", "(", "mBlockInvalidateCallback", "==", "null", ")", "{", "mBlockInvalidateCallback", "=", "new", "BlockInvalidateCallback", "(", ")", ";", "}", "// Temporary fix for suspending call...
Initializes a drawable for display in this container. @param d The drawable to initialize.
[ "Initializes", "a", "drawable", "for", "display", "in", "this", "container", "." ]
7450ac880c8c9edf5d836cc0470fca01592d093e
https://github.com/DreaminginCodeZH/MaterialProgressBar/blob/7450ac880c8c9edf5d836cc0470fca01592d093e/library/src/main/java/me/zhanghai/android/materialprogressbar/internal/DrawableContainerCompat.java#L483-L525
train
DreaminginCodeZH/MaterialProgressBar
library/src/main/java/me/zhanghai/android/materialprogressbar/internal/AnimationScaleListDrawableCompat.java
AnimationScaleListDrawableCompat.onStateChange
@Override protected boolean onStateChange(int[] stateSet) { final boolean changed = super.onStateChange(stateSet); int idx = mAnimationScaleListState.getCurrentDrawableIndexBasedOnScale(); return selectDrawable(idx) || changed; }
java
@Override protected boolean onStateChange(int[] stateSet) { final boolean changed = super.onStateChange(stateSet); int idx = mAnimationScaleListState.getCurrentDrawableIndexBasedOnScale(); return selectDrawable(idx) || changed; }
[ "@", "Override", "protected", "boolean", "onStateChange", "(", "int", "[", "]", "stateSet", ")", "{", "final", "boolean", "changed", "=", "super", ".", "onStateChange", "(", "stateSet", ")", ";", "int", "idx", "=", "mAnimationScaleListState", ".", "getCurrentD...
Set the current drawable according to the animation scale. If scale is 0, then pick the static drawable, otherwise, pick the animatable drawable.
[ "Set", "the", "current", "drawable", "according", "to", "the", "animation", "scale", ".", "If", "scale", "is", "0", "then", "pick", "the", "static", "drawable", "otherwise", "pick", "the", "animatable", "drawable", "." ]
7450ac880c8c9edf5d836cc0470fca01592d093e
https://github.com/DreaminginCodeZH/MaterialProgressBar/blob/7450ac880c8c9edf5d836cc0470fca01592d093e/library/src/main/java/me/zhanghai/android/materialprogressbar/internal/AnimationScaleListDrawableCompat.java#L57-L62
train
OpenLiberty/open-liberty
dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/util/Utils.java
Utils.longToInt
public static int longToInt(long inLong) { if (inLong < Integer.MIN_VALUE) { return Integer.MIN_VALUE; } if (inLong > Integer.MAX_VALUE) { return Integer.MAX_VALUE; } return (int) inLong; }
java
public static int longToInt(long inLong) { if (inLong < Integer.MIN_VALUE) { return Integer.MIN_VALUE; } if (inLong > Integer.MAX_VALUE) { return Integer.MAX_VALUE; } return (int) inLong; }
[ "public", "static", "int", "longToInt", "(", "long", "inLong", ")", "{", "if", "(", "inLong", "<", "Integer", ".", "MIN_VALUE", ")", "{", "return", "Integer", ".", "MIN_VALUE", ";", "}", "if", "(", "inLong", ">", "Integer", ".", "MAX_VALUE", ")", "{", ...
convert unsigned long to signed int.
[ "convert", "unsigned", "long", "to", "signed", "int", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/util/Utils.java#L46-L57
train
OpenLiberty/open-liberty
dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/util/Utils.java
Utils.getAllInterfaces
public static void getAllInterfaces(Class<?> classObject, ArrayList<Type> interfaces) { Type[] superInterfaces = classObject.getGenericInterfaces(); interfaces.addAll((Arrays.asList(superInterfaces))); // for cases where the extended class is defined with a Generic. Type tgs = classObje...
java
public static void getAllInterfaces(Class<?> classObject, ArrayList<Type> interfaces) { Type[] superInterfaces = classObject.getGenericInterfaces(); interfaces.addAll((Arrays.asList(superInterfaces))); // for cases where the extended class is defined with a Generic. Type tgs = classObje...
[ "public", "static", "void", "getAllInterfaces", "(", "Class", "<", "?", ">", "classObject", ",", "ArrayList", "<", "Type", ">", "interfaces", ")", "{", "Type", "[", "]", "superInterfaces", "=", "classObject", ".", "getGenericInterfaces", "(", ")", ";", "inte...
recursively gets all interfaces
[ "recursively", "gets", "all", "interfaces" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/util/Utils.java#L309-L329
train
OpenLiberty/open-liberty
dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/util/Utils.java
Utils.truncateCloseReason
public static String truncateCloseReason(String reasonPhrase) { if (reasonPhrase != null) { byte[] reasonBytes = reasonPhrase.getBytes(Utils.UTF8_CHARSET); int len = reasonBytes.length; // Why 120? UTF-8 can take 4 bytes per character, so we either hit the boundary, or are...
java
public static String truncateCloseReason(String reasonPhrase) { if (reasonPhrase != null) { byte[] reasonBytes = reasonPhrase.getBytes(Utils.UTF8_CHARSET); int len = reasonBytes.length; // Why 120? UTF-8 can take 4 bytes per character, so we either hit the boundary, or are...
[ "public", "static", "String", "truncateCloseReason", "(", "String", "reasonPhrase", ")", "{", "if", "(", "reasonPhrase", "!=", "null", ")", "{", "byte", "[", "]", "reasonBytes", "=", "reasonPhrase", ".", "getBytes", "(", "Utils", ".", "UTF8_CHARSET", ")", ";...
close reason needs to be truncated to 123 UTF-8 encoded bytes
[ "close", "reason", "needs", "to", "be", "truncated", "to", "123", "UTF", "-", "8", "encoded", "bytes" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/util/Utils.java#L488-L502
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlMenuRendererBase.java
HtmlMenuRendererBase.getConverter
protected Converter getConverter(FacesContext facesContext, UIComponent component) { if (component instanceof UISelectMany) { return HtmlRendererUtils.findUISelectManyConverterFailsafe(facesContext, (UISelectMany) component); } else if (co...
java
protected Converter getConverter(FacesContext facesContext, UIComponent component) { if (component instanceof UISelectMany) { return HtmlRendererUtils.findUISelectManyConverterFailsafe(facesContext, (UISelectMany) component); } else if (co...
[ "protected", "Converter", "getConverter", "(", "FacesContext", "facesContext", ",", "UIComponent", "component", ")", "{", "if", "(", "component", "instanceof", "UISelectMany", ")", "{", "return", "HtmlRendererUtils", ".", "findUISelectManyConverterFailsafe", "(", "faces...
Gets the converter for the given component rendered by this renderer. @param facesContext @param component @return
[ "Gets", "the", "converter", "for", "the", "given", "component", "rendered", "by", "this", "renderer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/html/HtmlMenuRendererBase.java#L169-L182
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.startConditional
public void startConditional() throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "startConditional", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc, "Activating MBean for ME " + getName());...
java
public void startConditional() throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "startConditional", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc, "Activating MBean for ME " + getName());...
[ "public", "void", "startConditional", "(", ")", "throws", "Exception", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"startConditional\"", ",...
Start the Messaging Engine if it is enabled @throws Exception
[ "Start", "the", "Messaging", "Engine", "if", "it", "is", "enabled" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L333-L343
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.okayToSendServerStarted
private boolean okayToSendServerStarted() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "okayToSendServerStarted", this); synchronized (lockObject) { if (!_sentServerStarted) { if ((_state == STATE_STARTED) && _mainImpl.isServ...
java
private boolean okayToSendServerStarted() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "okayToSendServerStarted", this); synchronized (lockObject) { if (!_sentServerStarted) { if ((_state == STATE_STARTED) && _mainImpl.isServ...
[ "private", "boolean", "okayToSendServerStarted", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"okayToSendServerStarted\"", ",", "thi...
Determine whether the conditions permitting a "server started" notification to be sent are met. @return boolean a value indicating whether the notification can be sent
[ "Determine", "whether", "the", "conditions", "permitting", "a", "server", "started", "notification", "to", "be", "sent", "are", "met", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L375-L389
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.okayToSendServerStopping
private boolean okayToSendServerStopping() { // Removed the synchronized modifier of this method, as its only setting one private variable _sentServerStopping, // If its synchronized, then notification thread gets blocked here until JsActivationThread returns and so it doesnot set _sentServerStopping ...
java
private boolean okayToSendServerStopping() { // Removed the synchronized modifier of this method, as its only setting one private variable _sentServerStopping, // If its synchronized, then notification thread gets blocked here until JsActivationThread returns and so it doesnot set _sentServerStopping ...
[ "private", "boolean", "okayToSendServerStopping", "(", ")", "{", "// Removed the synchronized modifier of this method, as its only setting one private variable _sentServerStopping,", "// If its synchronized, then notification thread gets blocked here until JsActivationThread returns and so it doesno...
Determine whether the conditions permitting a "server stopping" notification to be sent are met. The ME state can be STARTED ,AUTOSTARTING or in STARTING state , to receive "server stopping" notification @return boolean a value indicating whether the notification can be sent
[ "Determine", "whether", "the", "conditions", "permitting", "a", "server", "stopping", "notification", "to", "be", "sent", "are", "met", ".", "The", "ME", "state", "can", "be", "STARTED", "AUTOSTARTING", "or", "in", "STARTING", "state", "to", "receive", "server...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L398-L415
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.getEngineComponent
@SuppressWarnings("unchecked") public <EngineComponent> EngineComponent getEngineComponent(Class<EngineComponent> clazz) { String thisMethodName = "getEngineComponent"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, clazz); } ...
java
@SuppressWarnings("unchecked") public <EngineComponent> EngineComponent getEngineComponent(Class<EngineComponent> clazz) { String thisMethodName = "getEngineComponent"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, clazz); } ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "<", "EngineComponent", ">", "EngineComponent", "getEngineComponent", "(", "Class", "<", "EngineComponent", ">", "clazz", ")", "{", "String", "thisMethodName", "=", "\"getEngineComponent\"", ";", "if", "(...
The purpose of this method is to get an engine component that can be cast using the specified class. The EngineComponent is not a class name, but represents the classes real type. @param <EngineComponent> The generic type of the desired engine component. @param clazz The class representing the engine component interfa...
[ "The", "purpose", "of", "this", "method", "is", "to", "get", "an", "engine", "component", "that", "can", "be", "cast", "using", "the", "specified", "class", ".", "The", "EngineComponent", "is", "not", "a", "class", "name", "but", "represents", "the", "clas...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L693-L720
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.getEngineComponents
@SuppressWarnings("unchecked") public <EngineComponent> EngineComponent[] getEngineComponents(Class<EngineComponent> clazz) { String thisMethodName = "getEngineComponents"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, clazz); ...
java
@SuppressWarnings("unchecked") public <EngineComponent> EngineComponent[] getEngineComponents(Class<EngineComponent> clazz) { String thisMethodName = "getEngineComponents"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, clazz); ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "<", "EngineComponent", ">", "EngineComponent", "[", "]", "getEngineComponents", "(", "Class", "<", "EngineComponent", ">", "clazz", ")", "{", "String", "thisMethodName", "=", "\"getEngineComponents\"", "...
The purpose of this method is to get an engine component that can be cast using the specified class. The EngineComponent is not a class name, but represents the classes real type. It is not possible to create an Array of a generic type without using reflection. @param <EngineComponent> The generic type of the desired ...
[ "The", "purpose", "of", "this", "method", "is", "to", "get", "an", "engine", "component", "that", "can", "be", "cast", "using", "the", "specified", "class", ".", "The", "EngineComponent", "is", "not", "a", "class", "name", "but", "represents", "the", "clas...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L738-L766
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.getMeConfig
public final JsMEConfig getMeConfig() { String thisMethodName = "getMeConfig"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); SibTr.exit(tc, thisMethodName, _me); } return _me; }
java
public final JsMEConfig getMeConfig() { String thisMethodName = "getMeConfig"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); SibTr.exit(tc, thisMethodName, _me); } return _me; }
[ "public", "final", "JsMEConfig", "getMeConfig", "(", ")", "{", "String", "thisMethodName", "=", "\"getMeConfig\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "e...
Returns a reference to this messaging engine's configuration. @return a reference to this messaging engine's configuration.
[ "Returns", "a", "reference", "to", "this", "messaging", "engine", "s", "configuration", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L809-L819
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.getMessageProcessor
@Deprecated public JsEngineComponent getMessageProcessor(String name) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getMessageProcessor", this); SibTr.exit(tc, "getMessageProcessor", _messageProcessor); } return _messageProces...
java
@Deprecated public JsEngineComponent getMessageProcessor(String name) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getMessageProcessor", this); SibTr.exit(tc, "getMessageProcessor", _messageProcessor); } return _messageProces...
[ "@", "Deprecated", "public", "JsEngineComponent", "getMessageProcessor", "(", "String", "name", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "t...
Gets the instance of the MP associated with this ME @deprecated @param name @return JsEngineComponent
[ "Gets", "the", "instance", "of", "the", "MP", "associated", "with", "this", "ME" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L852-L861
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.resolveExceptionDestination
private void resolveExceptionDestination(BaseDestinationDefinition dd) { String thisMethodName = "resolveExceptionDestination"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, dd.getName()); } // If variable substitution s...
java
private void resolveExceptionDestination(BaseDestinationDefinition dd) { String thisMethodName = "resolveExceptionDestination"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, dd.getName()); } // If variable substitution s...
[ "private", "void", "resolveExceptionDestination", "(", "BaseDestinationDefinition", "dd", ")", "{", "String", "thisMethodName", "=", "\"resolveExceptionDestination\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabl...
Resolve, if necessary, a variable Exception Destination name in the specified DD to it's runtime value. @param dd the DestinationDefinition to be checked, and modified
[ "Resolve", "if", "necessary", "a", "variable", "Exception", "Destination", "name", "in", "the", "specified", "DD", "to", "it", "s", "runtime", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L1022-L1041
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.getSIBDestinationByUuid
BaseDestinationDefinition getSIBDestinationByUuid(String bus, String key, boolean newCache) throws SIBExceptionDestinationNotFound, SIBExceptionBase { String thisMethodName = "getSIBDestinationByUuid"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisM...
java
BaseDestinationDefinition getSIBDestinationByUuid(String bus, String key, boolean newCache) throws SIBExceptionDestinationNotFound, SIBExceptionBase { String thisMethodName = "getSIBDestinationByUuid"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisM...
[ "BaseDestinationDefinition", "getSIBDestinationByUuid", "(", "String", "bus", ",", "String", "key", ",", "boolean", "newCache", ")", "throws", "SIBExceptionDestinationNotFound", ",", "SIBExceptionBase", "{", "String", "thisMethodName", "=", "\"getSIBDestinationByUuid\"", ";...
Accessor method to return a destination definition. @param bus @param key @param newCache @return the destination cache
[ "Accessor", "method", "to", "return", "a", "destination", "definition", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L1133-L1157
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.getState
public final String getState() { String thisMethodName = "getState"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); SibTr.exit(tc, thisMethodName, states[_state]); } return states[_state]; }
java
public final String getState() { String thisMethodName = "getState"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); SibTr.exit(tc, thisMethodName, states[_state]); } return states[_state]; }
[ "public", "final", "String", "getState", "(", ")", "{", "String", "thisMethodName", "=", "\"getState\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "...
Get the state of this ME @return String
[ "Get", "the", "state", "of", "this", "ME" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L1228-L1238
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.isStarted
public final boolean isStarted() { String thisMethodName = "isStarted"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); } boolean retVal = (_state == STATE_STARTED); if (TraceComponent.isAnyTracingEnabled()...
java
public final boolean isStarted() { String thisMethodName = "isStarted"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); } boolean retVal = (_state == STATE_STARTED); if (TraceComponent.isAnyTracingEnabled()...
[ "public", "final", "boolean", "isStarted", "(", ")", "{", "String", "thisMethodName", "=", "\"isStarted\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", ...
Returns an indication of whether this ME is started or not @return true if this messaging egine is started; else false.
[ "Returns", "an", "indication", "of", "whether", "this", "ME", "is", "started", "or", "not" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L1294-L1309
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.addLocalizationPoint
final boolean addLocalizationPoint(LWMConfig lp, DestinationDefinition dd) { String thisMethodName = "addLocalizationPoint"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, lp); } boolean success = _localizer.addLocalizati...
java
final boolean addLocalizationPoint(LWMConfig lp, DestinationDefinition dd) { String thisMethodName = "addLocalizationPoint"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, lp); } boolean success = _localizer.addLocalizati...
[ "final", "boolean", "addLocalizationPoint", "(", "LWMConfig", "lp", ",", "DestinationDefinition", "dd", ")", "{", "String", "thisMethodName", "=", "\"addLocalizationPoint\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", ...
Pass the request to add a new localization point onto the localizer object. @param lp localization point definition @return boolean success Whether the LP was successfully added
[ "Pass", "the", "request", "to", "add", "a", "new", "localization", "point", "onto", "the", "localizer", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L1473-L1487
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.alterLocalizationPoint
final void alterLocalizationPoint(BaseDestination dest,LWMConfig lp) { String thisMethodName = "alterLocalizationPoint"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, lp); } try { _localizer.alterLocalization...
java
final void alterLocalizationPoint(BaseDestination dest,LWMConfig lp) { String thisMethodName = "alterLocalizationPoint"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, lp); } try { _localizer.alterLocalization...
[ "final", "void", "alterLocalizationPoint", "(", "BaseDestination", "dest", ",", "LWMConfig", "lp", ")", "{", "String", "thisMethodName", "=", "\"alterLocalizationPoint\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "is...
Pass the request to alter a localization point onto the localizer object. @param lp localization point definition
[ "Pass", "the", "request", "to", "alter", "a", "localization", "point", "onto", "the", "localizer", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L1495-L1512
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.deleteLocalizationPoint
final void deleteLocalizationPoint(JsBus bus, LWMConfig dest) { String thisMethodName = "deleteLocalizationPoint"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, dest); } try { _localizer.deleteLocalizationPoi...
java
final void deleteLocalizationPoint(JsBus bus, LWMConfig dest) { String thisMethodName = "deleteLocalizationPoint"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, dest); } try { _localizer.deleteLocalizationPoi...
[ "final", "void", "deleteLocalizationPoint", "(", "JsBus", "bus", ",", "LWMConfig", "dest", ")", "{", "String", "thisMethodName", "=", "\"deleteLocalizationPoint\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEn...
Pass the request to delete a localization point onto the localizer object. @param lp localization point definition
[ "Pass", "the", "request", "to", "delete", "a", "localization", "point", "onto", "the", "localizer", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L1519-L1540
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.setLPConfigObjects
final void setLPConfigObjects(List config) { String thisMethodName = "setLPConfigObjects"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, "Number of LPs =" + config.size()); } _lpConfig.clear(); _lpConfig.addAll(c...
java
final void setLPConfigObjects(List config) { String thisMethodName = "setLPConfigObjects"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, "Number of LPs =" + config.size()); } _lpConfig.clear(); _lpConfig.addAll(c...
[ "final", "void", "setLPConfigObjects", "(", "List", "config", ")", "{", "String", "thisMethodName", "=", "\"setLPConfigObjects\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "S...
Update the cache of localization point config objects. This method is used by dynamic config to refresh the cache. @param config The _lpConfig to set.
[ "Update", "the", "cache", "of", "localization", "point", "config", "objects", ".", "This", "method", "is", "used", "by", "dynamic", "config", "to", "refresh", "the", "cache", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L1565-L1579
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.isEventNotificationPropertySet
public boolean isEventNotificationPropertySet() { String thisMethodName = "isEventNotificationPropertySet"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); } boolean enabled = true; if (TraceComponent.isAny...
java
public boolean isEventNotificationPropertySet() { String thisMethodName = "isEventNotificationPropertySet"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); } boolean enabled = true; if (TraceComponent.isAny...
[ "public", "boolean", "isEventNotificationPropertySet", "(", ")", "{", "String", "thisMethodName", "=", "\"isEventNotificationPropertySet\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{"...
Test whether the Event Notification property has been set. This method resolves the setting for the specific ME and the setting for the bus.
[ "Test", "whether", "the", "Event", "Notification", "property", "has", "been", "set", ".", "This", "method", "resolves", "the", "setting", "for", "the", "specific", "ME", "and", "the", "setting", "for", "the", "bus", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L1585-L1600
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.getMainImpl
public JsMainImpl getMainImpl() { String thisMethodName = "getMainImpl"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); SibTr.exit(tc, thisMethodName, _mainImpl); } return _mainImpl; }
java
public JsMainImpl getMainImpl() { String thisMethodName = "getMainImpl"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); SibTr.exit(tc, thisMethodName, _mainImpl); } return _mainImpl; }
[ "public", "JsMainImpl", "getMainImpl", "(", ")", "{", "String", "thisMethodName", "=", "\"getMainImpl\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(...
Returns a reference to the repository service. This is used in conjunction with ConfigRoot to access EMF configuration documents. @return Reference to the repository service.
[ "Returns", "a", "reference", "to", "the", "repository", "service", ".", "This", "is", "used", "in", "conjunction", "with", "ConfigRoot", "to", "access", "EMF", "configuration", "documents", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L1608-L1618
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java
BaseMessagingEngineImpl.loadClass
protected final JsEngineComponent loadClass(String className, int stopSeq, boolean reportError) { String thisMethodName = "loadClass"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, new Object[] { className, Integer.toString(stopSeq), Boo...
java
protected final JsEngineComponent loadClass(String className, int stopSeq, boolean reportError) { String thisMethodName = "loadClass"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, new Object[] { className, Integer.toString(stopSeq), Boo...
[ "protected", "final", "JsEngineComponent", "loadClass", "(", "String", "className", ",", "int", "stopSeq", ",", "boolean", "reportError", ")", "{", "String", "thisMethodName", "=", "\"loadClass\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ...
Load the named class and add it to the list of engine components. @param className Fully qualified class name of class to load. @param stopSeq @param reportError Set to false for classes we don't care about. @return
[ "Load", "the", "named", "class", "and", "add", "it", "to", "the", "list", "of", "engine", "components", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/BaseMessagingEngineImpl.java#L1695-L1755
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/RemoteQPConsumerKeyGroup.java
RemoteQPConsumerKeyGroup.addMember
public void addMember(JSConsumerKey key) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addMember", key); super.addMember(key); // superclass method does most of the work synchronized (criteriaLock) { if (allCriterias != nul...
java
public void addMember(JSConsumerKey key) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addMember", key); super.addMember(key); // superclass method does most of the work synchronized (criteriaLock) { if (allCriterias != nul...
[ "public", "void", "addMember", "(", "JSConsumerKey", "key", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",",...
overriding superclass method
[ "overriding", "superclass", "method" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/RemoteQPConsumerKeyGroup.java#L75-L100
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/wsspi/webcontainer31/WCCustomProperties31.java
WCCustomProperties31.setCustomPropertyVariables
public static void setCustomPropertyVariables() { UPGRADE_READ_TIMEOUT = Integer.valueOf(customProps.getProperty("upgradereadtimeout", Integer.toString(TCPReadRequestContext.NO_TIMEOUT))).intValue(); UPGRADE_WRITE_TIMEOUT = Integer.valueOf(customProps.getProperty("upgradewritetimeout", Integer....
java
public static void setCustomPropertyVariables() { UPGRADE_READ_TIMEOUT = Integer.valueOf(customProps.getProperty("upgradereadtimeout", Integer.toString(TCPReadRequestContext.NO_TIMEOUT))).intValue(); UPGRADE_WRITE_TIMEOUT = Integer.valueOf(customProps.getProperty("upgradewritetimeout", Integer....
[ "public", "static", "void", "setCustomPropertyVariables", "(", ")", "{", "UPGRADE_READ_TIMEOUT", "=", "Integer", ".", "valueOf", "(", "customProps", ".", "getProperty", "(", "\"upgradereadtimeout\"", ",", "Integer", ".", "toString", "(", "TCPReadRequestContext", ".", ...
The timeout to use when the request has been upgraded and a write is happening
[ "The", "timeout", "to", "use", "when", "the", "request", "has", "been", "upgraded", "and", "a", "write", "is", "happening" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/wsspi/webcontainer31/WCCustomProperties31.java#L29-L33
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java
InvalidationAuditDaemon.registerInvalidations
public void registerInvalidations(String cacheName, Iterator invalidations) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); if (invalidationTableList != null) { try { invalidationTableList.readWriteLock.writeLock().lock(); while (invalidations.hasNext()) { ...
java
public void registerInvalidations(String cacheName, Iterator invalidations) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); if (invalidationTableList != null) { try { invalidationTableList.readWriteLock.writeLock().lock(); while (invalidations.hasNext()) { ...
[ "public", "void", "registerInvalidations", "(", "String", "cacheName", ",", "Iterator", "invalidations", ")", "{", "InvalidationTableList", "invalidationTableList", "=", "getInvalidationTableList", "(", "cacheName", ")", ";", "if", "(", "invalidationTableList", "!=", "n...
This adds id and template invalidations. @param invalidations The list of invalidations. This is a Vector of either InvalidateByIdEvent or InvalidateByTemplateEvent.
[ "This", "adds", "id", "and", "template", "invalidations", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L102-L145
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java
InvalidationAuditDaemon.filterEntry
public CacheEntry filterEntry(String cacheName, CacheEntry cacheEntry) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); try { invalidationTableList.readWriteLock.readLock().lock(); return internalFilterEntry(cacheName, invalidationTableList, cacheEntry); } finally { ...
java
public CacheEntry filterEntry(String cacheName, CacheEntry cacheEntry) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); try { invalidationTableList.readWriteLock.readLock().lock(); return internalFilterEntry(cacheName, invalidationTableList, cacheEntry); } finally { ...
[ "public", "CacheEntry", "filterEntry", "(", "String", "cacheName", ",", "CacheEntry", "cacheEntry", ")", "{", "InvalidationTableList", "invalidationTableList", "=", "getInvalidationTableList", "(", "cacheName", ")", ";", "try", "{", "invalidationTableList", ".", "readWr...
This ensures the specified CacheEntrys have not been invalidated. @param cacheEntry The unfiltered CacheEntry. @return The filtered CacheEntry.
[ "This", "ensures", "the", "specified", "CacheEntrys", "have", "not", "been", "invalidated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L153-L162
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java
InvalidationAuditDaemon.filterEntryList
public ArrayList filterEntryList(String cacheName, ArrayList incomingList) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); try { invalidationTableList.readWriteLock.readLock().lock(); Iterator it = incomingList.iterator(); while (it.hasNext()) { Object obj = it.next...
java
public ArrayList filterEntryList(String cacheName, ArrayList incomingList) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); try { invalidationTableList.readWriteLock.readLock().lock(); Iterator it = incomingList.iterator(); while (it.hasNext()) { Object obj = it.next...
[ "public", "ArrayList", "filterEntryList", "(", "String", "cacheName", ",", "ArrayList", "incomingList", ")", "{", "InvalidationTableList", "invalidationTableList", "=", "getInvalidationTableList", "(", "cacheName", ")", ";", "try", "{", "invalidationTableList", ".", "re...
This ensures all incoming CacheEntrys have not been invalidated. @param incomingList The unfiltered list of CacheEntrys. @return The filtered list of CacheEntrys.
[ "This", "ensures", "all", "incoming", "CacheEntrys", "have", "not", "been", "invalidated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L170-L192
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java
InvalidationAuditDaemon.internalFilterEntry
private final CacheEntry internalFilterEntry(String cacheName, InvalidationTableList invalidationTableList, CacheEntry cacheEntry) { InvalidateByIdEvent idEvent = null; if (cacheEntry == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "internalFilterEntry(): Filtered cacheName=" + cacheName + " CE == NULL");...
java
private final CacheEntry internalFilterEntry(String cacheName, InvalidationTableList invalidationTableList, CacheEntry cacheEntry) { InvalidateByIdEvent idEvent = null; if (cacheEntry == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "internalFilterEntry(): Filtered cacheName=" + cacheName + " CE == NULL");...
[ "private", "final", "CacheEntry", "internalFilterEntry", "(", "String", "cacheName", ",", "InvalidationTableList", "invalidationTableList", ",", "CacheEntry", "cacheEntry", ")", "{", "InvalidateByIdEvent", "idEvent", "=", "null", ";", "if", "(", "cacheEntry", "==", "n...
This is a helper method that filters a single CacheEntry. It is called by the filterEntry and filterEntryList methods. @param cacheEntry The unfiltered CacheEntry. @return The filtered CacheEntry.
[ "This", "is", "a", "helper", "method", "that", "filters", "a", "single", "CacheEntry", ".", "It", "is", "called", "by", "the", "filterEntry", "and", "filterEntryList", "methods", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L201-L248
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java
InvalidationAuditDaemon.filterExternalCacheFragment
public ExternalInvalidation filterExternalCacheFragment(String cacheName, ExternalInvalidation externalCacheFragment) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); try { invalidationTableList.readWriteLock.readLock().lock(); return internalFilterExternalCacheFragment(cac...
java
public ExternalInvalidation filterExternalCacheFragment(String cacheName, ExternalInvalidation externalCacheFragment) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); try { invalidationTableList.readWriteLock.readLock().lock(); return internalFilterExternalCacheFragment(cac...
[ "public", "ExternalInvalidation", "filterExternalCacheFragment", "(", "String", "cacheName", ",", "ExternalInvalidation", "externalCacheFragment", ")", "{", "InvalidationTableList", "invalidationTableList", "=", "getInvalidationTableList", "(", "cacheName", ")", ";", "try", "...
This ensures that the specified ExternalCacheFragment has not been invalidated. @param externalCacheFragment The unfiltered ExternalCacheFragment. @return The filtered ExternalCacheFragment.
[ "This", "ensures", "that", "the", "specified", "ExternalCacheFragment", "has", "not", "been", "invalidated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L256-L264
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java
InvalidationAuditDaemon.filterExternalCacheFragmentList
public ArrayList filterExternalCacheFragmentList(String cacheName, ArrayList incomingList) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); try { invalidationTableList.readWriteLock.readLock().lock(); Iterator it = incomingList.iterator(); while (it.hasNext()) { Exte...
java
public ArrayList filterExternalCacheFragmentList(String cacheName, ArrayList incomingList) { InvalidationTableList invalidationTableList = getInvalidationTableList(cacheName); try { invalidationTableList.readWriteLock.readLock().lock(); Iterator it = incomingList.iterator(); while (it.hasNext()) { Exte...
[ "public", "ArrayList", "filterExternalCacheFragmentList", "(", "String", "cacheName", ",", "ArrayList", "incomingList", ")", "{", "InvalidationTableList", "invalidationTableList", "=", "getInvalidationTableList", "(", "cacheName", ")", ";", "try", "{", "invalidationTableLis...
This ensures all incoming ExternalCacheFragments have not been invalidated. @param incomingList The unfiltered list of ExternalCacheFragments. @return The filtered list of ExternalCacheFragments.
[ "This", "ensures", "all", "incoming", "ExternalCacheFragments", "have", "not", "been", "invalidated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L273-L293
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java
InvalidationAuditDaemon.internalFilterExternalCacheFragment
private final ExternalInvalidation internalFilterExternalCacheFragment(String cacheName, InvalidationTableList invalidationTableList, ExternalInvalidation externalCacheFragment) { if (externalCacheFragment == null) { return null; } long timeStamp = externalCacheFragment.getTimeStamp(); if (collision(invalida...
java
private final ExternalInvalidation internalFilterExternalCacheFragment(String cacheName, InvalidationTableList invalidationTableList, ExternalInvalidation externalCacheFragment) { if (externalCacheFragment == null) { return null; } long timeStamp = externalCacheFragment.getTimeStamp(); if (collision(invalida...
[ "private", "final", "ExternalInvalidation", "internalFilterExternalCacheFragment", "(", "String", "cacheName", ",", "InvalidationTableList", "invalidationTableList", ",", "ExternalInvalidation", "externalCacheFragment", ")", "{", "if", "(", "externalCacheFragment", "==", "null"...
This is a helper method that filters a single ExternalCacheFragment. It is called by the filterExternalCacheFragment and filterExternalCacheFragmentList methods. @param externalCacheFragment The unfiltered ExternalCacheFragment. @return The filtered ExternalCacheFragment.
[ "This", "is", "a", "helper", "method", "that", "filters", "a", "single", "ExternalCacheFragment", ".", "It", "is", "called", "by", "the", "filterExternalCacheFragment", "and", "filterExternalCacheFragmentList", "methods", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L303-L325
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java
InvalidationAuditDaemon.collision
private final boolean collision(Map<Object, InvalidationEvent> hashtable, Enumeration enumeration, long timeStamp) { while (enumeration.hasMoreElements()) { Object key = enumeration.nextElement(); InvalidationEvent invalidationEvent = (InvalidationEvent) hashtable.get(key); if ((invalidationEvent != null) ...
java
private final boolean collision(Map<Object, InvalidationEvent> hashtable, Enumeration enumeration, long timeStamp) { while (enumeration.hasMoreElements()) { Object key = enumeration.nextElement(); InvalidationEvent invalidationEvent = (InvalidationEvent) hashtable.get(key); if ((invalidationEvent != null) ...
[ "private", "final", "boolean", "collision", "(", "Map", "<", "Object", ",", "InvalidationEvent", ">", "hashtable", ",", "Enumeration", "enumeration", ",", "long", "timeStamp", ")", "{", "while", "(", "enumeration", ".", "hasMoreElements", "(", ")", ")", "{", ...
This is a helper method that checks for a collision. @param hashtable A Hashtable of invalidation events. @param enumeration An Enumeration of @return True if there is an item in the enumeration that is specified in the hashtable such that the hashtable entry is newer than the timeStamp.
[ "This", "is", "a", "helper", "method", "that", "checks", "for", "a", "collision", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L336-L345
train
OpenLiberty/open-liberty
dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java
InvalidationAuditDaemon.getInvalidationTableList
private InvalidationTableList getInvalidationTableList(String cacheName) { InvalidationTableList invalidationTableList = cacheinvalidationTables.get(cacheName); if (invalidationTableList == null) { synchronized (this) { invalidationTableList = new InvalidationTableList(); cacheinvalidationTables.put(c...
java
private InvalidationTableList getInvalidationTableList(String cacheName) { InvalidationTableList invalidationTableList = cacheinvalidationTables.get(cacheName); if (invalidationTableList == null) { synchronized (this) { invalidationTableList = new InvalidationTableList(); cacheinvalidationTables.put(c...
[ "private", "InvalidationTableList", "getInvalidationTableList", "(", "String", "cacheName", ")", "{", "InvalidationTableList", "invalidationTableList", "=", "cacheinvalidationTables", ".", "get", "(", "cacheName", ")", ";", "if", "(", "invalidationTableList", "==", "null"...
Retrieve the InvalidationTableList by the specified cacheName.
[ "Retrieve", "the", "InvalidationTableList", "by", "the", "specified", "cacheName", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/InvalidationAuditDaemon.java#L350-L359
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java
KernelUtils.getBootstrapJar
public static File getBootstrapJar() { if (launchHome == null) { if (launchURL == null) { // How were we launched? launchURL = getLocationFromClass(KernelUtils.class); } launchHome = FileUtils.getFile(launchURL); } return launc...
java
public static File getBootstrapJar() { if (launchHome == null) { if (launchURL == null) { // How were we launched? launchURL = getLocationFromClass(KernelUtils.class); } launchHome = FileUtils.getFile(launchURL); } return launc...
[ "public", "static", "File", "getBootstrapJar", "(", ")", "{", "if", "(", "launchHome", "==", "null", ")", "{", "if", "(", "launchURL", "==", "null", ")", "{", "// How were we launched?", "launchURL", "=", "getLocationFromClass", "(", "KernelUtils", ".", "class...
The location of the launch jar is only obtained once. @return a File representing the location of the launching jar
[ "The", "location", "of", "the", "launch", "jar", "is", "only", "obtained", "once", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java#L62-L72
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java
KernelUtils.getBootstrapLibDir
public static File getBootstrapLibDir() { if (libDir.get() == null) { libDir = StaticValue.mutateStaticValue(libDir, new Utils.FileInitializer(getBootstrapJar().getParentFile())); } return libDir.get(); }
java
public static File getBootstrapLibDir() { if (libDir.get() == null) { libDir = StaticValue.mutateStaticValue(libDir, new Utils.FileInitializer(getBootstrapJar().getParentFile())); } return libDir.get(); }
[ "public", "static", "File", "getBootstrapLibDir", "(", ")", "{", "if", "(", "libDir", ".", "get", "(", ")", "==", "null", ")", "{", "libDir", "=", "StaticValue", ".", "mutateStaticValue", "(", "libDir", ",", "new", "Utils", ".", "FileInitializer", "(", "...
The lib dir is the parent of the bootstrap jar @return a File representing the location of the launching jar
[ "The", "lib", "dir", "is", "the", "parent", "of", "the", "bootstrap", "jar" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java#L102-L107
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java
KernelUtils.getProperties
public static Properties getProperties(final InputStream is) throws IOException { Properties p = new Properties(); try { if (is != null) { p.load(is); // Look for "values" and strip the quotes to values for (Entry<Object, Object> entry : p.en...
java
public static Properties getProperties(final InputStream is) throws IOException { Properties p = new Properties(); try { if (is != null) { p.load(is); // Look for "values" and strip the quotes to values for (Entry<Object, Object> entry : p.en...
[ "public", "static", "Properties", "getProperties", "(", "final", "InputStream", "is", ")", "throws", "IOException", "{", "Properties", "p", "=", "new", "Properties", "(", ")", ";", "try", "{", "if", "(", "is", "!=", "null", ")", "{", "p", ".", "load", ...
Read properties from input stream. Will close the input stream before returning. @param is InputStream to read properties from @return Properties object; will be empty if InputStream is null or empty. @throws LaunchException
[ "Read", "properties", "from", "input", "stream", ".", "Will", "close", "the", "input", "stream", "before", "returning", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java#L128-L149
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java
KernelUtils.getClassFromLine
private static String getClassFromLine(String line) { line = line.trim(); // Skip commented lines if (line.length() == 0 || line.startsWith("#")) return null; // lop off spaces/tabs/end-of-line-comments String[] className = line.split("[\\s#]"); if (classNa...
java
private static String getClassFromLine(String line) { line = line.trim(); // Skip commented lines if (line.length() == 0 || line.startsWith("#")) return null; // lop off spaces/tabs/end-of-line-comments String[] className = line.split("[\\s#]"); if (classNa...
[ "private", "static", "String", "getClassFromLine", "(", "String", "line", ")", "{", "line", "=", "line", ".", "trim", "(", ")", ";", "// Skip commented lines", "if", "(", "line", ".", "length", "(", ")", "==", "0", "||", "line", ".", "startsWith", "(", ...
Read a service class from the given line. Must ignore whitespace, and skip comment lines, or end of line comments. @param line @return class name (first text on a line not starting with #) or null for empty/comment lines
[ "Read", "a", "service", "class", "from", "the", "given", "line", ".", "Must", "ignore", "whitespace", "and", "skip", "comment", "lines", "or", "end", "of", "line", "comments", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelUtils.java#L180-L194
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/statemodel/ListStatistics.java
ListStatistics.checkSpillLimits
public final void checkSpillLimits() { long currentTotal; long currentSize; synchronized(this) { currentTotal = _countTotal; currentSize = _countTotalBytes; } if (!_spilling) { // We are not currently spilling so we need t...
java
public final void checkSpillLimits() { long currentTotal; long currentSize; synchronized(this) { currentTotal = _countTotal; currentSize = _countTotalBytes; } if (!_spilling) { // We are not currently spilling so we need t...
[ "public", "final", "void", "checkSpillLimits", "(", ")", "{", "long", "currentTotal", ";", "long", "currentSize", ";", "synchronized", "(", "this", ")", "{", "currentTotal", "=", "_countTotal", ";", "currentSize", "=", "_countTotalBytes", ";", "}", "if", "(", ...
Instead of just triggering spilling when we have a certain number of Items on a stream we now have the ability to trigger spilling if the total size of the Items on a stream goes over a pre-defined limit. This should allow us to control the memory usage of a stream in a more intuitive fashion. For the count limit we u...
[ "Instead", "of", "just", "triggering", "spilling", "when", "we", "have", "a", "certain", "number", "of", "Items", "on", "a", "stream", "we", "now", "have", "the", "ability", "to", "trigger", "spilling", "if", "the", "total", "size", "of", "the", "Items", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/statemodel/ListStatistics.java#L121-L181
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/statemodel/ListStatistics.java
ListStatistics.updateTotal
public final void updateTotal(int oldSizeInBytes, int newSizeInBytes) throws SevereMessageStoreException { boolean doCallback = false; synchronized(this) { // We're only replacing an old size estimation // with a new one so we do not need to change // or ...
java
public final void updateTotal(int oldSizeInBytes, int newSizeInBytes) throws SevereMessageStoreException { boolean doCallback = false; synchronized(this) { // We're only replacing an old size estimation // with a new one so we do not need to change // or ...
[ "public", "final", "void", "updateTotal", "(", "int", "oldSizeInBytes", ",", "int", "newSizeInBytes", ")", "throws", "SevereMessageStoreException", "{", "boolean", "doCallback", "=", "false", ";", "synchronized", "(", "this", ")", "{", "// We're only replacing an old ...
once we have the Item available to determine it from.
[ "once", "we", "have", "the", "Item", "available", "to", "determine", "it", "from", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/statemodel/ListStatistics.java#L588-L618
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java
CompositeTagAttributeUtils.addUnspecifiedAttributes
public static void addUnspecifiedAttributes(FeatureDescriptor descriptor, Tag tag, String[] standardAttributesSorted, FaceletContext ctx) { for (TagAttribute attribute : tag.getAttributes().getAll()) { final String name = attribute.getLocalName(); if (Arrays.bina...
java
public static void addUnspecifiedAttributes(FeatureDescriptor descriptor, Tag tag, String[] standardAttributesSorted, FaceletContext ctx) { for (TagAttribute attribute : tag.getAttributes().getAll()) { final String name = attribute.getLocalName(); if (Arrays.bina...
[ "public", "static", "void", "addUnspecifiedAttributes", "(", "FeatureDescriptor", "descriptor", ",", "Tag", "tag", ",", "String", "[", "]", "standardAttributesSorted", ",", "FaceletContext", "ctx", ")", "{", "for", "(", "TagAttribute", "attribute", ":", "tag", "."...
Adds all attributes from the given Tag which are NOT listed in standardAttributesSorted as a ValueExpression to the given BeanDescriptor. NOTE that standardAttributesSorted has to be alphabetically sorted in order to use binary search. @param descriptor @param tag @param standardAttributesSorted @param ctx
[ "Adds", "all", "attributes", "from", "the", "given", "Tag", "which", "are", "NOT", "listed", "in", "standardAttributesSorted", "as", "a", "ValueExpression", "to", "the", "given", "BeanDescriptor", ".", "NOTE", "that", "standardAttributesSorted", "has", "to", "be",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java#L52-L65
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java
CompositeTagAttributeUtils.containsUnspecifiedAttributes
public static boolean containsUnspecifiedAttributes(Tag tag, String[] standardAttributesSorted) { for (TagAttribute attribute : tag.getAttributes().getAll()) { final String name = attribute.getLocalName(); if (Arrays.binarySearch(standardAttributesSorted, name) < 0) ...
java
public static boolean containsUnspecifiedAttributes(Tag tag, String[] standardAttributesSorted) { for (TagAttribute attribute : tag.getAttributes().getAll()) { final String name = attribute.getLocalName(); if (Arrays.binarySearch(standardAttributesSorted, name) < 0) ...
[ "public", "static", "boolean", "containsUnspecifiedAttributes", "(", "Tag", "tag", ",", "String", "[", "]", "standardAttributesSorted", ")", "{", "for", "(", "TagAttribute", "attribute", ":", "tag", ".", "getAttributes", "(", ")", ".", "getAll", "(", ")", ")",...
Returns true if the given Tag contains attributes that are not specified in standardAttributesSorted. NOTE that standardAttributesSorted has to be alphabetically sorted in order to use binary search. @param tag @param standardAttributesSorted @return
[ "Returns", "true", "if", "the", "given", "Tag", "contains", "attributes", "that", "are", "not", "specified", "in", "standardAttributesSorted", ".", "NOTE", "that", "standardAttributesSorted", "has", "to", "be", "alphabetically", "sorted", "in", "order", "to", "use...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java#L76-L87
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java
CompositeTagAttributeUtils.addDevelopmentAttributes
public static void addDevelopmentAttributes(FeatureDescriptor descriptor, FaceletContext ctx, TagAttribute displayName, TagAttribute shortDescription, TagAttribute expert, TagAttribute hidden, TagAttribute preferred) { if (displayName != null) { descriptor.setDi...
java
public static void addDevelopmentAttributes(FeatureDescriptor descriptor, FaceletContext ctx, TagAttribute displayName, TagAttribute shortDescription, TagAttribute expert, TagAttribute hidden, TagAttribute preferred) { if (displayName != null) { descriptor.setDi...
[ "public", "static", "void", "addDevelopmentAttributes", "(", "FeatureDescriptor", "descriptor", ",", "FaceletContext", "ctx", ",", "TagAttribute", "displayName", ",", "TagAttribute", "shortDescription", ",", "TagAttribute", "expert", ",", "TagAttribute", "hidden", ",", ...
Applies the "displayName", "shortDescription", "expert", "hidden", and "preferred" attributes to the BeanDescriptor. @param descriptor @param ctx @param displayName @param shortDescription @param expert @param hidden @param preferred
[ "Applies", "the", "displayName", "shortDescription", "expert", "hidden", "and", "preferred", "attributes", "to", "the", "BeanDescriptor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java#L100-L124
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java
CompositeTagAttributeUtils.addDevelopmentAttributesLiteral
public static void addDevelopmentAttributesLiteral(FeatureDescriptor descriptor, TagAttribute displayName, TagAttribute shortDescription, TagAttribute expert, TagAttribute hidden, TagAttribute preferred) { if (displayName != null) { descriptor.setDisplayName(dis...
java
public static void addDevelopmentAttributesLiteral(FeatureDescriptor descriptor, TagAttribute displayName, TagAttribute shortDescription, TagAttribute expert, TagAttribute hidden, TagAttribute preferred) { if (displayName != null) { descriptor.setDisplayName(dis...
[ "public", "static", "void", "addDevelopmentAttributesLiteral", "(", "FeatureDescriptor", "descriptor", ",", "TagAttribute", "displayName", ",", "TagAttribute", "shortDescription", ",", "TagAttribute", "expert", ",", "TagAttribute", "hidden", ",", "TagAttribute", "preferred"...
Applies the "displayName", "shortDescription", "expert", "hidden", and "preferred" attributes to the BeanDescriptor if they are all literal values. Thus no FaceletContext is necessary. @param descriptor @param displayName @param shortDescription @param expert @param hidden @param preferred
[ "Applies", "the", "displayName", "shortDescription", "expert", "hidden", "and", "preferred", "attributes", "to", "the", "BeanDescriptor", "if", "they", "are", "all", "literal", "values", ".", "Thus", "no", "FaceletContext", "is", "necessary", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java#L137-L161
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java
CompositeTagAttributeUtils.areAttributesLiteral
public static boolean areAttributesLiteral(TagAttribute... attributes) { for (TagAttribute attribute : attributes) { if (attribute != null && !attribute.isLiteral()) { // the attribute exists and is not literal return false; } ...
java
public static boolean areAttributesLiteral(TagAttribute... attributes) { for (TagAttribute attribute : attributes) { if (attribute != null && !attribute.isLiteral()) { // the attribute exists and is not literal return false; } ...
[ "public", "static", "boolean", "areAttributesLiteral", "(", "TagAttribute", "...", "attributes", ")", "{", "for", "(", "TagAttribute", "attribute", ":", "attributes", ")", "{", "if", "(", "attribute", "!=", "null", "&&", "!", "attribute", ".", "isLiteral", "("...
Returns true if all specified attributes are either null or literal. @param attributes
[ "Returns", "true", "if", "all", "specified", "attributes", "are", "either", "null", "or", "literal", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeTagAttributeUtils.java#L167-L179
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/resource/BaseResourceHandlerSupport.java
BaseResourceHandlerSupport.calculateFacesServletMapping
protected static FacesServletMapping calculateFacesServletMapping( String servletPath, String pathInfo) { if (pathInfo != null) { // If there is a "extra path", it's definitely no extension mapping. // Now we just have to determine the path which has been specified ...
java
protected static FacesServletMapping calculateFacesServletMapping( String servletPath, String pathInfo) { if (pathInfo != null) { // If there is a "extra path", it's definitely no extension mapping. // Now we just have to determine the path which has been specified ...
[ "protected", "static", "FacesServletMapping", "calculateFacesServletMapping", "(", "String", "servletPath", ",", "String", "pathInfo", ")", "{", "if", "(", "pathInfo", "!=", "null", ")", "{", "// If there is a \"extra path\", it's definitely no extension mapping.", "// Now we...
Determines the mapping of the FacesServlet in the web.xml configuration file. However, there is no need to actually parse this configuration file as runtime information is sufficient. @param servletPath The servletPath of the current request @param pathInfo The pathInfo of the current request @return the mapping of...
[ "Determines", "the", "mapping", "of", "the", "FacesServlet", "in", "the", "web", ".", "xml", "configuration", "file", ".", "However", "there", "is", "no", "need", "to", "actually", "parse", "this", "configuration", "file", "as", "runtime", "information", "is",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/resource/BaseResourceHandlerSupport.java#L190-L224
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java
WebSphereCDIDeploymentImpl.isCDIEnabled
private boolean isCDIEnabled(Collection<WebSphereBeanDeploymentArchive> bdas) { boolean anyHasBeans = false; for (WebSphereBeanDeploymentArchive bda : bdas) { boolean hasBeans = false; if (bda.getType() != ArchiveType.RUNTIME_EXTENSION) { hasBeans = isCDIEnabled(...
java
private boolean isCDIEnabled(Collection<WebSphereBeanDeploymentArchive> bdas) { boolean anyHasBeans = false; for (WebSphereBeanDeploymentArchive bda : bdas) { boolean hasBeans = false; if (bda.getType() != ArchiveType.RUNTIME_EXTENSION) { hasBeans = isCDIEnabled(...
[ "private", "boolean", "isCDIEnabled", "(", "Collection", "<", "WebSphereBeanDeploymentArchive", ">", "bdas", ")", "{", "boolean", "anyHasBeans", "=", "false", ";", "for", "(", "WebSphereBeanDeploymentArchive", "bda", ":", "bdas", ")", "{", "boolean", "hasBeans", "...
Do any of the specified BDAs, or any of BDAs accessible by them, have any beans BDAs for Runtime Extensions are ignored @param bdas @return @throws CDIException
[ "Do", "any", "of", "the", "specified", "BDAs", "or", "any", "of", "BDAs", "accessible", "by", "them", "have", "any", "beans" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L202-L217
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java
WebSphereCDIDeploymentImpl.isCDIEnabled
private boolean isCDIEnabled(WebSphereBeanDeploymentArchive bda) { Boolean hasBeans = cdiStatusMap.get(bda.getId()); if (hasBeans == null) { //it's enabled if it has beans or it is an extension which could add beans hasBeans = bda.hasBeans() || bda.isExtension(); //se...
java
private boolean isCDIEnabled(WebSphereBeanDeploymentArchive bda) { Boolean hasBeans = cdiStatusMap.get(bda.getId()); if (hasBeans == null) { //it's enabled if it has beans or it is an extension which could add beans hasBeans = bda.hasBeans() || bda.isExtension(); //se...
[ "private", "boolean", "isCDIEnabled", "(", "WebSphereBeanDeploymentArchive", "bda", ")", "{", "Boolean", "hasBeans", "=", "cdiStatusMap", ".", "get", "(", "bda", ".", "getId", "(", ")", ")", ";", "if", "(", "hasBeans", "==", "null", ")", "{", "//it's enabled...
Does the specified BDA, or any of BDAs accessible by it, have any beans or it is an extension which could add beans @param bda the BDA @return true if the specified BDA, or any of BDAs accessible by it, have any beans
[ "Does", "the", "specified", "BDA", "or", "any", "of", "BDAs", "accessible", "by", "it", "have", "any", "beans", "or", "it", "is", "an", "extension", "which", "could", "add", "beans" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L225-L240
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java
WebSphereCDIDeploymentImpl.isCDIEnabled
@Override public boolean isCDIEnabled(String bdaId) { boolean hasBeans = false; //the top level isCDIEnabled can fail faster if (isCDIEnabled()) { Boolean hasBeansBoolean = cdiStatusMap.get(bdaId); if (hasBeansBoolean == null) { WebSphereBeanDeployme...
java
@Override public boolean isCDIEnabled(String bdaId) { boolean hasBeans = false; //the top level isCDIEnabled can fail faster if (isCDIEnabled()) { Boolean hasBeansBoolean = cdiStatusMap.get(bdaId); if (hasBeansBoolean == null) { WebSphereBeanDeployme...
[ "@", "Override", "public", "boolean", "isCDIEnabled", "(", "String", "bdaId", ")", "{", "boolean", "hasBeans", "=", "false", ";", "//the top level isCDIEnabled can fail faster", "if", "(", "isCDIEnabled", "(", ")", ")", "{", "Boolean", "hasBeansBoolean", "=", "cdi...
Does the specified BDA, or any of BDAs accessible by it, have any beans or an extension which might add beans. @param bdaId the id of the BDA @return true if the specified BDA, or any of BDAs accessible by it, have any beans
[ "Does", "the", "specified", "BDA", "or", "any", "of", "BDAs", "accessible", "by", "it", "have", "any", "beans", "or", "an", "extension", "which", "might", "add", "beans", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L248-L272
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java
WebSphereCDIDeploymentImpl.createBDAOntheFly
private BeanDeploymentArchive createBDAOntheFly(Class<?> beanClass) throws CDIException { //Add the class in one of the bdas if an existing bda share the same classloader as the beanClass //Otherwise, we need to create a brand new bda and then add the bda to the graph //when it reaches here, it ...
java
private BeanDeploymentArchive createBDAOntheFly(Class<?> beanClass) throws CDIException { //Add the class in one of the bdas if an existing bda share the same classloader as the beanClass //Otherwise, we need to create a brand new bda and then add the bda to the graph //when it reaches here, it ...
[ "private", "BeanDeploymentArchive", "createBDAOntheFly", "(", "Class", "<", "?", ">", "beanClass", ")", "throws", "CDIException", "{", "//Add the class in one of the bdas if an existing bda share the same classloader as the beanClass", "//Otherwise, we need to create a brand new bda and ...
Create a bda and wire it in the deployment graph @param beanClass the bean class @return the newly created bda @throws CDIException
[ "Create", "a", "bda", "and", "wire", "it", "in", "the", "deployment", "graph" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L327-L342
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java
WebSphereCDIDeploymentImpl.createNewBdaAndMakeWiring
private BeanDeploymentArchive createNewBdaAndMakeWiring(Class<?> beanClass) { try { OnDemandArchive onDemandArchive = new OnDemandArchive(cdiRuntime, application, beanClass); WebSphereBeanDeploymentArchive newBda = BDAFactory.createBDA(this, onDemandArchive, cdiRuntime); Cla...
java
private BeanDeploymentArchive createNewBdaAndMakeWiring(Class<?> beanClass) { try { OnDemandArchive onDemandArchive = new OnDemandArchive(cdiRuntime, application, beanClass); WebSphereBeanDeploymentArchive newBda = BDAFactory.createBDA(this, onDemandArchive, cdiRuntime); Cla...
[ "private", "BeanDeploymentArchive", "createNewBdaAndMakeWiring", "(", "Class", "<", "?", ">", "beanClass", ")", "{", "try", "{", "OnDemandArchive", "onDemandArchive", "=", "new", "OnDemandArchive", "(", "cdiRuntime", ",", "application", ",", "beanClass", ")", ";", ...
Create a new bda and put the beanClass to the bda and then wire this bda in the deployment according to the classloading hierarchy @param beanClass @param beanClassCL the beanClass classloader @return the newly created bda
[ "Create", "a", "new", "bda", "and", "put", "the", "beanClass", "to", "the", "bda", "and", "then", "wire", "this", "bda", "in", "the", "deployment", "according", "to", "the", "classloading", "hierarchy" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L351-L389
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java
WebSphereCDIDeploymentImpl.findCandidateBDAtoAddThisClass
private BeanDeploymentArchive findCandidateBDAtoAddThisClass(Class<?> beanClass) throws CDIException { for (WebSphereBeanDeploymentArchive wbda : getWebSphereBeanDeploymentArchives()) { if (wbda.getClassLoader() == beanClass.getClassLoader()) { wbda.addToBeanClazzes(beanClass); ...
java
private BeanDeploymentArchive findCandidateBDAtoAddThisClass(Class<?> beanClass) throws CDIException { for (WebSphereBeanDeploymentArchive wbda : getWebSphereBeanDeploymentArchives()) { if (wbda.getClassLoader() == beanClass.getClassLoader()) { wbda.addToBeanClazzes(beanClass); ...
[ "private", "BeanDeploymentArchive", "findCandidateBDAtoAddThisClass", "(", "Class", "<", "?", ">", "beanClass", ")", "throws", "CDIException", "{", "for", "(", "WebSphereBeanDeploymentArchive", "wbda", ":", "getWebSphereBeanDeploymentArchives", "(", ")", ")", "{", "if",...
Find the bda with the same classloader as the beanClass and then add the beanclasses to it @param beanClass @param beanClassCL the beanClass classloader @return the found bda @throws CDIException
[ "Find", "the", "bda", "with", "the", "same", "classloader", "as", "the", "beanClass", "and", "then", "add", "the", "beanclasses", "to", "it" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L399-L418
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java
WebSphereCDIDeploymentImpl.makeWiring
private void makeWiring(WebSphereBeanDeploymentArchive wireFromBda, WebSphereBeanDeploymentArchive wireToBda, ClassLoader wireToBdaCL, ClassLoader wireFromBdaCL) { while (wireFromBdaCL != null) { if (wireFromBdaCL == wireToBdaCL) { wireFromBda.addBeanDeploymentArchive(wireToBda); ...
java
private void makeWiring(WebSphereBeanDeploymentArchive wireFromBda, WebSphereBeanDeploymentArchive wireToBda, ClassLoader wireToBdaCL, ClassLoader wireFromBdaCL) { while (wireFromBdaCL != null) { if (wireFromBdaCL == wireToBdaCL) { wireFromBda.addBeanDeploymentArchive(wireToBda); ...
[ "private", "void", "makeWiring", "(", "WebSphereBeanDeploymentArchive", "wireFromBda", ",", "WebSphereBeanDeploymentArchive", "wireToBda", ",", "ClassLoader", "wireToBdaCL", ",", "ClassLoader", "wireFromBdaCL", ")", "{", "while", "(", "wireFromBdaCL", "!=", "null", ")", ...
Make a wiring from the wireFromBda to the wireToBda if the wireFromBda's classloader is the descendant of the wireToBda's classloader @param wireFromBda @param wireToBda @param wireToBdaCL @param wireFromBdaCL
[ "Make", "a", "wiring", "from", "the", "wireFromBda", "to", "the", "wireToBda", "if", "the", "wireFromBda", "s", "classloader", "is", "the", "descendant", "of", "the", "wireToBda", "s", "classloader" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L428-L441
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java
WebSphereCDIDeploymentImpl.addBeanDeploymentArchive
@Override public void addBeanDeploymentArchive(WebSphereBeanDeploymentArchive bda) throws CDIException { deploymentDBAs.put(bda.getId(), bda); extensionClassLoaders.add(bda.getClassLoader()); ArchiveType type = bda.getType(); if (type != ArchiveType.SHARED_LIB && type != ...
java
@Override public void addBeanDeploymentArchive(WebSphereBeanDeploymentArchive bda) throws CDIException { deploymentDBAs.put(bda.getId(), bda); extensionClassLoaders.add(bda.getClassLoader()); ArchiveType type = bda.getType(); if (type != ArchiveType.SHARED_LIB && type != ...
[ "@", "Override", "public", "void", "addBeanDeploymentArchive", "(", "WebSphereBeanDeploymentArchive", "bda", ")", "throws", "CDIException", "{", "deploymentDBAs", ".", "put", "(", "bda", ".", "getId", "(", ")", ",", "bda", ")", ";", "extensionClassLoaders", ".", ...
Add a BeanDeploymentArchive to this deployment @param bda the BDA to add @throws CDIException
[ "Add", "a", "BeanDeploymentArchive", "to", "this", "deployment" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L561-L570
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java
WebSphereCDIDeploymentImpl.addBeanDeploymentArchives
@Override public void addBeanDeploymentArchives(Set<WebSphereBeanDeploymentArchive> bdas) throws CDIException { for (WebSphereBeanDeploymentArchive bda : bdas) { addBeanDeploymentArchive(bda); } }
java
@Override public void addBeanDeploymentArchives(Set<WebSphereBeanDeploymentArchive> bdas) throws CDIException { for (WebSphereBeanDeploymentArchive bda : bdas) { addBeanDeploymentArchive(bda); } }
[ "@", "Override", "public", "void", "addBeanDeploymentArchives", "(", "Set", "<", "WebSphereBeanDeploymentArchive", ">", "bdas", ")", "throws", "CDIException", "{", "for", "(", "WebSphereBeanDeploymentArchive", "bda", ":", "bdas", ")", "{", "addBeanDeploymentArchive", ...
Add a Set of BDAs to the deployment @param bdas the BDAs to add @throws CDIException
[ "Add", "a", "Set", "of", "BDAs", "to", "the", "deployment" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L578-L583
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java
WebSphereCDIDeploymentImpl.scan
@Override public void scan() throws CDIException { Collection<WebSphereBeanDeploymentArchive> allBDAs = new ArrayList<WebSphereBeanDeploymentArchive>(deploymentDBAs.values()); for (WebSphereBeanDeploymentArchive bda : allBDAs) { bda.scanForBeanDefiningAnnotations(true); } ...
java
@Override public void scan() throws CDIException { Collection<WebSphereBeanDeploymentArchive> allBDAs = new ArrayList<WebSphereBeanDeploymentArchive>(deploymentDBAs.values()); for (WebSphereBeanDeploymentArchive bda : allBDAs) { bda.scanForBeanDefiningAnnotations(true); } ...
[ "@", "Override", "public", "void", "scan", "(", ")", "throws", "CDIException", "{", "Collection", "<", "WebSphereBeanDeploymentArchive", ">", "allBDAs", "=", "new", "ArrayList", "<", "WebSphereBeanDeploymentArchive", ">", "(", "deploymentDBAs", ".", "values", "(", ...
Scan all the BDAs in the deployment to see if there are any bean classes. This method must be called before scanForEjbEndpoints() and before we try to do any real work with the deployment or the BDAs @throws CDIException
[ "Scan", "all", "the", "BDAs", "in", "the", "deployment", "to", "see", "if", "there", "are", "any", "bean", "classes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L593-L604
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java
WebSphereCDIDeploymentImpl.initializeInjectionServices
@Override public void initializeInjectionServices() throws CDIException { Set<ReferenceContext> cdiReferenceContexts = new HashSet<ReferenceContext>(); //first we need to initialize the injection service and collect the reference contexts and the injection classes for (WebSphereBeanDeploym...
java
@Override public void initializeInjectionServices() throws CDIException { Set<ReferenceContext> cdiReferenceContexts = new HashSet<ReferenceContext>(); //first we need to initialize the injection service and collect the reference contexts and the injection classes for (WebSphereBeanDeploym...
[ "@", "Override", "public", "void", "initializeInjectionServices", "(", ")", "throws", "CDIException", "{", "Set", "<", "ReferenceContext", ">", "cdiReferenceContexts", "=", "new", "HashSet", "<", "ReferenceContext", ">", "(", ")", ";", "//first we need to initialize t...
Initialize the Resource Injection Service with each BDA's bean classes. This method must be called after scanForBeans() and scanForEjbEndpoints() but before we try to do any real work with the deployment or the BDAs @throws CDIException
[ "Initialize", "the", "Resource", "Injection", "Service", "with", "each", "BDA", "s", "bean", "classes", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L614-L637
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java
WebSphereCDIDeploymentImpl.shutdown
@Override public void shutdown() { if (this.bootstrap != null) { AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { bootstrap.shutdown(); return null; } });...
java
@Override public void shutdown() { if (this.bootstrap != null) { AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { bootstrap.shutdown(); return null; } });...
[ "@", "Override", "public", "void", "shutdown", "(", ")", "{", "if", "(", "this", ".", "bootstrap", "!=", "null", ")", "{", "AccessController", ".", "doPrivileged", "(", "new", "PrivilegedAction", "<", "Void", ">", "(", ")", "{", "@", "Override", "public"...
Shutdown and clean up the whole deployment. The deployment will not be usable after this call has been made.
[ "Shutdown", "and", "clean", "up", "the", "whole", "deployment", ".", "The", "deployment", "will", "not", "be", "usable", "after", "this", "call", "has", "been", "made", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/WebSphereCDIDeploymentImpl.java#L642-L664
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/tai/SocialLoginTAI.java
SocialLoginTAI.isConfigValid
boolean isConfigValid(ConvergedClientConfig config) { boolean valid = true; String clientId = config.getClientId(); String clientSecret = config.getClientSecret(); String authorizationEndpoint = config.getAuthorizationEndpointUrl(); String jwksUri = config.getJwkEndpointUrl(); ...
java
boolean isConfigValid(ConvergedClientConfig config) { boolean valid = true; String clientId = config.getClientId(); String clientSecret = config.getClientSecret(); String authorizationEndpoint = config.getAuthorizationEndpointUrl(); String jwksUri = config.getJwkEndpointUrl(); ...
[ "boolean", "isConfigValid", "(", "ConvergedClientConfig", "config", ")", "{", "boolean", "valid", "=", "true", ";", "String", "clientId", "=", "config", ".", "getClientId", "(", ")", ";", "String", "clientSecret", "=", "config", ".", "getClientSecret", "(", ")...
Check for some things that will always fail and emit message about bad config. Do here so 1) classic oidc messages don't change and 2) put error message closer in log to failure. @param config @return true if config is valid
[ "Check", "for", "some", "things", "that", "will", "always", "fail", "and", "emit", "message", "about", "bad", "config", ".", "Do", "here", "so", "1", ")", "classic", "oidc", "messages", "don", "t", "change", "and", "2", ")", "put", "error", "message", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/tai/SocialLoginTAI.java#L550-L580
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java
AbstractLockedMessageEnumeration.cleanOutBifurcatedMessages
protected void cleanOutBifurcatedMessages(BifurcatedConsumerSessionImpl owner, boolean bumpRedeliveryOnClose) throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "cleanOutBifurcatedMessages", new Object[]{new Integer(hashCo...
java
protected void cleanOutBifurcatedMessages(BifurcatedConsumerSessionImpl owner, boolean bumpRedeliveryOnClose) throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "cleanOutBifurcatedMessages", new Object[]{new Integer(hashCo...
[ "protected", "void", "cleanOutBifurcatedMessages", "(", "BifurcatedConsumerSessionImpl", "owner", ",", "boolean", "bumpRedeliveryOnClose", ")", "throws", "SIResourceException", ",", "SISessionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "("...
When a bifurcated consumer is closed all locked messages owned by that consumer must be unlocked @param owner @throws SIResourceException @throws SISessionDroppedException
[ "When", "a", "bifurcated", "consumer", "is", "closed", "all", "locked", "messages", "owned", "by", "that", "consumer", "must", "be", "unlocked" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L741-L798
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java
AbstractLockedMessageEnumeration.getNumberOfLockedMessages
protected int getNumberOfLockedMessages() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getNumberOfLockedMessages"); int count = 0; synchronized(this) { LMEMessage message; message = firstMsg; while(message != null) { count...
java
protected int getNumberOfLockedMessages() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getNumberOfLockedMessages"); int count = 0; synchronized(this) { LMEMessage message; message = firstMsg; while(message != null) { count...
[ "protected", "int", "getNumberOfLockedMessages", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getNumberOfLockedMessages\"", ")", ";...
Return the number of locked messages that are part of this locked message enumeration. The count will start from thr firstMsg unlike th getRemainingMessageCount which starts from the currentMsg. @return the number of locked messages
[ "Return", "the", "number", "of", "locked", "messages", "that", "are", "part", "of", "this", "locked", "message", "enumeration", ".", "The", "count", "will", "start", "from", "thr", "firstMsg", "unlike", "th", "getRemainingMessageCount", "which", "starts", "from"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L1073-L1095
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java
AbstractLockedMessageEnumeration.removeMessage
protected void removeMessage(LMEMessage message) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeMessage", new Object[] {new Integer(hashCode()), message, this }); // If this was the message we entered the callback with we need // to move the start point ba...
java
protected void removeMessage(LMEMessage message) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeMessage", new Object[] {new Integer(hashCode()), message, this }); // If this was the message we entered the callback with we need // to move the start point ba...
[ "protected", "void", "removeMessage", "(", "LMEMessage", "message", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"removeMessage\"", ","...
Remove a message object from the list @param message
[ "Remove", "a", "message", "object", "from", "the", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L1755-L1821
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java
AbstractLockedMessageEnumeration.resetCallbackCursor
protected void resetCallbackCursor() throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resetCallbackCursor", new Integer(hashCode())); synchronized(this) { unlockAllUnread(); callbackEntryMsg = last...
java
protected void resetCallbackCursor() throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resetCallbackCursor", new Integer(hashCode())); synchronized(this) { unlockAllUnread(); callbackEntryMsg = last...
[ "protected", "void", "resetCallbackCursor", "(", ")", "throws", "SIResourceException", ",", "SISessionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry"...
This is called when a consumeMessages call has completed, it returns the LME to a consistent state ready for the next consumeMessages. This will unlock any messages that were locked on this LME that haven't been read. @throws SISessionDroppedException
[ "This", "is", "called", "when", "a", "consumeMessages", "call", "has", "completed", "it", "returns", "the", "LME", "to", "a", "consistent", "state", "ready", "for", "the", "next", "consumeMessages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L1835-L1853
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java
AbstractLockedMessageEnumeration.setPropertiesInMessage
final JsMessage setPropertiesInMessage(LMEMessage theMessage) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setPropertiesInMessage", theMessage); boolean copyMade = false; // If this is pubsub we share this message with other subscribers so we have // to...
java
final JsMessage setPropertiesInMessage(LMEMessage theMessage) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setPropertiesInMessage", theMessage); boolean copyMade = false; // If this is pubsub we share this message with other subscribers so we have // to...
[ "final", "JsMessage", "setPropertiesInMessage", "(", "LMEMessage", "theMessage", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setPropert...
Sets the redelivered count and the message wait time if required. Copies the message if required @param theMessage @return
[ "Sets", "the", "redelivered", "count", "and", "the", "message", "wait", "time", "if", "required", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L1913-L2009
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java
AbstractLockedMessageEnumeration.unlockAll
protected void unlockAll(boolean closingSession) throws SIResourceException, SIMPMessageNotLockedException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "unlockAll", new Object[]{new Integer(hashCode()),this}); int unlockedMessages = 0; ...
java
protected void unlockAll(boolean closingSession) throws SIResourceException, SIMPMessageNotLockedException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "unlockAll", new Object[]{new Integer(hashCode()),this}); int unlockedMessages = 0; ...
[ "protected", "void", "unlockAll", "(", "boolean", "closingSession", ")", "throws", "SIResourceException", ",", "SIMPMessageNotLockedException", ",", "SISessionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "...
Unlock all the messages in the list @throws SISessionDroppedException @throws SIStoreException
[ "Unlock", "all", "the", "messages", "in", "the", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L2076-L2186
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java
AbstractLockedMessageEnumeration.unlockAllUnread
private void unlockAllUnread() throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "unlockAllUnread", new Object[] { new Integer(hashCode()), this }); int unlockedMessages = 0; synchronized(this) { messa...
java
private void unlockAllUnread() throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "unlockAllUnread", new Object[] { new Integer(hashCode()), this }); int unlockedMessages = 0; synchronized(this) { messa...
[ "private", "void", "unlockAllUnread", "(", ")", "throws", "SIResourceException", ",", "SISessionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(...
Method to unlock all messages which haven't been read @param incrementRedeliveryCount @throws SISessionDroppedException
[ "Method", "to", "unlock", "all", "messages", "which", "haven", "t", "been", "read" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractLockedMessageEnumeration.java#L2195-L2268
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractMapView.java
AbstractMapView.containsValue
public boolean containsValue(Token value, Transaction transaction) throws ObjectManagerException { try { for (Iterator iterator = entrySet().iterator();;) { Entry entry = (Entry) iterator.next(transaction); Toke...
java
public boolean containsValue(Token value, Transaction transaction) throws ObjectManagerException { try { for (Iterator iterator = entrySet().iterator();;) { Entry entry = (Entry) iterator.next(transaction); Toke...
[ "public", "boolean", "containsValue", "(", "Token", "value", ",", "Transaction", "transaction", ")", "throws", "ObjectManagerException", "{", "try", "{", "for", "(", "Iterator", "iterator", "=", "entrySet", "(", ")", ".", "iterator", "(", ")", ";", ";", ")",...
Determines if the Map contains the Token @param Token whose presence in this map is to be tested. @param Transaction which determines visibility of Entries in the Map. @return Boolean <tt>true</tt> if the map contains at least one mapping to the Token visible to the Transaction. @exception ObjectManagerException.
[ "Determines", "if", "the", "Map", "contains", "the", "Token" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractMapView.java#L90-L107
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java
AIStream.countAllMessagesOnStream
public long countAllMessagesOnStream() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "countAllMessagesOnStream"); long count=0; _targetStream.setCursor(0); // Get the first TickRange TickRange tr = _targetStream.getNext(); while (tr.endstamp < RangeL...
java
public long countAllMessagesOnStream() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "countAllMessagesOnStream"); long count=0; _targetStream.setCursor(0); // Get the first TickRange TickRange tr = _targetStream.getNext(); while (tr.endstamp < RangeL...
[ "public", "long", "countAllMessagesOnStream", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"countAllMessagesOnStream\"", ")", ";", ...
Counts the number of messages in the value state on the stream. NOTE: this method is not synchronized - the client should protect against concurrent access. @return a long for the number of messages in 'value' on the stream.
[ "Counts", "the", "number", "of", "messages", "in", "the", "value", "state", "on", "the", "stream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java#L322-L351
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java
AIStream.incrementUnlockCount
public final void incrementUnlockCount(long tick) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "incrementUnlockCount", Long.valueOf(tick)); _targetStream.setCursor(tick); TickRange tickRange = _targetStream.getNext(); if (tickRange.type == TickRange.Value) ...
java
public final void incrementUnlockCount(long tick) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "incrementUnlockCount", Long.valueOf(tick)); _targetStream.setCursor(tick); TickRange tickRange = _targetStream.getNext(); if (tickRange.type == TickRange.Value) ...
[ "public", "final", "void", "incrementUnlockCount", "(", "long", "tick", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"incrementUnlockCo...
sets the unlock count of the value tick's msg. @param tick The tick in the stream
[ "sets", "the", "unlock", "count", "of", "the", "value", "tick", "s", "msg", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java#L537-L553
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java
AIStream.processRequestAck
public void processRequestAck(long tick, long dmeVersion) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "processRequestAck", new Object[] { Long.valueOf(tick), Long.valueOf(dmeVersion)}); // Only consider non-stale request acks if (dmeVe...
java
public void processRequestAck(long tick, long dmeVersion) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "processRequestAck", new Object[] { Long.valueOf(tick), Long.valueOf(dmeVersion)}); // Only consider non-stale request acks if (dmeVe...
[ "public", "void", "processRequestAck", "(", "long", "tick", ",", "long", "dmeVersion", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "...
A ControlRequestAck message tells the RME to slow down its get repetition timeout since we now know that the DME has received the request.
[ "A", "ControlRequestAck", "message", "tells", "the", "RME", "to", "slow", "down", "its", "get", "repetition", "timeout", "since", "we", "now", "know", "that", "the", "DME", "has", "received", "the", "request", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java#L1246-L1290
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java
AIStream.processResetRequestAck
public void processResetRequestAck(long dmeVersion, SendDispatcher sendDispatcher) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "processResetRequestAck", Long.valueOf(dmeVersion)); // Only consider non-stale request acks if (dmeVersion >= _latestDMEVersion) ...
java
public void processResetRequestAck(long dmeVersion, SendDispatcher sendDispatcher) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "processResetRequestAck", Long.valueOf(dmeVersion)); // Only consider non-stale request acks if (dmeVersion >= _latestDMEVersion) ...
[ "public", "void", "processResetRequestAck", "(", "long", "dmeVersion", ",", "SendDispatcher", "sendDispatcher", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", ...
A ControlResetRequestAck message tells the RME to start re-sending get requests with an eager timeout since the DME has crashed and recovered.
[ "A", "ControlResetRequestAck", "message", "tells", "the", "RME", "to", "start", "re", "-", "sending", "get", "requests", "with", "an", "eager", "timeout", "since", "the", "DME", "has", "crashed", "and", "recovered", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java#L1297-L1314
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java
AIStream.getAnycastInputHandler
public AnycastInputHandler getAnycastInputHandler() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getAnycastInputHandler"); SibTr.exit(tc, "getAnycastInputHandler", _parent); } return _parent; }
java
public AnycastInputHandler getAnycastInputHandler() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getAnycastInputHandler"); SibTr.exit(tc, "getAnycastInputHandler", _parent); } return _parent; }
[ "public", "AnycastInputHandler", "getAnycastInputHandler", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getAnycastInputHandler\"...
Returns the AnycastInputHandler associated with this AIStream @return
[ "Returns", "the", "AnycastInputHandler", "associated", "with", "this", "AIStream" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/AIStream.java#L1331-L1339
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaEndpointActivation.java
SibRaEndpointActivation.messagingEngineStarting
public void messagingEngineStarting(final JsMessagingEngine messagingEngine) { final String methodName = "messagingEngineStarting"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); } try { ...
java
public void messagingEngineStarting(final JsMessagingEngine messagingEngine) { final String methodName = "messagingEngineStarting"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, messagingEngine); } try { ...
[ "public", "void", "messagingEngineStarting", "(", "final", "JsMessagingEngine", "messagingEngine", ")", "{", "final", "String", "methodName", "=", "\"messagingEngineStarting\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", "."...
Called to indicate that a messaging engine has been started. Adds it to the set of active messaging engines. @param messagingEngine the messaging engine that is starting
[ "Called", "to", "indicate", "that", "a", "messaging", "engine", "has", "been", "started", ".", "Adds", "it", "to", "the", "set", "of", "active", "messaging", "engines", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaEndpointActivation.java#L554-L585
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaEndpointActivation.java
SibRaEndpointActivation.messagingEngineStopping
public void messagingEngineStopping( final JsMessagingEngine messagingEngine, final int mode) { final String methodName = "messagingEngineStopping"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] { ...
java
public void messagingEngineStopping( final JsMessagingEngine messagingEngine, final int mode) { final String methodName = "messagingEngineStopping"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, new Object[] { ...
[ "public", "void", "messagingEngineStopping", "(", "final", "JsMessagingEngine", "messagingEngine", ",", "final", "int", "mode", ")", "{", "final", "String", "methodName", "=", "\"messagingEngineStopping\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", ...
Called to indicate that a messaging engine is stopping. Removes it from the set of active messaging engines and closes any open connection. @param messagingEngine the messaging engine that is stopping @param mode the stop mode
[ "Called", "to", "indicate", "that", "a", "messaging", "engine", "is", "stopping", ".", "Removes", "it", "from", "the", "set", "of", "active", "messaging", "engines", "and", "closes", "any", "open", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaEndpointActivation.java#L596-L611
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java
JDBCDriverService.classNotFound
private SQLException classNotFound(Object interfaceNames, Set<String> packagesSearched, String dsId, Throwable cause) { if (cause instanceof SQLException) return (SQLException) cause; // TODO need an appropriate message when sharedLib is null and classes are loaded from the application ...
java
private SQLException classNotFound(Object interfaceNames, Set<String> packagesSearched, String dsId, Throwable cause) { if (cause instanceof SQLException) return (SQLException) cause; // TODO need an appropriate message when sharedLib is null and classes are loaded from the application ...
[ "private", "SQLException", "classNotFound", "(", "Object", "interfaceNames", ",", "Set", "<", "String", ">", "packagesSearched", ",", "String", "dsId", ",", "Throwable", "cause", ")", "{", "if", "(", "cause", "instanceof", "SQLException", ")", "return", "(", "...
Returns an exception to raise when the data source class is not found. @param interfaceNames names of data source interface(s) or java.sql.Driver for which we could not find an implementation class. @param packagesSearched packages in or beneath which we have searched for data source implementation classes. @param dsI...
[ "Returns", "an", "exception", "to", "raise", "when", "the", "data", "source", "class", "is", "not", "found", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L206-L221
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java
JDBCDriverService.createConnectionPoolDataSource
public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props, String dataSourceID) throws SQLException { lock.readLock().lock(); try { if (!isInitialized) try { // Switch to write lock for lazy initialization lock.rea...
java
public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props, String dataSourceID) throws SQLException { lock.readLock().lock(); try { if (!isInitialized) try { // Switch to write lock for lazy initialization lock.rea...
[ "public", "ConnectionPoolDataSource", "createConnectionPoolDataSource", "(", "Properties", "props", ",", "String", "dataSourceID", ")", "throws", "SQLException", "{", "lock", ".", "readLock", "(", ")", ".", "lock", "(", ")", ";", "try", "{", "if", "(", "!", "i...
Create a ConnectionPoolDataSource @param props typed data source properties @param dataSourceID identifier for the data source config @return the data source @throws SQLException if an error occurs
[ "Create", "a", "ConnectionPoolDataSource" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L510-L556
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java
JDBCDriverService.createDataSource
public DataSource createDataSource(Properties props, String dataSourceID) throws SQLException { lock.readLock().lock(); try { if (!isInitialized) try { // Switch to write lock for lazy initialization lock.readLock().unlock(); ...
java
public DataSource createDataSource(Properties props, String dataSourceID) throws SQLException { lock.readLock().lock(); try { if (!isInitialized) try { // Switch to write lock for lazy initialization lock.readLock().unlock(); ...
[ "public", "DataSource", "createDataSource", "(", "Properties", "props", ",", "String", "dataSourceID", ")", "throws", "SQLException", "{", "lock", ".", "readLock", "(", ")", ".", "lock", "(", ")", ";", "try", "{", "if", "(", "!", "isInitialized", ")", "try...
Create a DataSource @param props typed data source properties @param dataSourceID identifier for the data source config @return the data source @throws SQLException if an error occurs
[ "Create", "a", "DataSource" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L566-L607
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java
JDBCDriverService.getDriver
public Object getDriver(String url, Properties props, String dataSourceID) throws Exception { lock.readLock().lock(); try { if (!isInitialized) try { // Switch to write lock for lazy initialization lock.readLock().unlock(); ...
java
public Object getDriver(String url, Properties props, String dataSourceID) throws Exception { lock.readLock().lock(); try { if (!isInitialized) try { // Switch to write lock for lazy initialization lock.readLock().unlock(); ...
[ "public", "Object", "getDriver", "(", "String", "url", ",", "Properties", "props", ",", "String", "dataSourceID", ")", "throws", "Exception", "{", "lock", ".", "readLock", "(", ")", ".", "lock", "(", ")", ";", "try", "{", "if", "(", "!", "isInitialized",...
Load the Driver instance for the specified URL. @param url JDBC driver URL. @return the driver @throws Exception if an error occurs
[ "Load", "the", "Driver", "instance", "for", "the", "specified", "URL", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L667-L703
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java
JDBCDriverService.getClasspath
public static Collection<String> getClasspath(Library sharedLib, boolean upperCaseFileNamesOnly) { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(tc, "getClasspath", sharedLib); Collection<String> classpath = new LinkedList<Str...
java
public static Collection<String> getClasspath(Library sharedLib, boolean upperCaseFileNamesOnly) { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(tc, "getClasspath", sharedLib); Collection<String> classpath = new LinkedList<Str...
[ "public", "static", "Collection", "<", "String", ">", "getClasspath", "(", "Library", "sharedLib", ",", "boolean", "upperCaseFileNamesOnly", ")", "{", "final", "boolean", "trace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "trac...
Returns a list of file names for the specified library. @param sharedLib library @param upperCaseFileNamesOnly indicates whether or not to include file names only (not paths) and to convert the names to all upper case. @return list of file names for the library. If the library is null, returns an empty list.
[ "Returns", "a", "list", "of", "file", "names", "for", "the", "specified", "library", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L758-L775
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java
JDBCDriverService.modified
private void modified(Dictionary<String, ?> newProperties, boolean logMessage) { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "modified", newProperties); boolean replaced = false; lock.writeLock().lock(); ...
java
private void modified(Dictionary<String, ?> newProperties, boolean logMessage) { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "modified", newProperties); boolean replaced = false; lock.writeLock().lock(); ...
[ "private", "void", "modified", "(", "Dictionary", "<", "String", ",", "?", ">", "newProperties", ",", "boolean", "logMessage", ")", "{", "final", "boolean", "trace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "trace", "&&", ...
Clears the configuration of this JDBCDriverService so that it can lazily initialize with the new configuration on next use. @param newProperties new properties to use. Can be null if there are no changes to existing properties. @param logMessage indicates whether or not to log a message about the update.
[ "Clears", "the", "configuration", "of", "this", "JDBCDriverService", "so", "that", "it", "can", "lazily", "initialize", "with", "the", "new", "configuration", "on", "next", "use", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L903-L942
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java
JDBCDriverService.setProperty
private static void setProperty(Object obj, PropertyDescriptor pd, String value, boolean doTraceValue) throws Exception { Object param = null; String propName = pd.getName(); if (tc.isDebugEnabled()) { if("URL".equals(propName) || "url".equals(prop...
java
private static void setProperty(Object obj, PropertyDescriptor pd, String value, boolean doTraceValue) throws Exception { Object param = null; String propName = pd.getName(); if (tc.isDebugEnabled()) { if("URL".equals(propName) || "url".equals(prop...
[ "private", "static", "void", "setProperty", "(", "Object", "obj", ",", "PropertyDescriptor", "pd", ",", "String", "value", ",", "boolean", "doTraceValue", ")", "throws", "Exception", "{", "Object", "param", "=", "null", ";", "String", "propName", "=", "pd", ...
Handles the setting of any property for which a public single-parameter setter exists on the DataSource and for which the property data type is either a primitive or has a single-parameter String constructor. @param obj the Object to set the property on. @param pd the PropertyDescriptor describing the property to set....
[ "Handles", "the", "setting", "of", "any", "property", "for", "which", "a", "public", "single", "-", "parameter", "setter", "exists", "on", "the", "DataSource", "and", "for", "which", "the", "property", "data", "type", "is", "either", "a", "primitive", "or", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L963-L1014
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java
JDBCDriverService.setSharedLib
protected void setSharedLib(Library lib) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "setSharedLib", lib); sharedLib = lib; }
java
protected void setSharedLib(Library lib) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "setSharedLib", lib); sharedLib = lib; }
[ "protected", "void", "setSharedLib", "(", "Library", "lib", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "this", ",", "tc", ",", "\"setSharedLib\"", ...
Declarative Services method for setting the SharedLibrary service @param lib the service
[ "Declarative", "Services", "method", "for", "setting", "the", "SharedLibrary", "service" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L1021-L1025
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java
JDBCDriverService.shutdownDerbyEmbedded
private void shutdownDerbyEmbedded() { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "shutdownDerbyEmbedded", classloader, embDerbyRefCount); // Shut down Derby embedded if the reference count drops to 0 if (...
java
private void shutdownDerbyEmbedded() { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "shutdownDerbyEmbedded", classloader, embDerbyRefCount); // Shut down Derby embedded if the reference count drops to 0 if (...
[ "private", "void", "shutdownDerbyEmbedded", "(", ")", "{", "final", "boolean", "trace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "trace", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "this",...
Shut down the Derby system if the reference count for the class loader drops to 0.
[ "Shut", "down", "the", "Derby", "system", "if", "the", "reference", "count", "for", "the", "class", "loader", "drops", "to", "0", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L1030-L1055
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java
JDBCDriverService.unsetSharedLib
protected void unsetSharedLib(Library lib) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "unsetSharedLib", lib); modified(null, false); }
java
protected void unsetSharedLib(Library lib) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "unsetSharedLib", lib); modified(null, false); }
[ "protected", "void", "unsetSharedLib", "(", "Library", "lib", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "this", ",", "tc", ",", "\"unsetSharedLib\...
Declarative Services method for unsetting the SharedLibrary service @param lib the service
[ "Declarative", "Services", "method", "for", "unsetting", "the", "SharedLibrary", "service" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/internal/JDBCDriverService.java#L1069-L1073
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMetaDataImpl.java
JmsMetaDataImpl.retrieveManifestData
private static void retrieveManifestData() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "retrieveManifestData"); try { // Set up the defaults that will be overriden if possible. JmsMetaDataImpl.setProblemDefaults(); ...
java
private static void retrieveManifestData() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "retrieveManifestData"); try { // Set up the defaults that will be overriden if possible. JmsMetaDataImpl.setProblemDefaults(); ...
[ "private", "static", "void", "retrieveManifestData", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"retrieveManifestData\"", ")", "...
This method retrieves the information stored in the jar manifest and uses it to populate the implementation information to be returned to the user. If the build level is not available in the manifest, the BuildInfo class is used to get the value instead.
[ "This", "method", "retrieves", "the", "information", "stored", "in", "the", "jar", "manifest", "and", "uses", "it", "to", "populate", "the", "implementation", "information", "to", "be", "returned", "to", "the", "user", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMetaDataImpl.java#L184-L276
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java
LockedMessageEnumerationImpl.nextLocked
public SIBusMessage nextLocked() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabl...
java
public SIBusMessage nextLocked() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabl...
[ "public", "SIBusMessage", "nextLocked", "(", ")", "throws", "SISessionUnavailableException", ",", "SISessionDroppedException", ",", "SIConnectionUnavailableException", ",", "SIConnectionDroppedException", ",", "SIResourceException", ",", "SIConnectionLostException", ",", "SIError...
Returns the next available locked message in the enumeration. A value of null is returned if there is no next message. @see com.ibm.wsspi.sib.core.LockedMessageEnumeration#nextLocked()
[ "Returns", "the", "next", "available", "locked", "message", "in", "the", "enumeration", ".", "A", "value", "of", "null", "is", "returned", "if", "there", "is", "no", "next", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L139-L166
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java
LockedMessageEnumerationImpl.unlockCurrent
public void unlockCurrent() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIIncorrectCallException, SIMessageNotLockedException, ...
java
public void unlockCurrent() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIIncorrectCallException, SIMessageNotLockedException, ...
[ "public", "void", "unlockCurrent", "(", ")", "throws", "SISessionUnavailableException", ",", "SISessionDroppedException", ",", "SIConnectionUnavailableException", ",", "SIConnectionDroppedException", ",", "SIResourceException", ",", "SIConnectionLostException", ",", "SIIncorrectC...
Unlocks the current message. @see com.ibm.wsspi.sib.core.LockedMessageEnumeration#unlockCurrent()
[ "Unlocks", "the", "current", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L173-L207
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java
LockedMessageEnumerationImpl.deleteCurrent
public void deleteCurrent(SITransaction transaction) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededException, SIIncorrectCallExce...
java
public void deleteCurrent(SITransaction transaction) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededException, SIIncorrectCallExce...
[ "public", "void", "deleteCurrent", "(", "SITransaction", "transaction", ")", "throws", "SISessionUnavailableException", ",", "SISessionDroppedException", ",", "SIConnectionUnavailableException", ",", "SIConnectionDroppedException", ",", "SIResourceException", ",", "SIConnectionLo...
Deletes the current message. @param transaction @see com.ibm.wsspi.sib.core.LockedMessageEnumeration#deleteCurrent(SITransaction)
[ "Deletes", "the", "current", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L216-L278
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java
LockedMessageEnumerationImpl.deleteSeen
public void deleteSeen(SITransaction transaction) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededException, SIIncorrectCallExcepti...
java
public void deleteSeen(SITransaction transaction) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededException, SIIncorrectCallExcepti...
[ "public", "void", "deleteSeen", "(", "SITransaction", "transaction", ")", "throws", "SISessionUnavailableException", ",", "SISessionDroppedException", ",", "SIConnectionUnavailableException", ",", "SIConnectionDroppedException", ",", "SIResourceException", ",", "SIConnectionLostE...
Deletes all messages seen so far. @param transaction @see com.ibm.wsspi.sib.core.LockedMessageEnumeration#deleteSeen(SITransaction)
[ "Deletes", "all", "messages", "seen", "so", "far", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L286-L356
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java
LockedMessageEnumerationImpl.deleteMessages
private void deleteMessages(JsMessage[] messagesToDelete, SITransaction transaction) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededException, ...
java
private void deleteMessages(JsMessage[] messagesToDelete, SITransaction transaction) throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimitExceededException, ...
[ "private", "void", "deleteMessages", "(", "JsMessage", "[", "]", "messagesToDelete", ",", "SITransaction", "transaction", ")", "throws", "SISessionUnavailableException", ",", "SISessionDroppedException", ",", "SIConnectionUnavailableException", ",", "SIConnectionDroppedExceptio...
This private method actually performs the delete by asking the conversation helper to flow the request across the wire. However, this method does not obtain any locks required to perform this operation and as such should be called by a method that does do this. @param messagesToDelete @param transaction @throws SICom...
[ "This", "private", "method", "actually", "performs", "the", "delete", "by", "asking", "the", "conversation", "helper", "to", "flow", "the", "request", "across", "the", "wire", ".", "However", "this", "method", "does", "not", "obtain", "any", "locks", "required...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L371-L407
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java
LockedMessageEnumerationImpl.resetCursor
public void resetCursor() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled(...
java
public void resetCursor() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled(...
[ "public", "void", "resetCursor", "(", ")", "throws", "SISessionUnavailableException", ",", "SISessionDroppedException", ",", "SIConnectionUnavailableException", ",", "SIConnectionDroppedException", ",", "SIResourceException", ",", "SIConnectionLostException", ",", "SIErrorExcepti...
This method will reset the cursor and allow the LME to be traversed again. Note that any messages that were deleted or unlocked will not be available again.
[ "This", "method", "will", "reset", "the", "cursor", "and", "allow", "the", "LME", "to", "be", "traversed", "again", ".", "Note", "that", "any", "messages", "that", "were", "deleted", "or", "unlocked", "will", "not", "be", "available", "again", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L416-L427
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java
LockedMessageEnumerationImpl.getRemainingMessageCount
public int getRemainingMessageCount() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"getRemainingMessageCount"); che...
java
public int getRemainingMessageCount() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"getRemainingMessageCount"); che...
[ "public", "int", "getRemainingMessageCount", "(", ")", "throws", "SISessionUnavailableException", ",", "SISessionDroppedException", ",", "SIConnectionUnavailableException", ",", "SIConnectionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ...
Returns the amount of messages left in the locked message enumeration. @return int
[ "Returns", "the", "amount", "of", "messages", "left", "in", "the", "locked", "message", "enumeration", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/LockedMessageEnumerationImpl.java#L435-L446
train