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
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java
ThreadPool.execute
public Runnable execute(Runnable command, long timeoutInMillis) throws InterruptedException, IllegalStateException { try { return execute(command, WAIT_WHEN_QUEUE_IS_FULL, timeoutInMillis); } catch (ThreadPoolQueueIsFullException e) { // we should not get here. // Ale...
java
public Runnable execute(Runnable command, long timeoutInMillis) throws InterruptedException, IllegalStateException { try { return execute(command, WAIT_WHEN_QUEUE_IS_FULL, timeoutInMillis); } catch (ThreadPoolQueueIsFullException e) { // we should not get here. // Ale...
[ "public", "Runnable", "execute", "(", "Runnable", "command", ",", "long", "timeoutInMillis", ")", "throws", "InterruptedException", ",", "IllegalStateException", "{", "try", "{", "return", "execute", "(", "command", ",", "WAIT_WHEN_QUEUE_IS_FULL", ",", "timeoutInMilli...
Arrange for the given command to be executed by a thread in this pool. If the pools internal request buffer is full, the call will block for at most timeoutInMillis milliseconds. @param command - the work to be dispatched. @param timeoutInMillis - the amount of time to block and wait if the request buffer is full. @re...
[ "Arrange", "for", "the", "given", "command", "to", "be", "executed", "by", "a", "thread", "in", "this", "pool", ".", "If", "the", "pools", "internal", "request", "buffer", "is", "full", "the", "call", "will", "block", "for", "at", "most", "timeoutInMillis"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java#L1153-L1161
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java
ThreadPool.setMonitorPlugin
public void setMonitorPlugin(MonitorPlugin plugin) throws TooManyListenersException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "setMonitorPlugin", plugin); } if (this.monitorPlugin != null && !this.monitorPlugin.equals(plugin)) { t...
java
public void setMonitorPlugin(MonitorPlugin plugin) throws TooManyListenersException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "setMonitorPlugin", plugin); } if (this.monitorPlugin != null && !this.monitorPlugin.equals(plugin)) { t...
[ "public", "void", "setMonitorPlugin", "(", "MonitorPlugin", "plugin", ")", "throws", "TooManyListenersException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", ...
Registers a MonitorPlugin with this thread pool. Only one plugin is supported in the current implementation. @throws TooManyListenersException if a different MonitorPlugin had already been registered with this ThreadPool.
[ "Registers", "a", "MonitorPlugin", "with", "this", "thread", "pool", ".", "Only", "one", "plugin", "is", "supported", "in", "the", "current", "implementation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java#L1463-L1477
train
OpenLiberty/open-liberty
dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java
ThreadPool.checkAllThreads
public void checkAllThreads() { // if nothing is plugged in, exit early if (this.monitorPlugin == null) { return; } long currentTime = 0; // lazily initialize current time try { for (Iterator i = this.threads_.values().iterator(); i.hasNext();) { ...
java
public void checkAllThreads() { // if nothing is plugged in, exit early if (this.monitorPlugin == null) { return; } long currentTime = 0; // lazily initialize current time try { for (Iterator i = this.threads_.values().iterator(); i.hasNext();) { ...
[ "public", "void", "checkAllThreads", "(", ")", "{", "// if nothing is plugged in, exit early", "if", "(", "this", ".", "monitorPlugin", "==", "null", ")", "{", "return", ";", "}", "long", "currentTime", "=", "0", ";", "// lazily initialize current time", "try", "{...
Checks all active threads in this thread pool to determine if they are hung. The definition of hung is provided by the MonitorPlugin. @see MonitorPlugin
[ "Checks", "all", "active", "threads", "in", "this", "thread", "pool", "to", "determine", "if", "they", "are", "hung", ".", "The", "definition", "of", "hung", "is", "provided", "by", "the", "MonitorPlugin", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/ThreadPool.java#L1486-L1524
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterCellSlowStr.java
FilterCellSlowStr.findNextCell
public FilterCellSlowStr findNextCell(String nextValue) { if (nextCell == null) { return null; } return nextCell.get(nextValue); }
java
public FilterCellSlowStr findNextCell(String nextValue) { if (nextCell == null) { return null; } return nextCell.get(nextValue); }
[ "public", "FilterCellSlowStr", "findNextCell", "(", "String", "nextValue", ")", "{", "if", "(", "nextCell", "==", "null", ")", "{", "return", "null", ";", "}", "return", "nextCell", ".", "get", "(", "nextValue", ")", ";", "}" ]
Find the next cell, for a given string, which may come after this cell in the address tree. @param nextValue The next string the URL Address that is to be tested for inclusion in the address tree @return null if the nextValue does not have another cell connected to this cell in the tree. Otherwise return the next cell...
[ "Find", "the", "next", "cell", "for", "a", "given", "string", "which", "may", "come", "after", "this", "cell", "in", "the", "address", "tree", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterCellSlowStr.java#L51-L56
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webserver.plugin.utility/src/com/ibm/ws/webserver/plugin/utility/tasks/GeneratePluginTask.java
GeneratePluginTask.invokeGeneratePluginCfgMBean
protected boolean invokeGeneratePluginCfgMBean(ParseLoginAddress loginAddress, String clusterName, String targetPath, String option) { boolean success = false; try { success = connection.generatePluginConfig(loginAddress, clusterName, targetPath ,option); if (success) success = copyFileToTargetPath(...
java
protected boolean invokeGeneratePluginCfgMBean(ParseLoginAddress loginAddress, String clusterName, String targetPath, String option) { boolean success = false; try { success = connection.generatePluginConfig(loginAddress, clusterName, targetPath ,option); if (success) success = copyFileToTargetPath(...
[ "protected", "boolean", "invokeGeneratePluginCfgMBean", "(", "ParseLoginAddress", "loginAddress", ",", "String", "clusterName", ",", "String", "targetPath", ",", "String", "option", ")", "{", "boolean", "success", "=", "false", ";", "try", "{", "success", "=", "co...
Invokes MBean for generatePluginConfig to generate plugin configuration file @param controllerHost @param controllerPort @param user @param password @param targetPath @return
[ "Invokes", "MBean", "for", "generatePluginConfig", "to", "generate", "plugin", "configuration", "file" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webserver.plugin.utility/src/com/ibm/ws/webserver/plugin/utility/tasks/GeneratePluginTask.java#L198-L258
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceFactory.java
TraceFactory.getTraceFactory
public static TraceFactory getTraceFactory(NLS nls) { return (TraceFactory) Utils.getImpl("com.ibm.ws.objectManager.utils.TraceFactoryImpl", new Class[] { NLS.class }, new Object[] { nls }); }
java
public static TraceFactory getTraceFactory(NLS nls) { return (TraceFactory) Utils.getImpl("com.ibm.ws.objectManager.utils.TraceFactoryImpl", new Class[] { NLS.class }, new Object[] { nls }); }
[ "public", "static", "TraceFactory", "getTraceFactory", "(", "NLS", "nls", ")", "{", "return", "(", "TraceFactory", ")", "Utils", ".", "getImpl", "(", "\"com.ibm.ws.objectManager.utils.TraceFactoryImpl\"", ",", "new", "Class", "[", "]", "{", "NLS", ".", "class", ...
Create a platform specific TraceFactory instance. @param nls instance which holds the message catalogue to be used for info tracing. @return TraceFactory instance loaded.
[ "Create", "a", "platform", "specific", "TraceFactory", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceFactory.java#L39-L43
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceFactory.java
TraceFactory.setActiveTrace
public void setActiveTrace(String activeNames, int traceLevel) throws java.io.IOException { TraceFactory.activeNames = activeNames; TraceFactory.traceLevel = traceLevel;; }
java
public void setActiveTrace(String activeNames, int traceLevel) throws java.io.IOException { TraceFactory.activeNames = activeNames; TraceFactory.traceLevel = traceLevel;; }
[ "public", "void", "setActiveTrace", "(", "String", "activeNames", ",", "int", "traceLevel", ")", "throws", "java", ".", "io", ".", "IOException", "{", "TraceFactory", ".", "activeNames", "=", "activeNames", ";", "TraceFactory", ".", "traceLevel", "=", "traceLeve...
Specify what to trace and start tracing it. @param activeNames of classes to be activated separated by ":" "*" represents any name. @param traceLevel to be applied. @throws java.io.IOException
[ "Specify", "what", "to", "trace", "and", "start", "tracing", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceFactory.java#L71-L76
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ClientJFapCommunicator.java
ClientJFapCommunicator.setSICoreConnection
protected void setSICoreConnection(SICoreConnection connection) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSICoreConnection", connection); //Retrieve Client Conversation State if necessary validateConversationState(); cConState.setSICoreConne...
java
protected void setSICoreConnection(SICoreConnection connection) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSICoreConnection", connection); //Retrieve Client Conversation State if necessary validateConversationState(); cConState.setSICoreConne...
[ "protected", "void", "setSICoreConnection", "(", "SICoreConnection", "connection", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", "...
Sets the SICoreConnection reference on the server @param connection
[ "Sets", "the", "SICoreConnection", "reference", "on", "the", "server" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ClientJFapCommunicator.java#L119-L128
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ObjectCopier.java
ObjectCopier.copy
public Serializable copy(Serializable obj) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "copy : " + Util.identity(obj)); // ----------------------------------------------------------------------- // ...
java
public Serializable copy(Serializable obj) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "copy : " + Util.identity(obj)); // ----------------------------------------------------------------------- // ...
[ "public", "Serializable", "copy", "(", "Serializable", "obj", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", ...
Make a copy of an object by writing it out to stream and reading it back again. This will make a "deep" copy of the object. This method is optimized to not copy immutable objects. @param obj the object to be copied, or null @return a copy of the object @throws RuntimeException if the object cannot be serialized
[ "Make", "a", "copy", "of", "an", "object", "by", "writing", "it", "out", "to", "stream", "and", "reading", "it", "back", "again", ".", "This", "will", "make", "a", "deep", "copy", "of", "the", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ObjectCopier.java#L52-L114
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ObjectCopier.java
ObjectCopier.copy
public ScheduleExpression copy(ScheduleExpression schedule) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "copy ScheduleExpression: " + Util.identity(schedule)); // 'schedule' could be a subclass of ScheduleExpression, so only // use the base cl...
java
public ScheduleExpression copy(ScheduleExpression schedule) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "copy ScheduleExpression: " + Util.identity(schedule)); // 'schedule' could be a subclass of ScheduleExpression, so only // use the base cl...
[ "public", "ScheduleExpression", "copy", "(", "ScheduleExpression", "schedule", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"copy ScheduleEx...
Make a copy of a ScheduleExpression object. @param schedule the object to be copied @return a copy of the object
[ "Make", "a", "copy", "of", "a", "ScheduleExpression", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ObjectCopier.java#L122-L135
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ObjectCopier.java
ObjectCopier.copyBase
public static ScheduleExpression copyBase(ScheduleExpression schedule) // d632906 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "copy copyBase: " + Util.identity(schedule)); // 'schedule' could be a subclass of ScheduleExpression. // Use only th...
java
public static ScheduleExpression copyBase(ScheduleExpression schedule) // d632906 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "copy copyBase: " + Util.identity(schedule)); // 'schedule' could be a subclass of ScheduleExpression. // Use only th...
[ "public", "static", "ScheduleExpression", "copyBase", "(", "ScheduleExpression", "schedule", ")", "// d632906", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "...
Make a copy of a javax.ejb.ScheduleExpression portion of the object. We do not want to assume anything about how the methods are implemented in the ScheduleExpression, which can be extended by user code. This method is used in formatting a ScheduleExpression for the findEJBTimers command, so it must be in a common, ex...
[ "Make", "a", "copy", "of", "a", "javax", ".", "ejb", ".", "ScheduleExpression", "portion", "of", "the", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ObjectCopier.java#L148-L168
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSTuple.java
JSTuple.setMultiChoiceCount
BigInteger setMultiChoiceCount() { if (fields != null) for (int i = 0; i < fields.length; i++) multiChoiceCount = multiChoiceCount.multiply(fields[i].setMultiChoiceCount()); return multiChoiceCount; }
java
BigInteger setMultiChoiceCount() { if (fields != null) for (int i = 0; i < fields.length; i++) multiChoiceCount = multiChoiceCount.multiply(fields[i].setMultiChoiceCount()); return multiChoiceCount; }
[ "BigInteger", "setMultiChoiceCount", "(", ")", "{", "if", "(", "fields", "!=", "null", ")", "for", "(", "int", "i", "=", "0", ";", "i", "<", "fields", ".", "length", ";", "i", "++", ")", "multiChoiceCount", "=", "multiChoiceCount", ".", "multiply", "("...
Set the multiChoiceCount for this tuple
[ "Set", "the", "multiChoiceCount", "for", "this", "tuple" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSTuple.java#L93-L98
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSTuple.java
JSTuple.getDominatedVariants
public JSVariant[] getDominatedVariants() { if (dominated == null) { List dom = new ArrayList(); getDominatedVariants(dom); dominated = (JSVariant[])dom.toArray(new JSVariant[0]); } return dominated; }
java
public JSVariant[] getDominatedVariants() { if (dominated == null) { List dom = new ArrayList(); getDominatedVariants(dom); dominated = (JSVariant[])dom.toArray(new JSVariant[0]); } return dominated; }
[ "public", "JSVariant", "[", "]", "getDominatedVariants", "(", ")", "{", "if", "(", "dominated", "==", "null", ")", "{", "List", "dom", "=", "new", "ArrayList", "(", ")", ";", "getDominatedVariants", "(", "dom", ")", ";", "dominated", "=", "(", "JSVariant...
Identify any variants that are descendents of this tuple, either directly, or via other tuples. Used in MessageMap construction.
[ "Identify", "any", "variants", "that", "are", "descendents", "of", "this", "tuple", "either", "directly", "or", "via", "other", "tuples", ".", "Used", "in", "MessageMap", "construction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSTuple.java#L104-L111
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChainStartMode.java
ChainStartMode.getKey
public static ChainStartMode getKey(int ordinal) { if (ordinal >= 0 && ordinal < _values.length) { return _values[ordinal]; } return null; }
java
public static ChainStartMode getKey(int ordinal) { if (ordinal >= 0 && ordinal < _values.length) { return _values[ordinal]; } return null; }
[ "public", "static", "ChainStartMode", "getKey", "(", "int", "ordinal", ")", "{", "if", "(", "ordinal", ">=", "0", "&&", "ordinal", "<", "_values", ".", "length", ")", "{", "return", "_values", "[", "ordinal", "]", ";", "}", "return", "null", ";", "}" ]
Get the chain start mode definition for this ordinal. @param ordinal @return ChainStartMode, null if it does not match a defined instance
[ "Get", "the", "chain", "start", "mode", "definition", "for", "this", "ordinal", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/ChainStartMode.java#L69-L74
train
OpenLiberty/open-liberty
dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ClientInjectionBinding.java
ClientInjectionBinding.getInjectionTarget
public static InjectionTarget getInjectionTarget(ComponentNameSpaceConfiguration compNSConfig, ClientInjection injection) throws InjectionException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "ge...
java
public static InjectionTarget getInjectionTarget(ComponentNameSpaceConfiguration compNSConfig, ClientInjection injection) throws InjectionException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "ge...
[ "public", "static", "InjectionTarget", "getInjectionTarget", "(", "ComponentNameSpaceConfiguration", "compNSConfig", ",", "ClientInjection", "injection", ")", "throws", "InjectionException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnable...
Acquires an InjectionTarget for the specified ClientInjection. @param compNSConfig the minimal namespace configuration @param injection the injection target descriptor @return the injection target @throws InjectionException if the target cannot be acquired
[ "Acquires", "an", "InjectionTarget", "for", "the", "specified", "ClientInjection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ClientInjectionBinding.java#L49-L70
train
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/XARecoveryData.java
XARecoveryData.filterXidsByType
protected ArrayList filterXidsByType(Xid[] xidArray) { if (tc.isEntryEnabled()) Tr.entry(tc, "filterXidsByType", xidArray); final ArrayList<XidImpl> xidList = new ArrayList<XidImpl>(); if (xidArray != null) { /*----------------------------------------------------------*...
java
protected ArrayList filterXidsByType(Xid[] xidArray) { if (tc.isEntryEnabled()) Tr.entry(tc, "filterXidsByType", xidArray); final ArrayList<XidImpl> xidList = new ArrayList<XidImpl>(); if (xidArray != null) { /*----------------------------------------------------------*...
[ "protected", "ArrayList", "filterXidsByType", "(", "Xid", "[", "]", "xidArray", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"filterXidsByType\"", ",", "xidArray", ")", ";", "final", "ArrayList", ...
Removes all non-WAS Xids from an array of Xids, and puts them in an ArrayList structure. @param xidArray An array of generic Xids. @return An ArrayList of XidImpl objects.
[ "Removes", "all", "non", "-", "WAS", "Xids", "from", "an", "array", "of", "Xids", "and", "puts", "them", "in", "an", "ArrayList", "structure", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/XARecoveryData.java#L566-L625
train
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/XARecoveryData.java
XARecoveryData.filterXidsByCruuidAndEpoch
protected ArrayList filterXidsByCruuidAndEpoch(ArrayList xidList, byte[] cruuid, int epoch) { if (tc.isEntryEnabled()) Tr.entry(tc, "filterXidsByCruuidAndEpoch", new Object[] { ...
java
protected ArrayList filterXidsByCruuidAndEpoch(ArrayList xidList, byte[] cruuid, int epoch) { if (tc.isEntryEnabled()) Tr.entry(tc, "filterXidsByCruuidAndEpoch", new Object[] { ...
[ "protected", "ArrayList", "filterXidsByCruuidAndEpoch", "(", "ArrayList", "xidList", ",", "byte", "[", "]", "cruuid", ",", "int", "epoch", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"filterXidsByC...
Removes all Xids from an ArrayList that don't have our cruuid in their bqual. Assumes that all Xids are XidImpls. @param xidList A list of XidImpls. @param cruuid The cruuid to filter. @param epoch The epoch number to filter. @return An ArrayList of XidImpl objects.
[ "Removes", "all", "Xids", "from", "an", "ArrayList", "that", "don", "t", "have", "our", "cruuid", "in", "their", "bqual", ".", "Assumes", "that", "all", "Xids", "are", "XidImpls", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/XARecoveryData.java#L636-L672
train
OpenLiberty/open-liberty
dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/XARecoveryData.java
XARecoveryData.canWeForgetXid
protected boolean canWeForgetXid(XidImpl ourXid, Xid[] knownXids) { if (tc.isEntryEnabled()) Tr.entry(tc, "canWeForgetXid", new Object[] { ourXid, knownXids }); if (tc.isDebugEn...
java
protected boolean canWeForgetXid(XidImpl ourXid, Xid[] knownXids) { if (tc.isEntryEnabled()) Tr.entry(tc, "canWeForgetXid", new Object[] { ourXid, knownXids }); if (tc.isDebugEn...
[ "protected", "boolean", "canWeForgetXid", "(", "XidImpl", "ourXid", ",", "Xid", "[", "]", "knownXids", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"canWeForgetXid\"", ",", "new", "Object", "[", ...
Iterates over the list of known Xids retrieved from transaction service, and tries to match the given javax.transaction.xa.Xid with one of them. @param ourXid The javax.transaction.xa.Xid we are trying to match. @param knownXids The array of Xids that are possible matches. @return true if we find a match, false if not...
[ "Iterates", "over", "the", "list", "of", "known", "Xids", "retrieved", "from", "transaction", "service", "and", "tries", "to", "match", "the", "given", "javax", ".", "transaction", ".", "xa", ".", "Xid", "with", "one", "of", "them", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/XARecoveryData.java#L683-L766
train
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.transports.http.3.2/src/org/apache/cxf/transport/http/AbstractHTTPDestination.java
AbstractHTTPDestination.propogateSecureSession
private static void propogateSecureSession(HttpServletRequest request, Message message) { final String cipherSuite = (String) request.getAttribute(SSL_CIPHER_SUITE_ATTRIBUTE); if (cipherSuite != null) { final java.security.cert.Certi...
java
private static void propogateSecureSession(HttpServletRequest request, Message message) { final String cipherSuite = (String) request.getAttribute(SSL_CIPHER_SUITE_ATTRIBUTE); if (cipherSuite != null) { final java.security.cert.Certi...
[ "private", "static", "void", "propogateSecureSession", "(", "HttpServletRequest", "request", ",", "Message", "message", ")", "{", "final", "String", "cipherSuite", "=", "(", "String", ")", "request", ".", "getAttribute", "(", "SSL_CIPHER_SUITE_ATTRIBUTE", ")", ";", ...
Propogate in the message a TLSSessionInfo instance representative of the TLS-specific information in the HTTP request. @param request the Jetty request @param message the Message
[ "Propogate", "in", "the", "message", "a", "TLSSessionInfo", "instance", "representative", "of", "the", "TLS", "-", "specific", "information", "in", "the", "HTTP", "request", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.transports.http.3.2/src/org/apache/cxf/transport/http/AbstractHTTPDestination.java#L438-L450
train
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.transports.http.3.2/src/org/apache/cxf/transport/http/AbstractHTTPDestination.java
AbstractHTTPDestination.cacheInput
private void cacheInput(Message outMessage) { if (outMessage.getExchange() == null) { return; } Message inMessage = outMessage.getExchange().getInMessage(); if (inMessage == null) { return; } Object o = inMessage.get("cxf.io.cacheinput"); D...
java
private void cacheInput(Message outMessage) { if (outMessage.getExchange() == null) { return; } Message inMessage = outMessage.getExchange().getInMessage(); if (inMessage == null) { return; } Object o = inMessage.get("cxf.io.cacheinput"); D...
[ "private", "void", "cacheInput", "(", "Message", "outMessage", ")", "{", "if", "(", "outMessage", ".", "getExchange", "(", ")", "==", "null", ")", "{", "return", ";", "}", "Message", "inMessage", "=", "outMessage", ".", "getExchange", "(", ")", ".", "get...
On first write, we need to make sure any attachments and such that are still on the incoming stream are read in. Otherwise we can get into a deadlock where the client is still trying to send the request, but the server is trying to send the response. Neither side is reading and both blocked on full buffers. Not a g...
[ "On", "first", "write", "we", "need", "to", "make", "sure", "any", "attachments", "and", "such", "that", "are", "still", "on", "the", "incoming", "stream", "are", "read", "in", ".", "Otherwise", "we", "can", "get", "into", "a", "deadlock", "where", "the"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.transports.http.3.2/src/org/apache/cxf/transport/http/AbstractHTTPDestination.java#L593-L629
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/matchspace/utils/FFDC.java
FFDC.processException
public static void processException(Object source ,Class sourceClass ,String methodName ,Throwable throwable ,String probe ,Object[] ob...
java
public static void processException(Object source ,Class sourceClass ,String methodName ,Throwable throwable ,String probe ,Object[] ob...
[ "public", "static", "void", "processException", "(", "Object", "source", ",", "Class", "sourceClass", ",", "String", "methodName", ",", "Throwable", "throwable", ",", "String", "probe", ",", "Object", "[", "]", "objects", ")", "{", "if", "(", "TraceComponent",...
Process an exception for a non static class. @param Object the source class requesting the FFDC. @param Class of the source object. @param String the method where the FFDC is being requested from. @param Throwable the cause of the exception. @param String the probe identifying the source of the exception. @param Objec...
[ "Process", "an", "exception", "for", "a", "non", "static", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/matchspace/utils/FFDC.java#L182-L221
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/matchspace/utils/FFDC.java
FFDC.print
static void print(Object object,java.io.PrintWriter printWriter) { if (object instanceof Printable) { ((Printable)object).print(printWriter); } else { printWriter.print(object); } // if (object instanceof Printable). }
java
static void print(Object object,java.io.PrintWriter printWriter) { if (object instanceof Printable) { ((Printable)object).print(printWriter); } else { printWriter.print(object); } // if (object instanceof Printable). }
[ "static", "void", "print", "(", "Object", "object", ",", "java", ".", "io", ".", "PrintWriter", "printWriter", ")", "{", "if", "(", "object", "instanceof", "Printable", ")", "{", "(", "(", "Printable", ")", "object", ")", ".", "print", "(", "printWriter"...
Dump an Object to a java.io.PrintWriter. @param Object to be dumped to printWriter @param java.io.PeritWriter to dump the Object to.
[ "Dump", "an", "Object", "to", "a", "java", ".", "io", ".", "PrintWriter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/matchspace/utils/FFDC.java#L273-L280
train
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogHandle.java
LogHandle.getServiceData
byte[] getServiceData() throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "getServiceData", this); // Check that the file is actually open if (_activeFile == null) { if (tc.isEntryEnabled()) Tr.exit(tc, "getServiceData", "Int...
java
byte[] getServiceData() throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "getServiceData", this); // Check that the file is actually open if (_activeFile == null) { if (tc.isEntryEnabled()) Tr.exit(tc, "getServiceData", "Int...
[ "byte", "[", "]", "getServiceData", "(", ")", "throws", "InternalLogException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getServiceData\"", ",", "this", ")", ";", "// Check that the file is actually ope...
Package access method to return the current service data. @return The current service data. @exception InternalLogException An unexpected error has occured.
[ "Package", "access", "method", "to", "return", "the", "current", "service", "data", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogHandle.java#L845-L863
train
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogHandle.java
LogHandle.logFileHeader
LogFileHeader logFileHeader() throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "logFileHeader", this); // Check that the file is actually open if (_activeFile == null) { if (tc.isEntryEnabled()) Tr.exit(tc, "logFileHeader", ...
java
LogFileHeader logFileHeader() throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "logFileHeader", this); // Check that the file is actually open if (_activeFile == null) { if (tc.isEntryEnabled()) Tr.exit(tc, "logFileHeader", ...
[ "LogFileHeader", "logFileHeader", "(", ")", "throws", "InternalLogException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"logFileHeader\"", ",", "this", ")", ";", "// Check that the file is actually open", "...
Returns the LogFileHeader for the currently active log file. @return The LogFileHeader for the currently active log file. @exception InternalLogException An unexpected error has occured.
[ "Returns", "the", "LogFileHeader", "for", "the", "currently", "active", "log", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogHandle.java#L948-L966
train
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogHandle.java
LogHandle.recoveredRecords
ArrayList<ReadableLogRecord> recoveredRecords() { if (tc.isDebugEnabled()) Tr.debug(tc, "recoveredRecords", _recoveredRecords); return _recoveredRecords; }
java
ArrayList<ReadableLogRecord> recoveredRecords() { if (tc.isDebugEnabled()) Tr.debug(tc, "recoveredRecords", _recoveredRecords); return _recoveredRecords; }
[ "ArrayList", "<", "ReadableLogRecord", ">", "recoveredRecords", "(", ")", "{", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"recoveredRecords\"", ",", "_recoveredRecords", ")", ";", "return", "_recoveredRecords",...
Returns an array of ReadableLogRecords retrieved when the recovery log was opened. @return ArrayList An array of ReadableLogRecords.
[ "Returns", "an", "array", "of", "ReadableLogRecords", "retrieved", "when", "the", "recovery", "log", "was", "opened", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogHandle.java#L977-L982
train
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogHandle.java
LogHandle.setServiceData
void setServiceData(byte[] serviceData) throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "setServiceData", new java.lang.Object[] { RLSUtils.toHexString(serviceData, RLSUtils.MAX_DISPLAY_BYTES), this }); // Check that the files are available if ((_file1 == nul...
java
void setServiceData(byte[] serviceData) throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "setServiceData", new java.lang.Object[] { RLSUtils.toHexString(serviceData, RLSUtils.MAX_DISPLAY_BYTES), this }); // Check that the files are available if ((_file1 == nul...
[ "void", "setServiceData", "(", "byte", "[", "]", "serviceData", ")", "throws", "InternalLogException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"setServiceData\"", ",", "new", "java", ".", "lang", ...
Package access method to replace the existing service data with the new service data. @param serviceData The new service data or null for no service data. @exception InternalLogException An unexpected error has occured.
[ "Package", "access", "method", "to", "replace", "the", "existing", "service", "data", "with", "the", "new", "service", "data", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogHandle.java#L995-L1017
train
OpenLiberty/open-liberty
dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogHandle.java
LogHandle.writeLogRecord
protected void writeLogRecord(LogRecord logRecord) { if (tc.isEntryEnabled()) Tr.entry(tc, "writeLogRecord", logRecord); _activeFile.writeLogRecord(logRecord); if (tc.isEntryEnabled()) Tr.exit(tc, "writeLogRecord"); }
java
protected void writeLogRecord(LogRecord logRecord) { if (tc.isEntryEnabled()) Tr.entry(tc, "writeLogRecord", logRecord); _activeFile.writeLogRecord(logRecord); if (tc.isEntryEnabled()) Tr.exit(tc, "writeLogRecord"); }
[ "protected", "void", "writeLogRecord", "(", "LogRecord", "logRecord", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"writeLogRecord\"", ",", "logRecord", ")", ";", "_activeFile", ".", "writeLogRecord",...
Do any necessary under the covers work to write the LogRecord.
[ "Do", "any", "necessary", "under", "the", "covers", "work", "to", "write", "the", "LogRecord", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogHandle.java#L1373-L1382
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ArchiveUtils.java
ArchiveUtils.processArchiveManifest
public static Map<String, String> processArchiveManifest(final JarFile jarFile) throws Throwable { Map<String, String> manifestAttrs = null; if (jarFile != null) { try { manifestAttrs = AccessController.doPrivileged(new PrivilegedExceptionAction<Map<String, String>>() { ...
java
public static Map<String, String> processArchiveManifest(final JarFile jarFile) throws Throwable { Map<String, String> manifestAttrs = null; if (jarFile != null) { try { manifestAttrs = AccessController.doPrivileged(new PrivilegedExceptionAction<Map<String, String>>() { ...
[ "public", "static", "Map", "<", "String", ",", "String", ">", "processArchiveManifest", "(", "final", "JarFile", "jarFile", ")", "throws", "Throwable", "{", "Map", "<", "String", ",", "String", ">", "manifestAttrs", "=", "null", ";", "if", "(", "jarFile", ...
Gets the archive file Manifest attributes as a String Map from a jar file. @param jarFile the Jar File to be processes @return a Map of attributes and values compiled from the jar file's manifest file @throws Throwable
[ "Gets", "the", "archive", "file", "Manifest", "attributes", "as", "a", "String", "Map", "from", "a", "jar", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ArchiveUtils.java#L105-L134
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ArchiveUtils.java
ArchiveUtils.processArchiveManifest
public static Map<String, String> processArchiveManifest(final File file) throws Throwable { Map<String, String> manifestAttrs = null; if (file != null && file.isFile() && ArchiveFileType.JAR.isType(file.getPath())) { JarFile jarFile = null; try { jarFile = new J...
java
public static Map<String, String> processArchiveManifest(final File file) throws Throwable { Map<String, String> manifestAttrs = null; if (file != null && file.isFile() && ArchiveFileType.JAR.isType(file.getPath())) { JarFile jarFile = null; try { jarFile = new J...
[ "public", "static", "Map", "<", "String", ",", "String", ">", "processArchiveManifest", "(", "final", "File", "file", ")", "throws", "Throwable", "{", "Map", "<", "String", ",", "String", ">", "manifestAttrs", "=", "null", ";", "if", "(", "file", "!=", "...
Gets the archive file Manifest attributes as a String Map from a file. @param file the file to be processed @return a Map of attributes and values compiled from the file's manifest file @throws Throwable
[ "Gets", "the", "archive", "file", "Manifest", "attributes", "as", "a", "String", "Map", "from", "a", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ArchiveUtils.java#L143-L159
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ArchiveUtils.java
ArchiveUtils.getLicenseAgreement
public static String getLicenseAgreement(final JarFile jar, final Map<String, String> manifestAttrs) { String licenseAgreement = null; if (manifestAttrs.isEmpty()) { return licenseAgreement; } String licenseAgreementPrefix = manifestAttrs.get(ArchiveUtils.LICENSE_AGREEMENT)...
java
public static String getLicenseAgreement(final JarFile jar, final Map<String, String> manifestAttrs) { String licenseAgreement = null; if (manifestAttrs.isEmpty()) { return licenseAgreement; } String licenseAgreementPrefix = manifestAttrs.get(ArchiveUtils.LICENSE_AGREEMENT)...
[ "public", "static", "String", "getLicenseAgreement", "(", "final", "JarFile", "jar", ",", "final", "Map", "<", "String", ",", "String", ">", "manifestAttrs", ")", "{", "String", "licenseAgreement", "=", "null", ";", "if", "(", "manifestAttrs", ".", "isEmpty", ...
Gets the license agreement for the jar file. @param jar the jar file @param manifestAttrs the manifest file for the jar file @return the license agreement as a String
[ "Gets", "the", "license", "agreement", "for", "the", "jar", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ArchiveUtils.java#L168-L183
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/ConcurrentServiceReferenceSetMap.java
ConcurrentServiceReferenceSetMap.deactivate
public void deactivate(ComponentContext context) { if (contextRef.get() == null) { // Components are only deactivated if they activate successfully, // and component instances are discarded after being deactivated. // This is either DS or programmer error. throw n...
java
public void deactivate(ComponentContext context) { if (contextRef.get() == null) { // Components are only deactivated if they activate successfully, // and component instances are discarded after being deactivated. // This is either DS or programmer error. throw n...
[ "public", "void", "deactivate", "(", "ComponentContext", "context", ")", "{", "if", "(", "contextRef", ".", "get", "(", ")", "==", "null", ")", "{", "// Components are only deactivated if they activate successfully,", "// and component instances are discarded after being deac...
Deactivates the map. Will trigger a release of all held services.
[ "Deactivates", "the", "map", ".", "Will", "trigger", "a", "release", "of", "all", "held", "services", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/ConcurrentServiceReferenceSetMap.java#L91-L100
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.init
public void init(HttpInboundServiceContext sc) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); }
java
public void init(HttpInboundServiceContext sc) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); }
[ "public", "void", "init", "(", "HttpInboundServiceContext", "sc", ")", "{", "// for requests, we don't care about the validation", "setHeaderValidation", "(", "false", ")", ";", "setOwner", "(", "sc", ")", ";", "setBinaryParseState", "(", "HttpInternalConstants", ".", "...
Initialize this incoming HTTP request message. @param sc
[ "Initialize", "this", "incoming", "HTTP", "request", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L159-L164
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.init
public void init(HttpOutboundServiceContext sc) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); setVersion(getServiceContext().getHttpConfig().getOutgoingVersion());...
java
public void init(HttpOutboundServiceContext sc) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); setVersion(getServiceContext().getHttpConfig().getOutgoingVersion());...
[ "public", "void", "init", "(", "HttpOutboundServiceContext", "sc", ")", "{", "// for requests, we don't care about the validation", "setHeaderValidation", "(", "false", ")", ";", "setOwner", "(", "sc", ")", ";", "setBinaryParseState", "(", "HttpInternalConstants", ".", ...
Initialize this outgoing HTTP request message. @param sc
[ "Initialize", "this", "outgoing", "HTTP", "request", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L171-L177
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.init
public void init(HttpInboundServiceContext sc, BNFHeaders hdrs) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); if (null != hdrs) { hdrs.duplicate(this);...
java
public void init(HttpInboundServiceContext sc, BNFHeaders hdrs) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); if (null != hdrs) { hdrs.duplicate(this);...
[ "public", "void", "init", "(", "HttpInboundServiceContext", "sc", ",", "BNFHeaders", "hdrs", ")", "{", "// for requests, we don't care about the validation", "setHeaderValidation", "(", "false", ")", ";", "setOwner", "(", "sc", ")", ";", "setBinaryParseState", "(", "H...
Initialize this incoming HTTP request message with specific headers, ie. ones stored in a cache perhaps. @param sc @param hdrs
[ "Initialize", "this", "incoming", "HTTP", "request", "message", "with", "specific", "headers", "ie", ".", "ones", "stored", "in", "a", "cache", "perhaps", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L186-L194
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.init
public void init(HttpOutboundServiceContext sc, BNFHeaders hdrs) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); if (null != hdrs) { hdrs.duplicate(this)...
java
public void init(HttpOutboundServiceContext sc, BNFHeaders hdrs) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); if (null != hdrs) { hdrs.duplicate(this)...
[ "public", "void", "init", "(", "HttpOutboundServiceContext", "sc", ",", "BNFHeaders", "hdrs", ")", "{", "// for requests, we don't care about the validation", "setHeaderValidation", "(", "false", ")", ";", "setOwner", "(", "sc", ")", ";", "setBinaryParseState", "(", "...
Initialize this outgoing HTTP request message with specific headers, ie. ones stored in a cache perhaps. @param sc @param hdrs
[ "Initialize", "this", "outgoing", "HTTP", "request", "message", "with", "specific", "headers", "ie", ".", "ones", "stored", "in", "a", "cache", "perhaps", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L203-L212
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.encodePseudoHeaders
@Override public WsByteBuffer[] encodePseudoHeaders() { WsByteBuffer[] firstLine = new WsByteBuffer[1]; firstLine[0] = allocateBuffer(getOutgoingBufferSize()); LiteralIndexType indexType = LiteralIndexType.NOINDEXING; //For the time being, there will be no indexing on the responses ...
java
@Override public WsByteBuffer[] encodePseudoHeaders() { WsByteBuffer[] firstLine = new WsByteBuffer[1]; firstLine[0] = allocateBuffer(getOutgoingBufferSize()); LiteralIndexType indexType = LiteralIndexType.NOINDEXING; //For the time being, there will be no indexing on the responses ...
[ "@", "Override", "public", "WsByteBuffer", "[", "]", "encodePseudoHeaders", "(", ")", "{", "WsByteBuffer", "[", "]", "firstLine", "=", "new", "WsByteBuffer", "[", "1", "]", ";", "firstLine", "[", "0", "]", "=", "allocateBuffer", "(", "getOutgoingBufferSize", ...
of the first line.
[ "of", "the", "first", "line", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L557-L606
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.setMethod
@Override public void setMethod(String method) throws UnsupportedMethodException { MethodValues val = MethodValues.match(method, 0, method.length()); if (null == val) { throw new UnsupportedMethodException("Illegal method " + method); } setMethod(val); }
java
@Override public void setMethod(String method) throws UnsupportedMethodException { MethodValues val = MethodValues.match(method, 0, method.length()); if (null == val) { throw new UnsupportedMethodException("Illegal method " + method); } setMethod(val); }
[ "@", "Override", "public", "void", "setMethod", "(", "String", "method", ")", "throws", "UnsupportedMethodException", "{", "MethodValues", "val", "=", "MethodValues", ".", "match", "(", "method", ",", "0", ",", "method", ".", "length", "(", ")", ")", ";", ...
Set the method of this request to the given String if it is valid. @param method @throws UnsupportedMethodException
[ "Set", "the", "method", "of", "this", "request", "to", "the", "given", "String", "if", "it", "is", "valid", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L728-L735
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.setMethod
@Override public void setMethod(MethodValues method) { this.myMethod = method; super.setFirstLineChanged(); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "setMethod(v): " + (null != method ? method.getName() : null)); } }
java
@Override public void setMethod(MethodValues method) { this.myMethod = method; super.setFirstLineChanged(); if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "setMethod(v): " + (null != method ? method.getName() : null)); } }
[ "@", "Override", "public", "void", "setMethod", "(", "MethodValues", "method", ")", "{", "this", ".", "myMethod", "=", "method", ";", "super", ".", "setFirstLineChanged", "(", ")", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&",...
Set the request method to the given value. @param method
[ "Set", "the", "request", "method", "to", "the", "given", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L757-L764
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.getRequestURI
@Override final public String getRequestURI() { if (null == this.myURIString) { this.myURIString = GenericUtils.getEnglishString(this.myURIBytes); } return this.myURIString; }
java
@Override final public String getRequestURI() { if (null == this.myURIString) { this.myURIString = GenericUtils.getEnglishString(this.myURIBytes); } return this.myURIString; }
[ "@", "Override", "final", "public", "String", "getRequestURI", "(", ")", "{", "if", "(", "null", "==", "this", ".", "myURIString", ")", "{", "this", ".", "myURIString", "=", "GenericUtils", ".", "getEnglishString", "(", "this", ".", "myURIBytes", ")", ";",...
Query the value of the request URI. @return String
[ "Query", "the", "value", "of", "the", "request", "URI", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L771-L777
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.getTargetHost
private String getTargetHost() { String host = getVirtualHost(); if (null == host) { host = (isIncoming()) ? getServiceContext().getLocalAddr().getCanonicalHostName() : getServiceContext().getRemoteAddr().getCanonicalHostName(); } return host; }
java
private String getTargetHost() { String host = getVirtualHost(); if (null == host) { host = (isIncoming()) ? getServiceContext().getLocalAddr().getCanonicalHostName() : getServiceContext().getRemoteAddr().getCanonicalHostName(); } return host; }
[ "private", "String", "getTargetHost", "(", ")", "{", "String", "host", "=", "getVirtualHost", "(", ")", ";", "if", "(", "null", "==", "host", ")", "{", "host", "=", "(", "isIncoming", "(", ")", ")", "?", "getServiceContext", "(", ")", ".", "getLocalAdd...
Find the target host of the request. This checks the VirtualHost data but falls back on the socket layer target if need be. @return String
[ "Find", "the", "target", "host", "of", "the", "request", ".", "This", "checks", "the", "VirtualHost", "data", "but", "falls", "back", "on", "the", "socket", "layer", "target", "if", "need", "be", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L795-L801
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.getTargetPort
private int getTargetPort() { int port = getVirtualPort(); if (NOTSET == port) { port = (isIncoming()) ? getServiceContext().getLocalPort() : getServiceContext().getRemotePort(); } return port; }
java
private int getTargetPort() { int port = getVirtualPort(); if (NOTSET == port) { port = (isIncoming()) ? getServiceContext().getLocalPort() : getServiceContext().getRemotePort(); } return port; }
[ "private", "int", "getTargetPort", "(", ")", "{", "int", "port", "=", "getVirtualPort", "(", ")", ";", "if", "(", "NOTSET", "==", "port", ")", "{", "port", "=", "(", "isIncoming", "(", ")", ")", "?", "getServiceContext", "(", ")", ".", "getLocalPort", ...
Find the target port of the request. This checks the VirtualPort data and falls back on the socket port information if need be. @return int
[ "Find", "the", "target", "port", "of", "the", "request", ".", "This", "checks", "the", "VirtualPort", "data", "and", "falls", "back", "on", "the", "socket", "port", "information", "if", "need", "be", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L809-L815
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.getVirtualPort
@Override public int getVirtualPort() { if (HeaderStorage.NOTSET != this.iUrlPort) { // use the port from the parsed URL return this.iUrlPort; } if (NOT_PRESENT <= this.iHdrPort) { // already searched the header value and either found it or not, ...
java
@Override public int getVirtualPort() { if (HeaderStorage.NOTSET != this.iUrlPort) { // use the port from the parsed URL return this.iUrlPort; } if (NOT_PRESENT <= this.iHdrPort) { // already searched the header value and either found it or not, ...
[ "@", "Override", "public", "int", "getVirtualPort", "(", ")", "{", "if", "(", "HeaderStorage", ".", "NOTSET", "!=", "this", ".", "iUrlPort", ")", "{", "// use the port from the parsed URL", "return", "this", ".", "iUrlPort", ";", "}", "if", "(", "NOT_PRESENT",...
Query the target port of this request. It will first check for a port in the URL string and if not found, it will check the Host header. This will return -1 if it is not found in either spot. @return int
[ "Query", "the", "target", "port", "of", "this", "request", ".", "It", "will", "first", "check", "for", "a", "port", "in", "the", "URL", "string", "and", "if", "not", "found", "it", "will", "check", "the", "Host", "header", ".", "This", "will", "return"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L954-L1021
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.parseURI
private void parseURI(byte[] data, int start) { // at this point, we're parsing /URI [?querystring] if (start >= data.length) { // PK22096 - default to "/" if not found, should have caught empty // string inputs previously (http://host:port is valid) this.myURIBytes =...
java
private void parseURI(byte[] data, int start) { // at this point, we're parsing /URI [?querystring] if (start >= data.length) { // PK22096 - default to "/" if not found, should have caught empty // string inputs previously (http://host:port is valid) this.myURIBytes =...
[ "private", "void", "parseURI", "(", "byte", "[", "]", "data", ",", "int", "start", ")", "{", "// at this point, we're parsing /URI [?querystring]", "if", "(", "start", ">=", "data", ".", "length", ")", "{", "// PK22096 - default to \"/\" if not found, should have caught...
Parse the URI information out of the input data, along with any query information found afterwards. If format errors are found, then an exception is thrown. @param data @param start @throws IllegalArgumentException
[ "Parse", "the", "URI", "information", "out", "of", "the", "input", "data", "along", "with", "any", "query", "information", "found", "afterwards", ".", "If", "format", "errors", "are", "found", "then", "an", "exception", "is", "thrown", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L1151-L1188
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.parseScheme
private void parseScheme(byte[] data) { // we know the first character is correct, find the colon for (int i = 1; i < data.length; i++) { if (':' == data[i]) { SchemeValues val = SchemeValues.match(data, 0, i); if (null == val) { throw new ...
java
private void parseScheme(byte[] data) { // we know the first character is correct, find the colon for (int i = 1; i < data.length; i++) { if (':' == data[i]) { SchemeValues val = SchemeValues.match(data, 0, i); if (null == val) { throw new ...
[ "private", "void", "parseScheme", "(", "byte", "[", "]", "data", ")", "{", "// we know the first character is correct, find the colon", "for", "(", "int", "i", "=", "1", ";", "i", "<", "data", ".", "length", ";", "i", "++", ")", "{", "if", "(", "'", "'",...
Parse the scheme marker out of the input data and then start the parse for the next section. If any errors are encountered, then an exception is thrown. @param data @throws IllegalArgumentException
[ "Parse", "the", "scheme", "marker", "out", "of", "the", "input", "data", "and", "then", "start", "the", "parse", "for", "the", "next", "section", ".", "If", "any", "errors", "are", "encountered", "then", "an", "exception", "is", "thrown", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L1252-L1271
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.setRequestURI
@Override public void setRequestURI(byte[] uri) { if (null == uri || 0 == uri.length) { throw new IllegalArgumentException("setRequestURI: null input"); } super.setFirstLineChanged(); if ('*' == uri[0]) { // URI of "*" can only be one character long to be va...
java
@Override public void setRequestURI(byte[] uri) { if (null == uri || 0 == uri.length) { throw new IllegalArgumentException("setRequestURI: null input"); } super.setFirstLineChanged(); if ('*' == uri[0]) { // URI of "*" can only be one character long to be va...
[ "@", "Override", "public", "void", "setRequestURI", "(", "byte", "[", "]", "uri", ")", "{", "if", "(", "null", "==", "uri", "||", "0", "==", "uri", ".", "length", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"setRequestURI: null input\"", "...
Allow the user to set the URI in the HttpRequest to the given byte array, prior to sending the request. @param uri
[ "Allow", "the", "user", "to", "set", "the", "URI", "in", "the", "HttpRequest", "to", "the", "given", "byte", "array", "prior", "to", "sending", "the", "request", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L1393-L1429
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.initScheme
public void initScheme() { // set the scheme based on whether the socket is secure or not if (null == getServiceContext() || null == getServiceContext().getTSC()) { // discrimination path, not ready for this yet return; } if (getServiceContext().isSecure()) { ...
java
public void initScheme() { // set the scheme based on whether the socket is secure or not if (null == getServiceContext() || null == getServiceContext().getTSC()) { // discrimination path, not ready for this yet return; } if (getServiceContext().isSecure()) { ...
[ "public", "void", "initScheme", "(", ")", "{", "// set the scheme based on whether the socket is secure or not", "if", "(", "null", "==", "getServiceContext", "(", ")", "||", "null", "==", "getServiceContext", "(", ")", ".", "getTSC", "(", ")", ")", "{", "// discr...
Initialize the scheme information based on the socket being secure or not.
[ "Initialize", "the", "scheme", "information", "based", "on", "the", "socket", "being", "secure", "or", "not", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L1450-L1461
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.getScheme
@Override public String getScheme() { // if it hasn't been set yet, then check whether the SC is secure // or not and set the value accordingly if (null == this.myScheme) { initScheme(); } if (null == this.myScheme) { // if the request has been already destroyed t...
java
@Override public String getScheme() { // if it hasn't been set yet, then check whether the SC is secure // or not and set the value accordingly if (null == this.myScheme) { initScheme(); } if (null == this.myScheme) { // if the request has been already destroyed t...
[ "@", "Override", "public", "String", "getScheme", "(", ")", "{", "// if it hasn't been set yet, then check whether the SC is secure", "// or not and set the value accordingly", "if", "(", "null", "==", "this", ".", "myScheme", ")", "{", "initScheme", "(", ")", ";", "}",...
Query the value of the scheme. @return String
[ "Query", "the", "value", "of", "the", "scheme", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L1468-L1479
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.setScheme
@Override public void setScheme(SchemeValues scheme) { this.myScheme = scheme; super.setFirstLineChanged(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setScheme(v): " + (null != scheme ? scheme.getName() : null)); } }
java
@Override public void setScheme(SchemeValues scheme) { this.myScheme = scheme; super.setFirstLineChanged(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setScheme(v): " + (null != scheme ? scheme.getName() : null)); } }
[ "@", "Override", "public", "void", "setScheme", "(", "SchemeValues", "scheme", ")", "{", "this", ".", "myScheme", "=", "scheme", ";", "super", ".", "setFirstLineChanged", "(", ")", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&",...
Set the value of the scheme in the Request by using the int identifiers. @param scheme
[ "Set", "the", "value", "of", "the", "scheme", "in", "the", "Request", "by", "using", "the", "int", "identifiers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L1487-L1494
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.deserializeMethod
private void deserializeMethod(ObjectInput stream) throws IOException, ClassNotFoundException { MethodValues method = null; if (SERIALIZATION_V2 == getDeserializationVersion()) { method = MethodValues.find(readByteArray(stream)); } else { method = MethodValues.find((Strin...
java
private void deserializeMethod(ObjectInput stream) throws IOException, ClassNotFoundException { MethodValues method = null; if (SERIALIZATION_V2 == getDeserializationVersion()) { method = MethodValues.find(readByteArray(stream)); } else { method = MethodValues.find((Strin...
[ "private", "void", "deserializeMethod", "(", "ObjectInput", "stream", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "MethodValues", "method", "=", "null", ";", "if", "(", "SERIALIZATION_V2", "==", "getDeserializationVersion", "(", ")", ")", "{", ...
Deserialize the method information from the input stream. @param stream @throws IOException @throws ClassNotFoundException
[ "Deserialize", "the", "method", "information", "from", "the", "input", "stream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L1712-L1723
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.deserializeScheme
private void deserializeScheme(ObjectInput stream) throws IOException, ClassNotFoundException { SchemeValues scheme = null; if (SERIALIZATION_V2 == getDeserializationVersion()) { byte[] value = readByteArray(stream); if (null == value) { throw new IOException("Mis...
java
private void deserializeScheme(ObjectInput stream) throws IOException, ClassNotFoundException { SchemeValues scheme = null; if (SERIALIZATION_V2 == getDeserializationVersion()) { byte[] value = readByteArray(stream); if (null == value) { throw new IOException("Mis...
[ "private", "void", "deserializeScheme", "(", "ObjectInput", "stream", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "SchemeValues", "scheme", "=", "null", ";", "if", "(", "SERIALIZATION_V2", "==", "getDeserializationVersion", "(", ")", ")", "{", ...
Deserialize the scheme information from the input stream. @param stream @throws IOException @throws ClassNotFoundException
[ "Deserialize", "the", "scheme", "information", "from", "the", "input", "stream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L1732-L1745
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java
HttpRequestMessageImpl.parseParameters
private synchronized void parseParameters() { if (null != this.queryParams) { // already parsed return; } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "parseParameters for " + this); } String encoding = getCh...
java
private synchronized void parseParameters() { if (null != this.queryParams) { // already parsed return; } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "parseParameters for " + this); } String encoding = getCh...
[ "private", "synchronized", "void", "parseParameters", "(", ")", "{", "if", "(", "null", "!=", "this", ".", "queryParams", ")", "{", "// already parsed", "return", ";", "}", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", ...
Parse the query parameters out of this message. This will check just the URL query data of the request.
[ "Parse", "the", "query", "parameters", "out", "of", "this", "message", ".", "This", "will", "check", "just", "the", "URL", "query", "data", "of", "the", "request", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpRequestMessageImpl.java#L1870-L1902
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.setDataSourceFactory
protected void setDataSourceFactory(ServiceReference<ResourceFactory> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setDataSourceFactory", "setting " + ref); } ...
java
protected void setDataSourceFactory(ServiceReference<ResourceFactory> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setDataSourceFactory", "setting " + ref); } ...
[ "protected", "void", "setDataSourceFactory", "(", "ServiceReference", "<", "ResourceFactory", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS", ".", "isLoggable", "(", "Level", ...
Declarative Services method for setting the data source service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "setting", "the", "data", "source", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L204-L209
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.unsetDataSourceFactory
protected void unsetDataSourceFactory(ServiceReference<ResourceFactory> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetDataSourceFactory", "unsetting " + ref); ...
java
protected void unsetDataSourceFactory(ServiceReference<ResourceFactory> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetDataSourceFactory", "unsetting " + ref); ...
[ "protected", "void", "unsetDataSourceFactory", "(", "ServiceReference", "<", "ResourceFactory", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS", ".", "isLoggable", "(", "Level", ...
Declarative Services method for unsetting the data source service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "unsetting", "the", "data", "source", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L216-L221
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.setResourceConfigFactory
protected void setResourceConfigFactory(ServiceReference<ResourceConfigFactory> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setResourceConfigFactory", "setting " + ref); ...
java
protected void setResourceConfigFactory(ServiceReference<ResourceConfigFactory> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setResourceConfigFactory", "setting " + ref); ...
[ "protected", "void", "setResourceConfigFactory", "(", "ServiceReference", "<", "ResourceConfigFactory", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS", ".", "isLoggable", "(", "...
Declarative Services method for setting the ResourceConfigFactory service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "setting", "the", "ResourceConfigFactory", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L228-L233
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.unsetResourceConfigFactory
protected void unsetResourceConfigFactory(ServiceReference<ResourceConfigFactory> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetResourceConfigFactory", "unsetting " + ...
java
protected void unsetResourceConfigFactory(ServiceReference<ResourceConfigFactory> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetResourceConfigFactory", "unsetting " + ...
[ "protected", "void", "unsetResourceConfigFactory", "(", "ServiceReference", "<", "ResourceConfigFactory", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS", ".", "isLoggable", "(", ...
Declarative Services method for unsetting the ResourceConfigFactory service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "unsetting", "the", "ResourceConfigFactory", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L240-L245
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.setLocalTransactionCurrent
protected void setLocalTransactionCurrent(ServiceReference<LocalTransactionCurrent> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setLocalTransactionCurrent", "setting " + ...
java
protected void setLocalTransactionCurrent(ServiceReference<LocalTransactionCurrent> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setLocalTransactionCurrent", "setting " + ...
[ "protected", "void", "setLocalTransactionCurrent", "(", "ServiceReference", "<", "LocalTransactionCurrent", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS", ".", "isLoggable", "(",...
Declarative Services method for setting the LocalTransactionCurrent service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "setting", "the", "LocalTransactionCurrent", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L252-L257
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.unsetLocalTransactionCurrent
protected void unsetLocalTransactionCurrent(ServiceReference<LocalTransactionCurrent> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetLocalTransactionCurrent", "unsettin...
java
protected void unsetLocalTransactionCurrent(ServiceReference<LocalTransactionCurrent> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetLocalTransactionCurrent", "unsettin...
[ "protected", "void", "unsetLocalTransactionCurrent", "(", "ServiceReference", "<", "LocalTransactionCurrent", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS", ".", "isLoggable", "(...
Declarative Services method for unsetting the LocalTransactionCurrent service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "unsetting", "the", "LocalTransactionCurrent", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L264-L269
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.setEmbeddableWebSphereTransactionManager
protected void setEmbeddableWebSphereTransactionManager(ServiceReference<EmbeddableWebSphereTransactionManager> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setEmbeddableW...
java
protected void setEmbeddableWebSphereTransactionManager(ServiceReference<EmbeddableWebSphereTransactionManager> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setEmbeddableW...
[ "protected", "void", "setEmbeddableWebSphereTransactionManager", "(", "ServiceReference", "<", "EmbeddableWebSphereTransactionManager", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS", ...
Declarative Services method for setting the EmbeddableWebSphereTransactionManager service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "setting", "the", "EmbeddableWebSphereTransactionManager", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L276-L281
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.unsetEmbeddableWebSphereTransactionManager
protected void unsetEmbeddableWebSphereTransactionManager(ServiceReference<EmbeddableWebSphereTransactionManager> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetEmbedda...
java
protected void unsetEmbeddableWebSphereTransactionManager(ServiceReference<EmbeddableWebSphereTransactionManager> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetEmbedda...
[ "protected", "void", "unsetEmbeddableWebSphereTransactionManager", "(", "ServiceReference", "<", "EmbeddableWebSphereTransactionManager", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS",...
Declarative Services method for unsetting the EmbeddableWebSphereTransactionManager service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "unsetting", "the", "EmbeddableWebSphereTransactionManager", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L288-L293
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.setUowCurrent
protected void setUowCurrent(ServiceReference<UOWCurrent> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setUowCurrent", "setting " + ref); } uowCurrentRef.s...
java
protected void setUowCurrent(ServiceReference<UOWCurrent> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setUowCurrent", "setting " + ref); } uowCurrentRef.s...
[ "protected", "void", "setUowCurrent", "(", "ServiceReference", "<", "UOWCurrent", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS", ".", "isLoggable", "(", "Level", ".", "FINE...
Declarative Services method for setting the UOWCurrent service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "setting", "the", "UOWCurrent", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L300-L305
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.unsetUowCurrent
protected void unsetUowCurrent(ServiceReference<UOWCurrent> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetUowCurrent", "unsetting " + ref); } uowCurren...
java
protected void unsetUowCurrent(ServiceReference<UOWCurrent> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetUowCurrent", "unsetting " + ref); } uowCurren...
[ "protected", "void", "unsetUowCurrent", "(", "ServiceReference", "<", "UOWCurrent", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS", ".", "isLoggable", "(", "Level", ".", "FI...
Declarative Services method for unsetting the UOWCurrent service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "unsetting", "the", "UOWCurrent", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L312-L317
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.setUserTransaction
protected void setUserTransaction(ServiceReference<UserTransaction> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setUserTransaction", "setting " + ref); } ...
java
protected void setUserTransaction(ServiceReference<UserTransaction> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setUserTransaction", "setting " + ref); } ...
[ "protected", "void", "setUserTransaction", "(", "ServiceReference", "<", "UserTransaction", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS", ".", "isLoggable", "(", "Level", "....
Declarative Services method for setting the UserTransaction service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "setting", "the", "UserTransaction", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L324-L329
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.unsetUserTransaction
protected void unsetUserTransaction(ServiceReference<UserTransaction> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetUserTransaction", "unsetting " + ref); } ...
java
protected void unsetUserTransaction(ServiceReference<UserTransaction> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetUserTransaction", "unsetting " + ref); } ...
[ "protected", "void", "unsetUserTransaction", "(", "ServiceReference", "<", "UserTransaction", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS", ".", "isLoggable", "(", "Level", ...
Declarative Services method for unsetting the UserTransaction service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "unsetting", "the", "UserTransaction", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L336-L341
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.setSerializationService
protected void setSerializationService(ServiceReference<SerializationService> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setSerializationService", "setting " + ref); ...
java
protected void setSerializationService(ServiceReference<SerializationService> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "setSerializationService", "setting " + ref); ...
[ "protected", "void", "setSerializationService", "(", "ServiceReference", "<", "SerializationService", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS", ".", "isLoggable", "(", "Le...
Declarative Services method for setting the SerializationService service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "setting", "the", "SerializationService", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L348-L353
train
OpenLiberty/open-liberty
dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java
DatabaseStoreService.unsetSerializationService
protected void unsetSerializationService(ServiceReference<SerializationService> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetSerializationService", "unsetting " + ref...
java
protected void unsetSerializationService(ServiceReference<SerializationService> ref) { if (TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, "unsetSerializationService", "unsetting " + ref...
[ "protected", "void", "unsetSerializationService", "(", "ServiceReference", "<", "SerializationService", ">", "ref", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "LoggingUtil", ".", "SESSION_LOGGER_WAS", ".", "isLoggable", "(", "...
Declarative Services method for unsetting the SerializationService service reference @param ref reference to service object; type of service object is verified
[ "Declarative", "Services", "method", "for", "unsetting", "the", "SerializationService", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.db/src/com/ibm/ws/session/store/db/DatabaseStoreService.java#L360-L365
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/tsx/db/Query.java
Query.getJdbcConnection
private Connection getJdbcConnection() throws JspCoreException, SQLException { Connection conn = null; String url = getConnProperties().getUrl(); String user = getConnProperties().getLoginUser(); String passwd = getConnProperties().getLoginPasswd(); String jndiName = getConnPro...
java
private Connection getJdbcConnection() throws JspCoreException, SQLException { Connection conn = null; String url = getConnProperties().getUrl(); String user = getConnProperties().getLoginUser(); String passwd = getConnProperties().getLoginPasswd(); String jndiName = getConnPro...
[ "private", "Connection", "getJdbcConnection", "(", ")", "throws", "JspCoreException", ",", "SQLException", "{", "Connection", "conn", "=", "null", ";", "String", "url", "=", "getConnProperties", "(", ")", ".", "getUrl", "(", ")", ";", "String", "user", "=", ...
Return a valid jdbc connection. if jndiName is specified then assume that we need to use a datasource else use a drivermanager
[ "Return", "a", "valid", "jdbc", "connection", ".", "if", "jndiName", "is", "specified", "then", "assume", "that", "we", "need", "to", "use", "a", "datasource", "else", "use", "a", "drivermanager" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/tsx/db/Query.java#L169-L205
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/utils/URLUtils.java
URLUtils.isAbsolutePath
public static boolean isAbsolutePath(String uri) { boolean absolute = false; if (uri != null) { if (uri.indexOf(":/") != -1) { absolute = true; } else if (uri.indexOf(":\\") != -1) { absolute = true; } } return absolute...
java
public static boolean isAbsolutePath(String uri) { boolean absolute = false; if (uri != null) { if (uri.indexOf(":/") != -1) { absolute = true; } else if (uri.indexOf(":\\") != -1) { absolute = true; } } return absolute...
[ "public", "static", "boolean", "isAbsolutePath", "(", "String", "uri", ")", "{", "boolean", "absolute", "=", "false", ";", "if", "(", "uri", "!=", "null", ")", "{", "if", "(", "uri", ".", "indexOf", "(", "\":/\"", ")", "!=", "-", "1", ")", "{", "ab...
Checks to see if URI is absolute or relative. @param uri @return true it is absolute or false if not
[ "Checks", "to", "see", "if", "URI", "is", "absolute", "or", "relative", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/utils/URLUtils.java#L23-L34
train
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixUtils.java
IFixUtils.equalsHashes
private static boolean equalsHashes(File fileToHash, String hashToCompare) throws IOException { boolean result = false; // Now calculate the new hash and compare the 2. If they are NOT the same the ifix needs to be re-applied. String fileHash = MD5Utils.getFileMD5String(fileToHash); if ...
java
private static boolean equalsHashes(File fileToHash, String hashToCompare) throws IOException { boolean result = false; // Now calculate the new hash and compare the 2. If they are NOT the same the ifix needs to be re-applied. String fileHash = MD5Utils.getFileMD5String(fileToHash); if ...
[ "private", "static", "boolean", "equalsHashes", "(", "File", "fileToHash", ",", "String", "hashToCompare", ")", "throws", "IOException", "{", "boolean", "result", "=", "false", ";", "// Now calculate the new hash and compare the 2. If they are NOT the same the ifix needs to be ...
This method calculates a hash of the required file and compares it against the supplied hash. It then returns true if both hashes are equals. @param fileToHash - The file to calculate the hash for. @param hashToCompare - The hash to compare. @return - A boolean indicating whether the hashes are equal.
[ "This", "method", "calculates", "a", "hash", "of", "the", "required", "file", "and", "compares", "it", "against", "the", "supplied", "hash", ".", "It", "then", "returns", "true", "if", "both", "hashes", "are", "equals", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixUtils.java#L305-L314
train
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixUtils.java
IFixUtils.processIFixXmls
private static Map<String, IFixInfo> processIFixXmls(File wlpInstallationDirectory, Map<String, BundleFile> bundleFiles, CommandConsole console) { // A map of update file names and the IfixInfo objects that contain the latest versions of these files. Map<String, IFixInfo> filteredIfixInfos = new HashMa...
java
private static Map<String, IFixInfo> processIFixXmls(File wlpInstallationDirectory, Map<String, BundleFile> bundleFiles, CommandConsole console) { // A map of update file names and the IfixInfo objects that contain the latest versions of these files. Map<String, IFixInfo> filteredIfixInfos = new HashMa...
[ "private", "static", "Map", "<", "String", ",", "IFixInfo", ">", "processIFixXmls", "(", "File", "wlpInstallationDirectory", ",", "Map", "<", "String", ",", "BundleFile", ">", "bundleFiles", ",", "CommandConsole", "console", ")", "{", "// A map of update file names ...
This method processes all of the ifix xml's and stores the latest version of each file found in a map. The comparisons on each file are based on the date associated with the file. The latest date means the latest update. @param wlpInstallationDirectory - The Liberty install dir. @param bundleFiles - A Map of all bundl...
[ "This", "method", "processes", "all", "of", "the", "ifix", "xml", "s", "and", "stores", "the", "latest", "version", "of", "each", "file", "found", "in", "a", "map", ".", "The", "comparisons", "on", "each", "file", "are", "based", "on", "the", "date", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixUtils.java#L414-L474
train
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixUtils.java
IFixUtils.getExistingMatchingIfixID
private static String getExistingMatchingIfixID(BundleFile bundleFile, Set<String> existingIDs, Map<String, BundleFile> bundleFiles) { String existingIfixKey = null; // Iterate over the known ids. for (String existingID : existingIDs) { // If we have a corresponding BundleFile for th...
java
private static String getExistingMatchingIfixID(BundleFile bundleFile, Set<String> existingIDs, Map<String, BundleFile> bundleFiles) { String existingIfixKey = null; // Iterate over the known ids. for (String existingID : existingIDs) { // If we have a corresponding BundleFile for th...
[ "private", "static", "String", "getExistingMatchingIfixID", "(", "BundleFile", "bundleFile", ",", "Set", "<", "String", ">", "existingIDs", ",", "Map", "<", "String", ",", "BundleFile", ">", "bundleFiles", ")", "{", "String", "existingIfixKey", "=", "null", ";",...
This method takes a ifix ID finds any existing IFix IDs that refer to the same base bundle. Because the ifix jars will have different qualifiers, we need to be able to work out which ids are related. @param bundleFile - The bundleFile that maps to the current jar file we're processing. @param existingIDs - A Set of St...
[ "This", "method", "takes", "a", "ifix", "ID", "finds", "any", "existing", "IFix", "IDs", "that", "refer", "to", "the", "same", "base", "bundle", ".", "Because", "the", "ifix", "jars", "will", "have", "different", "qualifiers", "we", "need", "to", "be", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixUtils.java#L489-L510
train
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixUtils.java
IFixUtils.processLPMFXmls
private static Map<String, BundleFile> processLPMFXmls(File wlpInstallationDirectory, CommandConsole console) { // A map of update file names and the IfixInfo objects that contain the latest versions of these files. Map<String, BundleFile> bundleFiles = new HashMap<String, BundleFile>(); // Ite...
java
private static Map<String, BundleFile> processLPMFXmls(File wlpInstallationDirectory, CommandConsole console) { // A map of update file names and the IfixInfo objects that contain the latest versions of these files. Map<String, BundleFile> bundleFiles = new HashMap<String, BundleFile>(); // Ite...
[ "private", "static", "Map", "<", "String", ",", "BundleFile", ">", "processLPMFXmls", "(", "File", "wlpInstallationDirectory", ",", "CommandConsole", "console", ")", "{", "// A map of update file names and the IfixInfo objects that contain the latest versions of these files.", "M...
This method processes all of the Liberty profile Metadata files stores the BundleFile objects containing the BundleSymbolic name and version of each bundle against the id of the file that matches the corresponding entry in the ifix.xml. @param wlpInstallationDirectory - The Liberty install dir. @param console - The Co...
[ "This", "method", "processes", "all", "of", "the", "Liberty", "profile", "Metadata", "files", "stores", "the", "BundleFile", "objects", "containing", "the", "BundleSymbolic", "name", "and", "version", "of", "each", "bundle", "against", "the", "id", "of", "the", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixUtils.java#L520-L542
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security/src/com/ibm/ws/security/AccessIdUtil.java
AccessIdUtil.getEntityType
public static String getEntityType(String accessId) { Matcher m = matcher(accessId); if (m != null) { return m.group(1); } return null; }
java
public static String getEntityType(String accessId) { Matcher m = matcher(accessId); if (m != null) { return m.group(1); } return null; }
[ "public", "static", "String", "getEntityType", "(", "String", "accessId", ")", "{", "Matcher", "m", "=", "matcher", "(", "accessId", ")", ";", "if", "(", "m", "!=", "null", ")", "{", "return", "m", ".", "group", "(", "1", ")", ";", "}", "return", "...
Given an accessId, extract the entity type. @param accessId @return The type for the accessId, or {@code null} if the accessId is invalid
[ "Given", "an", "accessId", "extract", "the", "entity", "type", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/AccessIdUtil.java#L147-L153
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security/src/com/ibm/ws/security/AccessIdUtil.java
AccessIdUtil.getRealm
public static String getRealm(String accessId) { Matcher m = matcher(accessId); if (m != null) { return m.group(2); } return null; }
java
public static String getRealm(String accessId) { Matcher m = matcher(accessId); if (m != null) { return m.group(2); } return null; }
[ "public", "static", "String", "getRealm", "(", "String", "accessId", ")", "{", "Matcher", "m", "=", "matcher", "(", "accessId", ")", ";", "if", "(", "m", "!=", "null", ")", "{", "return", "m", ".", "group", "(", "2", ")", ";", "}", "return", "null"...
Given an accessId, extract the realm. @param accessId @return The realm for the accessId, or {@code null} if the accessId is invalid
[ "Given", "an", "accessId", "extract", "the", "realm", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/AccessIdUtil.java#L161-L167
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security/src/com/ibm/ws/security/AccessIdUtil.java
AccessIdUtil.getUniqueId
public static String getUniqueId(String accessId) { Matcher m = matcher(accessId); if (m != null) { return m.group(3); } return null; }
java
public static String getUniqueId(String accessId) { Matcher m = matcher(accessId); if (m != null) { return m.group(3); } return null; }
[ "public", "static", "String", "getUniqueId", "(", "String", "accessId", ")", "{", "Matcher", "m", "=", "matcher", "(", "accessId", ")", ";", "if", "(", "m", "!=", "null", ")", "{", "return", "m", ".", "group", "(", "3", ")", ";", "}", "return", "nu...
Given an accessId, extract the uniqueId. @param accessId @return The uniqueId for the accessId, or {@code null} if the accessId is invalid
[ "Given", "an", "accessId", "extract", "the", "uniqueId", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/AccessIdUtil.java#L175-L181
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security/src/com/ibm/ws/security/AccessIdUtil.java
AccessIdUtil.getUniqueId
public static String getUniqueId(String accessId, String realm) { if (realm != null) { Pattern pattern = Pattern.compile("([^:]+):(" + Pattern.quote(realm) + ")/(.*)"); Matcher m = pattern.matcher(accessId); if (m.matches()) { if (m.group(3).length() > 0)...
java
public static String getUniqueId(String accessId, String realm) { if (realm != null) { Pattern pattern = Pattern.compile("([^:]+):(" + Pattern.quote(realm) + ")/(.*)"); Matcher m = pattern.matcher(accessId); if (m.matches()) { if (m.group(3).length() > 0)...
[ "public", "static", "String", "getUniqueId", "(", "String", "accessId", ",", "String", "realm", ")", "{", "if", "(", "realm", "!=", "null", ")", "{", "Pattern", "pattern", "=", "Pattern", ".", "compile", "(", "\"([^:]+):(\"", "+", "Pattern", ".", "quote", ...
Given an accessId and realm name, extract the uniqueId. @param accessId @param realm @return The uniqueId for the accessId, or {@code null} if the accessId is invalid
[ "Given", "an", "accessId", "and", "realm", "name", "extract", "the", "uniqueId", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/AccessIdUtil.java#L190-L203
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/EnvConfig13Source.java
EnvConfig13Source.replaceNonAlpha
private String replaceNonAlpha(String name) { String modifiedName = null; if (p != null) modifiedName = p.matcher(name).replaceAll("_"); return modifiedName; }
java
private String replaceNonAlpha(String name) { String modifiedName = null; if (p != null) modifiedName = p.matcher(name).replaceAll("_"); return modifiedName; }
[ "private", "String", "replaceNonAlpha", "(", "String", "name", ")", "{", "String", "modifiedName", "=", "null", ";", "if", "(", "p", "!=", "null", ")", "modifiedName", "=", "p", ".", "matcher", "(", "name", ")", ".", "replaceAll", "(", "\"_\"", ")", ";...
Replace non-alphanumeric characters in a string with underscores. @param name @return modified name
[ "Replace", "non", "-", "alphanumeric", "characters", "in", "a", "string", "with", "underscores", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.3/src/com/ibm/ws/microprofile/config13/sources/EnvConfig13Source.java#L64-L69
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/SubscriptionItemStream.java
SubscriptionItemStream.setConsumerDispatcher
public void setConsumerDispatcher(ConsumerDispatcher consumerDispatcher) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setConsumerDispatcher", consumerDispatcher); this.consumerDispatcher = consumerDispatcher; if (TraceComponent.isAnyTracin...
java
public void setConsumerDispatcher(ConsumerDispatcher consumerDispatcher) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setConsumerDispatcher", consumerDispatcher); this.consumerDispatcher = consumerDispatcher; if (TraceComponent.isAnyTracin...
[ "public", "void", "setConsumerDispatcher", "(", "ConsumerDispatcher", "consumerDispatcher", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\...
Set the consumerDispatcher object to which this itemstream belongs @param the consumerDispatcher object
[ "Set", "the", "consumerDispatcher", "object", "to", "which", "this", "itemstream", "belongs" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/SubscriptionItemStream.java#L126-L135
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/SubscriptionItemStream.java
SubscriptionItemStream.xmlWriteOn
@Override public void xmlWriteOn(FormattedWriter writer) throws IOException { if (consumerDispatcher != null) { writer.newLine(); writer.taggedValue("consumerDispatcher", consumerDispatcher.toString()); } }
java
@Override public void xmlWriteOn(FormattedWriter writer) throws IOException { if (consumerDispatcher != null) { writer.newLine(); writer.taggedValue("consumerDispatcher", consumerDispatcher.toString()); } }
[ "@", "Override", "public", "void", "xmlWriteOn", "(", "FormattedWriter", "writer", ")", "throws", "IOException", "{", "if", "(", "consumerDispatcher", "!=", "null", ")", "{", "writer", ".", "newLine", "(", ")", ";", "writer", ".", "taggedValue", "(", "\"cons...
Prints debug information to the XML writer
[ "Prints", "debug", "information", "to", "the", "XML", "writer" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/SubscriptionItemStream.java#L153-L161
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/SubscriptionItemStream.java
SubscriptionItemStream.deleteIfPossible
public void deleteIfPossible(boolean startAsynchThread) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteIfPossible", new Boolean(startAsynchThread)); // Lock exclusively to stop any further messages from being added. _subscriptionLockMan...
java
public void deleteIfPossible(boolean startAsynchThread) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "deleteIfPossible", new Boolean(startAsynchThread)); // Lock exclusively to stop any further messages from being added. _subscriptionLockMan...
[ "public", "void", "deleteIfPossible", "(", "boolean", "startAsynchThread", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"deleteIfPossible...
Method deleteIfPossible. <p>Test whether the item stream is marked as awaiting deletion and if so, check if there are still items on the itemstream that will block its removal.</p> Any failures to delete the subscription will queue the request to the Asynch deletion thread.
[ "Method", "deleteIfPossible", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/SubscriptionItemStream.java#L255-L400
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/SubscriptionItemStream.java
SubscriptionItemStream.markAsToBeDeleted
public void markAsToBeDeleted() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "markAsToBeDeleted"); toBeDeleted = true; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "markAsToBeDeleted"); }
java
public void markAsToBeDeleted() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "markAsToBeDeleted"); toBeDeleted = true; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "markAsToBeDeleted"); }
[ "public", "void", "markAsToBeDeleted", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"markAsToBeDeleted\"", ")", ";", "toBeDeleted"...
Mark this itemstream as awaiting deletion
[ "Mark", "this", "itemstream", "as", "awaiting", "deletion" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/SubscriptionItemStream.java#L421-L430
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/SubscriptionItemStream.java
SubscriptionItemStream.removeAllAvailableReferences
public void removeAllAvailableReferences() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeAllAvailableReferences"); LocalTransaction transaction = null; ItemReference itemReference = null; try ...
java
public void removeAllAvailableReferences() throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeAllAvailableReferences"); LocalTransaction transaction = null; ItemReference itemReference = null; try ...
[ "public", "void", "removeAllAvailableReferences", "(", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"rem...
Removes all available reference items from the reference stream in batches @throws MessageStoreException
[ "Removes", "all", "available", "reference", "items", "from", "the", "reference", "stream", "in", "batches" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/SubscriptionItemStream.java#L438-L557
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/SubscriptionItemStream.java
SubscriptionItemStream.getSubscriptionLockManager
public LockManager getSubscriptionLockManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getSubscriptionLockManager"); SibTr.exit(tc, "getSubscriptionLockManager", _subscriptionLockManager); } return _subscriptionLo...
java
public LockManager getSubscriptionLockManager() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getSubscriptionLockManager"); SibTr.exit(tc, "getSubscriptionLockManager", _subscriptionLockManager); } return _subscriptionLo...
[ "public", "LockManager", "getSubscriptionLockManager", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getSubscriptionLockManager\"...
Returns the lock manager associated with this subscription
[ "Returns", "the", "lock", "manager", "associated", "with", "this", "subscription" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/itemstreams/SubscriptionItemStream.java#L626-L634
train
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/serializable/TaskSkipped.java
TaskSkipped.readObject
@Trivial private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { GetField fields = in.readFields(); failure = (Throwable) fields.get(FAILURE, null); previousResult = (byte[]) fields.get(PREVIOUS_RESULT, null); }
java
@Trivial private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { GetField fields = in.readFields(); failure = (Throwable) fields.get(FAILURE, null); previousResult = (byte[]) fields.get(PREVIOUS_RESULT, null); }
[ "@", "Trivial", "private", "void", "readObject", "(", "ObjectInputStream", "in", ")", "throws", "IOException", ",", "ClassNotFoundException", "{", "GetField", "fields", "=", "in", ".", "readFields", "(", ")", ";", "failure", "=", "(", "Throwable", ")", "fields...
Deserialize information about the skipped execution. @param in The stream from which this object is read. @throws IOException @throws ClassNotFoundException
[ "Deserialize", "information", "about", "the", "skipped", "execution", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/serializable/TaskSkipped.java#L122-L127
train
OpenLiberty/open-liberty
dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/serializable/TaskSkipped.java
TaskSkipped.writeObject
@Trivial private void writeObject(ObjectOutputStream out) throws IOException { PutField fields = out.putFields(); fields.put(FAILURE, failure); fields.put(PREVIOUS_RESULT, previousResult); out.writeFields(); }
java
@Trivial private void writeObject(ObjectOutputStream out) throws IOException { PutField fields = out.putFields(); fields.put(FAILURE, failure); fields.put(PREVIOUS_RESULT, previousResult); out.writeFields(); }
[ "@", "Trivial", "private", "void", "writeObject", "(", "ObjectOutputStream", "out", ")", "throws", "IOException", "{", "PutField", "fields", "=", "out", ".", "putFields", "(", ")", ";", "fields", ".", "put", "(", "FAILURE", ",", "failure", ")", ";", "field...
Serialize information about the skipped execution. @param out The stream to which this object is serialized. @throws IOException
[ "Serialize", "information", "about", "the", "skipped", "execution", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/serializable/TaskSkipped.java#L135-L141
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.core/src/com/ibm/ws/staticvalue/StaticValue.java
StaticValue.mutateStaticValue
public static <T> StaticValue<T> mutateStaticValue(StaticValue<T> staticValue, Callable<T> initializer) { if (multiplex) { // Multiplexing case; must check for existing StaticValue if (staticValue == null) { // no existing value; create new one with no constructor initial...
java
public static <T> StaticValue<T> mutateStaticValue(StaticValue<T> staticValue, Callable<T> initializer) { if (multiplex) { // Multiplexing case; must check for existing StaticValue if (staticValue == null) { // no existing value; create new one with no constructor initial...
[ "public", "static", "<", "T", ">", "StaticValue", "<", "T", ">", "mutateStaticValue", "(", "StaticValue", "<", "T", ">", "staticValue", ",", "Callable", "<", "T", ">", "initializer", ")", "{", "if", "(", "multiplex", ")", "{", "// Multiplexing case; must che...
Mutates a static value. Note that if not multiplexing then this method returns a new StaticValue object with the value as obtained by the initializer. @param staticValue the mutated static value using the specified initializer @param initializer the initializer to use to get the new value for the static value @return ...
[ "Mutates", "a", "static", "value", ".", "Note", "that", "if", "not", "multiplexing", "then", "this", "method", "returns", "a", "new", "StaticValue", "object", "with", "the", "value", "as", "obtained", "by", "the", "initializer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ws/staticvalue/StaticValue.java#L76-L89
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/ArrayUtils.java
ArrayUtils.concat
public static Object concat(Object[] arrs) { int totalLen = 0; Class commonComponentType = null; for (int i = 0, len = arrs.length; i < len; i++) { // skip all null arrays if (arrs[i] == null) { continue; } ...
java
public static Object concat(Object[] arrs) { int totalLen = 0; Class commonComponentType = null; for (int i = 0, len = arrs.length; i < len; i++) { // skip all null arrays if (arrs[i] == null) { continue; } ...
[ "public", "static", "Object", "concat", "(", "Object", "[", "]", "arrs", ")", "{", "int", "totalLen", "=", "0", ";", "Class", "commonComponentType", "=", "null", ";", "for", "(", "int", "i", "=", "0", ",", "len", "=", "arrs", ".", "length", ";", "i...
Concatenates arrays into one. Any null or empty arrays are ignored. If all arrays are null or empty, returns null. Elements will be ordered in the order in which the arrays are supplied. @param arrs array of arrays @return the concatenated array
[ "Concatenates", "arrays", "into", "one", ".", "Any", "null", "or", "empty", "arrays", "are", "ignored", ".", "If", "all", "arrays", "are", "null", "or", "empty", "returns", "null", ".", "Elements", "will", "be", "ordered", "in", "the", "order", "in", "wh...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/ArrayUtils.java#L114-L148
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/WIMSortCompare.java
WIMSortCompare.compare
@Override public int compare(T entity1, T entity2) { SortHandler shandler = new SortHandler(sortControl); return shandler.compareEntitysWithRespectToProperties((Entity) entity1, (Entity) entity2); }
java
@Override public int compare(T entity1, T entity2) { SortHandler shandler = new SortHandler(sortControl); return shandler.compareEntitysWithRespectToProperties((Entity) entity1, (Entity) entity2); }
[ "@", "Override", "public", "int", "compare", "(", "T", "entity1", ",", "T", "entity2", ")", "{", "SortHandler", "shandler", "=", "new", "SortHandler", "(", "sortControl", ")", ";", "return", "shandler", ".", "compareEntitysWithRespectToProperties", "(", "(", "...
Compares its two objects for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second. @param obj1 the first object @param obj2 the second object @return a negative integer, zero, or a positive integer as the first argument is less than, eq...
[ "Compares", "its", "two", "objects", "for", "order", ".", "Returns", "a", "negative", "integer", "zero", "or", "a", "positive", "integer", "as", "the", "first", "argument", "is", "less", "than", "equal", "to", "or", "greater", "than", "the", "second", "." ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/WIMSortCompare.java#L43-L48
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/lock/LockManager.java
LockManager.dump
public void dump() { if (!tc.isDumpEnabled()) { return; } Enumeration vEnum = lockTable.keys(); Tr.dump(tc, "-- Lock Manager Dump --"); while (vEnum.hasMoreElements()) { Object key = vEnum.nextElement(); Tr.dump(tc, "lock table entry", ...
java
public void dump() { if (!tc.isDumpEnabled()) { return; } Enumeration vEnum = lockTable.keys(); Tr.dump(tc, "-- Lock Manager Dump --"); while (vEnum.hasMoreElements()) { Object key = vEnum.nextElement(); Tr.dump(tc, "lock table entry", ...
[ "public", "void", "dump", "(", ")", "{", "if", "(", "!", "tc", ".", "isDumpEnabled", "(", ")", ")", "{", "return", ";", "}", "Enumeration", "vEnum", "=", "lockTable", ".", "keys", "(", ")", ";", "Tr", ".", "dump", "(", "tc", ",", "\"-- Lock Manager...
Dump internal state of lock manager.
[ "Dump", "internal", "state", "of", "lock", "manager", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/lock/LockManager.java#L451-L466
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/buildtasks/AbstractInstrumentationTask.java
AbstractInstrumentationTask.getCommandline
protected Commandline getCommandline() { Commandline cmdl = new Commandline(); if (configFile != null) { cmdl.createArgument().setValue("--config"); cmdl.createArgument().setFile(configFile); } if (debug) { cmdl.createArgument().setValue("--debug"); ...
java
protected Commandline getCommandline() { Commandline cmdl = new Commandline(); if (configFile != null) { cmdl.createArgument().setValue("--config"); cmdl.createArgument().setFile(configFile); } if (debug) { cmdl.createArgument().setValue("--debug"); ...
[ "protected", "Commandline", "getCommandline", "(", ")", "{", "Commandline", "cmdl", "=", "new", "Commandline", "(", ")", ";", "if", "(", "configFile", "!=", "null", ")", "{", "cmdl", ".", "createArgument", "(", ")", ".", "setValue", "(", "\"--config\"", ")...
Get the command line configuration arguments for the StaticTraceInstrumentation invocations. @return the ant Commandline that holds the command line arguments
[ "Get", "the", "command", "line", "configuration", "arguments", "for", "the", "StaticTraceInstrumentation", "invocations", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/buildtasks/AbstractInstrumentationTask.java#L98-L108
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/buildtasks/AbstractInstrumentationTask.java
AbstractInstrumentationTask.execute
@Override public void execute() { List<File> flist = new ArrayList<File>(); if (file != null) { flist.add(file); } for (int i = 0; i < filesets.size(); i++) { FileSet fs = filesets.elementAt(i); DirectoryScanner ds = fs.getDirectoryScanner(getPro...
java
@Override public void execute() { List<File> flist = new ArrayList<File>(); if (file != null) { flist.add(file); } for (int i = 0; i < filesets.size(); i++) { FileSet fs = filesets.elementAt(i); DirectoryScanner ds = fs.getDirectoryScanner(getPro...
[ "@", "Override", "public", "void", "execute", "(", ")", "{", "List", "<", "File", ">", "flist", "=", "new", "ArrayList", "<", "File", ">", "(", ")", ";", "if", "(", "file", "!=", "null", ")", "{", "flist", ".", "add", "(", "file", ")", ";", "}"...
Execute the build task.
[ "Execute", "the", "build", "task", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/buildtasks/AbstractInstrumentationTask.java#L115-L203
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java
ServerCommandClient.write
private ReturnCode write(String command, ReturnCode notStartedRC, ReturnCode errorRC) { SocketChannel channel = null; try { ServerCommandID commandID = createServerCommand(command); if (commandID.getPort() > 0) { channel = SelectorProvider.provider().openSocketCha...
java
private ReturnCode write(String command, ReturnCode notStartedRC, ReturnCode errorRC) { SocketChannel channel = null; try { ServerCommandID commandID = createServerCommand(command); if (commandID.getPort() > 0) { channel = SelectorProvider.provider().openSocketCha...
[ "private", "ReturnCode", "write", "(", "String", "command", ",", "ReturnCode", "notStartedRC", ",", "ReturnCode", "errorRC", ")", "{", "SocketChannel", "channel", "=", "null", ";", "try", "{", "ServerCommandID", "commandID", "=", "createServerCommand", "(", "comma...
Write a command to the server process. @param command the command to write @param notStartedRC the return code if the server could not be reached @param errorRC the return code if an error occurred while communicating with the server @return {@link ReturnCode#OK} if the command was sent, notStartedRC if the server cou...
[ "Write", "a", "command", "to", "the", "server", "process", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java#L100-L166
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java
ServerCommandClient.startStatus
public ReturnCode startStatus(ServerLock lock) { // The server process might not have created the command file yet. // Wait for it to appear. while (!isValid()) { ReturnCode rc = startStatusWait(lock); if (rc != ReturnCode.START_STATUS_ACTION) { return rc;...
java
public ReturnCode startStatus(ServerLock lock) { // The server process might not have created the command file yet. // Wait for it to appear. while (!isValid()) { ReturnCode rc = startStatusWait(lock); if (rc != ReturnCode.START_STATUS_ACTION) { return rc;...
[ "public", "ReturnCode", "startStatus", "(", "ServerLock", "lock", ")", "{", "// The server process might not have created the command file yet.", "// Wait for it to appear.", "while", "(", "!", "isValid", "(", ")", ")", "{", "ReturnCode", "rc", "=", "startStatusWait", "("...
Waits for the server to be fully started. @param lock the server lock, which must be held by the server process before this method is called
[ "Waits", "for", "the", "server", "to", "be", "fully", "started", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java#L174-L205
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java
ServerCommandClient.startStatusWait
private ReturnCode startStatusWait(ServerLock lock) { try { Thread.sleep(BootstrapConstants.POLL_INTERVAL_MS); } catch (InterruptedException ex) { Debug.printStackTrace(ex); return ReturnCode.ERROR_SERVER_START; } // This method is only called if the ...
java
private ReturnCode startStatusWait(ServerLock lock) { try { Thread.sleep(BootstrapConstants.POLL_INTERVAL_MS); } catch (InterruptedException ex) { Debug.printStackTrace(ex); return ReturnCode.ERROR_SERVER_START; } // This method is only called if the ...
[ "private", "ReturnCode", "startStatusWait", "(", "ServerLock", "lock", ")", "{", "try", "{", "Thread", ".", "sleep", "(", "BootstrapConstants", ".", "POLL_INTERVAL_MS", ")", ";", "}", "catch", "(", "InterruptedException", "ex", ")", "{", "Debug", ".", "printSt...
Wait a bit because the server process could not be contacted, and then verify that the server process is still running. @param lock @return {@link ReturnCode#START_STATUS_ACTION} to try contacting the server process again, or another return code to give up
[ "Wait", "a", "bit", "because", "the", "server", "process", "could", "not", "be", "contacted", "and", "then", "verify", "that", "the", "server", "process", "is", "still", "running", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java#L215-L231
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java
ServerCommandClient.stopServer
public ReturnCode stopServer(boolean force) { return write(force ? FORCE_STOP_COMMAND : STOP_COMMAND, ReturnCode.REDUNDANT_ACTION_STATUS, ReturnCode.ERROR_SERVER_STOP); }
java
public ReturnCode stopServer(boolean force) { return write(force ? FORCE_STOP_COMMAND : STOP_COMMAND, ReturnCode.REDUNDANT_ACTION_STATUS, ReturnCode.ERROR_SERVER_STOP); }
[ "public", "ReturnCode", "stopServer", "(", "boolean", "force", ")", "{", "return", "write", "(", "force", "?", "FORCE_STOP_COMMAND", ":", "STOP_COMMAND", ",", "ReturnCode", ".", "REDUNDANT_ACTION_STATUS", ",", "ReturnCode", ".", "ERROR_SERVER_STOP", ")", ";", "}" ...
Stop the server by issuing a "stop" instruction to the server listener
[ "Stop", "the", "server", "by", "issuing", "a", "stop", "instruction", "to", "the", "server", "listener" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java#L236-L240
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java
ServerCommandClient.introspectServer
public ReturnCode introspectServer(String dumpTimestamp, Set<JavaDumpAction> javaDumpActions) { // Since "server dump" is used for diagnostics, we go out of our way to // not send an unrecognized command to the server even if the user has // broken their environment such that the client process ...
java
public ReturnCode introspectServer(String dumpTimestamp, Set<JavaDumpAction> javaDumpActions) { // Since "server dump" is used for diagnostics, we go out of our way to // not send an unrecognized command to the server even if the user has // broken their environment such that the client process ...
[ "public", "ReturnCode", "introspectServer", "(", "String", "dumpTimestamp", ",", "Set", "<", "JavaDumpAction", ">", "javaDumpActions", ")", "{", "// Since \"server dump\" is used for diagnostics, we go out of our way to", "// not send an unrecognized command to the server even if the u...
Dump the server by issuing a "introspect" instruction to the server listener
[ "Dump", "the", "server", "by", "issuing", "a", "introspect", "instruction", "to", "the", "server", "listener" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java#L245-L264
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java
ServerCommandClient.javaDump
public ReturnCode javaDump(Set<JavaDumpAction> javaDumpActions) { StringBuilder commandBuilder = new StringBuilder(JAVADUMP_COMMAND); char sep = DELIM; for (JavaDumpAction javaDumpAction : javaDumpActions) { commandBuilder.append(sep).append(javaDumpAction.toString()); se...
java
public ReturnCode javaDump(Set<JavaDumpAction> javaDumpActions) { StringBuilder commandBuilder = new StringBuilder(JAVADUMP_COMMAND); char sep = DELIM; for (JavaDumpAction javaDumpAction : javaDumpActions) { commandBuilder.append(sep).append(javaDumpAction.toString()); se...
[ "public", "ReturnCode", "javaDump", "(", "Set", "<", "JavaDumpAction", ">", "javaDumpActions", ")", "{", "StringBuilder", "commandBuilder", "=", "new", "StringBuilder", "(", "JAVADUMP_COMMAND", ")", ";", "char", "sep", "=", "DELIM", ";", "for", "(", "JavaDumpAct...
Create a java dump of the server JVM by issuing a "javadump" instruction to the server listener
[ "Create", "a", "java", "dump", "of", "the", "server", "JVM", "by", "issuing", "a", "javadump", "instruction", "to", "the", "server", "listener" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java#L270-L281
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java
ServerCommandClient.pause
public ReturnCode pause(String targetArg) { StringBuilder commandBuilder = new StringBuilder(PAUSE_COMMAND); char sep = DELIM; if (targetArg != null) { commandBuilder.append(sep).append(targetArg); } return write(commandBuilder.toString(), Retur...
java
public ReturnCode pause(String targetArg) { StringBuilder commandBuilder = new StringBuilder(PAUSE_COMMAND); char sep = DELIM; if (targetArg != null) { commandBuilder.append(sep).append(targetArg); } return write(commandBuilder.toString(), Retur...
[ "public", "ReturnCode", "pause", "(", "String", "targetArg", ")", "{", "StringBuilder", "commandBuilder", "=", "new", "StringBuilder", "(", "PAUSE_COMMAND", ")", ";", "char", "sep", "=", "DELIM", ";", "if", "(", "targetArg", "!=", "null", ")", "{", "commandB...
Attempt to Stop the inbound work to a server by issuing a "pause" request to the server.
[ "Attempt", "to", "Stop", "the", "inbound", "work", "to", "a", "server", "by", "issuing", "a", "pause", "request", "to", "the", "server", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java#L287-L298
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java
ServerCommandClient.resume
public ReturnCode resume(String targetArg) { StringBuilder commandBuilder = new StringBuilder(RESUME_COMMAND); char sep = DELIM; if (targetArg != null) { commandBuilder.append(sep).append(targetArg); } return write(commandBuilder.toString(), Ret...
java
public ReturnCode resume(String targetArg) { StringBuilder commandBuilder = new StringBuilder(RESUME_COMMAND); char sep = DELIM; if (targetArg != null) { commandBuilder.append(sep).append(targetArg); } return write(commandBuilder.toString(), Ret...
[ "public", "ReturnCode", "resume", "(", "String", "targetArg", ")", "{", "StringBuilder", "commandBuilder", "=", "new", "StringBuilder", "(", "RESUME_COMMAND", ")", ";", "char", "sep", "=", "DELIM", ";", "if", "(", "targetArg", "!=", "null", ")", "{", "comman...
Resume Inbound work to a server by issuing a "resume" request to the server.
[ "Resume", "Inbound", "work", "to", "a", "server", "by", "issuing", "a", "resume", "request", "to", "the", "server", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerCommandClient.java#L304-L315
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/JtiNonceCache.java
JtiNonceCache.contain
public boolean contain(OidcTokenImplBase token) { //(IdToken token) { String key = token.getJwtId(); if (key == null) { return false; } key = getCacheKey(token); long currentTimeMilliseconds = (new Date()).getTime(); synchronized (primaryTable) { ...
java
public boolean contain(OidcTokenImplBase token) { //(IdToken token) { String key = token.getJwtId(); if (key == null) { return false; } key = getCacheKey(token); long currentTimeMilliseconds = (new Date()).getTime(); synchronized (primaryTable) { ...
[ "public", "boolean", "contain", "(", "OidcTokenImplBase", "token", ")", "{", "//(IdToken token) {", "String", "key", "=", "token", ".", "getJwtId", "(", ")", ";", "if", "(", "key", "==", "null", ")", "{", "return", "false", ";", "}", "key", "=", "getCach...
Find and return the object associated with the specified key. Add it if not already present.
[ "Find", "and", "return", "the", "object", "associated", "with", "the", "specified", "key", ".", "Add", "it", "if", "not", "already", "present", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/JtiNonceCache.java#L101-L127
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSStateManager.java
WSStateManager.isValid
public final ResourceException isValid(int newAction) { try { setState(newAction, true); } catch (TransactionException exp) { FFDCFilter.processException(exp, "com.ibm.ws.rsadapter.spi.WSStateManager.isValid", "385", this); return exp; } return null; ...
java
public final ResourceException isValid(int newAction) { try { setState(newAction, true); } catch (TransactionException exp) { FFDCFilter.processException(exp, "com.ibm.ws.rsadapter.spi.WSStateManager.isValid", "385", this); return exp; } return null; ...
[ "public", "final", "ResourceException", "isValid", "(", "int", "newAction", ")", "{", "try", "{", "setState", "(", "newAction", ",", "true", ")", ";", "}", "catch", "(", "TransactionException", "exp", ")", "{", "FFDCFilter", ".", "processException", "(", "ex...
If the action is valid return null. Otherwise return a TransactionException with the cause. @param newAction int @return TransactionException
[ "If", "the", "action", "is", "valid", "return", "null", ".", "Otherwise", "return", "a", "TransactionException", "with", "the", "cause", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSStateManager.java#L388-L397
train