id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
68,700
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java
WSJdbcResultSet.updateObject
public void updateObject(int arg0, Object arg1, int arg2) throws SQLException { try { rsetImpl.updateObject(arg0, arg1, arg2); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.updateObject", "3737", this); throw WS...
java
public void updateObject(int arg0, Object arg1, int arg2) throws SQLException { try { rsetImpl.updateObject(arg0, arg1, arg2); } catch (SQLException ex) { FFDCFilter.processException(ex, "com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.updateObject", "3737", this); throw WS...
[ "public", "void", "updateObject", "(", "int", "arg0", ",", "Object", "arg1", ",", "int", "arg2", ")", "throws", "SQLException", "{", "try", "{", "rsetImpl", ".", "updateObject", "(", "arg0", ",", "arg1", ",", "arg2", ")", ";", "}", "catch", "(", "SQLEx...
Updates a column with an Object value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database. @param columnIndex - the first column is 1, the...
[ "Updates", "a", "column", "with", "an", "Object", "value", ".", "The", "updateXXX", "methods", "are", "used", "to", "update", "column", "values", "in", "the", "current", "row", "or", "the", "insert", "row", ".", "The", "updateXXX", "methods", "do", "not", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcResultSet.java#L4113-L4123
68,701
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/TranSynchronization.java
TranSynchronization.afterCompletion
@Override public void afterCompletion(int status) { logger.log(Level.FINE, "The status of the transaction commit is: " + status); if (status == Status.STATUS_COMMITTED){ //Save the metrics object after a successful commit runtimeStepExecution.setCommittedMetrics(); }...
java
@Override public void afterCompletion(int status) { logger.log(Level.FINE, "The status of the transaction commit is: " + status); if (status == Status.STATUS_COMMITTED){ //Save the metrics object after a successful commit runtimeStepExecution.setCommittedMetrics(); }...
[ "@", "Override", "public", "void", "afterCompletion", "(", "int", "status", ")", "{", "logger", ".", "log", "(", "Level", ".", "FINE", ",", "\"The status of the transaction commit is: \"", "+", "status", ")", ";", "if", "(", "status", "==", "Status", ".", "S...
Upon successful transaction commit status, store the value of the committed metrics. Upon any other status value roll back the metrics to the last committed value. @see javax.transaction.Synchronization#afterCompletion(int)
[ "Upon", "successful", "transaction", "commit", "status", "store", "the", "value", "of", "the", "committed", "metrics", ".", "Upon", "any", "other", "status", "value", "roll", "back", "the", "metrics", "to", "the", "last", "committed", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/services/impl/TranSynchronization.java#L43-L56
68,702
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InterceptorProxy.java
InterceptorProxy.invokeInterceptor
public final Object invokeInterceptor(Object bean, InvocationContext inv, Object[] interceptors) throws Exception { // Interceptor instance is the bean instance itself if the // interceptor index is < 0. Object interceptorInstance = (ivBeanInterceptor) ? bean : interceptors[ivInterceptorIndex]; ...
java
public final Object invokeInterceptor(Object bean, InvocationContext inv, Object[] interceptors) throws Exception { // Interceptor instance is the bean instance itself if the // interceptor index is < 0. Object interceptorInstance = (ivBeanInterceptor) ? bean : interceptors[ivInterceptorIndex]; ...
[ "public", "final", "Object", "invokeInterceptor", "(", "Object", "bean", ",", "InvocationContext", "inv", ",", "Object", "[", "]", "interceptors", ")", "throws", "Exception", "{", "// Interceptor instance is the bean instance itself if the", "// interceptor index is < 0.", ...
Invoke the interceptor method associated with the interceptor index that was passed as the "interceptorIndex" parameter of the constructor method of this class. @param bean is the EJB instance that is the target of this invocation. @param inv is the InvocationContext to pass as an argument to the interceptor method i...
[ "Invoke", "the", "interceptor", "method", "associated", "with", "the", "interceptor", "index", "that", "was", "passed", "as", "the", "interceptorIndex", "parameter", "of", "the", "constructor", "method", "of", "this", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/interceptors/InterceptorProxy.java#L173-L202
68,703
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/hibernate/LibertyJtaPlatform.java
LibertyJtaPlatform.invoke
@Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { String methodName = method.getName(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, methodName, args); Object r = null; try { if...
java
@Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { String methodName = method.getName(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, methodName, args); Object r = null; try { if...
[ "@", "Override", "public", "Object", "invoke", "(", "Object", "proxy", ",", "Method", "method", ",", "Object", "[", "]", "args", ")", "throws", "Throwable", "{", "String", "methodName", "=", "method", ".", "getName", "(", ")", ";", "if", "(", "TraceCompo...
Invokes our implementation for methods of org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform
[ "Invokes", "our", "implementation", "for", "methods", "of", "org", ".", "hibernate", ".", "engine", ".", "transaction", ".", "jta", ".", "platform", ".", "spi", ".", "JtaPlatform" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/hibernate/LibertyJtaPlatform.java#L51-L88
68,704
OpenLiberty/open-liberty
dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/ear/internal/EARDeployedAppInfo.java
EARDeployedAppInfo.getMFMainClass
protected String getMFMainClass(Container appEntryContainer, String entryPath, boolean required) { String mfMainClass = null; try { String entry = "/META-INF/MANIFEST.MF"; Entry manifestEntry = appEntryContainer.getEntry(entry); if (manifestEntry != null) { ...
java
protected String getMFMainClass(Container appEntryContainer, String entryPath, boolean required) { String mfMainClass = null; try { String entry = "/META-INF/MANIFEST.MF"; Entry manifestEntry = appEntryContainer.getEntry(entry); if (manifestEntry != null) { ...
[ "protected", "String", "getMFMainClass", "(", "Container", "appEntryContainer", ",", "String", "entryPath", ",", "boolean", "required", ")", "{", "String", "mfMainClass", "=", "null", ";", "try", "{", "String", "entry", "=", "\"/META-INF/MANIFEST.MF\"", ";", "Entr...
Return the Main-Class from the MANIFEST.MF. @param appEntryContainer The root container. @param entryPath The path of the mainfest file. @param required true if current module is known to be a client module, and false otherwise @return The main class or null depending on the boolean value 'required'.
[ "Return", "the", "Main", "-", "Class", "from", "the", "MANIFEST", ".", "MF", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/ear/internal/EARDeployedAppInfo.java#L693-L730
68,705
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/data/SpdGroupBase.java
SpdGroupBase.insert
protected int insert(SpdData elt) { if (members.isEmpty()) { members.add(elt); return 0; } int first = 0; SpdData firstElt = (SpdData) members.get(first); int last = members.size() - 1; SpdData lastElt = (SpdData) members.get(last); if (e...
java
protected int insert(SpdData elt) { if (members.isEmpty()) { members.add(elt); return 0; } int first = 0; SpdData firstElt = (SpdData) members.get(first); int last = members.size() - 1; SpdData lastElt = (SpdData) members.get(last); if (e...
[ "protected", "int", "insert", "(", "SpdData", "elt", ")", "{", "if", "(", "members", ".", "isEmpty", "(", ")", ")", "{", "members", ".", "add", "(", "elt", ")", ";", "return", "0", ";", "}", "int", "first", "=", "0", ";", "SpdData", "firstElt", "...
Insert the element into the members vector in sorted lexicographical order
[ "Insert", "the", "element", "into", "the", "members", "vector", "in", "sorted", "lexicographical", "order" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/data/SpdGroupBase.java#L35-L72
68,706
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/data/SpdGroupBase.java
SpdGroupBase.addSorted
public synchronized boolean addSorted(SpdData data) { if (data == null) { return false; } else if (members.contains(data)) { return false; } else { return (insert(data) != -1); } }
java
public synchronized boolean addSorted(SpdData data) { if (data == null) { return false; } else if (members.contains(data)) { return false; } else { return (insert(data) != -1); } }
[ "public", "synchronized", "boolean", "addSorted", "(", "SpdData", "data", ")", "{", "if", "(", "data", "==", "null", ")", "{", "return", "false", ";", "}", "else", "if", "(", "members", ".", "contains", "(", "data", ")", ")", "{", "return", "false", ...
add a data in a sorted order
[ "add", "a", "data", "in", "a", "sorted", "order" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/data/SpdGroupBase.java#L77-L85
68,707
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/data/SpdGroupBase.java
SpdGroupBase.add
public synchronized boolean add(SpdData data) { if (data == null) { return false; } else if (members.contains(data)) { return false; } else { return members.add(data); } }
java
public synchronized boolean add(SpdData data) { if (data == null) { return false; } else if (members.contains(data)) { return false; } else { return members.add(data); } }
[ "public", "synchronized", "boolean", "add", "(", "SpdData", "data", ")", "{", "if", "(", "data", "==", "null", ")", "{", "return", "false", ";", "}", "else", "if", "(", "members", ".", "contains", "(", "data", ")", ")", "{", "return", "false", ";", ...
append a data to the members list - not sorted
[ "append", "a", "data", "to", "the", "members", "list", "-", "not", "sorted" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/data/SpdGroupBase.java#L90-L98
68,708
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/cmdline/ClasspathAction.java
ClasspathAction.collectFeatureInfos
private void collectFeatureInfos(Map<String, ProductInfo> productInfos, Map<String, FeatureInfo> featuresBySymbolicName) { ManifestFileProcessor manifestFileProcessor = new ManifestFileProcessor(); for (Map.Entry<String, Map<String, ProvisioningFeatureDefinition>> pr...
java
private void collectFeatureInfos(Map<String, ProductInfo> productInfos, Map<String, FeatureInfo> featuresBySymbolicName) { ManifestFileProcessor manifestFileProcessor = new ManifestFileProcessor(); for (Map.Entry<String, Map<String, ProvisioningFeatureDefinition>> pr...
[ "private", "void", "collectFeatureInfos", "(", "Map", "<", "String", ",", "ProductInfo", ">", "productInfos", ",", "Map", "<", "String", ",", "FeatureInfo", ">", "featuresBySymbolicName", ")", "{", "ManifestFileProcessor", "manifestFileProcessor", "=", "new", "Manif...
Collect information about all installed products and their features. @param productInfos result parameter of product name (prefix) to info @param featuresBySymbolicName result parameter of symbolic name to info
[ "Collect", "information", "about", "all", "installed", "products", "and", "their", "features", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/cmdline/ClasspathAction.java#L163-L195
68,709
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/cmdline/ClasspathAction.java
ClasspathAction.getFeatureInfo
private FeatureInfo getFeatureInfo(String name, Map<String, ProductInfo> productInfos, Map<String, FeatureInfo> featuresBySymbolicName) { String productName, featureName; int index = name.indexOf(':'); if (index == -1)...
java
private FeatureInfo getFeatureInfo(String name, Map<String, ProductInfo> productInfos, Map<String, FeatureInfo> featuresBySymbolicName) { String productName, featureName; int index = name.indexOf(':'); if (index == -1)...
[ "private", "FeatureInfo", "getFeatureInfo", "(", "String", "name", ",", "Map", "<", "String", ",", "ProductInfo", ">", "productInfos", ",", "Map", "<", "String", ",", "FeatureInfo", ">", "featuresBySymbolicName", ")", "{", "String", "productName", ",", "featureN...
Gets a feature by its name using the server.xml featureManager algorithm. @param name the user-specified feature name @param productInfos product name (prefix) to info @param featuresBySymbolicName symbolic name to info @return
[ "Gets", "a", "feature", "by", "its", "name", "using", "the", "server", ".", "xml", "featureManager", "algorithm", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/cmdline/ClasspathAction.java#L205-L225
68,710
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/cmdline/ClasspathAction.java
ClasspathAction.collectAPIJars
private void collectAPIJars(FeatureInfo featureInfo, Map<String, FeatureInfo> allowedFeatures, Set<File> apiJars) { for (SubsystemContentType contentType : JAR_CONTENT_TYPES) { for (FeatureResource resource : featureInfo.feature.getCons...
java
private void collectAPIJars(FeatureInfo featureInfo, Map<String, FeatureInfo> allowedFeatures, Set<File> apiJars) { for (SubsystemContentType contentType : JAR_CONTENT_TYPES) { for (FeatureResource resource : featureInfo.feature.getCons...
[ "private", "void", "collectAPIJars", "(", "FeatureInfo", "featureInfo", ",", "Map", "<", "String", ",", "FeatureInfo", ">", "allowedFeatures", ",", "Set", "<", "File", ">", "apiJars", ")", "{", "for", "(", "SubsystemContentType", "contentType", ":", "JAR_CONTENT...
Collect API JARs from a feature and its recursive dependencies. @param featureInfo the feature to process @param visitedFeaturesBySymbolicName result set of visited features @param apiJars result set of API JAR files @param featuresBySymbolicName symbolic name to info
[ "Collect", "API", "JARs", "from", "a", "feature", "and", "its", "recursive", "dependencies", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/cmdline/ClasspathAction.java#L240-L262
68,711
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/cmdline/ClasspathAction.java
ClasspathAction.createClasspathJar
private void createClasspathJar(File outputFile, String classpath) throws IOException { FileOutputStream out = new FileOutputStream(outputFile); try { Manifest manifest = new Manifest(); Attributes attrs = manifest.getMainAttributes(); attrs.put(Attributes.Name.MANIFE...
java
private void createClasspathJar(File outputFile, String classpath) throws IOException { FileOutputStream out = new FileOutputStream(outputFile); try { Manifest manifest = new Manifest(); Attributes attrs = manifest.getMainAttributes(); attrs.put(Attributes.Name.MANIFE...
[ "private", "void", "createClasspathJar", "(", "File", "outputFile", ",", "String", "classpath", ")", "throws", "IOException", "{", "FileOutputStream", "out", "=", "new", "FileOutputStream", "(", "outputFile", ")", ";", "try", "{", "Manifest", "manifest", "=", "n...
Writes a JAR with a MANIFEST.MF containing the Class-Path string. @param outputFile the output file to create @param classpath the Class-Path string @throws IOException if an error occurs creating the file
[ "Writes", "a", "JAR", "with", "a", "MANIFEST", ".", "MF", "containing", "the", "Class", "-", "Path", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.cmdline/src/com/ibm/ws/kernel/feature/internal/cmdline/ClasspathAction.java#L322-L333
68,712
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/InboundChain.java
InboundChain.setupDiscProcess
public void setupDiscProcess() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "setupDiscProcess"); } ChannelData list[] = chainData.getChannelList(); Class<?> discriminatoryType = null; DiscriminationProcessImpl dp = null; if...
java
public void setupDiscProcess() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "setupDiscProcess"); } ChannelData list[] = chainData.getChannelList(); Class<?> discriminatoryType = null; DiscriminationProcessImpl dp = null; if...
[ "public", "void", "setupDiscProcess", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "tc", ",", "\"setupDiscProcess\"", ")", ";", "}", "Cha...
This method is called from the channel framework right before the start method is called. In between, it starts up the channels in the chain.
[ "This", "method", "is", "called", "from", "the", "channel", "framework", "right", "before", "the", "start", "method", "is", "called", ".", "In", "between", "it", "starts", "up", "the", "channels", "in", "the", "chain", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/InboundChain.java#L157-L201
68,713
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/InboundChain.java
InboundChain.startDiscProcessBetweenChannels
public void startDiscProcessBetweenChannels(InboundChannel appChannel, InboundChannel devChannel, int discWeight) throws ChainException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "startDiscProcessBetweenChannels")...
java
public void startDiscProcessBetweenChannels(InboundChannel appChannel, InboundChannel devChannel, int discWeight) throws ChainException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "startDiscProcessBetweenChannels")...
[ "public", "void", "startDiscProcessBetweenChannels", "(", "InboundChannel", "appChannel", ",", "InboundChannel", "devChannel", ",", "int", "discWeight", ")", "throws", "ChainException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc"...
This method is called from ChannelFrameworkImpl during chain startup to start up the discrimination process between each set of adjacent channels in the chain. @param appChannel the channel on the application side of the two provided @param devChannel the channel on the device side of the two provided @param discWeigh...
[ "This", "method", "is", "called", "from", "ChannelFrameworkImpl", "during", "chain", "startup", "to", "start", "up", "the", "discrimination", "process", "between", "each", "set", "of", "adjacent", "channels", "in", "the", "chain", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/InboundChain.java#L212-L280
68,714
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/InboundChain.java
InboundChain.disableChannel
public void disableChannel(Channel inputChannel) throws InvalidChannelNameException, DiscriminationProcessException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "disableChannel: " + inputChannel.getName()); } synchronized (stat...
java
public void disableChannel(Channel inputChannel) throws InvalidChannelNameException, DiscriminationProcessException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "disableChannel: " + inputChannel.getName()); } synchronized (stat...
[ "public", "void", "disableChannel", "(", "Channel", "inputChannel", ")", "throws", "InvalidChannelNameException", ",", "DiscriminationProcessException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")"...
Disable the input channel. @param inputChannel @throws InvalidChannelNameException @throws DiscriminationProcessException
[ "Disable", "the", "input", "channel", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/chains/InboundChain.java#L289-L344
68,715
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java
GuaranteedTargetStream.writeSilence
@Override public void writeSilence(MessageItem m) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeSilence", new Object[] { m }); JsMessage jsMsg = m.getMessage(); // There may be Completed ticks after the Value, if so then ...
java
@Override public void writeSilence(MessageItem m) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeSilence", new Object[] { m }); JsMessage jsMsg = m.getMessage(); // There may be Completed ticks after the Value, if so then ...
[ "@", "Override", "public", "void", "writeSilence", "(", "MessageItem", "m", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",",...
This method uses a Value message to write Silence into the stream because a message has been filtered out @param m The value message @exception Thrown from writeRange, handleNewGap and checkForWindowAdvanceGaps
[ "This", "method", "uses", "a", "Value", "message", "to", "write", "Silence", "into", "the", "stream", "because", "a", "message", "has", "been", "filtered", "out" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java#L714-L772
68,716
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java
GuaranteedTargetStream.handleNewGap
private void handleNewGap(long startstamp, long endstamp) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "handleNewGap", new Object[] { Long.valueOf(startstamp), Long.valueOf(endstamp) })...
java
private void handleNewGap(long startstamp, long endstamp) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "handleNewGap", new Object[] { Long.valueOf(startstamp), Long.valueOf(endstamp) })...
[ "private", "void", "handleNewGap", "(", "long", "startstamp", ",", "long", "endstamp", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "...
all methods calling this are already synchronized @exception GDException thrown from the writeRange method
[ "all", "methods", "calling", "this", "are", "already", "synchronized" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java#L1285-L1309
68,717
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java
GuaranteedTargetStream.addAlarm
protected static void addAlarm(Object key, Object alarmObject) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addAlarm", new Object[] { key, alarmObject }); synchronized (pendingAlarms) { Set alarms = null; if (pending...
java
protected static void addAlarm(Object key, Object alarmObject) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addAlarm", new Object[] { key, alarmObject }); synchronized (pendingAlarms) { Set alarms = null; if (pending...
[ "protected", "static", "void", "addAlarm", "(", "Object", "key", ",", "Object", "alarmObject", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ...
Utility method for adding an alarm which needs to be expired if a flush occurs. @param key The key for the set of alarms to which this alarm should be added. Normally this is a stream instance. @param alarmObject The alarm object to add to the set.
[ "Utility", "method", "for", "adding", "an", "alarm", "which", "needs", "to", "be", "expired", "if", "a", "flush", "occurs", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java#L1811-L1831
68,718
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java
GuaranteedTargetStream.removeAlarm
protected static void removeAlarm(Object key, Object alarmObject) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeAlarm", new Object[] { key, alarmObject }); synchronized (pendingAlarms) { if (pendingAlarms.containsKey(key)) ...
java
protected static void removeAlarm(Object key, Object alarmObject) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeAlarm", new Object[] { key, alarmObject }); synchronized (pendingAlarms) { if (pendingAlarms.containsKey(key)) ...
[ "protected", "static", "void", "removeAlarm", "(", "Object", "key", ",", "Object", "alarmObject", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc...
Utility method for removing an alarm from the alarm set. Has no effect if either no alarms are associated with the given key, or the given alarm object does not exist. @param key The key for the set of alarms from which an alarm will be removed. Normally this is a stream instance. @param alarmObject The alarm object t...
[ "Utility", "method", "for", "removing", "an", "alarm", "from", "the", "alarm", "set", ".", "Has", "no", "effect", "if", "either", "no", "alarms", "are", "associated", "with", "the", "given", "key", "or", "the", "given", "alarm", "object", "does", "not", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java#L1842-L1855
68,719
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java
GuaranteedTargetStream.getAlarms
protected static Iterator getAlarms(Object key) { synchronized (pendingAlarms) { if (pendingAlarms.containsKey(key)) return ((Set) pendingAlarms.get(key)).iterator(); return new GTSIterator(); } }
java
protected static Iterator getAlarms(Object key) { synchronized (pendingAlarms) { if (pendingAlarms.containsKey(key)) return ((Set) pendingAlarms.get(key)).iterator(); return new GTSIterator(); } }
[ "protected", "static", "Iterator", "getAlarms", "(", "Object", "key", ")", "{", "synchronized", "(", "pendingAlarms", ")", "{", "if", "(", "pendingAlarms", ".", "containsKey", "(", "key", ")", ")", "return", "(", "(", "Set", ")", "pendingAlarms", ".", "get...
Utility method for getting the list of all alarms associated with a particular key. Returns an empty Iterator if the given key has no alarms. @param key The key for the set of alarms to return. @return An enumeration of all alarms associated with the given key (may be empty).
[ "Utility", "method", "for", "getting", "the", "list", "of", "all", "alarms", "associated", "with", "a", "particular", "key", ".", "Returns", "an", "empty", "Iterator", "if", "the", "given", "key", "has", "no", "alarms", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java#L1866-L1875
68,720
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java
GuaranteedTargetStream.isStreamBlocked
private boolean isStreamBlocked() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "isStreamBlocked"); SibTr.exit(tc, "isStreamBlocked", new Object[] { Boolean.valueOf(isStreamBlocked), ...
java
private boolean isStreamBlocked() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "isStreamBlocked"); SibTr.exit(tc, "isStreamBlocked", new Object[] { Boolean.valueOf(isStreamBlocked), ...
[ "private", "boolean", "isStreamBlocked", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"isStreamBlocked\"", ")"...
Is the stream marked as blocked. @return true if the stream is blocked.
[ "Is", "the", "stream", "marked", "as", "blocked", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java#L2229-L2239
68,721
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java
GuaranteedTargetStream.isStreamBlockedUnexpectedly
private boolean isStreamBlockedUnexpectedly() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "isStreamBlockedUnexpectedly"); SibTr.exit(tc, "isStreamBlockedUnexpectedly", Boolean.valueOf(unexpectedBlock)); } return u...
java
private boolean isStreamBlockedUnexpectedly() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "isStreamBlockedUnexpectedly"); SibTr.exit(tc, "isStreamBlockedUnexpectedly", Boolean.valueOf(unexpectedBlock)); } return u...
[ "private", "boolean", "isStreamBlockedUnexpectedly", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"isStreamBlock...
Is the stream marked as blocked unexpectedly @return true if the stream is blocked.
[ "Is", "the", "stream", "marked", "as", "blocked", "unexpectedly" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java#L2246-L2255
68,722
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java
GuaranteedTargetStream.streamCanAcceptNewMessage
private boolean streamCanAcceptNewMessage(MessageItem msgItem, long valueTick) throws SIException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "streamCanAcceptNewMessage", new Object[] { msgItem, Long.valueOf(valueTick) }); boolean allowSend = ...
java
private boolean streamCanAcceptNewMessage(MessageItem msgItem, long valueTick) throws SIException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "streamCanAcceptNewMessage", new Object[] { msgItem, Long.valueOf(valueTick) }); boolean allowSend = ...
[ "private", "boolean", "streamCanAcceptNewMessage", "(", "MessageItem", "msgItem", ",", "long", "valueTick", ")", "throws", "SIException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "S...
Check to see if the stream is able to accept a new message. If it cannot, then the message is only allowed through if it has the possibility of filling in a gap. See defects 244425 and 464463. @param msgItem The msg to be let through. @param valueTick GD Value Tick @return true if the message should be written as valu...
[ "Check", "to", "see", "if", "the", "stream", "is", "able", "to", "accept", "a", "new", "message", ".", "If", "it", "cannot", "then", "the", "message", "is", "only", "allowed", "through", "if", "it", "has", "the", "possibility", "of", "filling", "in", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/GuaranteedTargetStream.java#L2284-L2335
68,723
OpenLiberty/open-liberty
dev/com.ibm.ws.tx.embeddable/src/com/ibm/wsspi/uow/UOWManagerFactory.java
UOWManagerFactory.getUOWManager
public static UOWManager getUOWManager() { if (tc.isEntryEnabled()) Tr.entry(tc, "getUOWManager"); final UOWManager uowm = com.ibm.ws.uow.embeddable.UOWManagerFactory.getUOWManager(); if (tc.isEntryEnabled()) Tr.exit(tc, "getUOWManager", uowm); return uowm; ...
java
public static UOWManager getUOWManager() { if (tc.isEntryEnabled()) Tr.entry(tc, "getUOWManager"); final UOWManager uowm = com.ibm.ws.uow.embeddable.UOWManagerFactory.getUOWManager(); if (tc.isEntryEnabled()) Tr.exit(tc, "getUOWManager", uowm); return uowm; ...
[ "public", "static", "UOWManager", "getUOWManager", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tc", ",", "\"getUOWManager\"", ")", ";", "final", "UOWManager", "uowm", "=", "com", ".", "ibm", ".", "ws"...
Returns a stateless thread-safe UOWManager instance. @return UOWManager instance
[ "Returns", "a", "stateless", "thread", "-", "safe", "UOWManager", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/wsspi/uow/UOWManagerFactory.java#L33-L43
68,724
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.certificateutil/src/com/ibm/ws/crypto/certificateutil/keytool/KeytoolCommand.java
KeytoolCommand.getProcErrorOutput
String getProcErrorOutput(Process proc) throws IOException { StringBuffer output = new StringBuffer(); InputStream procIn = proc.getInputStream(); int read; // Dump the data printed by the process do { byte[] buffer = new byte[BUFFER_SIZE]; read = procIn....
java
String getProcErrorOutput(Process proc) throws IOException { StringBuffer output = new StringBuffer(); InputStream procIn = proc.getInputStream(); int read; // Dump the data printed by the process do { byte[] buffer = new byte[BUFFER_SIZE]; read = procIn....
[ "String", "getProcErrorOutput", "(", "Process", "proc", ")", "throws", "IOException", "{", "StringBuffer", "output", "=", "new", "StringBuffer", "(", ")", ";", "InputStream", "procIn", "=", "proc", ".", "getInputStream", "(", ")", ";", "int", "read", ";", "/...
Grabs the error message generated by executing the process. @param proc @throws IOException
[ "Grabs", "the", "error", "message", "generated", "by", "executing", "the", "process", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.certificateutil/src/com/ibm/ws/crypto/certificateutil/keytool/KeytoolCommand.java#L164-L178
68,725
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpTrailersImpl.java
HttpTrailersImpl.init
public void init(boolean useDirect, int outSize, int inSize, int cacheSize) { super.init(useDirect, outSize, inSize, cacheSize); }
java
public void init(boolean useDirect, int outSize, int inSize, int cacheSize) { super.init(useDirect, outSize, inSize, cacheSize); }
[ "public", "void", "init", "(", "boolean", "useDirect", ",", "int", "outSize", ",", "int", "inSize", ",", "int", "cacheSize", ")", "{", "super", ".", "init", "(", "useDirect", ",", "outSize", ",", "inSize", ",", "cacheSize", ")", ";", "}" ]
Initialize this trailer header storage object with certain configuration information. @param useDirect @param outSize @param inSize @param cacheSize
[ "Initialize", "this", "trailer", "header", "storage", "object", "with", "certain", "configuration", "information", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpTrailersImpl.java#L69-L71
68,726
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpTrailersImpl.java
HttpTrailersImpl.setDeferredTrailer
public void setDeferredTrailer(HeaderKeys hdr, HttpTrailerGenerator htg) { if (tc.isDebugEnabled()) { Tr.debug(tc, "setDeferredTrailer(HeaderKeys): " + hdr); } if (null == hdr) { throw new IllegalArgumentException("Null header name"); } if (null == htg) { ...
java
public void setDeferredTrailer(HeaderKeys hdr, HttpTrailerGenerator htg) { if (tc.isDebugEnabled()) { Tr.debug(tc, "setDeferredTrailer(HeaderKeys): " + hdr); } if (null == hdr) { throw new IllegalArgumentException("Null header name"); } if (null == htg) { ...
[ "public", "void", "setDeferredTrailer", "(", "HeaderKeys", "hdr", ",", "HttpTrailerGenerator", "htg", ")", "{", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"setDeferredTrailer(HeaderKeys): \"", "+", "hdr", ...
Set a trailer based upon a not-yet established value. When the deferred trailer is set, it is the users responsibility to synchronize the deferred trailer list with the Trailer header field up front. For instance if one sets the deferred trailer HDR_CONTENT_LANGUAGE, then the trailer header in the head of the HTTP req...
[ "Set", "a", "trailer", "based", "upon", "a", "not", "-", "yet", "established", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpTrailersImpl.java#L129-L141
68,727
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpTrailersImpl.java
HttpTrailersImpl.computeRemainingTrailers
public void computeRemainingTrailers() { if (tc.isEntryEnabled()) { Tr.entry(tc, "computeRemainingTrailers"); } Iterator<HeaderKeys> knowns = this.knownTGs.keySet().iterator(); while (knowns.hasNext()) { HeaderKeys key = knowns.next(); setHeader(key, t...
java
public void computeRemainingTrailers() { if (tc.isEntryEnabled()) { Tr.entry(tc, "computeRemainingTrailers"); } Iterator<HeaderKeys> knowns = this.knownTGs.keySet().iterator(); while (knowns.hasNext()) { HeaderKeys key = knowns.next(); setHeader(key, t...
[ "public", "void", "computeRemainingTrailers", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", "entry", "(", "tc", ",", "\"computeRemainingTrailers\"", ")", ";", "}", "Iterator", "<", "HeaderKeys", ">", "knowns", "=", ...
Compute all deferred headers. <p> All <code>HttpTrailerGenerator</code> will be called upon to create the value for their respective header. The values they create will automatically be added to the Trailer-based <code>BNFHeaders</code> object for immediate serialization. </p>
[ "Compute", "all", "deferred", "headers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpTrailersImpl.java#L234-L246
68,728
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpTrailersImpl.java
HttpTrailersImpl.destroy
public void destroy() { if (tc.isDebugEnabled()) { Tr.debug(tc, "Destroy trailers: " + this); } super.destroy(); if (null != this.myFactory) { this.myFactory.releaseTrailers(this); this.myFactory = null; } }
java
public void destroy() { if (tc.isDebugEnabled()) { Tr.debug(tc, "Destroy trailers: " + this); } super.destroy(); if (null != this.myFactory) { this.myFactory.releaseTrailers(this); this.myFactory = null; } }
[ "public", "void", "destroy", "(", ")", "{", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"Destroy trailers: \"", "+", "this", ")", ";", "}", "super", ".", "destroy", "(", ")", ";", "if", "(", "...
Destroy this object.
[ "Destroy", "this", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpTrailersImpl.java#L255-L264
68,729
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpTrailersImpl.java
HttpTrailersImpl.duplicate
public HttpTrailersImpl duplicate() { if (null == this.myFactory) { if (tc.isDebugEnabled()) { Tr.debug(tc, "Null factory, unable to duplicate: " + this); } return null; } if (tc.isDebugEnabled()) { Tr.debug(tc, "Duplicating the tr...
java
public HttpTrailersImpl duplicate() { if (null == this.myFactory) { if (tc.isDebugEnabled()) { Tr.debug(tc, "Null factory, unable to duplicate: " + this); } return null; } if (tc.isDebugEnabled()) { Tr.debug(tc, "Duplicating the tr...
[ "public", "HttpTrailersImpl", "duplicate", "(", ")", "{", "if", "(", "null", "==", "this", ".", "myFactory", ")", "{", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"Null factory, unable to duplicate: \""...
Create a duplicate version of these trailer headers. @return HttpTrailersImpl
[ "Create", "a", "duplicate", "version", "of", "these", "trailer", "headers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpTrailersImpl.java#L271-L286
68,730
OpenLiberty/open-liberty
dev/com.ibm.ws.filetransfer/src/com/ibm/ws/filetransfer/util/FileServiceUtil.java
FileServiceUtil.isPathContained
public static boolean isPathContained(List<String> allowedPaths, String targetPath) { if (allowedPaths == null || allowedPaths.isEmpty() || targetPath == null) { return false; } //Remove trailing slashes, if applicable if (!targetPath.isEmpty() && targetPath.cha...
java
public static boolean isPathContained(List<String> allowedPaths, String targetPath) { if (allowedPaths == null || allowedPaths.isEmpty() || targetPath == null) { return false; } //Remove trailing slashes, if applicable if (!targetPath.isEmpty() && targetPath.cha...
[ "public", "static", "boolean", "isPathContained", "(", "List", "<", "String", ">", "allowedPaths", ",", "String", "targetPath", ")", "{", "if", "(", "allowedPaths", "==", "null", "||", "allowedPaths", ".", "isEmpty", "(", ")", "||", "targetPath", "==", "null...
Returns true if the targetPath is contained within one of the allowedPaths. Assumption: the "allowedPaths" point to directories, and the "targetPath" is already normalized.
[ "Returns", "true", "if", "the", "targetPath", "is", "contained", "within", "one", "of", "the", "allowedPaths", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.filetransfer/src/com/ibm/ws/filetransfer/util/FileServiceUtil.java#L239-L294
68,731
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/data/SpdLoadImpl.java
SpdLoadImpl.getStatistic
public StatisticImpl getStatistic() { if (enabled) { long curTime = stat.updateIntegral(); stat.setLastSampleTime(curTime); return stat; } else { return stat; } }
java
public StatisticImpl getStatistic() { if (enabled) { long curTime = stat.updateIntegral(); stat.setLastSampleTime(curTime); return stat; } else { return stat; } }
[ "public", "StatisticImpl", "getStatistic", "(", ")", "{", "if", "(", "enabled", ")", "{", "long", "curTime", "=", "stat", ".", "updateIntegral", "(", ")", ";", "stat", ".", "setLastSampleTime", "(", "curTime", ")", ";", "return", "stat", ";", "}", "else"...
to time.
[ "to", "time", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/data/SpdLoadImpl.java#L88-L98
68,732
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/data/SpdLoadImpl.java
SpdLoadImpl.combine
public void combine(SpdLoad other) { if (other == null) return; if (stat.isEnabled() && other.isEnabled()) //stat.combine((BoundedRangeStatisticImpl)other.getStatistic()); stat.combine(other.getStatistic()); }
java
public void combine(SpdLoad other) { if (other == null) return; if (stat.isEnabled() && other.isEnabled()) //stat.combine((BoundedRangeStatisticImpl)other.getStatistic()); stat.combine(other.getStatistic()); }
[ "public", "void", "combine", "(", "SpdLoad", "other", ")", "{", "if", "(", "other", "==", "null", ")", "return", ";", "if", "(", "stat", ".", "isEnabled", "(", ")", "&&", "other", ".", "isEnabled", "(", ")", ")", "//stat.combine((BoundedRangeStatisticImpl)...
Combine this data and other SpdLoad data
[ "Combine", "this", "data", "and", "other", "SpdLoad", "data" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/data/SpdLoadImpl.java#L105-L111
68,733
OpenLiberty/open-liberty
dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/VariableEvaluator.java
VariableEvaluator.getProperty
private String getProperty(String variable, EvaluationContext context, boolean ignoreWarnings, boolean useEnvironment) throws ConfigEvaluatorException { return stringUtils.convertToString(getPropertyObject(variable, context, ignoreWarnings, useEnvironment)); }
java
private String getProperty(String variable, EvaluationContext context, boolean ignoreWarnings, boolean useEnvironment) throws ConfigEvaluatorException { return stringUtils.convertToString(getPropertyObject(variable, context, ignoreWarnings, useEnvironment)); }
[ "private", "String", "getProperty", "(", "String", "variable", ",", "EvaluationContext", "context", ",", "boolean", "ignoreWarnings", ",", "boolean", "useEnvironment", ")", "throws", "ConfigEvaluatorException", "{", "return", "stringUtils", ".", "convertToString", "(", ...
Returns the value of the variable as a string, or null if the property does not exist. @param variable the variable name
[ "Returns", "the", "value", "of", "the", "variable", "as", "a", "string", "or", "null", "if", "the", "property", "does", "not", "exist", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/VariableEvaluator.java#L81-L83
68,734
OpenLiberty/open-liberty
dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/VariableEvaluator.java
VariableEvaluator.processVariableLists
Object processVariableLists(Object rawValue, ExtendedAttributeDefinition attributeDef, EvaluationContext context, boolean ignoreWarnings) throws ConfigEvaluatorException { if (attributeDef != null && !attributeDef.resolveVariables()) return rawValue; if (rawV...
java
Object processVariableLists(Object rawValue, ExtendedAttributeDefinition attributeDef, EvaluationContext context, boolean ignoreWarnings) throws ConfigEvaluatorException { if (attributeDef != null && !attributeDef.resolveVariables()) return rawValue; if (rawV...
[ "Object", "processVariableLists", "(", "Object", "rawValue", ",", "ExtendedAttributeDefinition", "attributeDef", ",", "EvaluationContext", "context", ",", "boolean", "ignoreWarnings", ")", "throws", "ConfigEvaluatorException", "{", "if", "(", "attributeDef", "!=", "null",...
Replaces list variable expressions in raw string values
[ "Replaces", "list", "variable", "expressions", "in", "raw", "string", "values" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/VariableEvaluator.java#L237-L267
68,735
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/ContentMatcher.java
ContentMatcher.nextMatcher
ContentMatcher nextMatcher(Conjunction selector, ContentMatcher oldMatcher) { return Factory.createMatcher(ordinalPosition, selector, oldMatcher); }
java
ContentMatcher nextMatcher(Conjunction selector, ContentMatcher oldMatcher) { return Factory.createMatcher(ordinalPosition, selector, oldMatcher); }
[ "ContentMatcher", "nextMatcher", "(", "Conjunction", "selector", ",", "ContentMatcher", "oldMatcher", ")", "{", "return", "Factory", ".", "createMatcher", "(", "ordinalPosition", ",", "selector", ",", "oldMatcher", ")", ";", "}" ]
Determine the next matcher to which a put operation should be delegated. Except when cacheing is active, this method delegates to Factory.createMatcher. It is overridden in EqualityMatcher to wrap newly created Matchers in a CacheingMatcher when appropriate @param selector @param oldMatcher
[ "Determine", "the", "next", "matcher", "to", "which", "a", "put", "operation", "should", "be", "delegated", ".", "Except", "when", "cacheing", "is", "active", "this", "method", "delegates", "to", "Factory", ".", "createMatcher", ".", "It", "is", "overridden", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/ContentMatcher.java#L106-L108
68,736
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java
WebAppSecurityCollaboratorImpl.syncToOSThread
private void syncToOSThread(WebSecurityContext webSecurityContext) throws SecurityViolationException { try { Object token = ThreadIdentityManager.setAppThreadIdentity(subjectManager.getInvocationSubject()); webSecurityContext.setSyncToOSThreadToken(token); } catch (ThreadIdentity...
java
private void syncToOSThread(WebSecurityContext webSecurityContext) throws SecurityViolationException { try { Object token = ThreadIdentityManager.setAppThreadIdentity(subjectManager.getInvocationSubject()); webSecurityContext.setSyncToOSThreadToken(token); } catch (ThreadIdentity...
[ "private", "void", "syncToOSThread", "(", "WebSecurityContext", "webSecurityContext", ")", "throws", "SecurityViolationException", "{", "try", "{", "Object", "token", "=", "ThreadIdentityManager", ".", "setAppThreadIdentity", "(", "subjectManager", ".", "getInvocationSubjec...
Sync the invocation Subject's identity to the thread, if request by the application. @param WebSecurityContext The security context object for this application invocation. MUST NOT BE NULL. @throws SecurityViolationException
[ "Sync", "the", "invocation", "Subject", "s", "identity", "to", "the", "thread", "if", "request", "by", "the", "application", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java#L595-L603
68,737
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java
WebAppSecurityCollaboratorImpl.resetSyncToOSThread
private void resetSyncToOSThread(WebSecurityContext webSecurityContext) throws ThreadIdentityException { Object token = webSecurityContext.getSyncToOSThreadToken(); if (token != null) { ThreadIdentityManager.resetChecked(token); } }
java
private void resetSyncToOSThread(WebSecurityContext webSecurityContext) throws ThreadIdentityException { Object token = webSecurityContext.getSyncToOSThreadToken(); if (token != null) { ThreadIdentityManager.resetChecked(token); } }
[ "private", "void", "resetSyncToOSThread", "(", "WebSecurityContext", "webSecurityContext", ")", "throws", "ThreadIdentityException", "{", "Object", "token", "=", "webSecurityContext", ".", "getSyncToOSThreadToken", "(", ")", ";", "if", "(", "token", "!=", "null", ")",...
Remove the invocation Subject's identity from the thread, if it was previously sync'ed. @param WebSecurityContext The security context object for this application invocation. MUST NOT BE NULL. @throws ThreadIdentityException
[ "Remove", "the", "invocation", "Subject", "s", "identity", "from", "the", "thread", "if", "it", "was", "previously", "sync", "ed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java#L612-L617
68,738
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java
WebAppSecurityCollaboratorImpl.authenticateRequest
public AuthenticationResult authenticateRequest(WebRequest webRequest) { WebAuthenticator authenticator = getWebAuthenticatorProxy(); return authenticator.authenticate(webRequest); }
java
public AuthenticationResult authenticateRequest(WebRequest webRequest) { WebAuthenticator authenticator = getWebAuthenticatorProxy(); return authenticator.authenticate(webRequest); }
[ "public", "AuthenticationResult", "authenticateRequest", "(", "WebRequest", "webRequest", ")", "{", "WebAuthenticator", "authenticator", "=", "getWebAuthenticatorProxy", "(", ")", ";", "return", "authenticator", ".", "authenticate", "(", "webRequest", ")", ";", "}" ]
The main method called by the preInvoke. The return value of this method tells us if access to the requested resource is allowed or not. Delegates to the authenticator proxy to handle the authentication. @param webRequest @return AuthenticationResult
[ "The", "main", "method", "called", "by", "the", "preInvoke", ".", "The", "return", "value", "of", "this", "method", "tells", "us", "if", "access", "to", "the", "requested", "resource", "is", "allowed", "or", "not", ".", "Delegates", "to", "the", "authentic...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java#L1203-L1206
68,739
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java
WebAppSecurityCollaboratorImpl.authorize
public boolean authorize(AuthenticationResult authResult, String appName, String uriName, Subject previousCaller, List<String> requiredRoles) { // Set the authorized subject on the thread subjectManager.setCallerSubject(authResult.getSubject()); boolean isAuthorized = authorize(authResult, appNa...
java
public boolean authorize(AuthenticationResult authResult, String appName, String uriName, Subject previousCaller, List<String> requiredRoles) { // Set the authorized subject on the thread subjectManager.setCallerSubject(authResult.getSubject()); boolean isAuthorized = authorize(authResult, appNa...
[ "public", "boolean", "authorize", "(", "AuthenticationResult", "authResult", ",", "String", "appName", ",", "String", "uriName", ",", "Subject", "previousCaller", ",", "List", "<", "String", ">", "requiredRoles", ")", "{", "// Set the authorized subject on the thread", ...
Call the authorization service to determine if the subject is authorized to the given roles @param authResult the authentication result, containing the subject, user name and realm @param appName the name of the application, used to look up the correct authorization table @param uriName the uri being accessed @param p...
[ "Call", "the", "authorization", "service", "to", "determine", "if", "the", "subject", "is", "authorized", "to", "the", "given", "roles" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java#L1236-L1248
68,740
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java
WebAppSecurityCollaboratorImpl.performInitialChecks
public WebReply performInitialChecks(WebRequest webRequest, String uriName) { WebReply webReply = null; HttpServletRequest req = webRequest.getHttpServletRequest(); String methodName = req.getMethod(); if (uriName == null || uriName.length() == 0) { return new DenyReply("Inv...
java
public WebReply performInitialChecks(WebRequest webRequest, String uriName) { WebReply webReply = null; HttpServletRequest req = webRequest.getHttpServletRequest(); String methodName = req.getMethod(); if (uriName == null || uriName.length() == 0) { return new DenyReply("Inv...
[ "public", "WebReply", "performInitialChecks", "(", "WebRequest", "webRequest", ",", "String", "uriName", ")", "{", "WebReply", "webReply", "=", "null", ";", "HttpServletRequest", "req", "=", "webRequest", ".", "getHttpServletRequest", "(", ")", ";", "String", "met...
Perform the preliminary checks to see if we should proceed to authentication and authorization. TODO: add authn/autz auditing for each of these cases These checks are, in order: <ol> <li>when uriName is null or empty, then return Deny</li> <li>if the challenge typs is DIGEST, then return Deny</li> <li>if the required...
[ "Perform", "the", "preliminary", "checks", "to", "see", "if", "we", "should", "proceed", "to", "authentication", "and", "authorization", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java#L1302-L1333
68,741
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java
WebAppSecurityCollaboratorImpl.unprotectedSpecialURI
private WebReply unprotectedSpecialURI(WebRequest webRequest, String uriName, String methodName) { LoginConfiguration loginConfig = webRequest.getLoginConfig(); if (loginConfig == null) return null; String authenticationMethod = loginConfig.getAuthenticationMethod(); FormLog...
java
private WebReply unprotectedSpecialURI(WebRequest webRequest, String uriName, String methodName) { LoginConfiguration loginConfig = webRequest.getLoginConfig(); if (loginConfig == null) return null; String authenticationMethod = loginConfig.getAuthenticationMethod(); FormLog...
[ "private", "WebReply", "unprotectedSpecialURI", "(", "WebRequest", "webRequest", ",", "String", "uriName", ",", "String", "methodName", ")", "{", "LoginConfiguration", "loginConfig", "=", "webRequest", ".", "getLoginConfig", "(", ")", ";", "if", "(", "loginConfig", ...
Determines if the URI requested is "special" and should always be treated as unprotected, such as the form login page. @param webRequest @param uriName @param methodName @return Non-null WebReply if the URI is not special, or a PERMIT_REPLY if it is.
[ "Determines", "if", "the", "URI", "requested", "is", "special", "and", "should", "always", "be", "treated", "as", "unprotected", "such", "as", "the", "form", "login", "page", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java#L1429-L1468
68,742
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java
WebAppSecurityCollaboratorImpl.isServletSpec31
private boolean isServletSpec31() { if (com.ibm.ws.webcontainer.osgi.WebContainer.getServletContainerSpecLevel() >= 31) return true; return false; }
java
private boolean isServletSpec31() { if (com.ibm.ws.webcontainer.osgi.WebContainer.getServletContainerSpecLevel() >= 31) return true; return false; }
[ "private", "boolean", "isServletSpec31", "(", ")", "{", "if", "(", "com", ".", "ibm", ".", "ws", ".", "webcontainer", ".", "osgi", ".", "WebContainer", ".", "getServletContainerSpecLevel", "(", ")", ">=", "31", ")", "return", "true", ";", "return", "false"...
Check to see if running under servlet spec 3.1 @return true if using servlet spec 3.1 and false otherwise
[ "Check", "to", "see", "if", "running", "under", "servlet", "spec", "3", ".", "1" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java#L1505-L1510
68,743
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java
WebAppSecurityCollaboratorImpl.notifyWebAppSecurityConfigChangeListeners
private void notifyWebAppSecurityConfigChangeListeners(List<String> delta) { WebAppSecurityConfigChangeEvent event = new WebAppSecurityConfigChangeEventImpl(delta); for (WebAppSecurityConfigChangeListener listener : webAppSecurityConfigchangeListenerRef.services()) { listener.notifyWebAppSec...
java
private void notifyWebAppSecurityConfigChangeListeners(List<String> delta) { WebAppSecurityConfigChangeEvent event = new WebAppSecurityConfigChangeEventImpl(delta); for (WebAppSecurityConfigChangeListener listener : webAppSecurityConfigchangeListenerRef.services()) { listener.notifyWebAppSec...
[ "private", "void", "notifyWebAppSecurityConfigChangeListeners", "(", "List", "<", "String", ">", "delta", ")", "{", "WebAppSecurityConfigChangeEvent", "event", "=", "new", "WebAppSecurityConfigChangeEventImpl", "(", "delta", ")", ";", "for", "(", "WebAppSecurityConfigChan...
Notify the registered listeners of the change to the UserRegistry configuration.
[ "Notify", "the", "registered", "listeners", "of", "the", "change", "to", "the", "UserRegistry", "configuration", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java#L1659-L1664
68,744
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java
WebAppSecurityCollaboratorImpl.toStringFormChangedPropertiesMap
private String toStringFormChangedPropertiesMap(Map<String, String> delta) { if (delta == null || delta.isEmpty()) { return ""; } StringBuffer sb = new StringBuffer(); for (Map.Entry<String, String> entry : delta.entrySet()) { if (sb.length() > 0) { ...
java
private String toStringFormChangedPropertiesMap(Map<String, String> delta) { if (delta == null || delta.isEmpty()) { return ""; } StringBuffer sb = new StringBuffer(); for (Map.Entry<String, String> entry : delta.entrySet()) { if (sb.length() > 0) { ...
[ "private", "String", "toStringFormChangedPropertiesMap", "(", "Map", "<", "String", ",", "String", ">", "delta", ")", "{", "if", "(", "delta", "==", "null", "||", "delta", ".", "isEmpty", "(", ")", ")", "{", "return", "\"\"", ";", "}", "StringBuffer", "s...
Format the map of config change attributes for the audit function. The output format would be the same as original WebAppSecurityConfig.getChangedProperties method. @return String in the format of "name=value, name=value, ..." encapsulating the properties that are different between this WebAppSecurityConfig and the sp...
[ "Format", "the", "map", "of", "config", "change", "attributes", "for", "the", "audit", "function", ".", "The", "output", "format", "would", "be", "the", "same", "as", "original", "WebAppSecurityConfig", ".", "getChangedProperties", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java#L1673-L1685
68,745
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java
WebAppSecurityCollaboratorImpl.logAuditEntriesBeforeAuthn
private void logAuditEntriesBeforeAuthn(WebReply webReply, Subject receivedSubject, String uriName, WebRequest webRequest) { AuthenticationResult authResult; if (webReply instanceof PermitReply) { authResult = new AuthenticationResult(AuthResult.SUCCESS, receivedSubject, null, null, AuditEve...
java
private void logAuditEntriesBeforeAuthn(WebReply webReply, Subject receivedSubject, String uriName, WebRequest webRequest) { AuthenticationResult authResult; if (webReply instanceof PermitReply) { authResult = new AuthenticationResult(AuthResult.SUCCESS, receivedSubject, null, null, AuditEve...
[ "private", "void", "logAuditEntriesBeforeAuthn", "(", "WebReply", "webReply", ",", "Subject", "receivedSubject", ",", "String", "uriName", ",", "WebRequest", "webRequest", ")", "{", "AuthenticationResult", "authResult", ";", "if", "(", "webReply", "instanceof", "Permi...
no null check for webReply object, so make sure it is not null upon calling this method.
[ "no", "null", "check", "for", "webReply", "object", "so", "make", "sure", "it", "is", "not", "null", "upon", "calling", "this", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAppSecurityCollaboratorImpl.java#L1696-L1706
68,746
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/MBeanRoutedNotificationHelper.java
MBeanRoutedNotificationHelper.postRoutedNotificationListenerRegistrationEvent
private void postRoutedNotificationListenerRegistrationEvent(String operation, NotificationTargetInformation nti) { Map<String, Object> props = createListenerRegistrationEvent(operation, nti); safePostEvent(new Event(REGISTER_JMX_NOTIFICATION_LISTENER_TOPIC, props)); }
java
private void postRoutedNotificationListenerRegistrationEvent(String operation, NotificationTargetInformation nti) { Map<String, Object> props = createListenerRegistrationEvent(operation, nti); safePostEvent(new Event(REGISTER_JMX_NOTIFICATION_LISTENER_TOPIC, props)); }
[ "private", "void", "postRoutedNotificationListenerRegistrationEvent", "(", "String", "operation", ",", "NotificationTargetInformation", "nti", ")", "{", "Map", "<", "String", ",", "Object", ">", "props", "=", "createListenerRegistrationEvent", "(", "operation", ",", "nt...
Post an event to EventAdmin, instructing the Target-Client Manager to register or unregister a listener for a given target.
[ "Post", "an", "event", "to", "EventAdmin", "instructing", "the", "Target", "-", "Client", "Manager", "to", "register", "or", "unregister", "a", "listener", "for", "a", "given", "target", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/MBeanRoutedNotificationHelper.java#L231-L234
68,747
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/MBeanRoutedNotificationHelper.java
MBeanRoutedNotificationHelper.postRoutedServerNotificationListenerRegistrationEvent
private void postRoutedServerNotificationListenerRegistrationEvent(String operation, NotificationTargetInformation nti, ObjectName listener, NotificationFilter filter, Object handback) { Map<String, Object> props = createServerListenerRegist...
java
private void postRoutedServerNotificationListenerRegistrationEvent(String operation, NotificationTargetInformation nti, ObjectName listener, NotificationFilter filter, Object handback) { Map<String, Object> props = createServerListenerRegist...
[ "private", "void", "postRoutedServerNotificationListenerRegistrationEvent", "(", "String", "operation", ",", "NotificationTargetInformation", "nti", ",", "ObjectName", "listener", ",", "NotificationFilter", "filter", ",", "Object", "handback", ")", "{", "Map", "<", "Strin...
Post an event to EventAdmin, instructing the Target-Client Manager to register or unregister a listener MBean on a given target.
[ "Post", "an", "event", "to", "EventAdmin", "instructing", "the", "Target", "-", "Client", "Manager", "to", "register", "or", "unregister", "a", "listener", "MBean", "on", "a", "given", "target", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/MBeanRoutedNotificationHelper.java#L257-L261
68,748
OpenLiberty/open-liberty
dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/MBeanRoutedNotificationHelper.java
MBeanRoutedNotificationHelper.safePostEvent
private void safePostEvent(Event event) { EventAdmin ea = eventAdminRef.getService(); if (ea != null) { ea.postEvent(event); } else if (tc.isEventEnabled()) { Tr.event(tc, "The EventAdmin service is unavailable. Unable to post the Event: " + event); } }
java
private void safePostEvent(Event event) { EventAdmin ea = eventAdminRef.getService(); if (ea != null) { ea.postEvent(event); } else if (tc.isEventEnabled()) { Tr.event(tc, "The EventAdmin service is unavailable. Unable to post the Event: " + event); } }
[ "private", "void", "safePostEvent", "(", "Event", "event", ")", "{", "EventAdmin", "ea", "=", "eventAdminRef", ".", "getService", "(", ")", ";", "if", "(", "ea", "!=", "null", ")", "{", "ea", ".", "postEvent", "(", "event", ")", ";", "}", "else", "if...
Null-safe event posting to eventAdminRef. @param event
[ "Null", "-", "safe", "event", "posting", "to", "eventAdminRef", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/MBeanRoutedNotificationHelper.java#L301-L308
68,749
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/ute/UTEHelperImpl.java
UTEHelperImpl.enableDestinationCreation
public void enableDestinationCreation(SICoreConnectionFactory siccf) { if (tcInt.isEntryEnabled()) SibTr.entry(tcInt, "enableDestinationCreation"); try { if (admin == null) { if (tcInt.isDebugEnabled()) SibTr.debug(tcInt, "Setting up destination definition ob...
java
public void enableDestinationCreation(SICoreConnectionFactory siccf) { if (tcInt.isEntryEnabled()) SibTr.entry(tcInt, "enableDestinationCreation"); try { if (admin == null) { if (tcInt.isDebugEnabled()) SibTr.debug(tcInt, "Setting up destination definition ob...
[ "public", "void", "enableDestinationCreation", "(", "SICoreConnectionFactory", "siccf", ")", "{", "if", "(", "tcInt", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tcInt", ",", "\"enableDestinationCreation\"", ")", ";", "try", "{", "if", "...
This method sets up the destination definitions. It is called
[ "This", "method", "sets", "up", "the", "destination", "definitions", ".", "It", "is", "called" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/ute/UTEHelperImpl.java#L330-L360
68,750
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/ute/UTEHelperImpl.java
UTEHelperImpl.createDestination
private void createDestination(String name, com.ibm.wsspi.sib.core.DestinationType destType, Reliability defaultReliability) throws JMSException { if (tcInt.isEntryEnabled()) SibTr.entry(tcInt, "createDestination(String, DestinationType)...
java
private void createDestination(String name, com.ibm.wsspi.sib.core.DestinationType destType, Reliability defaultReliability) throws JMSException { if (tcInt.isEntryEnabled()) SibTr.entry(tcInt, "createDestination(String, DestinationType)...
[ "private", "void", "createDestination", "(", "String", "name", ",", "com", ".", "ibm", ".", "wsspi", ".", "sib", ".", "core", ".", "DestinationType", "destType", ",", "Reliability", "defaultReliability", ")", "throws", "JMSException", "{", "if", "(", "tcInt", ...
Internal method to do the creation given a name a ddf.
[ "Internal", "method", "to", "do", "the", "creation", "given", "a", "name", "a", "ddf", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/ute/UTEHelperImpl.java#L365-L451
68,751
OpenLiberty/open-liberty
dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/LdapIdentityStore.java
LdapIdentityStore.bind
private DirContext bind(String bindDn, ProtectedString bindPw) throws NamingException { Hashtable<Object, Object> env = new Hashtable<Object, Object>(); String url = this.idStoreDefinition.getUrl(); if (url == null || url.isEmpty()) { throw new IllegalArgumentException("No URL was pr...
java
private DirContext bind(String bindDn, ProtectedString bindPw) throws NamingException { Hashtable<Object, Object> env = new Hashtable<Object, Object>(); String url = this.idStoreDefinition.getUrl(); if (url == null || url.isEmpty()) { throw new IllegalArgumentException("No URL was pr...
[ "private", "DirContext", "bind", "(", "String", "bindDn", ",", "ProtectedString", "bindPw", ")", "throws", "NamingException", "{", "Hashtable", "<", "Object", ",", "Object", ">", "env", "=", "new", "Hashtable", "<", "Object", ",", "Object", ">", "(", ")", ...
Bind to the LDAP server. @param bindDn The distinguished name used to bind to the LDAP server. @param bindPw The password used to bind to the LDAP server. @return The bound {@link DirContext}. @throws NamingException If there was a failure to bind to the LDAP server.
[ "Bind", "to", "the", "LDAP", "server", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/LdapIdentityStore.java#L88-L125
68,752
OpenLiberty/open-liberty
dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/LdapIdentityStore.java
LdapIdentityStore.getGroups
private Set<String> getGroups(DirContext context, String callerDn) { Set<String> groups = null; String groupSearchBase = idStoreDefinition.getGroupSearchBase(); String groupSearchFilter = idStoreDefinition.getGroupSearchFilter(); if (groupSearchBase.isEmpty() || groupSearchFilter.isEmpty...
java
private Set<String> getGroups(DirContext context, String callerDn) { Set<String> groups = null; String groupSearchBase = idStoreDefinition.getGroupSearchBase(); String groupSearchFilter = idStoreDefinition.getGroupSearchFilter(); if (groupSearchBase.isEmpty() || groupSearchFilter.isEmpty...
[ "private", "Set", "<", "String", ">", "getGroups", "(", "DirContext", "context", ",", "String", "callerDn", ")", "{", "Set", "<", "String", ">", "groups", "=", "null", ";", "String", "groupSearchBase", "=", "idStoreDefinition", ".", "getGroupSearchBase", "(", ...
Get the groups for the caller @param context The {@link DirContext} to use when performing the search. @param callerDn The caller's distinguished name. @return The set of groups the caller is a member of.
[ "Get", "the", "groups", "for", "the", "caller" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/LdapIdentityStore.java#L332-L342
68,753
OpenLiberty/open-liberty
dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/LdapIdentityStore.java
LdapIdentityStore.getGroupsByMember
private Set<String> getGroupsByMember(DirContext context, String callerDn, String groupSearchBase, String groupSearchFilter) { String groupNameAttribute = idStoreDefinition.getGroupNameAttribute(); String[] attrIds = { groupNameAttribute }; long limit = Long.valueOf(idStoreDefinition.getMaxRes...
java
private Set<String> getGroupsByMember(DirContext context, String callerDn, String groupSearchBase, String groupSearchFilter) { String groupNameAttribute = idStoreDefinition.getGroupNameAttribute(); String[] attrIds = { groupNameAttribute }; long limit = Long.valueOf(idStoreDefinition.getMaxRes...
[ "private", "Set", "<", "String", ">", "getGroupsByMember", "(", "DirContext", "context", ",", "String", "callerDn", ",", "String", "groupSearchBase", ",", "String", "groupSearchFilter", ")", "{", "String", "groupNameAttribute", "=", "idStoreDefinition", ".", "getGro...
Get the groups for the caller by using a member-style attribute found on group LDAP entities. @param context The {@link DirContext} to use when performing the search. @param callerDn The caller's distinguished name. @param groupSearchFilter The filter to use when searching for groups @param groupSearchBase The base of...
[ "Get", "the", "groups", "for", "the", "caller", "by", "using", "a", "member", "-", "style", "attribute", "found", "on", "group", "LDAP", "entities", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/LdapIdentityStore.java#L353-L404
68,754
OpenLiberty/open-liberty
dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/LdapIdentityStore.java
LdapIdentityStore.getFormattedFilter
private String getFormattedFilter(String searchFilter, String caller, String attribute) { //Allow %v in addition to %s for string replacement String filter = searchFilter.replaceAll("%v", "%s"); if (!(filter.startsWith("(") && filter.endsWith(")")) && !filter.isEmpty()) { filter = "(...
java
private String getFormattedFilter(String searchFilter, String caller, String attribute) { //Allow %v in addition to %s for string replacement String filter = searchFilter.replaceAll("%v", "%s"); if (!(filter.startsWith("(") && filter.endsWith(")")) && !filter.isEmpty()) { filter = "(...
[ "private", "String", "getFormattedFilter", "(", "String", "searchFilter", ",", "String", "caller", ",", "String", "attribute", ")", "{", "//Allow %v in addition to %s for string replacement", "String", "filter", "=", "searchFilter", ".", "replaceAll", "(", "\"%v\"", ","...
Format the callerSearchFilter or groupSearchFilter. We need to check for String substitution. If a substitution is needed, use the result as is. Otherwise, construct the remainder of the filter using the name attribute of the group or caller. @param searchFilter The filter set in LdapIdentityStore @param caller The na...
[ "Format", "the", "callerSearchFilter", "or", "groupSearchFilter", ".", "We", "need", "to", "check", "for", "String", "substitution", ".", "If", "a", "substitution", "is", "needed", "use", "the", "result", "as", "is", ".", "Otherwise", "construct", "the", "rema...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/LdapIdentityStore.java#L416-L428
68,755
OpenLiberty/open-liberty
dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/LdapIdentityStore.java
LdapIdentityStore.getGroupsByMembership
private Set<String> getGroupsByMembership(DirContext context, String callerDn) { String memberOfAttribute = idStoreDefinition.getGroupMemberOfAttribute(); String groupNameAttribute = idStoreDefinition.getGroupNameAttribute(); Attributes attrs; Set<String> groupDns = new HashSet<String>()...
java
private Set<String> getGroupsByMembership(DirContext context, String callerDn) { String memberOfAttribute = idStoreDefinition.getGroupMemberOfAttribute(); String groupNameAttribute = idStoreDefinition.getGroupNameAttribute(); Attributes attrs; Set<String> groupDns = new HashSet<String>()...
[ "private", "Set", "<", "String", ">", "getGroupsByMembership", "(", "DirContext", "context", ",", "String", "callerDn", ")", "{", "String", "memberOfAttribute", "=", "idStoreDefinition", ".", "getGroupMemberOfAttribute", "(", ")", ";", "String", "groupNameAttribute", ...
Get the groups for the caller by using the memberOf-style attribute found on user LDAP entities. @param context The {@link DirContext} to use when performing the search. @param callerDn The caller's distinguished name. @return The set of groups the caller is a member of.
[ "Get", "the", "groups", "for", "the", "caller", "by", "using", "the", "memberOf", "-", "style", "attribute", "found", "on", "user", "LDAP", "entities", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.javaeesec/src/com/ibm/ws/security/javaeesec/identitystore/LdapIdentityStore.java#L437-L494
68,756
OpenLiberty/open-liberty
dev/com.ibm.ws.beanvalidation.core/src/com/ibm/ws/beanvalidation/ValidatorFactoryObjectFactory.java
ValidatorFactoryObjectFactory.getValidatorFactory
@Deprecated public static ValidatorFactory getValidatorFactory() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getValidatorFactory"); ValidatorFactory validatorFactory = AbstractBeanValidation.getValidat...
java
@Deprecated public static ValidatorFactory getValidatorFactory() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getValidatorFactory"); ValidatorFactory validatorFactory = AbstractBeanValidation.getValidat...
[ "@", "Deprecated", "public", "static", "ValidatorFactory", "getValidatorFactory", "(", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")...
This method will return null if no BeanValidationService is available in the process @deprecated Use {@link BeanValidation#getValidatorFactory} instead
[ "This", "method", "will", "return", "null", "if", "no", "BeanValidationService", "is", "available", "in", "the", "process" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.beanvalidation.core/src/com/ibm/ws/beanvalidation/ValidatorFactoryObjectFactory.java#L51-L64
68,757
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ras/SibMessage.java
TrListener.message
public void message(MessageType type, String me, TraceComponent tc, String msgKey, Object objs, Object[] formattedMessage) { switch(type) { case AUDIT : if (TraceComponent.isAnyTracingEnabled() && myTc.isAuditEnabled()) Tr.audit(myTc, SIB_MESSAGE, formattedMessage); break;...
java
public void message(MessageType type, String me, TraceComponent tc, String msgKey, Object objs, Object[] formattedMessage) { switch(type) { case AUDIT : if (TraceComponent.isAnyTracingEnabled() && myTc.isAuditEnabled()) Tr.audit(myTc, SIB_MESSAGE, formattedMessage); break;...
[ "public", "void", "message", "(", "MessageType", "type", ",", "String", "me", ",", "TraceComponent", "tc", ",", "String", "msgKey", ",", "Object", "objs", ",", "Object", "[", "]", "formattedMessage", ")", "{", "switch", "(", "type", ")", "{", "case", "AU...
The method called to indicate that a message is being generated by SibMessage @param type The type of the event @param me The messaging engine (if any) generating the message @param tc The trace component generating the message @param msgKey The message key of the message being generated @param objs The in...
[ "The", "method", "called", "to", "indicate", "that", "a", "message", "is", "being", "generated", "by", "SibMessage" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ras/SibMessage.java#L94-L109
68,758
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/boot/templates/ProbeProxy.java
ProbeProxy.fireProbe
public final static void fireProbe(long probeId, Object instance, Object target, Object args) { // Load statics onto the stack to avoid a window where they can be cleared // between the test for null and the invocation of the method Object proxyTarget = fireProbeTarget; Method method = f...
java
public final static void fireProbe(long probeId, Object instance, Object target, Object args) { // Load statics onto the stack to avoid a window where they can be cleared // between the test for null and the invocation of the method Object proxyTarget = fireProbeTarget; Method method = f...
[ "public", "final", "static", "void", "fireProbe", "(", "long", "probeId", ",", "Object", "instance", ",", "Object", "target", ",", "Object", "args", ")", "{", "// Load statics onto the stack to avoid a window where they can be cleared", "// between the test for null and the i...
Fire a probe event to the registered target. @param probeId the generated probe identifier @param instance the object instance emitting the probe or null @param args the probe payload
[ "Fire", "a", "probe", "event", "to", "the", "registered", "target", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/boot/templates/ProbeProxy.java#L51-L64
68,759
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ShortIdAllocator.java
ShortIdAllocator.releaseId
public synchronized void releaseId(short id) throws IdAllocatorException { if (tc.isEntryEnabled()) SibTr.entry(tc, "releaseId", ""+id); deallocate(id); // If we are releasing the id 1 less than the next id, set the next id to this one if (id == (nextId - 1)) { nextId = id; ...
java
public synchronized void releaseId(short id) throws IdAllocatorException { if (tc.isEntryEnabled()) SibTr.entry(tc, "releaseId", ""+id); deallocate(id); // If we are releasing the id 1 less than the next id, set the next id to this one if (id == (nextId - 1)) { nextId = id; ...
[ "public", "synchronized", "void", "releaseId", "(", "short", "id", ")", "throws", "IdAllocatorException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"releaseId\"", ",", "\"\"", "+", "id", ")", ";"...
Releases an ID, making it available to be allocated once more. @param id The ID to release. @throws IdAllocatorException Thrown if ID was not allocated in the first place.
[ "Releases", "an", "ID", "making", "it", "available", "to", "be", "allocated", "once", "more", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ShortIdAllocator.java#L250-L273
68,760
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.3/src/javax/faces/convert/EnumConverter.java
EnumConverter.firstConstantOfEnum
private String firstConstantOfEnum() { Object[] enumConstants = targetClass.getEnumConstants(); if (enumConstants.length != 0) { return enumConstants[0].toString(); } return ""; // if empty Enum }
java
private String firstConstantOfEnum() { Object[] enumConstants = targetClass.getEnumConstants(); if (enumConstants.length != 0) { return enumConstants[0].toString(); } return ""; // if empty Enum }
[ "private", "String", "firstConstantOfEnum", "(", ")", "{", "Object", "[", "]", "enumConstants", "=", "targetClass", ".", "getEnumConstants", "(", ")", ";", "if", "(", "enumConstants", ".", "length", "!=", "0", ")", "{", "return", "enumConstants", "[", "0", ...
find the first constant value of the targetClass and return as a String
[ "find", "the", "first", "constant", "value", "of", "the", "targetClass", "and", "return", "as", "a", "String" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.3/src/javax/faces/convert/EnumConverter.java#L151-L161
68,761
OpenLiberty/open-liberty
dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventEngineImpl.java
EventEngineImpl.checkTopicPublishPermission
void checkTopicPublishPermission(String topic) { SecurityManager sm = System.getSecurityManager(); if (sm == null) return; sm.checkPermission(new TopicPermission(topic, PUBLISH)); }
java
void checkTopicPublishPermission(String topic) { SecurityManager sm = System.getSecurityManager(); if (sm == null) return; sm.checkPermission(new TopicPermission(topic, PUBLISH)); }
[ "void", "checkTopicPublishPermission", "(", "String", "topic", ")", "{", "SecurityManager", "sm", "=", "System", ".", "getSecurityManager", "(", ")", ";", "if", "(", "sm", "==", "null", ")", "return", ";", "sm", ".", "checkPermission", "(", "new", "TopicPerm...
Check if the caller has permission to publish events to the specified topic. @param topic the topic the event is being published to
[ "Check", "if", "the", "caller", "has", "permission", "to", "publish", "events", "to", "the", "specified", "topic", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventEngineImpl.java#L323-L329
68,762
OpenLiberty/open-liberty
dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventEngineImpl.java
EventEngineImpl.activate
@Activate protected void activate(ComponentContext componentContext, Map<String, Object> props) { this.componentContext = componentContext; // // Parse the configuration that we've been provided // Dictionary<?, ?> configProperties = componentContext.getProperties(); // processConfi...
java
@Activate protected void activate(ComponentContext componentContext, Map<String, Object> props) { this.componentContext = componentContext; // // Parse the configuration that we've been provided // Dictionary<?, ?> configProperties = componentContext.getProperties(); // processConfi...
[ "@", "Activate", "protected", "void", "activate", "(", "ComponentContext", "componentContext", ",", "Map", "<", "String", ",", "Object", ">", "props", ")", "{", "this", ".", "componentContext", "=", "componentContext", ";", "// // Parse the configuration that we've be...
Activate the EventEngine implementation. This method will be called by OSGi Declarative Services implementation when the component is initially activated and when changes to our configuration have occurred. @param componentContext the OSGi DS context
[ "Activate", "the", "EventEngine", "implementation", ".", "This", "method", "will", "be", "called", "by", "OSGi", "Declarative", "Services", "implementation", "when", "the", "component", "is", "initially", "activated", "and", "when", "changes", "to", "our", "config...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventEngineImpl.java#L339-L365
68,763
OpenLiberty/open-liberty
dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventEngineImpl.java
EventEngineImpl.deactivate
@Deactivate protected void deactivate(ComponentContext componentContext) { // Remove the framework event adapter bundleContext.removeFrameworkListener(frameworkEventAdapter); frameworkEventAdapter = null; // Remove the bundle event adapter bundleContext.removeBundleListener(...
java
@Deactivate protected void deactivate(ComponentContext componentContext) { // Remove the framework event adapter bundleContext.removeFrameworkListener(frameworkEventAdapter); frameworkEventAdapter = null; // Remove the bundle event adapter bundleContext.removeBundleListener(...
[ "@", "Deactivate", "protected", "void", "deactivate", "(", "ComponentContext", "componentContext", ")", "{", "// Remove the framework event adapter", "bundleContext", ".", "removeFrameworkListener", "(", "frameworkEventAdapter", ")", ";", "frameworkEventAdapter", "=", "null",...
Deactivate the EventAdmin service. This method will be called by the OSGi Declarative Services implementation when the component is deactivated. Deactivation will occur when the service configuration needs to be refreshed, when the bundle is stopped, or when the DS implementation is stopped. @param componentContext
[ "Deactivate", "the", "EventAdmin", "service", ".", "This", "method", "will", "be", "called", "by", "the", "OSGi", "Declarative", "Services", "implementation", "when", "the", "component", "is", "deactivated", ".", "Deactivation", "will", "occur", "when", "the", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventEngineImpl.java#L381-L397
68,764
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java
PubSubOutputHandler.addTopic
public void addTopic(String topic) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addTopic", topic); SelectionCriteria criteria = _messageProcessor. getSelectionCriteriaFactory(). createSelectionC...
java
public void addTopic(String topic) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addTopic", topic); SelectionCriteria criteria = _messageProcessor. getSelectionCriteriaFactory(). createSelectionC...
[ "public", "void", "addTopic", "(", "String", "topic", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"addTopic\"", ",", "topic", ")",...
Adds a topic to the subscription state for this OutputHandler. @param topic The name of the topic
[ "Adds", "a", "topic", "to", "the", "subscription", "state", "for", "this", "OutputHandler", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java#L228-L249
68,765
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java
PubSubOutputHandler.removeTopic
public void removeTopic(String topic) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeTopic", topic); if (_subscriptionState == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc, "removeTopic", "Topic not ...
java
public void removeTopic(String topic) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeTopic", topic); if (_subscriptionState == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc, "removeTopic", "Topic not ...
[ "public", "void", "removeTopic", "(", "String", "topic", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"removeTopic\"", ",", "topic", ...
Removes a topic from the set of topics with this OutputHandler
[ "Removes", "a", "topic", "from", "the", "set", "of", "topics", "with", "this", "OutputHandler" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java#L254-L269
68,766
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java
PubSubOutputHandler.getTopics
public String[] getTopics() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getTopics"); String[] topics = null; if (_subscriptionState != null) topics = _subscriptionState.getTopics(); if (TraceComponent.isAnyTracingEnabled() && tc.i...
java
public String[] getTopics() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getTopics"); String[] topics = null; if (_subscriptionState != null) topics = _subscriptionState.getTopics(); if (TraceComponent.isAnyTracingEnabled() && tc.i...
[ "public", "String", "[", "]", "getTopics", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getTopics\"", ")", ";", "String", "...
Get the set of topics associated with this OutputHandler
[ "Get", "the", "set", "of", "topics", "associated", "with", "this", "OutputHandler" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java#L274-L286
68,767
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java
PubSubOutputHandler.getTopicSpaceUuid
public SIBUuid12 getTopicSpaceUuid() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getTopicSpaceUuid"); SIBUuid12 retval = _destinationHandler.getUuid(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "getTopicSpaceUuid", r...
java
public SIBUuid12 getTopicSpaceUuid() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getTopicSpaceUuid"); SIBUuid12 retval = _destinationHandler.getUuid(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "getTopicSpaceUuid", r...
[ "public", "SIBUuid12", "getTopicSpaceUuid", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getTopicSpaceUuid\"", ")", ";", "SIBUuid...
Get the topic space name associated with this OutputHandler
[ "Get", "the", "topic", "space", "name", "associated", "with", "this", "OutputHandler" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java#L291-L299
68,768
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java
PubSubOutputHandler.processAckExpected
void processAckExpected( long ackExpStamp, int priority, Reliability reliability, SIBUuid12 stream) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "processAckExpected", new Long(ackExpStamp)); _internalOutputStreamManager...
java
void processAckExpected( long ackExpStamp, int priority, Reliability reliability, SIBUuid12 stream) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "processAckExpected", new Long(ackExpStamp)); _internalOutputStreamManager...
[ "void", "processAckExpected", "(", "long", "ackExpStamp", ",", "int", "priority", ",", "Reliability", "reliability", ",", "SIBUuid12", "stream", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc...
needs to be forwarded downstream.
[ "needs", "to", "be", "forwarded", "downstream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java#L530-L544
68,769
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java
PubSubOutputHandler.sendSilenceMessage
public void sendSilenceMessage( long startStamp, long endStamp, long completedPrefix, boolean requestedOnly, int priority, Reliability reliability, SIBUuid12 stream) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibT...
java
public void sendSilenceMessage( long startStamp, long endStamp, long completedPrefix, boolean requestedOnly, int priority, Reliability reliability, SIBUuid12 stream) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibT...
[ "public", "void", "sendSilenceMessage", "(", "long", "startStamp", ",", "long", "endStamp", ",", "long", "completedPrefix", ",", "boolean", "requestedOnly", ",", "int", "priority", ",", "Reliability", "reliability", ",", "SIBUuid12", "stream", ")", "throws", "SIRe...
sendSilenceMessage may be called from InternalOutputStream when a Nack is recevied
[ "sendSilenceMessage", "may", "be", "called", "from", "InternalOutputStream", "when", "a", "Nack", "is", "recevied" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java#L715-L812
68,770
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java
PubSubOutputHandler.sendLinkMessage
public void sendLinkMessage( MessageItem msgItem, boolean rollback) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendLinkMessage", msgItem); JsMessage jsMsg=null; try { //defect 245624 jsMsg = msgItem.getM...
java
public void sendLinkMessage( MessageItem msgItem, boolean rollback) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendLinkMessage", msgItem); JsMessage jsMsg=null; try { //defect 245624 jsMsg = msgItem.getM...
[ "public", "void", "sendLinkMessage", "(", "MessageItem", "msgItem", ",", "boolean", "rollback", ")", "throws", "SIResourceException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr...
properties need to be set on the mssage
[ "properties", "need", "to", "be", "set", "on", "the", "mssage" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java#L1040-L1100
68,771
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java
PubSubOutputHandler.removeStream
public void removeStream(SIBUuid12 stream) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeStream", stream); // nuke the stream out of our internal store _internalOutputStreamManager.remove(stream); deregisterControlAdapterMBean(); if (TraceCompo...
java
public void removeStream(SIBUuid12 stream) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeStream", stream); // nuke the stream out of our internal store _internalOutputStreamManager.remove(stream); deregisterControlAdapterMBean(); if (TraceCompo...
[ "public", "void", "removeStream", "(", "SIBUuid12", "stream", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"removeStream\"", ",", "st...
This method is called by the input handler when it flushes a local stream. This is our cue to remove any data structures we may be maintaining for this stream. @param stream The flushed stream
[ "This", "method", "is", "called", "by", "the", "input", "handler", "when", "it", "flushes", "a", "local", "stream", ".", "This", "is", "our", "cue", "to", "remove", "any", "data", "structures", "we", "may", "be", "maintaining", "for", "this", "stream", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java#L1808-L1817
68,772
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java
PubSubOutputHandler.setTopicSpaceMapping
public void setTopicSpaceMapping(String foreignTSName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setTopicSpaceMapping", foreignTSName); // Create routingDestination object _routingDestination = SIMPUtils.createJsDestinationAddress(foreignTSName, ...
java
public void setTopicSpaceMapping(String foreignTSName) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setTopicSpaceMapping", foreignTSName); // Create routingDestination object _routingDestination = SIMPUtils.createJsDestinationAddress(foreignTSName, ...
[ "public", "void", "setTopicSpaceMapping", "(", "String", "foreignTSName", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setTopicSpaceMapp...
Creates the JsDestinationAddress object passed over in publications to foreign buses. @param String The foreign topicspace mapping
[ "Creates", "the", "JsDestinationAddress", "object", "passed", "over", "in", "publications", "to", "foreign", "buses", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PubSubOutputHandler.java#L1873-L1885
68,773
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java
TransactionControlImpl.getCurrentTransactionalUOW
public SynchronizationRegistryUOWScope getCurrentTransactionalUOW(boolean checkMarkedRollback) throws CSITransactionRolledbackException { UOWCoordinator coord = uowCurrent.getUOWCoord(); // 131880-6 if (coord != null) { if (checkMarkedRollback && coord.getRoll...
java
public SynchronizationRegistryUOWScope getCurrentTransactionalUOW(boolean checkMarkedRollback) throws CSITransactionRolledbackException { UOWCoordinator coord = uowCurrent.getUOWCoord(); // 131880-6 if (coord != null) { if (checkMarkedRollback && coord.getRoll...
[ "public", "SynchronizationRegistryUOWScope", "getCurrentTransactionalUOW", "(", "boolean", "checkMarkedRollback", ")", "throws", "CSITransactionRolledbackException", "{", "UOWCoordinator", "coord", "=", "uowCurrent", ".", "getUOWCoord", "(", ")", ";", "// 131880-6", "if", "...
Added checkMarkedRollback parameter. d166414
[ "Added", "checkMarkedRollback", "parameter", ".", "d166414" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java#L565-L583
68,774
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java
TransactionControlImpl.setRollbackOnly
public void setRollbackOnly() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { // d173022.3 Tr.entry(tc, "setRollbackOnly", this); } LocalTransactionCoordinator lCoord = getLocalCoord(); if (lCoord != null)...
java
public void setRollbackOnly() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) { // d173022.3 Tr.entry(tc, "setRollbackOnly", this); } LocalTransactionCoordinator lCoord = getLocalCoord(); if (lCoord != null)...
[ "public", "void", "setRollbackOnly", "(", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "// d173022.3", "Tr", ".", ...
Marks the current local or global transaction to be rolled back
[ "Marks", "the", "current", "local", "or", "global", "transaction", "to", "be", "rolled", "back" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java#L627-L651
68,775
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java
TransactionControlImpl.getRollbackOnly
public boolean getRollbackOnly() { LocalTransactionCoordinator lCoord = getLocalCoord(); if (lCoord != null) { return (lCoord.getRollbackOnly()); } else { int status = Status.STATUS_NO_TRANSACTION; //LIDB1673.2.1.5 try { //LIDB1673.2.1.5 s...
java
public boolean getRollbackOnly() { LocalTransactionCoordinator lCoord = getLocalCoord(); if (lCoord != null) { return (lCoord.getRollbackOnly()); } else { int status = Status.STATUS_NO_TRANSACTION; //LIDB1673.2.1.5 try { //LIDB1673.2.1.5 s...
[ "public", "boolean", "getRollbackOnly", "(", ")", "{", "LocalTransactionCoordinator", "lCoord", "=", "getLocalCoord", "(", ")", ";", "if", "(", "lCoord", "!=", "null", ")", "{", "return", "(", "lCoord", ".", "getRollbackOnly", "(", ")", ")", ";", "}", "els...
Returns true iff the current local or global transaction has been marked rollback only
[ "Returns", "true", "iff", "the", "current", "local", "or", "global", "transaction", "has", "been", "marked", "rollback", "only" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java#L659-L680
68,776
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java
TransactionControlImpl.enlistWithTransaction
public void enlistWithTransaction(javax.transaction.Synchronization sync) throws CSIException { SynchronizationRegistryUOWScope uowScope = getCurrentTransactionalUOW(false); if (uowScope == null) { throw new IllegalStateException("No active transaction"); ...
java
public void enlistWithTransaction(javax.transaction.Synchronization sync) throws CSIException { SynchronizationRegistryUOWScope uowScope = getCurrentTransactionalUOW(false); if (uowScope == null) { throw new IllegalStateException("No active transaction"); ...
[ "public", "void", "enlistWithTransaction", "(", "javax", ".", "transaction", ".", "Synchronization", "sync", ")", "throws", "CSIException", "{", "SynchronizationRegistryUOWScope", "uowScope", "=", "getCurrentTransactionalUOW", "(", "false", ")", ";", "if", "(", "uowSc...
Enlist synchronization instance with the current local or global transaction.
[ "Enlist", "synchronization", "instance", "with", "the", "current", "local", "or", "global", "transaction", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java#L686-L696
68,777
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java
TransactionControlImpl.enlistWithTransaction
public void enlistWithTransaction(SynchronizationRegistryUOWScope uowCoord, Synchronization sync) throws CSIException { try { if (uowCoord.getUOWType() == UOWSynchronizationRegistry.UOW_TYPE_GLOBAL_TRANSACTION) { ...
java
public void enlistWithTransaction(SynchronizationRegistryUOWScope uowCoord, Synchronization sync) throws CSIException { try { if (uowCoord.getUOWType() == UOWSynchronizationRegistry.UOW_TYPE_GLOBAL_TRANSACTION) { ...
[ "public", "void", "enlistWithTransaction", "(", "SynchronizationRegistryUOWScope", "uowCoord", ",", "Synchronization", "sync", ")", "throws", "CSIException", "{", "try", "{", "if", "(", "uowCoord", ".", "getUOWType", "(", ")", "==", "UOWSynchronizationRegistry", ".", ...
Enlist synchronization instance with the specified UOWCoord
[ "Enlist", "synchronization", "instance", "with", "the", "specified", "UOWCoord" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java#L701-L719
68,778
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java
TransactionControlImpl.beginLocalTx
final LocalTransactionCoordinator beginLocalTx() { LocalTransactionCoordinator lCoord = null; try { ltcCurrent.begin(); lCoord = getLocalCoord(); // d175585 if (TraceComponent.isAnyTracingEnabled()) // d527372 { if (tc.isEventEnabled()...
java
final LocalTransactionCoordinator beginLocalTx() { LocalTransactionCoordinator lCoord = null; try { ltcCurrent.begin(); lCoord = getLocalCoord(); // d175585 if (TraceComponent.isAnyTracingEnabled()) // d527372 { if (tc.isEventEnabled()...
[ "final", "LocalTransactionCoordinator", "beginLocalTx", "(", ")", "{", "LocalTransactionCoordinator", "lCoord", "=", "null", ";", "try", "{", "ltcCurrent", ".", "begin", "(", ")", ";", "lCoord", "=", "getLocalCoord", "(", ")", ";", "// d175585", "if", "(", "Tr...
Begin a new local trasaction context
[ "Begin", "a", "new", "local", "trasaction", "context" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java#L922-L956
68,779
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java
TransactionControlImpl.suspendGlobalTx
final Transaction suspendGlobalTx(int action) throws CSIException //LIDB1673.2.1.5 //d174358.1 { Transaction ctrl = null; //LIDB1673.2.1.5 try { //LIDB1673.2.1.5 ctrl = txService.suspend(); //LIDB1673.2.1.5 if (TraceComponent.isAnyTracingEnabled()) // d527372 { ...
java
final Transaction suspendGlobalTx(int action) throws CSIException //LIDB1673.2.1.5 //d174358.1 { Transaction ctrl = null; //LIDB1673.2.1.5 try { //LIDB1673.2.1.5 ctrl = txService.suspend(); //LIDB1673.2.1.5 if (TraceComponent.isAnyTracingEnabled()) // d527372 { ...
[ "final", "Transaction", "suspendGlobalTx", "(", "int", "action", ")", "throws", "CSIException", "//LIDB1673.2.1.5 //d174358.1", "{", "Transaction", "ctrl", "=", "null", ";", "//LIDB1673.2.1.5", "try", "{", "//LIDB1673.2.1.5", "ctrl", "=", "txService", ".", "suspend", ...
Suspend the current global transaction and return the Control instance for it; the inactivity timeout is either started or stopped, according to action. If no global transaction exists on the thread, do nothing; returned Control object will be null is this case
[ "Suspend", "the", "current", "global", "transaction", "and", "return", "the", "Control", "instance", "for", "it", ";", "the", "inactivity", "timeout", "is", "either", "started", "or", "stopped", "according", "to", "action", ".", "If", "no", "global", "transact...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java#L1009-L1055
68,780
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java
TransactionControlImpl.resumeGlobalTx
final void resumeGlobalTx(Transaction ctrl, int action) //LIDB1673.2.1.5 throws SystemException, InvalidTransactionException //LIDB1673.2.1.5 { try { //LIDB1673.2.1.5 txService.resume(ctrl); //LIDB1673.2.1.5 } //LIDB1673.2.1.5 catch (SystemException e) //LIDB1673.2.1.5 ...
java
final void resumeGlobalTx(Transaction ctrl, int action) //LIDB1673.2.1.5 throws SystemException, InvalidTransactionException //LIDB1673.2.1.5 { try { //LIDB1673.2.1.5 txService.resume(ctrl); //LIDB1673.2.1.5 } //LIDB1673.2.1.5 catch (SystemException e) //LIDB1673.2.1.5 ...
[ "final", "void", "resumeGlobalTx", "(", "Transaction", "ctrl", ",", "int", "action", ")", "//LIDB1673.2.1.5", "throws", "SystemException", ",", "InvalidTransactionException", "//LIDB1673.2.1.5", "{", "try", "{", "//LIDB1673.2.1.5", "txService", ".", "resume", "(", "ct...
Resume the global transaction associated with the given Control instance. The inactivity timeout is either started or stopped, according to action. If InvalidTransactionException is raised by the global tx service it is passed on to the caller of this method.
[ "Resume", "the", "global", "transaction", "associated", "with", "the", "given", "Control", "instance", ".", "The", "inactivity", "timeout", "is", "either", "started", "or", "stopped", "according", "to", "action", ".", "If", "InvalidTransactionException", "is", "ra...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java#L1096-L1138
68,781
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java
TransactionControlImpl.completeTxTimeout
final public void completeTxTimeout() throws //LIDB1673.2.1.5 CSITransactionRolledbackException //LIDB1673.2.1.5 { //LIDB1673.2.1.5 final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); try { //LIDB1673.2.1.5 if (isTraceOn && tc.isEntryEnabled()) { // d173022.3 ...
java
final public void completeTxTimeout() throws //LIDB1673.2.1.5 CSITransactionRolledbackException //LIDB1673.2.1.5 { //LIDB1673.2.1.5 final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); try { //LIDB1673.2.1.5 if (isTraceOn && tc.isEntryEnabled()) { // d173022.3 ...
[ "final", "public", "void", "completeTxTimeout", "(", ")", "throws", "//LIDB1673.2.1.5", "CSITransactionRolledbackException", "//LIDB1673.2.1.5", "{", "//LIDB1673.2.1.5", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "tr...
Complete processing of passive transaction timeout. The timer pops on a timeout thread; the transaction is rolled back on the application thread when the container has control. d171654 @exception CSITransactionRolledbackException is thrown in the event of timeout.
[ "Complete", "processing", "of", "passive", "transaction", "timeout", ".", "The", "timer", "pops", "on", "a", "timeout", "thread", ";", "the", "transaction", "is", "rolled", "back", "on", "the", "application", "thread", "when", "the", "container", "has", "contr...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java#L1190-L1214
68,782
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java
TransactionControlImpl.isBmtActive
public boolean isBmtActive(EJBMethodInfoImpl methodInfo) { TranStrategy ts = txStrategies[methodInfo.getTransactionAttribute().getValue()]; return ts.isBmtActive(); }
java
public boolean isBmtActive(EJBMethodInfoImpl methodInfo) { TranStrategy ts = txStrategies[methodInfo.getTransactionAttribute().getValue()]; return ts.isBmtActive(); }
[ "public", "boolean", "isBmtActive", "(", "EJBMethodInfoImpl", "methodInfo", ")", "{", "TranStrategy", "ts", "=", "txStrategies", "[", "methodInfo", ".", "getTransactionAttribute", "(", ")", ".", "getValue", "(", ")", "]", ";", "return", "ts", ".", "isBmtActive",...
167937 - added entire method
[ "167937", "-", "added", "entire", "method" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/TransactionControlImpl.java#L1223-L1227
68,783
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/BundleList.java
BundleList.findExtraBundles
public BundleList findExtraBundles(BundleList newBundleList, FeatureManager featureManager) { List<RuntimeFeatureResource> bundles = new ArrayList<RuntimeFeatureResource>(resources); bundles.removeAll(newBundleList.resources); resources.removeAll(bundles); BundleList result = new BundleL...
java
public BundleList findExtraBundles(BundleList newBundleList, FeatureManager featureManager) { List<RuntimeFeatureResource> bundles = new ArrayList<RuntimeFeatureResource>(resources); bundles.removeAll(newBundleList.resources); resources.removeAll(bundles); BundleList result = new BundleL...
[ "public", "BundleList", "findExtraBundles", "(", "BundleList", "newBundleList", ",", "FeatureManager", "featureManager", ")", "{", "List", "<", "RuntimeFeatureResource", ">", "bundles", "=", "new", "ArrayList", "<", "RuntimeFeatureResource", ">", "(", "resources", ")"...
This is like retain all except it returns a list of what was removed. TODO remove the bundles. @param newBundleList @return
[ "This", "is", "like", "retain", "all", "except", "it", "returns", "a", "list", "of", "what", "was", "removed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/BundleList.java#L475-L483
68,784
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/BundleList.java
BundleList.readWriteTimeAndJavaSpecVersion
@FFDCIgnore(NumberFormatException.class) private void readWriteTimeAndJavaSpecVersion(WsResource res, String line) { int timeIndex = line.indexOf('='); int javaSpecVersionIndex = timeIndex >= 0 ? line.indexOf(';', timeIndex) : -1; if (timeIndex != -1) { try { Stri...
java
@FFDCIgnore(NumberFormatException.class) private void readWriteTimeAndJavaSpecVersion(WsResource res, String line) { int timeIndex = line.indexOf('='); int javaSpecVersionIndex = timeIndex >= 0 ? line.indexOf(';', timeIndex) : -1; if (timeIndex != -1) { try { Stri...
[ "@", "FFDCIgnore", "(", "NumberFormatException", ".", "class", ")", "private", "void", "readWriteTimeAndJavaSpecVersion", "(", "WsResource", "res", ",", "String", "line", ")", "{", "int", "timeIndex", "=", "line", ".", "indexOf", "(", "'", "'", ")", ";", "in...
ignore the NumberFormatException as we deal with it.
[ "ignore", "the", "NumberFormatException", "as", "we", "deal", "with", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/BundleList.java#L514-L532
68,785
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToSICoreConnectionTable.java
IdToSICoreConnectionTable.add
public synchronized void add(int id, SICoreConnection connection) { if (tc.isEntryEnabled()) SibTr.entry(tc, "add", "" + id); map.put(id, connection); if (tc.isEntryEnabled()) SibTr.exit(tc, "add"); }
java
public synchronized void add(int id, SICoreConnection connection) { if (tc.isEntryEnabled()) SibTr.entry(tc, "add", "" + id); map.put(id, connection); if (tc.isEntryEnabled()) SibTr.exit(tc, "add"); }
[ "public", "synchronized", "void", "add", "(", "int", "id", ",", "SICoreConnection", "connection", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"add\"", ",", "\"\"", "+", "id", ")", ";", "ma...
Adds an SICoreConnection into this map with the specified ID. @param id @param connection
[ "Adds", "an", "SICoreConnection", "into", "this", "map", "with", "the", "specified", "ID", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToSICoreConnectionTable.java#L40-L46
68,786
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToSICoreConnectionTable.java
IdToSICoreConnectionTable.get
public synchronized SICoreConnection get(int id) { if (tc.isEntryEnabled()) SibTr.entry(tc, "get", "" + id); SICoreConnection retValue = (SICoreConnection) map.get(id); if (tc.isEntryEnabled()) SibTr.exit(tc, "get", retValue); return retValue; }
java
public synchronized SICoreConnection get(int id) { if (tc.isEntryEnabled()) SibTr.entry(tc, "get", "" + id); SICoreConnection retValue = (SICoreConnection) map.get(id); if (tc.isEntryEnabled()) SibTr.exit(tc, "get", retValue); return retValue; }
[ "public", "synchronized", "SICoreConnection", "get", "(", "int", "id", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"get\"", ",", "\"\"", "+", "id", ")", ";", "SICoreConnection", "retValue", ...
Returns the SICoreConnection previously stored with the specified ID. @param id @return SICoreConnection
[ "Returns", "the", "SICoreConnection", "previously", "stored", "with", "the", "specified", "ID", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToSICoreConnectionTable.java#L54-L61
68,787
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToSICoreConnectionTable.java
IdToSICoreConnectionTable.remove
public synchronized void remove(int id) { if (tc.isEntryEnabled()) SibTr.entry(tc, "remove", "" + id); if (tc.isEntryEnabled()) SibTr.exit(tc, "remove", "" + id); map.remove(id); }
java
public synchronized void remove(int id) { if (tc.isEntryEnabled()) SibTr.entry(tc, "remove", "" + id); if (tc.isEntryEnabled()) SibTr.exit(tc, "remove", "" + id); map.remove(id); }
[ "public", "synchronized", "void", "remove", "(", "int", "id", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"remove\"", ",", "\"\"", "+", "id", ")", ";", "if", "(", "tc", ".", "isEntryEnab...
Removes an SICoreConnection from the map. @param id
[ "Removes", "an", "SICoreConnection", "from", "the", "map", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/IdToSICoreConnectionTable.java#L68-L74
68,788
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java
TransformerImpl.resolve
public Selector resolve(Selector tree, Resolver resolver, PositionAssigner positionAssigner) { if (tree instanceof Identifier) { Identifier id = (Identifier) tree; // The subtree to resolve is an Identifier. Resolve the Identifier. return resolver.resolve(id, positionAssigner); } else if ...
java
public Selector resolve(Selector tree, Resolver resolver, PositionAssigner positionAssigner) { if (tree instanceof Identifier) { Identifier id = (Identifier) tree; // The subtree to resolve is an Identifier. Resolve the Identifier. return resolver.resolve(id, positionAssigner); } else if ...
[ "public", "Selector", "resolve", "(", "Selector", "tree", ",", "Resolver", "resolver", ",", "PositionAssigner", "positionAssigner", ")", "{", "if", "(", "tree", "instanceof", "Identifier", ")", "{", "Identifier", "id", "=", "(", "Identifier", ")", "tree", ";",...
Walks a Selector tree and resolves all the Identifiers @param tree the Selector tree to walk. The tree may be modified in place by this method. Strictly speaking, only Identifier nodes can ever be replaced, but, since the tree can consist of only an Identifier, this may result in the tree being replaced rather than ...
[ "Walks", "a", "Selector", "tree", "and", "resolves", "all", "the", "Identifiers" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java#L45-L59
68,789
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java
TransformerImpl.DNF0
private static Selector DNF0(Selector tree) { if (!(tree instanceof Operator)) return tree; Operator oper = (Operator) tree; switch(oper.getOp()) { case Selector.AND: return processAND(oper.getOperands()[0], oper.getOperands()[1]); case Selector.OR: return makeOR(DNF0(oper.getOpera...
java
private static Selector DNF0(Selector tree) { if (!(tree instanceof Operator)) return tree; Operator oper = (Operator) tree; switch(oper.getOp()) { case Selector.AND: return processAND(oper.getOperands()[0], oper.getOperands()[1]); case Selector.OR: return makeOR(DNF0(oper.getOpera...
[ "private", "static", "Selector", "DNF0", "(", "Selector", "tree", ")", "{", "if", "(", "!", "(", "tree", "instanceof", "Operator", ")", ")", "return", "tree", ";", "Operator", "oper", "=", "(", "Operator", ")", "tree", ";", "switch", "(", "oper", ".", ...
Working recursive subroutine of DNF
[ "Working", "recursive", "subroutine", "of", "DNF" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java#L86-L98
68,790
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java
TransformerImpl.processAND
private static Selector processAND(Selector sel0, Selector sel1) { sel0 = DNF0(sel0); sel1 = DNF0(sel1); if (sel0 instanceof Operator) { Operator oper = (Operator) sel0; if (oper.getOp() == Selector.OR) return makeOR(processAND(oper.getOperands()[0], sel1), processA...
java
private static Selector processAND(Selector sel0, Selector sel1) { sel0 = DNF0(sel0); sel1 = DNF0(sel1); if (sel0 instanceof Operator) { Operator oper = (Operator) sel0; if (oper.getOp() == Selector.OR) return makeOR(processAND(oper.getOperands()[0], sel1), processA...
[ "private", "static", "Selector", "processAND", "(", "Selector", "sel0", ",", "Selector", "sel1", ")", "{", "sel0", "=", "DNF0", "(", "sel0", ")", ";", "sel1", "=", "DNF0", "(", "sel1", ")", ";", "if", "(", "sel0", "instanceof", "Operator", ")", "{", ...
Subroutine of DNF0 to process AND nodes
[ "Subroutine", "of", "DNF0", "to", "process", "AND", "nodes" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java#L103-L114
68,791
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java
TransformerImpl.processANDRight
private static Selector processANDRight(Selector sel0, Selector sel1) { if (sel1 instanceof Operator) { Operator oper = (Operator) sel1; if (oper.getOp() == Selector.OR) return makeOR(processANDRight(sel0, oper.getOperands()[0]), processANDRight(sel0, oper.getOperands()[1])...
java
private static Selector processANDRight(Selector sel0, Selector sel1) { if (sel1 instanceof Operator) { Operator oper = (Operator) sel1; if (oper.getOp() == Selector.OR) return makeOR(processANDRight(sel0, oper.getOperands()[0]), processANDRight(sel0, oper.getOperands()[1])...
[ "private", "static", "Selector", "processANDRight", "(", "Selector", "sel0", ",", "Selector", "sel1", ")", "{", "if", "(", "sel1", "instanceof", "Operator", ")", "{", "Operator", "oper", "=", "(", "Operator", ")", "sel1", ";", "if", "(", "oper", ".", "ge...
Subroutine of DNF0 to process AND nodes whose left child is an atom
[ "Subroutine", "of", "DNF0", "to", "process", "AND", "nodes", "whose", "left", "child", "is", "an", "atom" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java#L119-L128
68,792
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java
TransformerImpl.makeOR
private static Selector makeOR(Selector sel0, Selector sel1) { if (sel0.getNumIds() == 0) { Boolean staticResult = (Boolean) // was BooleanValue Matching.getEvaluator().eval(sel0); if (staticResult != null && staticResult.booleanValue()) return new LiteralImpl(Boolean.TRUE); // was Boole...
java
private static Selector makeOR(Selector sel0, Selector sel1) { if (sel0.getNumIds() == 0) { Boolean staticResult = (Boolean) // was BooleanValue Matching.getEvaluator().eval(sel0); if (staticResult != null && staticResult.booleanValue()) return new LiteralImpl(Boolean.TRUE); // was Boole...
[ "private", "static", "Selector", "makeOR", "(", "Selector", "sel0", ",", "Selector", "sel1", ")", "{", "if", "(", "sel0", ".", "getNumIds", "(", ")", "==", "0", ")", "{", "Boolean", "staticResult", "=", "(", "Boolean", ")", "// was BooleanValue", "Matching...
must be true.
[ "must", "be", "true", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java#L135-L153
68,793
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java
TransformerImpl.makeAND
private static Selector makeAND(Selector sel0, Selector sel1) { if (sel0.getNumIds() == 0) { Boolean staticResult = (Boolean) // was BooleanValue Matching.getEvaluator().eval(sel0); if (staticResult == null || !staticResult.booleanValue()) return new LiteralImpl(Boolean.FALSE); // was Bo...
java
private static Selector makeAND(Selector sel0, Selector sel1) { if (sel0.getNumIds() == 0) { Boolean staticResult = (Boolean) // was BooleanValue Matching.getEvaluator().eval(sel0); if (staticResult == null || !staticResult.booleanValue()) return new LiteralImpl(Boolean.FALSE); // was Bo...
[ "private", "static", "Selector", "makeAND", "(", "Selector", "sel0", ",", "Selector", "sel1", ")", "{", "if", "(", "sel0", ".", "getNumIds", "(", ")", "==", "0", ")", "{", "Boolean", "staticResult", "=", "(", "Boolean", ")", "// was BooleanValue", "Matchin...
must be false.
[ "must", "be", "false", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java#L160-L178
68,794
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java
TransformerImpl.evalOf
private static Selector evalOf(Selector arg) { if (arg.getNumIds() > 0) return arg; return new LiteralImpl(Matching.getEvaluator().eval(arg)); }
java
private static Selector evalOf(Selector arg) { if (arg.getNumIds() > 0) return arg; return new LiteralImpl(Matching.getEvaluator().eval(arg)); }
[ "private", "static", "Selector", "evalOf", "(", "Selector", "arg", ")", "{", "if", "(", "arg", ".", "getNumIds", "(", ")", ">", "0", ")", "return", "arg", ";", "return", "new", "LiteralImpl", "(", "Matching", ".", "getEvaluator", "(", ")", ".", "eval",...
if the argument has no identifiers
[ "if", "the", "argument", "has", "no", "identifiers" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java#L184-L188
68,795
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java
TransformerImpl.simplifyTree
private static Selector simplifyTree(Selector tree) { if (!(tree instanceof Operator) || tree instanceof ExtensionOperatorImpl) return tree; Operator oper = (Operator) tree; switch (oper.getOp()) { case Selector.NOT: return simplifyNOT(oper.getOperands()[0]); case Selector.EQ: retu...
java
private static Selector simplifyTree(Selector tree) { if (!(tree instanceof Operator) || tree instanceof ExtensionOperatorImpl) return tree; Operator oper = (Operator) tree; switch (oper.getOp()) { case Selector.NOT: return simplifyNOT(oper.getOperands()[0]); case Selector.EQ: retu...
[ "private", "static", "Selector", "simplifyTree", "(", "Selector", "tree", ")", "{", "if", "(", "!", "(", "tree", "instanceof", "Operator", ")", "||", "tree", "instanceof", "ExtensionOperatorImpl", ")", "return", "tree", ";", "Operator", "oper", "=", "(", "Op...
and OR nodes
[ "and", "OR", "nodes" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java#L202-L226
68,796
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java
TransformerImpl.simplifyNOT
private static Selector simplifyNOT(Selector tree) { if (tree instanceof Literal) return new LiteralImpl( EvaluatorImpl.not((Boolean) ((Literal) tree).getValue())); // was BooleanValue if (!(tree instanceof Operator)) return new OperatorImpl(Selector.NOT, tree); Operator oper = (Operator) tree; ...
java
private static Selector simplifyNOT(Selector tree) { if (tree instanceof Literal) return new LiteralImpl( EvaluatorImpl.not((Boolean) ((Literal) tree).getValue())); // was BooleanValue if (!(tree instanceof Operator)) return new OperatorImpl(Selector.NOT, tree); Operator oper = (Operator) tree; ...
[ "private", "static", "Selector", "simplifyNOT", "(", "Selector", "tree", ")", "{", "if", "(", "tree", "instanceof", "Literal", ")", "return", "new", "LiteralImpl", "(", "EvaluatorImpl", ".", "not", "(", "(", "Boolean", ")", "(", "(", "Literal", ")", "tree"...
Subroutine of simplifyTree to handle NOT nodes
[ "Subroutine", "of", "simplifyTree", "to", "handle", "NOT", "nodes" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java#L231-L261
68,797
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java
TransformerImpl.simplifyEQ
private static Selector simplifyEQ(Selector sel0, Selector sel1) { if (sel0.getType() != Selector.BOOLEAN) return new OperatorImpl(Selector.EQ, sel0, sel1); else return makeOR(makeAND(simplifyTree(sel0), simplifyTree(sel1)), makeAND(simplifyNOT(sel0), simplifyNOT(sel1))); }
java
private static Selector simplifyEQ(Selector sel0, Selector sel1) { if (sel0.getType() != Selector.BOOLEAN) return new OperatorImpl(Selector.EQ, sel0, sel1); else return makeOR(makeAND(simplifyTree(sel0), simplifyTree(sel1)), makeAND(simplifyNOT(sel0), simplifyNOT(sel1))); }
[ "private", "static", "Selector", "simplifyEQ", "(", "Selector", "sel0", ",", "Selector", "sel1", ")", "{", "if", "(", "sel0", ".", "getType", "(", ")", "!=", "Selector", ".", "BOOLEAN", ")", "return", "new", "OperatorImpl", "(", "Selector", ".", "EQ", ",...
Subroutine of simplifyTree to handle EQ nodes
[ "Subroutine", "of", "simplifyTree", "to", "handle", "EQ", "nodes" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java#L265-L271
68,798
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java
TransformerImpl.simplifyNE
private static Selector simplifyNE(Selector sel0, Selector sel1) { if (sel0.getType() == Selector.BOOLEAN) return makeOR(makeAND(simplifyTree(sel0), simplifyNOT(sel1)), makeAND(simplifyNOT(sel0), simplifyTree(sel1))); else if (sel0.getType() == Selector.STRING || sel0.getType() == Sele...
java
private static Selector simplifyNE(Selector sel0, Selector sel1) { if (sel0.getType() == Selector.BOOLEAN) return makeOR(makeAND(simplifyTree(sel0), simplifyNOT(sel1)), makeAND(simplifyNOT(sel0), simplifyTree(sel1))); else if (sel0.getType() == Selector.STRING || sel0.getType() == Sele...
[ "private", "static", "Selector", "simplifyNE", "(", "Selector", "sel0", ",", "Selector", "sel1", ")", "{", "if", "(", "sel0", ".", "getType", "(", ")", "==", "Selector", ".", "BOOLEAN", ")", "return", "makeOR", "(", "makeAND", "(", "simplifyTree", "(", "...
Subroutine of simplifyTree to handle NE nodes
[ "Subroutine", "of", "simplifyTree", "to", "handle", "NE", "nodes" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java#L276-L286
68,799
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java
TransformerImpl.augmentConjunction
private static boolean augmentConjunction(ConjunctionImpl target, Selector toAdd) { if (toAdd instanceof Operator) { Operator oper = (Operator) toAdd; if (oper.getOp() == Selector.AND) return augmentConjunction(target, oper.getOperands()[0]) && augmentConjunction(target, oper.getOperan...
java
private static boolean augmentConjunction(ConjunctionImpl target, Selector toAdd) { if (toAdd instanceof Operator) { Operator oper = (Operator) toAdd; if (oper.getOp() == Selector.AND) return augmentConjunction(target, oper.getOperands()[0]) && augmentConjunction(target, oper.getOperan...
[ "private", "static", "boolean", "augmentConjunction", "(", "ConjunctionImpl", "target", ",", "Selector", "toAdd", ")", "{", "if", "(", "toAdd", "instanceof", "Operator", ")", "{", "Operator", "oper", "=", "(", "Operator", ")", "toAdd", ";", "if", "(", "oper"...
or false if the Conjunction will always be false.
[ "or", "false", "if", "the", "Conjunction", "will", "always", "be", "false", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/TransformerImpl.java#L404-L434