repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/ServerConnectionManager.java
ServerConnectionManager.initialiseAcceptListenerFactory
public static void initialiseAcceptListenerFactory(AcceptListenerFactory _acceptListenerFactory) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initialiseAcceptListenerFactory", _acceptListenerFactory); Class clientImpl = instance.getClass(); ...
java
public static void initialiseAcceptListenerFactory(AcceptListenerFactory _acceptListenerFactory) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initialiseAcceptListenerFactory", _acceptListenerFactory); Class clientImpl = instance.getClass(); ...
[ "public", "static", "void", "initialiseAcceptListenerFactory", "(", "AcceptListenerFactory", "_acceptListenerFactory", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry...
Sets an AcceptListenerFactory on the full implementation of the ServerConnectionManager implementation. @param _acceptListenerFactory
[ "Sets", "an", "AcceptListenerFactory", "on", "the", "full", "implementation", "of", "the", "ServerConnectionManager", "implementation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/ServerConnectionManager.java#L120-L148
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.credentials.wscred/src/com/ibm/ws/security/credentials/wscred/internal/WSCredentialProvider.java
WSCredentialProvider.setCredential
private void setCredential(Subject subject, WSPrincipal principal) throws CredentialException { String securityName = principal.getName(); Hashtable<String, ?> customProperties = getUniqueIdHashtableFromSubject(subject); if (customProperties == null || customProperties.isEmpty()) { U...
java
private void setCredential(Subject subject, WSPrincipal principal) throws CredentialException { String securityName = principal.getName(); Hashtable<String, ?> customProperties = getUniqueIdHashtableFromSubject(subject); if (customProperties == null || customProperties.isEmpty()) { U...
[ "private", "void", "setCredential", "(", "Subject", "subject", ",", "WSPrincipal", "principal", ")", "throws", "CredentialException", "{", "String", "securityName", "=", "principal", ".", "getName", "(", ")", ";", "Hashtable", "<", "String", ",", "?", ">", "cu...
Create a WSCredential for the specified accessId. If this accessId came from the current UserRegistry, create a WsCredential. If not, then do nothing. @throws CredentialException
[ "Create", "a", "WSCredential", "for", "the", "specified", "accessId", ".", "If", "this", "accessId", "came", "from", "the", "current", "UserRegistry", "create", "a", "WsCredential", ".", "If", "not", "then", "do", "nothing", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.credentials.wscred/src/com/ibm/ws/security/credentials/wscred/internal/WSCredentialProvider.java#L125-L179
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.credentials.wscred/src/com/ibm/ws/security/credentials/wscred/internal/WSCredentialProvider.java
WSCredentialProvider.getUniqueGroupAccessIds
private List<String> getUniqueGroupAccessIds(UserRegistry userRegistry, String realm, String uniqueName) throws EntryNotFoundException, RegistryException { List<String> uniqueGroupAccessIds = new ArrayList<String>(); List<String> uniqueGroupIds = userRegi...
java
private List<String> getUniqueGroupAccessIds(UserRegistry userRegistry, String realm, String uniqueName) throws EntryNotFoundException, RegistryException { List<String> uniqueGroupAccessIds = new ArrayList<String>(); List<String> uniqueGroupIds = userRegi...
[ "private", "List", "<", "String", ">", "getUniqueGroupAccessIds", "(", "UserRegistry", "userRegistry", ",", "String", "realm", ",", "String", "uniqueName", ")", "throws", "EntryNotFoundException", ",", "RegistryException", "{", "List", "<", "String", ">", "uniqueGro...
Get a list of all of the groups the user belongs to, formated as group access IDs. @param userRegistry @param realm @param uniqueName @return A list of all of the uniqueGroupAccessIds the user belongs to @throws EntryNotFoundException @throws RegistryException
[ "Get", "a", "list", "of", "all", "of", "the", "groups", "the", "user", "belongs", "to", "formated", "as", "group", "access", "IDs", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.credentials.wscred/src/com/ibm/ws/security/credentials/wscred/internal/WSCredentialProvider.java#L253-L263
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.credentials.wscred/src/com/ibm/ws/security/credentials/wscred/internal/WSCredentialProvider.java
WSCredentialProvider.getPrimaryGroupId
private String getPrimaryGroupId(List<String> uniqueGroupIds) { return uniqueGroupIds.isEmpty() ? null : uniqueGroupIds.get(0); }
java
private String getPrimaryGroupId(List<String> uniqueGroupIds) { return uniqueGroupIds.isEmpty() ? null : uniqueGroupIds.get(0); }
[ "private", "String", "getPrimaryGroupId", "(", "List", "<", "String", ">", "uniqueGroupIds", ")", "{", "return", "uniqueGroupIds", ".", "isEmpty", "(", ")", "?", "null", ":", "uniqueGroupIds", ".", "get", "(", "0", ")", ";", "}" ]
Get the primary group ID. This is assumed to be the first group in the group list. @param uniqueGroupIds @return The first entry of the list
[ "Get", "the", "primary", "group", "ID", ".", "This", "is", "assumed", "to", "be", "the", "first", "group", "in", "the", "group", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.credentials.wscred/src/com/ibm/ws/security/credentials/wscred/internal/WSCredentialProvider.java#L272-L274
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.credentials.wscred/src/com/ibm/ws/security/credentials/wscred/internal/WSCredentialProvider.java
WSCredentialProvider.isSubjectValid
@Override @FFDCIgnore({ CredentialDestroyedException.class, CredentialExpiredException.class }) public boolean isSubjectValid(Subject subject) { boolean valid = false; try { WSCredential wsCredential = getWSCredential(subject); if (wsCredential != null) { ...
java
@Override @FFDCIgnore({ CredentialDestroyedException.class, CredentialExpiredException.class }) public boolean isSubjectValid(Subject subject) { boolean valid = false; try { WSCredential wsCredential = getWSCredential(subject); if (wsCredential != null) { ...
[ "@", "Override", "@", "FFDCIgnore", "(", "{", "CredentialDestroyedException", ".", "class", ",", "CredentialExpiredException", ".", "class", "}", ")", "public", "boolean", "isSubjectValid", "(", "Subject", "subject", ")", "{", "boolean", "valid", "=", "false", "...
Checks if the subject is valid. Currently, a subject is REQUIRED to have a WSCredential, and it is only valid if the WSCredential is not expired. @param subject The subject to validate, {@code null} is not supported. @return <code>true</code> if the subject is valid.
[ "Checks", "if", "the", "subject", "is", "valid", ".", "Currently", "a", "subject", "is", "REQUIRED", "to", "have", "a", "WSCredential", "and", "it", "is", "only", "valid", "if", "the", "WSCredential", "is", "not", "expired", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.credentials.wscred/src/com/ibm/ws/security/credentials/wscred/internal/WSCredentialProvider.java#L329-L357
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaConnectionFactory.java
SibRaConnectionFactory.createConnection
private SibRaConnection createConnection( ConnectionRequestInfo requestInfo) throws SIResourceException, SINotPossibleInCurrentConfigurationException, SIIncorrectCallException, SIAuthenticationException { if (TRACE.isEntryEnabled()) { SibTr.entry(this...
java
private SibRaConnection createConnection( ConnectionRequestInfo requestInfo) throws SIResourceException, SINotPossibleInCurrentConfigurationException, SIIncorrectCallException, SIAuthenticationException { if (TRACE.isEntryEnabled()) { SibTr.entry(this...
[ "private", "SibRaConnection", "createConnection", "(", "ConnectionRequestInfo", "requestInfo", ")", "throws", "SIResourceException", ",", "SINotPossibleInCurrentConfigurationException", ",", "SIIncorrectCallException", ",", "SIAuthenticationException", "{", "if", "(", "TRACE", ...
Creates a connection via the connection manager. @param requestInfo the request information @return the new connection @throws SIResourceException if an exception relating to the JCA processing occurs @throws SINotPossibleInCurrentConfigurationException if an exception occurs when delegating to the underlying core SPI...
[ "Creates", "a", "connection", "via", "the", "connection", "manager", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaConnectionFactory.java#L221-L344
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/writer/CompatibilityRepositoryExporter.java
CompatibilityRepositoryExporter.storeRecord
public void storeRecord(RepositoryLogRecord record) { if (isClosed) { throw new IllegalStateException("This instance of the exporter is already closed"); } if (!isInitialized) { throw new IllegalStateException("This instance of the exporter does not have header information yet"); } String formatRecord =...
java
public void storeRecord(RepositoryLogRecord record) { if (isClosed) { throw new IllegalStateException("This instance of the exporter is already closed"); } if (!isInitialized) { throw new IllegalStateException("This instance of the exporter does not have header information yet"); } String formatRecord =...
[ "public", "void", "storeRecord", "(", "RepositoryLogRecord", "record", ")", "{", "if", "(", "isClosed", ")", "{", "throw", "new", "IllegalStateException", "(", "\"This instance of the exporter is already closed\"", ")", ";", "}", "if", "(", "!", "isInitialized", ")"...
Stores a RepositoryLogRecord into the proper text format @param record RepositoryLogRecord which formatter will convert to Basic or Advanced output format
[ "Stores", "a", "RepositoryLogRecord", "into", "the", "proper", "text", "format" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/websphere/logging/hpel/writer/CompatibilityRepositoryExporter.java#L115-L125
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.acceptAnnotationsFrom
protected boolean acceptAnnotationsFrom(String className, boolean acceptPartial, boolean acceptExcluded) { String methodName = "acceptAnnotationsFrom"; // Don't unnecessarily obtain the annotation targets table: // No seed annotations will be obtained when the module is metadata-complete. ...
java
protected boolean acceptAnnotationsFrom(String className, boolean acceptPartial, boolean acceptExcluded) { String methodName = "acceptAnnotationsFrom"; // Don't unnecessarily obtain the annotation targets table: // No seed annotations will be obtained when the module is metadata-complete. ...
[ "protected", "boolean", "acceptAnnotationsFrom", "(", "String", "className", ",", "boolean", "acceptPartial", ",", "boolean", "acceptExcluded", ")", "{", "String", "methodName", "=", "\"acceptAnnotationsFrom\"", ";", "// Don't unnecessarily obtain the annotation targets table:"...
Tell if annotations on a target class are to be processed. This is controlled by the metadata-complete and absolute ordering settings of the web module. Metadata complete may be set for the web-module as a whole, or may be set individually on fragments. Annotations are ignored when the target class is in a metadata ...
[ "Tell", "if", "annotations", "on", "a", "target", "class", "are", "to", "be", "processed", ".", "This", "is", "controlled", "by", "the", "metadata", "-", "complete", "and", "absolute", "ordering", "settings", "of", "the", "web", "module", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L754-L778
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.createSessionContext
protected void createSessionContext(DeployedModule moduleConfig) throws Throwable { try { // added sessionIdListeners for Servlet 3.1 ArrayList sessionRelatedListeners[] = new ArrayList[] { sessionListeners, sessionAttrListeners, sessionIdListeners }; // cmd // PQ81253 ...
java
protected void createSessionContext(DeployedModule moduleConfig) throws Throwable { try { // added sessionIdListeners for Servlet 3.1 ArrayList sessionRelatedListeners[] = new ArrayList[] { sessionListeners, sessionAttrListeners, sessionIdListeners }; // cmd // PQ81253 ...
[ "protected", "void", "createSessionContext", "(", "DeployedModule", "moduleConfig", ")", "throws", "Throwable", "{", "try", "{", "// added sessionIdListeners for Servlet 3.1", "ArrayList", "sessionRelatedListeners", "[", "]", "=", "new", "ArrayList", "[", "]", "{", "ses...
Method createSessionContext. @param moduleConfig
[ "Method", "createSessionContext", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L1256-L1269
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.initializeTargetMappings
protected void initializeTargetMappings() throws Exception { // NOTE: namespace preinvoke/postinvoke not necessary as the only // external // code being run is the servlet's init() and that is handled in the // ServletWrapper // check if an extensionFactory is present for *.jsp:...
java
protected void initializeTargetMappings() throws Exception { // NOTE: namespace preinvoke/postinvoke not necessary as the only // external // code being run is the servlet's init() and that is handled in the // ServletWrapper // check if an extensionFactory is present for *.jsp:...
[ "protected", "void", "initializeTargetMappings", "(", ")", "throws", "Exception", "{", "// NOTE: namespace preinvoke/postinvoke not necessary as the only", "// external", "// code being run is the servlet's init() and that is handled in the", "// ServletWrapper", "// check if an extensionFac...
Method initializeTargetMappings.
[ "Method", "initializeTargetMappings", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L1286-L1317
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.initializeNonDDRepresentableAnnotation
private void initializeNonDDRepresentableAnnotation(IServletConfig servletConfig) { if (com.ibm.ws.webcontainer.osgi.WebContainer.isServerStopping()) return; String methodName = "initializeNonDDRepresentableAnnotation"; String configClassName = servletConfig.getClas...
java
private void initializeNonDDRepresentableAnnotation(IServletConfig servletConfig) { if (com.ibm.ws.webcontainer.osgi.WebContainer.isServerStopping()) return; String methodName = "initializeNonDDRepresentableAnnotation"; String configClassName = servletConfig.getClas...
[ "private", "void", "initializeNonDDRepresentableAnnotation", "(", "IServletConfig", "servletConfig", ")", "{", "if", "(", "com", ".", "ibm", ".", "ws", ".", "webcontainer", ".", "osgi", ".", "WebContainer", ".", "isServerStopping", "(", ")", ")", "return", ";", ...
Process any annotation which could not be managed by an update to the the descriptor based configuration. @param servletConfig The servlet configuration embedding a class which is to be processed for annotations.
[ "Process", "any", "annotation", "which", "could", "not", "be", "managed", "by", "an", "update", "to", "the", "the", "descriptor", "based", "configuration", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L1510-L1549
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.addStaticFilePatternMappings
@FFDCIgnore(Exception.class) protected void addStaticFilePatternMappings(RequestProcessor proxyReqProcessor) { String nextPattern; ExtensionProcessor fileExtensionProcessor = getDefaultExtensionProcessor(this, getConfiguration().getFileServingAttributes()); List patternList = fileExtensionP...
java
@FFDCIgnore(Exception.class) protected void addStaticFilePatternMappings(RequestProcessor proxyReqProcessor) { String nextPattern; ExtensionProcessor fileExtensionProcessor = getDefaultExtensionProcessor(this, getConfiguration().getFileServingAttributes()); List patternList = fileExtensionP...
[ "@", "FFDCIgnore", "(", "Exception", ".", "class", ")", "protected", "void", "addStaticFilePatternMappings", "(", "RequestProcessor", "proxyReqProcessor", ")", "{", "String", "nextPattern", ";", "ExtensionProcessor", "fileExtensionProcessor", "=", "getDefaultExtensionProces...
defect 39851 needs to stop the exception from always being thrown
[ "defect", "39851", "needs", "to", "stop", "the", "exception", "from", "always", "being", "thrown" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L1592-L1622
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.getServletWrapper
public IServletWrapper getServletWrapper(String servletName, boolean addMapping) throws Exception // PK61140 { IServletWrapper targetWrapper = null; IServletConfig sconfig = config.getServletInfo(servletName); if (sconfig != null) { IServletWrapper existingServletWrapper = sconf...
java
public IServletWrapper getServletWrapper(String servletName, boolean addMapping) throws Exception // PK61140 { IServletWrapper targetWrapper = null; IServletConfig sconfig = config.getServletInfo(servletName); if (sconfig != null) { IServletWrapper existingServletWrapper = sconf...
[ "public", "IServletWrapper", "getServletWrapper", "(", "String", "servletName", ",", "boolean", "addMapping", ")", "throws", "Exception", "// PK61140", "{", "IServletWrapper", "targetWrapper", "=", "null", ";", "IServletConfig", "sconfig", "=", "config", ".", "getServ...
Method getServletWrapper. @param string @return Object
[ "Method", "getServletWrapper", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L1722-L1804
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.loadInternalConfig
private ServletConfig loadInternalConfig(String servletName, int internalIndex) throws ServletException { ServletConfig sconfig = createConfig("InternalServlet_" + servletName, internalIndex); sconfig.setServletName(servletName); sconfig.setDisplayName(servletName); sconfig.setServletCon...
java
private ServletConfig loadInternalConfig(String servletName, int internalIndex) throws ServletException { ServletConfig sconfig = createConfig("InternalServlet_" + servletName, internalIndex); sconfig.setServletName(servletName); sconfig.setDisplayName(servletName); sconfig.setServletCon...
[ "private", "ServletConfig", "loadInternalConfig", "(", "String", "servletName", ",", "int", "internalIndex", ")", "throws", "ServletException", "{", "ServletConfig", "sconfig", "=", "createConfig", "(", "\"InternalServlet_\"", "+", "servletName", ",", "internalIndex", "...
Method loadInternalConfig. @param servletName
[ "Method", "loadInternalConfig", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L1974-L1984
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.loadListener
protected Object loadListener(String lClassName) throws InjectionException, Throwable //596191 :: PK97815 { Object listener = null; try { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) logger.logp(Level.FINE, CLASS_NAME, "loadL...
java
protected Object loadListener(String lClassName) throws InjectionException, Throwable //596191 :: PK97815 { Object listener = null; try { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) logger.logp(Level.FINE, CLASS_NAME, "loadL...
[ "protected", "Object", "loadListener", "(", "String", "lClassName", ")", "throws", "InjectionException", ",", "Throwable", "//596191 :: PK97815", "{", "Object", "listener", "=", "null", ";", "try", "{", "if", "(", "com", ".", "ibm", ".", "ejs", ".", "ras", "...
LIDB1234.2 - added method below to load a listener class
[ "LIDB1234", ".", "2", "-", "added", "method", "below", "to", "load", "a", "listener", "class" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L2319-L2337
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.addToStartWeightList
public void addToStartWeightList(IServletConfig sc) { // we haven't started sorting the startup weights yet so just ignore. It // will be added later. if (this.sortedServletConfigs == null) return; int size = this.sortedServletConfigs.size(); int pos = 0; bool...
java
public void addToStartWeightList(IServletConfig sc) { // we haven't started sorting the startup weights yet so just ignore. It // will be added later. if (this.sortedServletConfigs == null) return; int size = this.sortedServletConfigs.size(); int pos = 0; bool...
[ "public", "void", "addToStartWeightList", "(", "IServletConfig", "sc", ")", "{", "// we haven't started sorting the startup weights yet so just ignore. It", "// will be added later.", "if", "(", "this", ".", "sortedServletConfigs", "==", "null", ")", "return", ";", "int", "...
Method addToStartWeightList.
[ "Method", "addToStartWeightList", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L3815-L3848
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.notifyStart
public void notifyStart() { try { eventSource.onApplicationAvailableForService(new ApplicationEvent(this, this, new com.ibm.ws.webcontainer.util.IteratorEnumerator(config.getServletNames()))); // LIBERTY: next line added by V8 sync //this.setInitialized(true); } catch...
java
public void notifyStart() { try { eventSource.onApplicationAvailableForService(new ApplicationEvent(this, this, new com.ibm.ws.webcontainer.util.IteratorEnumerator(config.getServletNames()))); // LIBERTY: next line added by V8 sync //this.setInitialized(true); } catch...
[ "public", "void", "notifyStart", "(", ")", "{", "try", "{", "eventSource", ".", "onApplicationAvailableForService", "(", "new", "ApplicationEvent", "(", "this", ",", "this", ",", "new", "com", ".", "ibm", ".", "ws", ".", "webcontainer", ".", "util", ".", "...
use the started method above for any started specific requirements
[ "use", "the", "started", "method", "above", "for", "any", "started", "specific", "requirements" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L5455-L5465
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.addMappingFilter
public void addMappingFilter(IServletConfig sConfig, IFilterConfig config) { IFilterMapping fmapping = new FilterMapping(null, config, sConfig); _addMapingFilter(config, fmapping); }
java
public void addMappingFilter(IServletConfig sConfig, IFilterConfig config) { IFilterMapping fmapping = new FilterMapping(null, config, sConfig); _addMapingFilter(config, fmapping); }
[ "public", "void", "addMappingFilter", "(", "IServletConfig", "sConfig", ",", "IFilterConfig", "config", ")", "{", "IFilterMapping", "fmapping", "=", "new", "FilterMapping", "(", "null", ",", "config", ",", "sConfig", ")", ";", "_addMapingFilter", "(", "config", ...
Adds a filter against a specified servlet config into this context @param sConfig @param config
[ "Adds", "a", "filter", "against", "a", "specified", "servlet", "config", "into", "this", "context" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L5554-L5557
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.initialize
public void initialize() throws ServletException, Throwable { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) logger.entering(CLASS_NAME, "Initialize : app = " + config.getApplicationName() + ", initialized = " + initialized + ", destroyed = " + destroyed);...
java
public void initialize() throws ServletException, Throwable { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) logger.entering(CLASS_NAME, "Initialize : app = " + config.getApplicationName() + ", initialized = " + initialized + ", destroyed = " + destroyed);...
[ "public", "void", "initialize", "(", ")", "throws", "ServletException", ",", "Throwable", "{", "if", "(", "com", ".", "ibm", ".", "ejs", ".", "ras", ".", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "logger", ".", "isLoggable", "(", "Level...
LIBERTY Added for delayed start.
[ "LIBERTY", "Added", "for", "delayed", "start", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L6594-L6612
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.setModuleContainer
public void setModuleContainer(com.ibm.wsspi.adaptable.module.Container c){ container = c; metaInfResourceFinder = new MetaInfResourceFinder(container); }
java
public void setModuleContainer(com.ibm.wsspi.adaptable.module.Container c){ container = c; metaInfResourceFinder = new MetaInfResourceFinder(container); }
[ "public", "void", "setModuleContainer", "(", "com", ".", "ibm", ".", "wsspi", ".", "adaptable", ".", "module", ".", "Container", "c", ")", "{", "container", "=", "c", ";", "metaInfResourceFinder", "=", "new", "MetaInfResourceFinder", "(", "container", ")", "...
LIBERTY add to set the Adaptable API Container
[ "LIBERTY", "add", "to", "set", "the", "Adaptable", "API", "Container" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L6629-L6632
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java
WebApp.addAllEntries
private void addAllEntries(Set s, com.ibm.wsspi.adaptable.module.Container dir) throws UnableToAdaptException { for(Entry entry : dir){ String path = entry.getPath(); com.ibm.wsspi.adaptable.module.Container possibleContainer = entry.adapt(com.ibm.wsspi.adaptable.module.Container.class);...
java
private void addAllEntries(Set s, com.ibm.wsspi.adaptable.module.Container dir) throws UnableToAdaptException { for(Entry entry : dir){ String path = entry.getPath(); com.ibm.wsspi.adaptable.module.Container possibleContainer = entry.adapt(com.ibm.wsspi.adaptable.module.Container.class);...
[ "private", "void", "addAllEntries", "(", "Set", "s", ",", "com", ".", "ibm", ".", "wsspi", ".", "adaptable", ".", "module", ".", "Container", "dir", ")", "throws", "UnableToAdaptException", "{", "for", "(", "Entry", "entry", ":", "dir", ")", "{", "String...
Add all entry paths from the Container into the Set
[ "Add", "all", "entry", "paths", "from", "the", "Container", "into", "the", "Set" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebApp.java#L6703-L6714
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsDestinationCache.java
JsDestinationCache.populateCache
private void populateCache() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "populateCache", this); } try { HashMap<String, BaseDestination> destList = _bus.getLWMMEConfig().getMessagingEngine().getDestinationList(); Itera...
java
private void populateCache() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "populateCache", this); } try { HashMap<String, BaseDestination> destList = _bus.getLWMMEConfig().getMessagingEngine().getDestinationList(); Itera...
[ "private", "void", "populateCache", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"populateCache\"", ",", "this", ")", ";"...
Build the cache of DestinationDefinition objects in the configuration
[ "Build", "the", "cache", "of", "DestinationDefinition", "objects", "in", "the", "configuration" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/JsDestinationCache.java#L143-L198
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.activate
@Activate protected void activate(BundleContext ctx, Map<String, Object> properties) { SibTr.entry(tc, CLASS_NAME + "activate", properties); this.properties = properties; this.bundleLocation = ctx.getBundle().getLocation(); populateDestinationPermissions(); runtimeSecurityS...
java
@Activate protected void activate(BundleContext ctx, Map<String, Object> properties) { SibTr.entry(tc, CLASS_NAME + "activate", properties); this.properties = properties; this.bundleLocation = ctx.getBundle().getLocation(); populateDestinationPermissions(); runtimeSecurityS...
[ "@", "Activate", "protected", "void", "activate", "(", "BundleContext", "ctx", ",", "Map", "<", "String", ",", "Object", ">", "properties", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"activate\"", ",", "properties", ")", ";", "...
Method to activate Messaging Security component @param properties : Map containing service & config properties populated/provided by config admin @throws MessagingSecurityException
[ "Method", "to", "activate", "Messaging", "Security", "component" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L117-L129
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.modify
@Modified protected void modify(ComponentContext cc, Map<String, Object> properties) { SibTr.entry(tc, CLASS_NAME + "modify", properties); this.properties = properties; populateDestinationPermissions(); runtimeSecurityService.modifyMessagingServices(this); if (TraceComponent...
java
@Modified protected void modify(ComponentContext cc, Map<String, Object> properties) { SibTr.entry(tc, CLASS_NAME + "modify", properties); this.properties = properties; populateDestinationPermissions(); runtimeSecurityService.modifyMessagingServices(this); if (TraceComponent...
[ "@", "Modified", "protected", "void", "modify", "(", "ComponentContext", "cc", ",", "Map", "<", "String", ",", "Object", ">", "properties", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"modify\"", ",", "properties", ")", ";", "th...
Called by OSGI framework when there is a modification in server.xml for tag associated with this component @param cc Component Context object @param properties Properties for this component from server.xml
[ "Called", "by", "OSGI", "framework", "when", "there", "is", "a", "modification", "in", "server", ".", "xml", "for", "tag", "associated", "with", "this", "component" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L140-L150
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.deactivate
@Deactivate protected void deactivate(ComponentContext context) { SibTr.entry(tc, CLASS_NAME + "deactivate", context); runtimeSecurityService.modifyMessagingServices(null); queuePermissions = null; topicPermissions = null; temporaryDestinationPermissions = null; sibA...
java
@Deactivate protected void deactivate(ComponentContext context) { SibTr.entry(tc, CLASS_NAME + "deactivate", context); runtimeSecurityService.modifyMessagingServices(null); queuePermissions = null; topicPermissions = null; temporaryDestinationPermissions = null; sibA...
[ "@", "Deactivate", "protected", "void", "deactivate", "(", "ComponentContext", "context", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"deactivate\"", ",", "context", ")", ";", "runtimeSecurityService", ".", "modifyMessagingServices", "(",...
Called by OSGI framework when the feature is removed from server.xml @param reason int representation of reason the component is stopping
[ "Called", "by", "OSGI", "framework", "when", "the", "feature", "is", "removed", "from", "server", ".", "xml" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L158-L171
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.setSecurityService
@Reference protected void setSecurityService(SecurityService securityService) { SibTr.entry(tc, CLASS_NAME + "setSecurityService", securityService); this.securityService = securityService; SibTr.exit(tc, CLASS_NAME + "setSecurityService"); }
java
@Reference protected void setSecurityService(SecurityService securityService) { SibTr.entry(tc, CLASS_NAME + "setSecurityService", securityService); this.securityService = securityService; SibTr.exit(tc, CLASS_NAME + "setSecurityService"); }
[ "@", "Reference", "protected", "void", "setSecurityService", "(", "SecurityService", "securityService", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"setSecurityService\"", ",", "securityService", ")", ";", "this", ".", "securityService", ...
Binding Security Service @param reference
[ "Binding", "Security", "Service" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L178-L185
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.unsetSecurityService
protected void unsetSecurityService(SecurityService securityService) { SibTr.entry(tc, CLASS_NAME + "unsetSecurityService", securityService); SibTr.exit(tc, CLASS_NAME + "unsetSecurityService"); }
java
protected void unsetSecurityService(SecurityService securityService) { SibTr.entry(tc, CLASS_NAME + "unsetSecurityService", securityService); SibTr.exit(tc, CLASS_NAME + "unsetSecurityService"); }
[ "protected", "void", "unsetSecurityService", "(", "SecurityService", "securityService", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"unsetSecurityService\"", ",", "securityService", ")", ";", "SibTr", ".", "exit", "(", "tc", ",", "CLASS...
Unbinding Security Service @param reference
[ "Unbinding", "Security", "Service" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L192-L196
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.setConfigAdmin
@Reference protected void setConfigAdmin(ConfigurationAdmin configAdmin) { SibTr.entry(tc, CLASS_NAME + "setConfigAdmin", configAdmin); this.configAdmin = configAdmin; SibTr.exit(tc, CLASS_NAME + "setConfigAdmin"); }
java
@Reference protected void setConfigAdmin(ConfigurationAdmin configAdmin) { SibTr.entry(tc, CLASS_NAME + "setConfigAdmin", configAdmin); this.configAdmin = configAdmin; SibTr.exit(tc, CLASS_NAME + "setConfigAdmin"); }
[ "@", "Reference", "protected", "void", "setConfigAdmin", "(", "ConfigurationAdmin", "configAdmin", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"setConfigAdmin\"", ",", "configAdmin", ")", ";", "this", ".", "configAdmin", "=", "configAdm...
Binding the Configuration Admin service @param reference
[ "Binding", "the", "Configuration", "Admin", "service" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L203-L210
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.unsetConfigAdmin
protected void unsetConfigAdmin(ConfigurationAdmin configAdmin) { SibTr.entry(tc, CLASS_NAME + "unsetConfigAdmin", configAdmin); SibTr.exit(tc, CLASS_NAME + "unsetConfigAdmin"); }
java
protected void unsetConfigAdmin(ConfigurationAdmin configAdmin) { SibTr.entry(tc, CLASS_NAME + "unsetConfigAdmin", configAdmin); SibTr.exit(tc, CLASS_NAME + "unsetConfigAdmin"); }
[ "protected", "void", "unsetConfigAdmin", "(", "ConfigurationAdmin", "configAdmin", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"unsetConfigAdmin\"", ",", "configAdmin", ")", ";", "SibTr", ".", "exit", "(", "tc", ",", "CLASS_NAME", "+"...
Unbinding the Configuration Admin service @param reference
[ "Unbinding", "the", "Configuration", "Admin", "service" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L217-L221
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.getMessagingAuthenticationService
@Override public MessagingAuthenticationService getMessagingAuthenticationService() { SibTr.entry(tc, CLASS_NAME + "getMessagingAuthenticationService"); if (sibAuthenticationService == null) { sibAuthenticationService = new MessagingAuthenticationServiceImpl(this); } Si...
java
@Override public MessagingAuthenticationService getMessagingAuthenticationService() { SibTr.entry(tc, CLASS_NAME + "getMessagingAuthenticationService"); if (sibAuthenticationService == null) { sibAuthenticationService = new MessagingAuthenticationServiceImpl(this); } Si...
[ "@", "Override", "public", "MessagingAuthenticationService", "getMessagingAuthenticationService", "(", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"getMessagingAuthenticationService\"", ")", ";", "if", "(", "sibAuthenticationService", "==", "nu...
Get Messaging Authentication Service
[ "Get", "Messaging", "Authentication", "Service" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L235-L245
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.getMessagingAuthorizationService
@Override public MessagingAuthorizationService getMessagingAuthorizationService() { SibTr.entry(tc, CLASS_NAME + "getMessagingAuthorizationService"); if (sibAuthorizationService == null) { sibAuthorizationService = new MessagingAuthorizationServiceImpl(this); } SibTr.ex...
java
@Override public MessagingAuthorizationService getMessagingAuthorizationService() { SibTr.entry(tc, CLASS_NAME + "getMessagingAuthorizationService"); if (sibAuthorizationService == null) { sibAuthorizationService = new MessagingAuthorizationServiceImpl(this); } SibTr.ex...
[ "@", "Override", "public", "MessagingAuthorizationService", "getMessagingAuthorizationService", "(", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"getMessagingAuthorizationService\"", ")", ";", "if", "(", "sibAuthorizationService", "==", "null",...
Get Messaging Authorization Service
[ "Get", "Messaging", "Authorization", "Service" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L250-L260
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.getUserRegistry
public UserRegistry getUserRegistry() { SibTr.entry(tc, CLASS_NAME + "getUserRegistry"); UserRegistry userRegistry = null; if (getSecurityService() != null) { UserRegistryService userRegistryService = securityService .getUserRegistryService(); ...
java
public UserRegistry getUserRegistry() { SibTr.entry(tc, CLASS_NAME + "getUserRegistry"); UserRegistry userRegistry = null; if (getSecurityService() != null) { UserRegistryService userRegistryService = securityService .getUserRegistryService(); ...
[ "public", "UserRegistry", "getUserRegistry", "(", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"getUserRegistry\"", ")", ";", "UserRegistry", "userRegistry", "=", "null", ";", "if", "(", "getSecurityService", "(", ")", "!=", "null", ...
Get User Registry from the Liberty Security component @return UserRegistry
[ "Get", "User", "Registry", "from", "the", "Liberty", "Security", "component" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L282-L308
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.populateDestinationPermissions
private void populateDestinationPermissions() { SibTr.entry(tc, CLASS_NAME + "populateDestinationPermissions", properties); pids.clear(); String[] roles = (String[]) properties .get(MessagingSecurityConstants.ROLE); initializeMaps(); if (roles != null) { ...
java
private void populateDestinationPermissions() { SibTr.entry(tc, CLASS_NAME + "populateDestinationPermissions", properties); pids.clear(); String[] roles = (String[]) properties .get(MessagingSecurityConstants.ROLE); initializeMaps(); if (roles != null) { ...
[ "private", "void", "populateDestinationPermissions", "(", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"populateDestinationPermissions\"", ",", "properties", ")", ";", "pids", ".", "clear", "(", ")", ";", "String", "[", "]", "roles", ...
Populate the DestinationPermissions map with the destination and there access list
[ "Populate", "the", "DestinationPermissions", "map", "with", "the", "destination", "and", "there", "access", "list" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L334-L370
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.getDictionaryObject
private Dictionary<String, Object> getDictionaryObject(String input) { SibTr.entry(tc, CLASS_NAME + "getDictionaryObject", input); Dictionary<String, Object> dictionary = null; Configuration config = null; try { pids.add(input); config = configAdmin.getConfigurat...
java
private Dictionary<String, Object> getDictionaryObject(String input) { SibTr.entry(tc, CLASS_NAME + "getDictionaryObject", input); Dictionary<String, Object> dictionary = null; Configuration config = null; try { pids.add(input); config = configAdmin.getConfigurat...
[ "private", "Dictionary", "<", "String", ",", "Object", ">", "getDictionaryObject", "(", "String", "input", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"getDictionaryObject\"", ",", "input", ")", ";", "Dictionary", "<", "String", ","...
Get the Dictionary object for the given String @param input @return
[ "Get", "the", "Dictionary", "object", "for", "the", "given", "String" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L600-L619
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java
MessagingSecurityServiceImpl.printDestinationPermissions
private void printDestinationPermissions(Map<String, ?> destinationPermissions) { Set<String> destinations = destinationPermissions.keySet(); for (String destination : destinations) { SibTr.debug(tc, CLASS_NAME + " Destination: " + destination); Permission permission = (Permissio...
java
private void printDestinationPermissions(Map<String, ?> destinationPermissions) { Set<String> destinations = destinationPermissions.keySet(); for (String destination : destinations) { SibTr.debug(tc, CLASS_NAME + " Destination: " + destination); Permission permission = (Permissio...
[ "private", "void", "printDestinationPermissions", "(", "Map", "<", "String", ",", "?", ">", "destinationPermissions", ")", "{", "Set", "<", "String", ">", "destinations", "=", "destinationPermissions", ".", "keySet", "(", ")", ";", "for", "(", "String", "desti...
Print the Destination Permissions, it will be used for debugging purpose
[ "Print", "the", "Destination", "Permissions", "it", "will", "be", "used", "for", "debugging", "purpose" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security/src/com/ibm/ws/messaging/security/internal/MessagingSecurityServiceImpl.java#L624-L643
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/processor/RecoveryProcessorFactory.java
RecoveryProcessorFactory.getInstance
public static final RecoveryProcessor getInstance() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getInstance"); } if (_processor == null) { try { Class c = Class.forName("com.ibm.ws.sib.processor.impl.RecoveryProcessorImpl"); _processor = (RecoveryProcessor) c.newInstance(); ...
java
public static final RecoveryProcessor getInstance() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getInstance"); } if (_processor == null) { try { Class c = Class.forName("com.ibm.ws.sib.processor.impl.RecoveryProcessorImpl"); _processor = (RecoveryProcessor) c.newInstance(); ...
[ "public", "static", "final", "RecoveryProcessor", "getInstance", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getInstance\"", ")", ";", "}", "if", "(", "_processor", "==", "null", ...
Returns a reference to the singleton RecoveryProcessor. @return reference to the singleton RecoveryProcessor.
[ "Returns", "a", "reference", "to", "the", "singleton", "RecoveryProcessor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/processor/RecoveryProcessorFactory.java#L37-L59
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java
StatusCodes.init
protected void init(int code, String phrase, boolean isError) { this.myPhrase = phrase; this.myPhraseBytes = HttpChannelUtils.getEnglishBytes(phrase); this.myIntCode = code; if (isError) { this.myError = new HttpError(code, this.myPhrase); } initSpecialArrays(...
java
protected void init(int code, String phrase, boolean isError) { this.myPhrase = phrase; this.myPhraseBytes = HttpChannelUtils.getEnglishBytes(phrase); this.myIntCode = code; if (isError) { this.myError = new HttpError(code, this.myPhrase); } initSpecialArrays(...
[ "protected", "void", "init", "(", "int", "code", ",", "String", "phrase", ",", "boolean", "isError", ")", "{", "this", ".", "myPhrase", "=", "phrase", ";", "this", ".", "myPhraseBytes", "=", "HttpChannelUtils", ".", "getEnglishBytes", "(", "phrase", ")", "...
Initialize this status code with the input information. @param code @param phrase @param isError
[ "Initialize", "this", "status", "code", "with", "the", "input", "information", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java#L182-L191
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java
StatusCodes.makeUndefinedValue
public static StatusCodes makeUndefinedValue(int value) { StatusCodes code = new StatusCodes(StatusCodes.UNDEF); code.name = Integer.toString(value); code.byteArray = HttpChannelUtils.getEnglishBytes(code.getName()); code.myIntCode = value; code.initSpecialArrays(); code....
java
public static StatusCodes makeUndefinedValue(int value) { StatusCodes code = new StatusCodes(StatusCodes.UNDEF); code.name = Integer.toString(value); code.byteArray = HttpChannelUtils.getEnglishBytes(code.getName()); code.myIntCode = value; code.initSpecialArrays(); code....
[ "public", "static", "StatusCodes", "makeUndefinedValue", "(", "int", "value", ")", "{", "StatusCodes", "code", "=", "new", "StatusCodes", "(", "StatusCodes", ".", "UNDEF", ")", ";", "code", ".", "name", "=", "Integer", ".", "toString", "(", "value", ")", "...
Make a new "Undefined" enumerated value with the given input. @param value @return StatusCodes
[ "Make", "a", "new", "Undefined", "enumerated", "value", "with", "the", "given", "input", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java#L199-L209
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java
StatusCodes.initSpecialArrays
protected void initSpecialArrays() { int len = getByteArray().length; // set up the "status code + SPACE + default reason phrase" this.bytesWithPhrase = new byte[len + 1 + this.myPhraseBytes.length]; System.arraycopy(getByteArray(), 0, this.bytesWithPhrase, 0, len); this.bytesWit...
java
protected void initSpecialArrays() { int len = getByteArray().length; // set up the "status code + SPACE + default reason phrase" this.bytesWithPhrase = new byte[len + 1 + this.myPhraseBytes.length]; System.arraycopy(getByteArray(), 0, this.bytesWithPhrase, 0, len); this.bytesWit...
[ "protected", "void", "initSpecialArrays", "(", ")", "{", "int", "len", "=", "getByteArray", "(", ")", ".", "length", ";", "// set up the \"status code + SPACE + default reason phrase\"", "this", ".", "bytesWithPhrase", "=", "new", "byte", "[", "len", "+", "1", "+"...
Initialize the special arrays.
[ "Initialize", "the", "special", "arrays", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java#L223-L230
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java
StatusCodes.getByOrdinal
public static StatusCodes getByOrdinal(int i) { if (0 > i || i >= MAX_CODE) { throw new IndexOutOfBoundsException("Index " + i + " is out of bounds"); } return statusCodes[i]; }
java
public static StatusCodes getByOrdinal(int i) { if (0 > i || i >= MAX_CODE) { throw new IndexOutOfBoundsException("Index " + i + " is out of bounds"); } return statusCodes[i]; }
[ "public", "static", "StatusCodes", "getByOrdinal", "(", "int", "i", ")", "{", "if", "(", "0", ">", "i", "||", "i", ">=", "MAX_CODE", ")", "{", "throw", "new", "IndexOutOfBoundsException", "(", "\"Index \"", "+", "i", "+", "\" is out of bounds\"", ")", ";",...
Query the enumerated value that exists with the specified ordinal value. @param i @return StatusCodes
[ "Query", "the", "enumerated", "value", "that", "exists", "with", "the", "specified", "ordinal", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/wsspi/http/channel/values/StatusCodes.java#L249-L254
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/provisioning/BundleRepositoryRegistry.java
BundleRepositoryRegistry.addBundleRepository
public synchronized static void addBundleRepository(String installDir, String featureType) { BundleRepositoryHolder bundleRepositoryHolder = new BundleRepositoryHolder(installDir, cacheServerName, featureType); if (!repositoryHolders.containsKey(featureType)) repositoryHolders.put(featureTy...
java
public synchronized static void addBundleRepository(String installDir, String featureType) { BundleRepositoryHolder bundleRepositoryHolder = new BundleRepositoryHolder(installDir, cacheServerName, featureType); if (!repositoryHolders.containsKey(featureType)) repositoryHolders.put(featureTy...
[ "public", "synchronized", "static", "void", "addBundleRepository", "(", "String", "installDir", ",", "String", "featureType", ")", "{", "BundleRepositoryHolder", "bundleRepositoryHolder", "=", "new", "BundleRepositoryHolder", "(", "installDir", ",", "cacheServerName", ","...
Add a bundle repository to the map if one for that feature type has not already been added. @param installDir The install location for the repository. This can vary, i.e. product extensions. @param featureType The "name" for this repository. "" for default, "usr" for the user extension, etc.
[ "Add", "a", "bundle", "repository", "to", "the", "map", "if", "one", "for", "that", "feature", "type", "has", "not", "already", "been", "added", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/provisioning/BundleRepositoryRegistry.java#L68-L73
train
OpenLiberty/open-liberty
dev/com.ibm.json4j/src/com/ibm/json/java/OrderedJSONObject.java
OrderedJSONObject.put
public Object put(Object key, Object value) { if (null == key) throw new IllegalArgumentException("key must not be null"); if (!(key instanceof String)) throw new IllegalArgumentException("key must be a String"); if (!isValidObject(value)) { if (value != null) ...
java
public Object put(Object key, Object value) { if (null == key) throw new IllegalArgumentException("key must not be null"); if (!(key instanceof String)) throw new IllegalArgumentException("key must be a String"); if (!isValidObject(value)) { if (value != null) ...
[ "public", "Object", "put", "(", "Object", "key", ",", "Object", "value", ")", "{", "if", "(", "null", "==", "key", ")", "throw", "new", "IllegalArgumentException", "(", "\"key must not be null\"", ")", ";", "if", "(", "!", "(", "key", "instanceof", "String...
Method to put a JSON'able object into the instance. Note that the order of initial puts controls the order of serialization. Meaning that the first time an item is put into the object determines is position of serialization. Subsequent puts with the same key replace the existing entry value and leave serialization po...
[ "Method", "to", "put", "a", "JSON", "able", "object", "into", "the", "instance", ".", "Note", "that", "the", "order", "of", "initial", "puts", "controls", "the", "order", "of", "serialization", ".", "Meaning", "that", "the", "first", "time", "an", "item", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.json4j/src/com/ibm/json/java/OrderedJSONObject.java#L109-L134
train
OpenLiberty/open-liberty
dev/com.ibm.json4j/src/com/ibm/json/java/OrderedJSONObject.java
OrderedJSONObject.remove
public Object remove(Object key) { Object retVal = null; if (null == key) throw new IllegalArgumentException("key must not be null"); if (this.containsKey(key)) { retVal = super.remove(key); for (int i = 0; i < this.order.size(); i++) { ...
java
public Object remove(Object key) { Object retVal = null; if (null == key) throw new IllegalArgumentException("key must not be null"); if (this.containsKey(key)) { retVal = super.remove(key); for (int i = 0; i < this.order.size(); i++) { ...
[ "public", "Object", "remove", "(", "Object", "key", ")", "{", "Object", "retVal", "=", "null", ";", "if", "(", "null", "==", "key", ")", "throw", "new", "IllegalArgumentException", "(", "\"key must not be null\"", ")", ";", "if", "(", "this", ".", "contain...
Method to remove an entry from the OrderedJSONObject instance. @see java.util.HashMap#remove(java.lang.Object)
[ "Method", "to", "remove", "an", "entry", "from", "the", "OrderedJSONObject", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.json4j/src/com/ibm/json/java/OrderedJSONObject.java#L140-L160
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.service/src/com/ibm/ws/kernel/service/util/CpuInfo.java
CpuInfo.getAvailableProcessorsFromFilesystem
private static int getAvailableProcessorsFromFilesystem() { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); Double availableProcessorsDouble = null; int availableProcessorsInt = -1; //Check for docker files String periodFileLocation = File.separator + "sys" + File.sep...
java
private static int getAvailableProcessorsFromFilesystem() { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); Double availableProcessorsDouble = null; int availableProcessorsInt = -1; //Check for docker files String periodFileLocation = File.separator + "sys" + File.sep...
[ "private", "static", "int", "getAvailableProcessorsFromFilesystem", "(", ")", "{", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "Double", "availableProcessorsDouble", "=", "null", ";", "int", "availableProcessorsInt", "=", ...
utility below parses cpu limits info from Docker files
[ "utility", "below", "parses", "cpu", "limits", "info", "from", "Docker", "files" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/ws/kernel/service/util/CpuInfo.java#L150-L200
train
OpenLiberty/open-liberty
dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeService.java
RequestProbeService.processAllEntryProbeExtensions
public static void processAllEntryProbeExtensions(Event event, RequestContext requestContext) { if (event == requestContext.getRootEvent()) { // Add the request to Active Request list requestContext.setRequestContextIndex(activeRequests.add(requestContext)); } List<ProbeExtension> probeExtnList = RequestP...
java
public static void processAllEntryProbeExtensions(Event event, RequestContext requestContext) { if (event == requestContext.getRootEvent()) { // Add the request to Active Request list requestContext.setRequestContextIndex(activeRequests.add(requestContext)); } List<ProbeExtension> probeExtnList = RequestP...
[ "public", "static", "void", "processAllEntryProbeExtensions", "(", "Event", "event", ",", "RequestContext", "requestContext", ")", "{", "if", "(", "event", "==", "requestContext", ".", "getRootEvent", "(", ")", ")", "{", "// Add the request to Active Request list", "r...
Iterate through all the probe extensions and process all the entry method of the available probe extension @param event : Event for which the probe extensions to be processed. @param requestContext : Request context for the active request.
[ "Iterate", "through", "all", "the", "probe", "extensions", "and", "process", "all", "the", "entry", "method", "of", "the", "available", "probe", "extension" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeService.java#L124-L157
train
OpenLiberty/open-liberty
dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeService.java
RequestProbeService.processAllExitProbeExtensions
public static void processAllExitProbeExtensions(Event event, RequestContext requestContext) { List<ProbeExtension> probeExtnList = RequestProbeService.getProbeExtensions(); for (int i = 0; i < probeExtnList.size(); i ++) { ProbeExtension probeExtension = probeExtnList.get(i); try{ // Exit enabled?? ...
java
public static void processAllExitProbeExtensions(Event event, RequestContext requestContext) { List<ProbeExtension> probeExtnList = RequestProbeService.getProbeExtensions(); for (int i = 0; i < probeExtnList.size(); i ++) { ProbeExtension probeExtension = probeExtnList.get(i); try{ // Exit enabled?? ...
[ "public", "static", "void", "processAllExitProbeExtensions", "(", "Event", "event", ",", "RequestContext", "requestContext", ")", "{", "List", "<", "ProbeExtension", ">", "probeExtnList", "=", "RequestProbeService", ".", "getProbeExtensions", "(", ")", ";", "for", "...
Iterate through all the probe extensions and process all the exit method of the available probe extension @param event : Event for which the probe extensions to be processed. @param requestContext : Request context for the active request.
[ "Iterate", "through", "all", "the", "probe", "extensions", "and", "process", "all", "the", "exit", "method", "of", "the", "available", "probe", "extension" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeService.java#L168-L213
train
OpenLiberty/open-liberty
dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeService.java
RequestProbeService.processAllCounterProbeExtensions
public static void processAllCounterProbeExtensions(Event event){ List<ProbeExtension> probeExtnList = RequestProbeService.getProbeExtensions(); for (int i = 0; i < probeExtnList.size(); i ++) { ProbeExtension probeExtension = probeExtnList.get(i); try{ //Check if this probe extension is interested in ...
java
public static void processAllCounterProbeExtensions(Event event){ List<ProbeExtension> probeExtnList = RequestProbeService.getProbeExtensions(); for (int i = 0; i < probeExtnList.size(); i ++) { ProbeExtension probeExtension = probeExtnList.get(i); try{ //Check if this probe extension is interested in ...
[ "public", "static", "void", "processAllCounterProbeExtensions", "(", "Event", "event", ")", "{", "List", "<", "ProbeExtension", ">", "probeExtnList", "=", "RequestProbeService", ".", "getProbeExtensions", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "...
Iterate through all the probe extensions and process the counter methods of interested probe extensions @param event : Event for which the probe extensions to be processed.
[ "Iterate", "through", "all", "the", "probe", "extensions", "and", "process", "the", "counter", "methods", "of", "interested", "probe", "extensions" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probes/src/com/ibm/ws/request/probe/RequestProbeService.java#L222-L242
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java
TokenPropagationHelper.setSecurityService
@Reference(name = KEY_SECURITY_SERVICE, policy = ReferencePolicy.DYNAMIC) protected void setSecurityService(SecurityService securitysvc) { securityService = securitysvc; }
java
@Reference(name = KEY_SECURITY_SERVICE, policy = ReferencePolicy.DYNAMIC) protected void setSecurityService(SecurityService securitysvc) { securityService = securitysvc; }
[ "@", "Reference", "(", "name", "=", "KEY_SECURITY_SERVICE", ",", "policy", "=", "ReferencePolicy", ".", "DYNAMIC", ")", "protected", "void", "setSecurityService", "(", "SecurityService", "securitysvc", ")", "{", "securityService", "=", "securitysvc", ";", "}" ]
serviceReferences are bad, avoid and do this instead.
[ "serviceReferences", "are", "bad", "avoid", "and", "do", "this", "instead", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java#L73-L76
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java
TokenPropagationHelper.getUserName
public static String getUserName() throws Exception { Subject subject = getRunAsSubjectInternal(); if (subject == null) { return null; } Set<Principal> principals = subject.getPrincipals(); Iterator<Principal> principalsIterator = principals.iterator(); if (pr...
java
public static String getUserName() throws Exception { Subject subject = getRunAsSubjectInternal(); if (subject == null) { return null; } Set<Principal> principals = subject.getPrincipals(); Iterator<Principal> principalsIterator = principals.iterator(); if (pr...
[ "public", "static", "String", "getUserName", "(", ")", "throws", "Exception", "{", "Subject", "subject", "=", "getRunAsSubjectInternal", "(", ")", ";", "if", "(", "subject", "==", "null", ")", "{", "return", "null", ";", "}", "Set", "<", "Principal", ">", ...
Gets the username from the principal of the subject. @return @throws WSSecurityException
[ "Gets", "the", "username", "from", "the", "principal", "of", "the", "subject", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java#L157-L169
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java
TokenPropagationHelper.pushSubject
public static synchronized boolean pushSubject(String username) { if (securityService == null || username == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "returning false because user or securityService is null," + " user= " + username + " secsvc= " + secur...
java
public static synchronized boolean pushSubject(String username) { if (securityService == null || username == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "returning false because user or securityService is null," + " user= " + username + " secsvc= " + secur...
[ "public", "static", "synchronized", "boolean", "pushSubject", "(", "String", "username", ")", "{", "if", "(", "securityService", "==", "null", "||", "username", "==", "null", ")", "{", "if", "(", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", "."...
Authenticate the username, create it's Subject and push it on to the thread. It's up to the caller to save off the prior subject and make sure it gets restored, and guard against any threading issues. @param username @return true if successful
[ "Authenticate", "the", "username", "create", "it", "s", "Subject", "and", "push", "it", "on", "to", "the", "thread", ".", "It", "s", "up", "to", "the", "caller", "to", "save", "off", "the", "prior", "subject", "and", "make", "sure", "it", "gets", "rest...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java#L253-L286
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java
TokenPropagationHelper.setRunAsSubject
public static synchronized boolean setRunAsSubject(Subject subj) { Subject before = null; try { before = getRunAsSubject(); final Subject fsubj = subj; AccessController.doPrivileged( new PrivilegedExceptionAction<Object>() { ...
java
public static synchronized boolean setRunAsSubject(Subject subj) { Subject before = null; try { before = getRunAsSubject(); final Subject fsubj = subj; AccessController.doPrivileged( new PrivilegedExceptionAction<Object>() { ...
[ "public", "static", "synchronized", "boolean", "setRunAsSubject", "(", "Subject", "subj", ")", "{", "Subject", "before", "=", "null", ";", "try", "{", "before", "=", "getRunAsSubject", "(", ")", ";", "final", "Subject", "fsubj", "=", "subj", ";", "AccessCont...
set the runAsSubject. Contain any exceptions with FFDC. @param subj - the subject to push onto the thread. @return true if successful
[ "set", "the", "runAsSubject", ".", "Contain", "any", "exceptions", "with", "FFDC", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common/src/com/ibm/ws/security/common/token/propagation/TokenPropagationHelper.java#L295-L322
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/TopicWildcardTranslation.java
TopicWildcardTranslation.getInstance
public static TopicWildcardTranslation getInstance() throws Exception { if (tcInt.isEntryEnabled()) Tr.entry(tcInt, "getInstance"); if (twt == null) { try { Class cls = Class.forName(UtConstants.TWT_FACTORY_CLASS); twt = (TopicWildcardTranslation) cls.newInstance(); ...
java
public static TopicWildcardTranslation getInstance() throws Exception { if (tcInt.isEntryEnabled()) Tr.entry(tcInt, "getInstance"); if (twt == null) { try { Class cls = Class.forName(UtConstants.TWT_FACTORY_CLASS); twt = (TopicWildcardTranslation) cls.newInstance(); ...
[ "public", "static", "TopicWildcardTranslation", "getInstance", "(", ")", "throws", "Exception", "{", "if", "(", "tcInt", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entry", "(", "tcInt", ",", "\"getInstance\"", ")", ";", "if", "(", "twt", "==", "null...
Obtain the singleton instance of the wildcard mapping class. @return TopicWildcardTranslation singleton object @throws Exception If it was not possible to instantiate the implementation class
[ "Obtain", "the", "singleton", "instance", "of", "the", "wildcard", "mapping", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/TopicWildcardTranslation.java#L41-L67
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/model/FilterVersion.java
FilterVersion.getFilterRange
public static VersionRange getFilterRange(FilterVersion minVersion, FilterVersion maxVersion) { VersionRange vr = null; Version vmin = minVersion == null ? Version.emptyVersion : new Version(minVersion.getValue()); Version vmax = maxVersion == null ? null : new Version(maxVersion.getValue()); ...
java
public static VersionRange getFilterRange(FilterVersion minVersion, FilterVersion maxVersion) { VersionRange vr = null; Version vmin = minVersion == null ? Version.emptyVersion : new Version(minVersion.getValue()); Version vmax = maxVersion == null ? null : new Version(maxVersion.getValue()); ...
[ "public", "static", "VersionRange", "getFilterRange", "(", "FilterVersion", "minVersion", ",", "FilterVersion", "maxVersion", ")", "{", "VersionRange", "vr", "=", "null", ";", "Version", "vmin", "=", "minVersion", "==", "null", "?", "Version", ".", "emptyVersion",...
This method creates a version range from the supplied min and max FilterVersion @param minVersion The min version in the range. Can be null, if so treated as {@link Version#emptyVersion} @param maxVersion The max version. Can be null, null in a version range is treated as infinite @return A version range object repres...
[ "This", "method", "creates", "a", "version", "range", "from", "the", "supplied", "min", "and", "max", "FilterVersion" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/model/FilterVersion.java#L111-L119
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/FileLogSet.java
FileLogSet.update
public boolean update(File directory, String fileName, String fileExtension, int maxFiles) { this.maxFiles = maxFiles; boolean updateLocation = !directory.equals(this.directory) || !fileName.equals(this.fileName) || !fileExtension.equals(this.fileExtension); if (updateLocation) { th...
java
public boolean update(File directory, String fileName, String fileExtension, int maxFiles) { this.maxFiles = maxFiles; boolean updateLocation = !directory.equals(this.directory) || !fileName.equals(this.fileName) || !fileExtension.equals(this.fileExtension); if (updateLocation) { th...
[ "public", "boolean", "update", "(", "File", "directory", ",", "String", "fileName", ",", "String", "fileExtension", ",", "int", "maxFiles", ")", "{", "this", ".", "maxFiles", "=", "maxFiles", ";", "boolean", "updateLocation", "=", "!", "directory", ".", "equ...
Updates the configuration for this set of logs. @param directory the log directory @param fileName the file base name (e.g., "messages") @param fileExtension the file extension (e.g., ".log") @param maxFiles the maximum number of files, or 0 for unlimited @return true if the directory, name, or extension changed
[ "Updates", "the", "configuration", "for", "this", "set", "of", "logs", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/FileLogSet.java#L126-L177
train
OpenLiberty/open-liberty
dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/FileLogSet.java
FileLogSet.addFile
private void addFile(int index, String file) { if (maxFiles > 0) { int numFiles = files.size(); int maxDateFiles = getMaxDateFiles(); // If there is no max or we have fewer than max, then we're done. if (maxDateFiles <= 0 || numFiles < maxDateFiles) { ...
java
private void addFile(int index, String file) { if (maxFiles > 0) { int numFiles = files.size(); int maxDateFiles = getMaxDateFiles(); // If there is no max or we have fewer than max, then we're done. if (maxDateFiles <= 0 || numFiles < maxDateFiles) { ...
[ "private", "void", "addFile", "(", "int", "index", ",", "String", "file", ")", "{", "if", "(", "maxFiles", ">", "0", ")", "{", "int", "numFiles", "=", "files", ".", "size", "(", ")", ";", "int", "maxDateFiles", "=", "getMaxDateFiles", "(", ")", ";", ...
Adds a file name to the files list at the specified index. If adding this file would cause the number of files to exceed the maximum, remove all files after the specified index, and then remove the oldest files until the number is reduced to the maximum. @param index the index in the files list to insert the file @par...
[ "Adds", "a", "file", "name", "to", "the", "files", "list", "at", "the", "specified", "index", ".", "If", "adding", "this", "file", "would", "cause", "the", "number", "of", "files", "to", "exceed", "the", "maximum", "remove", "all", "files", "after", "the...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/FileLogSet.java#L387-L411
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.instantiateMessage
protected JsJmsMessage instantiateMessage() throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "instantiateMessage"); // Create a new message object. JsJmsMessage newMsg = jmfact.createJmsMessage(); messageClass = CLASS_...
java
protected JsJmsMessage instantiateMessage() throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "instantiateMessage"); // Create a new message object. JsJmsMessage newMsg = jmfact.createJmsMessage(); messageClass = CLASS_...
[ "protected", "JsJmsMessage", "instantiateMessage", "(", ")", "throws", "Exception", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
This method carries out the instantiation of the MFP message object for this JMS message class. The method is overridden by subclasses to instantiate the correct subclass and carry out any reference setting required. It is safe to assume by this point that the jmfact reference has been initialized, otherwise you would...
[ "This", "method", "carries", "out", "the", "instantiation", "of", "the", "MFP", "message", "object", "for", "this", "JMS", "message", "class", ".", "The", "method", "is", "overridden", "by", "subclasses", "to", "instantiate", "the", "correct", "subclass", "and...
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/JmsMessageImpl.java#L1668-L1682
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.getMsgReference
protected JsJmsMessage getMsgReference() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getMsgReference"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getMsgReference", msg);...
java
protected JsJmsMessage getMsgReference() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getMsgReference"); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getMsgReference", msg);...
[ "protected", "JsJmsMessage", "getMsgReference", "(", ")", "throws", "JMSException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
Get a Jetstream message representing the content of this JMS message. Used during the sending of messages. @return a Jetstream message which can be used to represent this message. @throws JMSException if a problem arises during the transformation of the JMS message to a Jetstream message.
[ "Get", "a", "Jetstream", "message", "representing", "the", "content", "of", "this", "JMS", "message", ".", "Used", "during", "the", "sending", "of", "messages", "." ]
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/JmsMessageImpl.java#L1692-L1698
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.setDestReference
protected void setDestReference(Destination d) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setDestReference", d); dest = d; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setDestReference"); ...
java
protected void setDestReference(Destination d) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setDestReference", d); dest = d; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setDestReference"); ...
[ "protected", "void", "setDestReference", "(", "Destination", "d", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"setDestR...
Update the destination cache reference without setting any data into the core message. @param d
[ "Update", "the", "destination", "cache", "reference", "without", "setting", "any", "data", "into", "the", "core", "message", "." ]
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/JmsMessageImpl.java#L1722-L1728
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.checkBodyWriteable
protected void checkBodyWriteable(String callingMethodName) throws JMSException { if (bodyReadOnly) { throw (javax.jms.MessageNotWriteableException) JmsErrorUtils.newThrowable(javax.jms.MessageNotWriteableException.class, ...
java
protected void checkBodyWriteable(String callingMethodName) throws JMSException { if (bodyReadOnly) { throw (javax.jms.MessageNotWriteableException) JmsErrorUtils.newThrowable(javax.jms.MessageNotWriteableException.class, ...
[ "protected", "void", "checkBodyWriteable", "(", "String", "callingMethodName", ")", "throws", "JMSException", "{", "if", "(", "bodyReadOnly", ")", "{", "throw", "(", "javax", ".", "jms", ".", "MessageNotWriteableException", ")", "JmsErrorUtils", ".", "newThrowable",...
If the message body is read-only, throw a MessageNotWriteableException.
[ "If", "the", "message", "body", "is", "read", "-", "only", "throw", "a", "MessageNotWriteableException", "." ]
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/JmsMessageImpl.java#L1733-L1741
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.checkBodyReadable
protected void checkBodyReadable(String callingMethodName) throws MessageNotReadableException { if (!bodyReadOnly) { throw (javax.jms.MessageNotReadableException) JmsErrorUtils.newThrowable(javax.jms.MessageNotReadableException.class, ...
java
protected void checkBodyReadable(String callingMethodName) throws MessageNotReadableException { if (!bodyReadOnly) { throw (javax.jms.MessageNotReadableException) JmsErrorUtils.newThrowable(javax.jms.MessageNotReadableException.class, ...
[ "protected", "void", "checkBodyReadable", "(", "String", "callingMethodName", ")", "throws", "MessageNotReadableException", "{", "if", "(", "!", "bodyReadOnly", ")", "{", "throw", "(", "javax", ".", "jms", ".", "MessageNotReadableException", ")", "JmsErrorUtils", "....
If the message body is write-only, throw a MessageNotReadableException.
[ "If", "the", "message", "body", "is", "write", "-", "only", "throw", "a", "MessageNotReadableException", "." ]
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/JmsMessageImpl.java#L1746-L1755
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.checkPropertiesWriteable
protected void checkPropertiesWriteable(String callingMethodName) throws JMSException { if (propertiesReadOnly) { throw (javax.jms.MessageNotWriteableException) JmsErrorUtils.newThrowable(javax.jms.MessageNotWriteableException.class, ...
java
protected void checkPropertiesWriteable(String callingMethodName) throws JMSException { if (propertiesReadOnly) { throw (javax.jms.MessageNotWriteableException) JmsErrorUtils.newThrowable(javax.jms.MessageNotWriteableException.class, ...
[ "protected", "void", "checkPropertiesWriteable", "(", "String", "callingMethodName", ")", "throws", "JMSException", "{", "if", "(", "propertiesReadOnly", ")", "{", "throw", "(", "javax", ".", "jms", ".", "MessageNotWriteableException", ")", "JmsErrorUtils", ".", "ne...
If the message properties are read-only, throw a MessageNotWriteableException.
[ "If", "the", "message", "properties", "are", "read", "-", "only", "throw", "a", "MessageNotWriteableException", "." ]
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/JmsMessageImpl.java#L1760-L1768
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.getReliability
public Reliability getReliability() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getReliability"); Reliability r = msg.getReliability(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "get...
java
public Reliability getReliability() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getReliability"); Reliability r = msg.getReliability(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "get...
[ "public", "Reliability", "getReliability", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getReliability\"", ")", ";...
This method retrieves the underlying reliability that is set for this message. The outgoing value can also be determined by examining the persistence and NPM properties, however inbound cannot be found in this way. @return Reliablity
[ "This", "method", "retrieves", "the", "underlying", "reliability", "that", "is", "set", "for", "this", "message", ".", "The", "outgoing", "value", "can", "also", "be", "determined", "by", "examining", "the", "persistence", "and", "NPM", "properties", "however", ...
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/JmsMessageImpl.java#L1778-L1785
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.setBodyReadOnly
protected void setBodyReadOnly() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setBodyReadOnly"); bodyReadOnly = true; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setBodyReadOnly"); ...
java
protected void setBodyReadOnly() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setBodyReadOnly"); bodyReadOnly = true; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setBodyReadOnly"); ...
[ "protected", "void", "setBodyReadOnly", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"setBodyReadOnly\"", ")", ";",...
Mark the body of the message as read only. Needed for the reset methods of Bytes and Stream messages.
[ "Mark", "the", "body", "of", "the", "message", "as", "read", "only", ".", "Needed", "for", "the", "reset", "methods", "of", "Bytes", "and", "Stream", "messages", "." ]
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/JmsMessageImpl.java#L1872-L1878
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.clearLocalProperties
void clearLocalProperties() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "clearLocalProperties"); if (locallyStoredPropertyValues != null) locallyStoredPropertyValues.clear(); // d255144 Also clear the local version of the mess...
java
void clearLocalProperties() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "clearLocalProperties"); if (locallyStoredPropertyValues != null) locallyStoredPropertyValues.clear(); // d255144 Also clear the local version of the mess...
[ "void", "clearLocalProperties", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"clearLocalProperties\"", ")", ";", "i...
Clear special case properties held in this message. Invoked at send time.
[ "Clear", "special", "case", "properties", "held", "in", "this", "message", ".", "Invoked", "at", "send", "time", "." ]
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/JmsMessageImpl.java#L1887-L1898
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.invalidateToStringCache
void invalidateToStringCache() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "invalidateToStringCache"); // Invalidate the toString cache. cachedToString = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
void invalidateToStringCache() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "invalidateToStringCache"); // Invalidate the toString cache. cachedToString = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
[ "void", "invalidateToStringCache", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"invalidateToStringCache\"", ")", ";"...
Called by the sendMessage method of JmsMsgProducerImpl in order to invalidate the toString of the message when we send it.
[ "Called", "by", "the", "sendMessage", "method", "of", "JmsMsgProducerImpl", "in", "order", "to", "invalidate", "the", "toString", "of", "the", "message", "when", "we", "send", "it", "." ]
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/JmsMessageImpl.java#L1904-L1913
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java
JmsMessageImpl.checkPropName
static void checkPropName(String name, String callingMethodName) throws IllegalArgumentException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkPropName", new Object[] { name, callingMethodName }); if ((name == null) || ("".equals(name))) { ...
java
static void checkPropName(String name, String callingMethodName) throws IllegalArgumentException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkPropName", new Object[] { name, callingMethodName }); if ((name == null) || ("".equals(name))) { ...
[ "static", "void", "checkPropName", "(", "String", "name", ",", "String", "callingMethodName", ")", "throws", "IllegalArgumentException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Si...
This method checks the property name to see whether it is null or empty, and throws an IllegalArgumentException if it is. Note that this is used from MapMessage for the body, as well as from this class for the header.
[ "This", "method", "checks", "the", "property", "name", "to", "see", "whether", "it", "is", "null", "or", "empty", "and", "throws", "an", "IllegalArgumentException", "if", "it", "is", ".", "Note", "that", "this", "is", "used", "from", "MapMessage", "for", "...
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/JmsMessageImpl.java#L1939-L1955
train
OpenLiberty/open-liberty
dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/DatabaseManager.java
DatabaseManager.getDatabasePlatformClassName
public String getDatabasePlatformClassName(PUInfoImpl pui) { SessionLog traceLogger = new TraceLog(); Properties properties = pui.getProperties(); String productName = properties.getProperty(PersistenceUnitProperties.SCHEMA_DATABASE_PRODUCT_NAME); String vendorNameAndVersion = null; ...
java
public String getDatabasePlatformClassName(PUInfoImpl pui) { SessionLog traceLogger = new TraceLog(); Properties properties = pui.getProperties(); String productName = properties.getProperty(PersistenceUnitProperties.SCHEMA_DATABASE_PRODUCT_NAME); String vendorNameAndVersion = null; ...
[ "public", "String", "getDatabasePlatformClassName", "(", "PUInfoImpl", "pui", ")", "{", "SessionLog", "traceLogger", "=", "new", "TraceLog", "(", ")", ";", "Properties", "properties", "=", "pui", ".", "getProperties", "(", ")", ";", "String", "productName", "=",...
Returns the EclipseLink database platform class name based on the properties passed in or by detecting it through the connection, if one is available.
[ "Returns", "the", "EclipseLink", "database", "platform", "class", "name", "based", "on", "the", "properties", "passed", "in", "or", "by", "detecting", "it", "through", "the", "connection", "if", "one", "is", "available", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/DatabaseManager.java#L140-L167
train
OpenLiberty/open-liberty
dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/DatabaseManager.java
DatabaseManager.supportsUnicodeStaticCheck
@FFDCIgnore(SQLException.class) private Boolean supportsUnicodeStaticCheck(DataSource ds) { Boolean res = null; try { Connection conn = ds.getConnection(); String product = null; try { DatabaseMetaData dmd = conn.getMetaData(); prod...
java
@FFDCIgnore(SQLException.class) private Boolean supportsUnicodeStaticCheck(DataSource ds) { Boolean res = null; try { Connection conn = ds.getConnection(); String product = null; try { DatabaseMetaData dmd = conn.getMetaData(); prod...
[ "@", "FFDCIgnore", "(", "SQLException", ".", "class", ")", "private", "Boolean", "supportsUnicodeStaticCheck", "(", "DataSource", "ds", ")", "{", "Boolean", "res", "=", "null", ";", "try", "{", "Connection", "conn", "=", "ds", ".", "getConnection", "(", ")",...
Consults the static collections contained within this class and attempts to determine whether the provided DataSource supports unicode. @return True if ds supports unicode. False if ds doesn't support unicode. null if unknown.
[ "Consults", "the", "static", "collections", "contained", "within", "this", "class", "and", "attempts", "to", "determine", "whether", "the", "provided", "DataSource", "supports", "unicode", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.persistence/src/com/ibm/wsspi/persistence/internal/DatabaseManager.java#L175-L213
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security.common/src/com/ibm/ws/messaging/security/Authorization.java
Authorization.setMessagingAuthorizationService
public void setMessagingAuthorizationService( MessagingAuthorizationService messagingAuthorizationService) { SibTr.entry(tc, CLASS_NAME + "setMessagingAuthorizationService", messagingAuthorizationService); this.messagingAuthorizationService = messagingAu...
java
public void setMessagingAuthorizationService( MessagingAuthorizationService messagingAuthorizationService) { SibTr.entry(tc, CLASS_NAME + "setMessagingAuthorizationService", messagingAuthorizationService); this.messagingAuthorizationService = messagingAu...
[ "public", "void", "setMessagingAuthorizationService", "(", "MessagingAuthorizationService", "messagingAuthorizationService", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"setMessagingAuthorizationService\"", ",", "messagingAuthorizationService", ")", ...
Set the Messaging Authorization Service @param messagingAuthorizationService MessagingAuthorization is set to Null when MessagingSecurity is disabled
[ "Set", "the", "Messaging", "Authorization", "Service" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security.common/src/com/ibm/ws/messaging/security/Authorization.java#L201-L208
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/AppDefinedResourceFactory.java
AppDefinedResourceFactory.destroy
@Override public void destroy() throws Exception { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "destroy", id); tracker.close(); StringBuilder filter = new StringBuilder(FilterUtils.createPropertyFilter...
java
@Override public void destroy() throws Exception { final boolean trace = TraceComponent.isAnyTracingEnabled(); if (trace && tc.isEntryEnabled()) Tr.entry(this, tc, "destroy", id); tracker.close(); StringBuilder filter = new StringBuilder(FilterUtils.createPropertyFilter...
[ "@", "Override", "public", "void", "destroy", "(", ")", "throws", "Exception", "{", "final", "boolean", "trace", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "trace", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ...
Destroy this application-defined resource by removing its configuration and the configuration of all other services that were created for it. @throws Exception if an error occurs.
[ "Destroy", "this", "application", "-", "defined", "resource", "by", "removing", "its", "configuration", "and", "the", "configuration", "of", "all", "other", "services", "that", "were", "created", "for", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/AppDefinedResourceFactory.java#L125-L140
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java
DestinationChangeListener.addMPDestinationChangeListener
public void addMPDestinationChangeListener(MPDestinationChangeListener destinationChangeListener) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addMPDestinationChangeListener", new Object[]{destinationChangeListener}); _destinationChangeListeners.add(destin...
java
public void addMPDestinationChangeListener(MPDestinationChangeListener destinationChangeListener) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addMPDestinationChangeListener", new Object[]{destinationChangeListener}); _destinationChangeListeners.add(destin...
[ "public", "void", "addMPDestinationChangeListener", "(", "MPDestinationChangeListener", "destinationChangeListener", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", ...
This method is used internal to MP only and is used to register additional destination change listeners that are need as well as the main MP listener registered at startup. Adding a destinationLocationChangeListener will not override an existing one but will add to a list of ones that will be called. @param destinati...
[ "This", "method", "is", "used", "internal", "to", "MP", "only", "and", "is", "used", "to", "register", "additional", "destination", "change", "listeners", "that", "are", "need", "as", "well", "as", "the", "main", "MP", "listener", "registered", "at", "startu...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java#L264-L274
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java
DestinationChangeListener.removeMPDestinationChangeListener
public void removeMPDestinationChangeListener(MPDestinationChangeListener destinationChangeListener) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeMPDestinationChangeListener", new Object[]{destinationChangeListener}); _destinationChangeListeners.remo...
java
public void removeMPDestinationChangeListener(MPDestinationChangeListener destinationChangeListener) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeMPDestinationChangeListener", new Object[]{destinationChangeListener}); _destinationChangeListeners.remo...
[ "public", "void", "removeMPDestinationChangeListener", "(", "MPDestinationChangeListener", "destinationChangeListener", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry"...
This method is used internal to MP only and is used to remove a destination change listener that was registered. This method will only remove a destinationLocationChangeListener that was registered via addMPDestinationChangeListener @param destinationLocationChangeListener
[ "This", "method", "is", "used", "internal", "to", "MP", "only", "and", "is", "used", "to", "remove", "a", "destination", "change", "listener", "that", "was", "registered", ".", "This", "method", "will", "only", "remove", "a", "destinationLocationChangeListener",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java#L283-L293
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java
DestinationChangeListener.getDestinationLocalitySet
private Set getDestinationLocalitySet (BaseDestinationHandler destinationHandler, Capability capability) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getDestinationLocalitySet", new Object[]{destinationHandler, capability}); // Check if the localisat...
java
private Set getDestinationLocalitySet (BaseDestinationHandler destinationHandler, Capability capability) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getDestinationLocalitySet", new Object[]{destinationHandler, capability}); // Check if the localisat...
[ "private", "Set", "getDestinationLocalitySet", "(", "BaseDestinationHandler", "destinationHandler", ",", "Capability", "capability", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr...
Retrieve the Locality Set defined in Admin. @param destinationHandler @param capability @return
[ "Retrieve", "the", "Locality", "Set", "defined", "in", "Admin", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java#L302-L330
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java
DestinationChangeListener.cleanupDestination
private void cleanupDestination(PtoPMessageItemStream ptoPMessageItemStream, BaseDestinationHandler destinationHandler, SIBUuid8 meUuid, Capability capability) { if (TraceComponent.isAnyTracingEnabled() && tc.is...
java
private void cleanupDestination(PtoPMessageItemStream ptoPMessageItemStream, BaseDestinationHandler destinationHandler, SIBUuid8 meUuid, Capability capability) { if (TraceComponent.isAnyTracingEnabled() && tc.is...
[ "private", "void", "cleanupDestination", "(", "PtoPMessageItemStream", "ptoPMessageItemStream", ",", "BaseDestinationHandler", "destinationHandler", ",", "SIBUuid8", "meUuid", ",", "Capability", "capability", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled"...
Cleanup destinations unknown to both WLM and WCCM. @param ptoPMessageItemStream @param destinationHandler @param meUuid @param capability
[ "Cleanup", "destinations", "unknown", "to", "both", "WLM", "and", "WCCM", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DestinationChangeListener.java#L340-L367
train
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java
IFixCompareCommandTask.compareToAparList
private void compareToAparList(ExecutionContext context, CommandConsole console, Map<String, Set<String>> installedIFixes, File wlpInstallationDirectory) { // console.printlnInfoMessage("WLP Directory [ " + wlpInstallationDirectory.getPath() + " ]"); // console.printlnInfoMessage("Installed IFixes [ " +...
java
private void compareToAparList(ExecutionContext context, CommandConsole console, Map<String, Set<String>> installedIFixes, File wlpInstallationDirectory) { // console.printlnInfoMessage("WLP Directory [ " + wlpInstallationDirectory.getPath() + " ]"); // console.printlnInfoMessage("Installed IFixes [ " +...
[ "private", "void", "compareToAparList", "(", "ExecutionContext", "context", ",", "CommandConsole", "console", ",", "Map", "<", "String", ",", "Set", "<", "String", ">", ">", "installedIFixes", ",", "File", "wlpInstallationDirectory", ")", "{", "// console.printlnInf...
Compares the current install to a list of APARs in the console arguments @param context @param console @param wlpInstallationDirectory @param installedIFixes
[ "Compares", "the", "current", "install", "to", "a", "list", "of", "APARs", "in", "the", "console", "arguments" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java#L131-L193
train
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java
IFixCompareCommandTask.compareToInstallLocation
private void compareToInstallLocation(ExecutionContext context, CommandConsole console, Map<String, Set<String>> aparToIFixMap, File wlpInstallationDirectory) { String installToCompareToLocation = context.getOptionValue(INSTALL_LOCATION_TO_COMPARE_TO_OPTION); File installToCompareToFile = new File(insta...
java
private void compareToInstallLocation(ExecutionContext context, CommandConsole console, Map<String, Set<String>> aparToIFixMap, File wlpInstallationDirectory) { String installToCompareToLocation = context.getOptionValue(INSTALL_LOCATION_TO_COMPARE_TO_OPTION); File installToCompareToFile = new File(insta...
[ "private", "void", "compareToInstallLocation", "(", "ExecutionContext", "context", ",", "CommandConsole", "console", ",", "Map", "<", "String", ",", "Set", "<", "String", ">", ">", "aparToIFixMap", ",", "File", "wlpInstallationDirectory", ")", "{", "String", "inst...
Compares the current install to one supplied in the console arguments @param context @param console @param wlpInstallationDirectory @param installedIFixes
[ "Compares", "the", "current", "install", "to", "one", "supplied", "in", "the", "console", "arguments" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java#L203-L251
train
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java
IFixCompareCommandTask.printAparIFixInfo
private void printAparIFixInfo(CommandConsole console, Map<String, Set<String>> aparToIFixMap) { for (Map.Entry<String, Set<String>> aparIFixInfo : aparToIFixMap.entrySet()) { console.printlnInfoMessage(getMessage("compare.ifix.apar.info", aparIFixInfo.getKey(), aparIFixInfo.getValue())); } ...
java
private void printAparIFixInfo(CommandConsole console, Map<String, Set<String>> aparToIFixMap) { for (Map.Entry<String, Set<String>> aparIFixInfo : aparToIFixMap.entrySet()) { console.printlnInfoMessage(getMessage("compare.ifix.apar.info", aparIFixInfo.getKey(), aparIFixInfo.getValue())); } ...
[ "private", "void", "printAparIFixInfo", "(", "CommandConsole", "console", ",", "Map", "<", "String", ",", "Set", "<", "String", ">", ">", "aparToIFixMap", ")", "{", "for", "(", "Map", ".", "Entry", "<", "String", ",", "Set", "<", "String", ">", ">", "a...
This will print the map of APARs to iFixes by giving a line to each APAR listing which iFixes it is in @param console The console to print to @param aparToIFixMap The map to print
[ "This", "will", "print", "the", "map", "of", "APARs", "to", "iFixes", "by", "giving", "a", "line", "to", "each", "APAR", "listing", "which", "iFixes", "it", "is", "in" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java#L259-L263
train
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java
IFixCompareCommandTask.getProductVersion
private Version getProductVersion(File wlpInstallationDirectory) throws VersionParsingException { // First get the properties Map<String, ProductInfo> productProperties = VersionUtils.getAllProductInfo(wlpInstallationDirectory); // Get the properties for WAS ProductInfo wasProperties = ...
java
private Version getProductVersion(File wlpInstallationDirectory) throws VersionParsingException { // First get the properties Map<String, ProductInfo> productProperties = VersionUtils.getAllProductInfo(wlpInstallationDirectory); // Get the properties for WAS ProductInfo wasProperties = ...
[ "private", "Version", "getProductVersion", "(", "File", "wlpInstallationDirectory", ")", "throws", "VersionParsingException", "{", "// First get the properties", "Map", "<", "String", ",", "ProductInfo", ">", "productProperties", "=", "VersionUtils", ".", "getAllProductInfo...
Gets the product version from the properties file for the "com.ibm.websphere.appserver" product @param wlpInstallationDirectory @return The product version as parsed by the OSGi {@link Version} class @throws VersionParsingException
[ "Gets", "the", "product", "version", "from", "the", "properties", "file", "for", "the", "com", ".", "ibm", ".", "websphere", ".", "appserver", "product" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java#L368-L381
train
OpenLiberty/open-liberty
dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java
IFixCompareCommandTask.readLine
private String readLine(InputStream stream) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(stream)); return reader.readLine(); }
java
private String readLine(InputStream stream) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(stream)); return reader.readLine(); }
[ "private", "String", "readLine", "(", "InputStream", "stream", ")", "throws", "IOException", "{", "BufferedReader", "reader", "=", "new", "BufferedReader", "(", "new", "InputStreamReader", "(", "stream", ")", ")", ";", "return", "reader", ".", "readLine", "(", ...
This will read a single line from the input stream as a string. @param stream The stream to read @return The line that was read @throws IOException If there was a problem reading the line
[ "This", "will", "read", "a", "single", "line", "from", "the", "input", "stream", "as", "a", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.product.utility/src/com/ibm/ws/product/utility/extension/IFixCompareCommandTask.java#L732-L735
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/SingleThreadModelServlet.java
SingleThreadModelServlet.service
public void service(ServletRequest req, ServletResponse resp) throws ServletException, IOException { try { TimedServletPoolElement e = _pool.getNextElement(); e.getServlet().service(req, resp); _pool.returnElement(e); _pool.removeExpiredElements();...
java
public void service(ServletRequest req, ServletResponse resp) throws ServletException, IOException { try { TimedServletPoolElement e = _pool.getNextElement(); e.getServlet().service(req, resp); _pool.returnElement(e); _pool.removeExpiredElements();...
[ "public", "void", "service", "(", "ServletRequest", "req", ",", "ServletResponse", "resp", ")", "throws", "ServletException", ",", "IOException", "{", "try", "{", "TimedServletPoolElement", "e", "=", "_pool", ".", "getNextElement", "(", ")", ";", "e", ".", "ge...
Overloaded by subclasses to perform the servlet's request handling operation.
[ "Overloaded", "by", "subclasses", "to", "perform", "the", "servlet", "s", "request", "handling", "operation", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/SingleThreadModelServlet.java#L116-L131
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.find
public ModuleItem find(String name) { if (children == null) return null; else return (ModuleItem) children.get(name); /* * for(int i=0; i<children.size(); i++) * { * ModuleItem item = (ModuleItem)children.get(i); * if(item.instance != ...
java
public ModuleItem find(String name) { if (children == null) return null; else return (ModuleItem) children.get(name); /* * for(int i=0; i<children.size(); i++) * { * ModuleItem item = (ModuleItem)children.get(i); * if(item.instance != ...
[ "public", "ModuleItem", "find", "(", "String", "name", ")", "{", "if", "(", "children", "==", "null", ")", "return", "null", ";", "else", "return", "(", "ModuleItem", ")", "children", ".", "get", "(", "name", ")", ";", "/*\n * for(int i=0; i<children...
Find an immediate child
[ "Find", "an", "immediate", "child" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L65-L83
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.find
public ModuleItem find(String[] path, int index) { if (path == null) return null; if (path.length == 0) return this; ModuleItem item = find(path[index]); if (item == null) return null; if (index == path.length - 1) return item; ...
java
public ModuleItem find(String[] path, int index) { if (path == null) return null; if (path.length == 0) return this; ModuleItem item = find(path[index]); if (item == null) return null; if (index == path.length - 1) return item; ...
[ "public", "ModuleItem", "find", "(", "String", "[", "]", "path", ",", "int", "index", ")", "{", "if", "(", "path", "==", "null", ")", "return", "null", ";", "if", "(", "path", ".", "length", "==", "0", ")", "return", "this", ";", "ModuleItem", "ite...
Find a child in the subtree - do it recursively
[ "Find", "a", "child", "in", "the", "subtree", "-", "do", "it", "recursively" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L86-L101
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.add
public synchronized ModuleItem add(String[] path, int index) { if (path == null) return null; if (path.length == 0) return this; ModuleItem item = find(path[index]); // custom module shouldn't go inside if{} if (item == null) { // Create Aggr...
java
public synchronized ModuleItem add(String[] path, int index) { if (path == null) return null; if (path.length == 0) return this; ModuleItem item = find(path[index]); // custom module shouldn't go inside if{} if (item == null) { // Create Aggr...
[ "public", "synchronized", "ModuleItem", "add", "(", "String", "[", "]", "path", ",", "int", "index", ")", "{", "if", "(", "path", "==", "null", ")", "return", "null", ";", "if", "(", "path", ".", "length", "==", "0", ")", "return", "this", ";", "Mo...
Find and add a child in the subtree if not found - do it recursively
[ "Find", "and", "add", "a", "child", "in", "the", "subtree", "if", "not", "found", "-", "do", "it", "recursively" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L104-L137
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.children
public ModuleItem[] children() { if (children == null) return null; ModuleItem[] members = new ModuleItem[children.size()]; children.values().toArray(members); return members; }
java
public ModuleItem[] children() { if (children == null) return null; ModuleItem[] members = new ModuleItem[children.size()]; children.values().toArray(members); return members; }
[ "public", "ModuleItem", "[", "]", "children", "(", ")", "{", "if", "(", "children", "==", "null", ")", "return", "null", ";", "ModuleItem", "[", "]", "members", "=", "new", "ModuleItem", "[", "children", ".", "size", "(", ")", "]", ";", "children", "...
Return an array of children - synchronized?
[ "Return", "an", "array", "of", "children", "-", "synchronized?" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L198-L205
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.remove
public synchronized void remove(ModuleItem item) { if (item == null || children == null) return; // remove from all the parents which have links to it due to aggregate data PmiModule removeInstance = item.getInstance(); if (!(removeInstance instanceof PmiModuleAggregate)) { ...
java
public synchronized void remove(ModuleItem item) { if (item == null || children == null) return; // remove from all the parents which have links to it due to aggregate data PmiModule removeInstance = item.getInstance(); if (!(removeInstance instanceof PmiModuleAggregate)) { ...
[ "public", "synchronized", "void", "remove", "(", "ModuleItem", "item", ")", "{", "if", "(", "item", "==", "null", "||", "children", "==", "null", ")", "return", ";", "// remove from all the parents which have links to it due to aggregate data", "PmiModule", "removeInsta...
Remove a child from it - synchronized
[ "Remove", "a", "child", "from", "it", "-", "synchronized" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L301-L337
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.listMembers
public DataDescriptor[] listMembers(DataDescriptor dd, boolean jmxBased) { // take care of data members SpdData[] dataList = null; int dataLength = 0; if (!jmxBased) { dataList = instance.listData(); if (dataList != null) dataLength = dataList.len...
java
public DataDescriptor[] listMembers(DataDescriptor dd, boolean jmxBased) { // take care of data members SpdData[] dataList = null; int dataLength = 0; if (!jmxBased) { dataList = instance.listData(); if (dataList != null) dataLength = dataList.len...
[ "public", "DataDescriptor", "[", "]", "listMembers", "(", "DataDescriptor", "dd", ",", "boolean", "jmxBased", ")", "{", "// take care of data members", "SpdData", "[", "]", "dataList", "=", "null", ";", "int", "dataLength", "=", "0", ";", "if", "(", "!", "jm...
dd is the DataDescriptor for this module
[ "dd", "is", "the", "DataDescriptor", "for", "this", "module" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L340-L379
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.getStats
public StatsImpl getStats(boolean recursive) { // DO THIS METHOD NEED SYNCHRONIZED ACCESS? // When multiple threads get inside the method and stats tree is updated if (recursive) { /* * // if leaf then do not create myStatsWithChildren. Instead return myStats ...
java
public StatsImpl getStats(boolean recursive) { // DO THIS METHOD NEED SYNCHRONIZED ACCESS? // When multiple threads get inside the method and stats tree is updated if (recursive) { /* * // if leaf then do not create myStatsWithChildren. Instead return myStats ...
[ "public", "StatsImpl", "getStats", "(", "boolean", "recursive", ")", "{", "// DO THIS METHOD NEED SYNCHRONIZED ACCESS?", "// When multiple threads get inside the method and stats tree is updated", "if", "(", "recursive", ")", "{", "/*\n * // if leaf then do not create mySta...
is updated.
[ "is", "updated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L571-L661
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem.setInstanceLevel_FG
private void setInstanceLevel_FG(int[] enabled, int[] enabledSync, boolean recursive) { if (instance != null) { // Fine grained instrumentation overrides the old level // First call setFineGrainedInstrumentation. // If fine grained level is undefined called old setInstrumenta...
java
private void setInstanceLevel_FG(int[] enabled, int[] enabledSync, boolean recursive) { if (instance != null) { // Fine grained instrumentation overrides the old level // First call setFineGrainedInstrumentation. // If fine grained level is undefined called old setInstrumenta...
[ "private", "void", "setInstanceLevel_FG", "(", "int", "[", "]", "enabled", ",", "int", "[", "]", "enabledSync", ",", "boolean", "recursive", ")", "{", "if", "(", "instance", "!=", "null", ")", "{", "// Fine grained instrumentation overrides the old level", "// Fir...
add data to parent if the newLevel is higher
[ "add", "data", "to", "parent", "if", "the", "newLevel", "is", "higher" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L753-L780
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java
ModuleItem._cleanChildren
private void _cleanChildren() { //bStatsTreeNeedsUpdate = true; if (children != null) { Iterator values = children.values().iterator(); while (values.hasNext()) { ModuleItem remMI = (ModuleItem) values.next(); remMI.getInstance().cleanup(); ...
java
private void _cleanChildren() { //bStatsTreeNeedsUpdate = true; if (children != null) { Iterator values = children.values().iterator(); while (values.hasNext()) { ModuleItem remMI = (ModuleItem) values.next(); remMI.getInstance().cleanup(); ...
[ "private", "void", "_cleanChildren", "(", ")", "{", "//bStatsTreeNeedsUpdate = true;", "if", "(", "children", "!=", "null", ")", "{", "Iterator", "values", "=", "children", ".", "values", "(", ")", ".", "iterator", "(", ")", ";", "while", "(", "values", "....
recursively remove reference to child ModuleItem from children ArrayList
[ "recursively", "remove", "reference", "to", "child", "ModuleItem", "from", "children", "ArrayList" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleItem.java#L898-L914
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java
LibertyServiceImpl.configureCustomizeBinding
protected void configureCustomizeBinding(Client client, QName portName) { //put all properties defined in ibm-ws-bnd.xml into the client request context Map<String, Object> requestContext = client.getRequestContext(); if (null != requestContext && null != wsrInfo) { PortComponentRefI...
java
protected void configureCustomizeBinding(Client client, QName portName) { //put all properties defined in ibm-ws-bnd.xml into the client request context Map<String, Object> requestContext = client.getRequestContext(); if (null != requestContext && null != wsrInfo) { PortComponentRefI...
[ "protected", "void", "configureCustomizeBinding", "(", "Client", "client", ",", "QName", "portName", ")", "{", "//put all properties defined in ibm-ws-bnd.xml into the client request context", "Map", "<", "String", ",", "Object", ">", "requestContext", "=", "client", ".", ...
Add the LibertyCustomizeBindingOutInterceptor in the out interceptor chain. @param client @param portName
[ "Add", "the", "LibertyCustomizeBindingOutInterceptor", "in", "the", "out", "interceptor", "chain", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java#L134-L165
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java
LibertyServiceImpl.getWebServiceFeaturesOnPortComponentRef
private WebServiceFeature[] getWebServiceFeaturesOnPortComponentRef(Class serviceEndpointInterface) { WebServiceFeature[] returnArray = {}; if (serviceEndpointInterface != null && wsrInfo != null) { String seiName = serviceEndpointInterface.getName(); PortComponentRefInfo pcr =...
java
private WebServiceFeature[] getWebServiceFeaturesOnPortComponentRef(Class serviceEndpointInterface) { WebServiceFeature[] returnArray = {}; if (serviceEndpointInterface != null && wsrInfo != null) { String seiName = serviceEndpointInterface.getName(); PortComponentRefInfo pcr =...
[ "private", "WebServiceFeature", "[", "]", "getWebServiceFeaturesOnPortComponentRef", "(", "Class", "serviceEndpointInterface", ")", "{", "WebServiceFeature", "[", "]", "returnArray", "=", "{", "}", ";", "if", "(", "serviceEndpointInterface", "!=", "null", "&&", "wsrIn...
Gets an array of features possibly enabled on client's port-component-ref in the deployment descriptor
[ "Gets", "an", "array", "of", "features", "possibly", "enabled", "on", "client", "s", "port", "-", "component", "-", "ref", "in", "the", "deployment", "descriptor" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java#L171-L204
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java
LibertyServiceImpl.configureClientProperties
private void configureClientProperties() throws IOException { Map<String, String> serviceRefProps = wsrInfo.getProperties(); Iterator<QName> iterator = this.getPorts();//wsrInfo.getBindingPortComponentRefInfoList(); while (null != iterator && iterator.hasNext()) { QName portQName = ...
java
private void configureClientProperties() throws IOException { Map<String, String> serviceRefProps = wsrInfo.getProperties(); Iterator<QName> iterator = this.getPorts();//wsrInfo.getBindingPortComponentRefInfoList(); while (null != iterator && iterator.hasNext()) { QName portQName = ...
[ "private", "void", "configureClientProperties", "(", ")", "throws", "IOException", "{", "Map", "<", "String", ",", "String", ">", "serviceRefProps", "=", "wsrInfo", ".", "getProperties", "(", ")", ";", "Iterator", "<", "QName", ">", "iterator", "=", "this", ...
configure the http conduit properties defined in the custom binding file.
[ "configure", "the", "http", "conduit", "properties", "defined", "in", "the", "custom", "binding", "file", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java#L209-L222
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java
LibertyServiceImpl.prepareProperties
private void prepareProperties(QName portQName, Map<String, String> serviceRefProps, Map<String, String> portProps) throws IOException { // Merge the properties form port and service. Map<String, String> allProperties = new HashMap<String, String>(); if (null != serviceRefProps) { a...
java
private void prepareProperties(QName portQName, Map<String, String> serviceRefProps, Map<String, String> portProps) throws IOException { // Merge the properties form port and service. Map<String, String> allProperties = new HashMap<String, String>(); if (null != serviceRefProps) { a...
[ "private", "void", "prepareProperties", "(", "QName", "portQName", ",", "Map", "<", "String", ",", "String", ">", "serviceRefProps", ",", "Map", "<", "String", ",", "String", ">", "portProps", ")", "throws", "IOException", "{", "// Merge the properties form port a...
merge the serviceRef properties and port properties, and update the merged properties in the configAdmin service. @param configAdmin @param serviceRefProps @param portProps @return @throws IOException
[ "merge", "the", "serviceRef", "properties", "and", "port", "properties", "and", "update", "the", "merged", "properties", "in", "the", "configAdmin", "service", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java#L233-L269
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java
LibertyServiceImpl.extract
protected Map<String, String> extract(String propertyPrefix, Map<String, String> properties, boolean removeProps) { if (null == properties || properties.isEmpty()) { return Collections.<String, String> emptyMap(); } Map<String, String> extractProps = new HashMap<String, String>(); ...
java
protected Map<String, String> extract(String propertyPrefix, Map<String, String> properties, boolean removeProps) { if (null == properties || properties.isEmpty()) { return Collections.<String, String> emptyMap(); } Map<String, String> extractProps = new HashMap<String, String>(); ...
[ "protected", "Map", "<", "String", ",", "String", ">", "extract", "(", "String", "propertyPrefix", ",", "Map", "<", "String", ",", "String", ">", "properties", ",", "boolean", "removeProps", ")", "{", "if", "(", "null", "==", "properties", "||", "propertie...
Extract the properties according to the property prefix. @param propertyPrefix @param properties @param removeProps if is true, will remove the properties that have be extracted. @return
[ "Extract", "the", "properties", "according", "to", "the", "property", "prefix", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java#L279-L299
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java
LibertyServiceImpl.extract
protected Map<String, String> extract(String propertyPrefix, Map<String, String> properties) { return extract(propertyPrefix, properties, true); }
java
protected Map<String, String> extract(String propertyPrefix, Map<String, String> properties) { return extract(propertyPrefix, properties, true); }
[ "protected", "Map", "<", "String", ",", "String", ">", "extract", "(", "String", "propertyPrefix", ",", "Map", "<", "String", ",", "String", ">", "properties", ")", "{", "return", "extract", "(", "propertyPrefix", ",", "properties", ",", "true", ")", ";", ...
Extract the properties according to the property prefix, will remove the extracted properties from original properties. @param propertyPrefix @param properties @return
[ "Extract", "the", "properties", "according", "to", "the", "property", "prefix", "will", "remove", "the", "extracted", "properties", "from", "original", "properties", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/LibertyServiceImpl.java#L308-L310
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webserver.plugin.utility/src/com/ibm/ws/webserver/plugin/utility/tasks/BasePluginConfigCommandTask.java
BasePluginConfigCommandTask.isKnownArgument
private boolean isKnownArgument(String arg) { final String argName = getArgName(arg); for (String key : knownArgs) { if (key.equalsIgnoreCase(argName)) { return true; } } return false; }
java
private boolean isKnownArgument(String arg) { final String argName = getArgName(arg); for (String key : knownArgs) { if (key.equalsIgnoreCase(argName)) { return true; } } return false; }
[ "private", "boolean", "isKnownArgument", "(", "String", "arg", ")", "{", "final", "String", "argName", "=", "getArgName", "(", "arg", ")", ";", "for", "(", "String", "key", ":", "knownArgs", ")", "{", "if", "(", "key", ".", "equalsIgnoreCase", "(", "argN...
Checks if the argument is a known argument to the task. @param arg @return
[ "Checks", "if", "the", "argument", "is", "a", "known", "argument", "to", "the", "task", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webserver.plugin.utility/src/com/ibm/ws/webserver/plugin/utility/tasks/BasePluginConfigCommandTask.java#L153-L161
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webserver.plugin.utility/src/com/ibm/ws/webserver/plugin/utility/tasks/BasePluginConfigCommandTask.java
BasePluginConfigCommandTask.getTaskHelp
protected String getTaskHelp(String desc, String usage, String optionKeyPrefix, String optionDescPrefix, String addonKey, String footer, Object... args) { StringBuilder scriptHelp = new StringBuilder(); s...
java
protected String getTaskHelp(String desc, String usage, String optionKeyPrefix, String optionDescPrefix, String addonKey, String footer, Object... args) { StringBuilder scriptHelp = new StringBuilder(); s...
[ "protected", "String", "getTaskHelp", "(", "String", "desc", ",", "String", "usage", ",", "String", "optionKeyPrefix", ",", "String", "optionDescPrefix", ",", "String", "addonKey", ",", "String", "footer", ",", "Object", "...", "args", ")", "{", "StringBuilder",...
Generate the formatted task help. @param desc the description NLS key @param usage the usage NLS key @param optionKeyPrefix the option name NLS key prefix @param optionDescPrefix the option description NLS key prefix @param addonKey an addon NLS key prefix @param footer a raw (already translated) String to append to t...
[ "Generate", "the", "formatted", "task", "help", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webserver.plugin.utility/src/com/ibm/ws/webserver/plugin/utility/tasks/BasePluginConfigCommandTask.java#L293-L337
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.getDestination
public String getDestination() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getDestination"); SibTr.exit(tc, "getDestination", destination); } return destination; }
java
public String getDestination() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getDestination"); SibTr.exit(tc, "getDestination", destination); } return destination; }
[ "public", "String", "getDestination", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getDestination\"", ")", ";", "SibTr", ".", "exit", "(", "tc", ",", "\"getDestination\"", ",", "de...
Returns the destination. @return String
[ "Returns", "the", "destination", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L91-L100
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.getSelector
public String getSelector() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getSelector"); SibTr.exit(tc, "getSelector", selector); } return selector; }
java
public String getSelector() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getSelector"); SibTr.exit(tc, "getSelector", selector); } return selector; }
[ "public", "String", "getSelector", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getSelector\"", ")", ";", "SibTr", ".", "exit", "(", "tc", ",", "\"getSelector\"", ",", "selector", ...
Returns the selector. @return String
[ "Returns", "the", "selector", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L106-L115
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java
SubscriptionDefinitionImpl.getSelectorDomain
public int getSelectorDomain() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getSelectorDomain"); SibTr.exit(tc, "getSelectorDomain", new Integer(selectorDomain)); } return selectorDomain; }
java
public int getSelectorDomain() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getSelectorDomain"); SibTr.exit(tc, "getSelectorDomain", new Integer(selectorDomain)); } return selectorDomain; }
[ "public", "int", "getSelectorDomain", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getSelectorDomain\"", ")", ";", "SibTr", ".", "exit", "(", "tc", ",", "\"getSelectorDomain\"", ",",...
Returns the messaging domain in which the selector was sspecified. @return int
[ "Returns", "the", "messaging", "domain", "in", "which", "the", "selector", "was", "sspecified", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SubscriptionDefinitionImpl.java#L121-L130
train