id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
69,600 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceImpl.java | TraceImpl.event | public final void event(Class sourceClass,
String methodName,
Throwable throwable) {
internalEvent(null,
sourceClass,
methodName,
throwable);
} | java | public final void event(Class sourceClass,
String methodName,
Throwable throwable) {
internalEvent(null,
sourceClass,
methodName,
throwable);
} | [
"public",
"final",
"void",
"event",
"(",
"Class",
"sourceClass",
",",
"String",
"methodName",
",",
"Throwable",
"throwable",
")",
"{",
"internalEvent",
"(",
"null",
",",
"sourceClass",
",",
"methodName",
",",
"throwable",
")",
";",
"}"
] | Event tracing when a throwable is caught in a static class.
@param sourceClass The type of class which called this method
@param methodName The method where the event took place
@param throwable The exception to trace | [
"Event",
"tracing",
"when",
"a",
"throwable",
"is",
"caught",
"in",
"a",
"static",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceImpl.java#L747-L754 |
69,601 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceImpl.java | TraceImpl.event | public final void event(Object source,
Class sourceClass,
String methodName,
Throwable throwable) {
internalEvent(source,
sourceClass,
methodName,
throwable);
... | java | public final void event(Object source,
Class sourceClass,
String methodName,
Throwable throwable) {
internalEvent(source,
sourceClass,
methodName,
throwable);
... | [
"public",
"final",
"void",
"event",
"(",
"Object",
"source",
",",
"Class",
"sourceClass",
",",
"String",
"methodName",
",",
"Throwable",
"throwable",
")",
"{",
"internalEvent",
"(",
"source",
",",
"sourceClass",
",",
"methodName",
",",
"throwable",
")",
";",
... | Event tracing.
@param source The class instance which called this method
@param sourceClass The type of class which called this method
@param methodName The method where the event took place
@param throwable The exception to trace | [
"Event",
"tracing",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceImpl.java#L764-L772 |
69,602 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceImpl.java | TraceImpl.internalEvent | private final void internalEvent(Object source,
Class sourceClass,
String methodName,
Throwable throwable) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append(methodName);
... | java | private final void internalEvent(Object source,
Class sourceClass,
String methodName,
Throwable throwable) {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append(methodName);
... | [
"private",
"final",
"void",
"internalEvent",
"(",
"Object",
"source",
",",
"Class",
"sourceClass",
",",
"String",
"methodName",
",",
"Throwable",
"throwable",
")",
"{",
"StringBuffer",
"stringBuffer",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"stringBuffer",
".... | Internal implementation of event tracing.
@param source The class instance which called this method
@param sourceClass The type of class which called this method
@param methodName The method where the event took place
@param throwable The exception to trace | [
"Internal",
"implementation",
"of",
"event",
"tracing",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceImpl.java#L782-L824 |
69,603 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceImpl.java | TraceImpl.info | public final void info(Class sourceClass,
String methodName,
String messageIdentifier,
Object object) {
internalInfo(null,
sourceClass,
methodName,
messageIdentifier,
... | java | public final void info(Class sourceClass,
String methodName,
String messageIdentifier,
Object object) {
internalInfo(null,
sourceClass,
methodName,
messageIdentifier,
... | [
"public",
"final",
"void",
"info",
"(",
"Class",
"sourceClass",
",",
"String",
"methodName",
",",
"String",
"messageIdentifier",
",",
"Object",
"object",
")",
"{",
"internalInfo",
"(",
"null",
",",
"sourceClass",
",",
"methodName",
",",
"messageIdentifier",
",",... | Method information tracing for static objects.
@param Class of the static object making the trace call.
@param String name of the method being entered.
@param String identifying the message.
@param Object to be inserted into the message. | [
"Method",
"information",
"tracing",
"for",
"static",
"objects",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceImpl.java#L834-L843 |
69,604 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceImpl.java | TraceImpl.warning | public final void warning(Class sourceClass,
String methodName,
String messageIdentifier,
Object object) {
internalWarning(null,
sourceClass,
methodName,
... | java | public final void warning(Class sourceClass,
String methodName,
String messageIdentifier,
Object object) {
internalWarning(null,
sourceClass,
methodName,
... | [
"public",
"final",
"void",
"warning",
"(",
"Class",
"sourceClass",
",",
"String",
"methodName",
",",
"String",
"messageIdentifier",
",",
"Object",
"object",
")",
"{",
"internalWarning",
"(",
"null",
",",
"sourceClass",
",",
"methodName",
",",
"messageIdentifier",
... | Method warning tracing for static objects.
@param Class of the static object making the trace call.
@param String name of the method being entered.
@param String identifying the message.
@param Object to be inserted into the message. | [
"Method",
"warning",
"tracing",
"for",
"static",
"objects",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/TraceImpl.java#L914-L923 |
69,605 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheConfig.java | CacheConfig.overrideCacheConfig | public void overrideCacheConfig(Properties properties) {
if (properties != null) {
FieldInitializer.initFromSystemProperties(this, properties);
}
processOffloadDirectory();
if (!this.enableServletSupport) {
this.disableTemplatesSupport = true;
}
} | java | public void overrideCacheConfig(Properties properties) {
if (properties != null) {
FieldInitializer.initFromSystemProperties(this, properties);
}
processOffloadDirectory();
if (!this.enableServletSupport) {
this.disableTemplatesSupport = true;
}
} | [
"public",
"void",
"overrideCacheConfig",
"(",
"Properties",
"properties",
")",
"{",
"if",
"(",
"properties",
"!=",
"null",
")",
"{",
"FieldInitializer",
".",
"initFromSystemProperties",
"(",
"this",
",",
"properties",
")",
";",
"}",
"processOffloadDirectory",
"(",... | used by com.ibm.ws.cache.spi.DistributedMapFactory | [
"used",
"by",
"com",
".",
"ibm",
".",
"ws",
".",
"cache",
".",
"spi",
".",
"DistributedMapFactory"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheConfig.java#L512-L520 |
69,606 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheConfig.java | CacheConfig.determineCacheProvider | public void determineCacheProvider() {
this.defaultProvider = true;
if (cacheProviderName.equals("")) {
cacheProviderName = CacheConfig.CACHE_PROVIDER_DYNACACHE;
}
if (!cacheProviderName.equals(CACHE_PROVIDER_DYNACACHE)) {
defaultProvider = false;
if (... | java | public void determineCacheProvider() {
this.defaultProvider = true;
if (cacheProviderName.equals("")) {
cacheProviderName = CacheConfig.CACHE_PROVIDER_DYNACACHE;
}
if (!cacheProviderName.equals(CACHE_PROVIDER_DYNACACHE)) {
defaultProvider = false;
if (... | [
"public",
"void",
"determineCacheProvider",
"(",
")",
"{",
"this",
".",
"defaultProvider",
"=",
"true",
";",
"if",
"(",
"cacheProviderName",
".",
"equals",
"(",
"\"\"",
")",
")",
"{",
"cacheProviderName",
"=",
"CacheConfig",
".",
"CACHE_PROVIDER_DYNACACHE",
";",... | Determines if default cache provider is being used and sets flag accordingly. | [
"Determines",
"if",
"default",
"cache",
"provider",
"is",
"being",
"used",
"and",
"sets",
"flag",
"accordingly",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheConfig.java#L893-L904 |
69,607 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheConfig.java | CacheConfig.resetProvider | public void resetProvider(String cacheName) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "Reverting to the default Dynacache cache provider");
}
this.cacheProviderName = CACHE_PROVIDER_DYNACACHE;
this.enableCacheReplication = false;
this.defaultProvider = true;
t... | java | public void resetProvider(String cacheName) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "Reverting to the default Dynacache cache provider");
}
this.cacheProviderName = CACHE_PROVIDER_DYNACACHE;
this.enableCacheReplication = false;
this.defaultProvider = true;
t... | [
"public",
"void",
"resetProvider",
"(",
"String",
"cacheName",
")",
"{",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"Reverting to the default Dynacache cache provider\"",
")",
";",
"}",
"this",
".",
"cac... | only called when the alternate cache provider could not create the cache.. we need to then revert to the default | [
"only",
"called",
"when",
"the",
"alternate",
"cache",
"provider",
"could",
"not",
"create",
"the",
"cache",
"..",
"we",
"need",
"to",
"then",
"revert",
"to",
"the",
"default"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheConfig.java#L913-L921 |
69,608 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheConfig.java | CacheConfig.restoreDynacacheProviderDefaults | void restoreDynacacheProviderDefaults() { // restore commonConfig to Dynacache defaults
if (restoreDynacacheDefaults) {
if (cacheProviderName != CacheConfig.CACHE_PROVIDER_DYNACACHE) {
cacheProviderName = CacheConfig.CACHE_PROVIDER_DYNACACHE;
enableCacheReplication = ... | java | void restoreDynacacheProviderDefaults() { // restore commonConfig to Dynacache defaults
if (restoreDynacacheDefaults) {
if (cacheProviderName != CacheConfig.CACHE_PROVIDER_DYNACACHE) {
cacheProviderName = CacheConfig.CACHE_PROVIDER_DYNACACHE;
enableCacheReplication = ... | [
"void",
"restoreDynacacheProviderDefaults",
"(",
")",
"{",
"// restore commonConfig to Dynacache defaults",
"if",
"(",
"restoreDynacacheDefaults",
")",
"{",
"if",
"(",
"cacheProviderName",
"!=",
"CacheConfig",
".",
"CACHE_PROVIDER_DYNACACHE",
")",
"{",
"cacheProviderName",
... | This method reverts the common configuration template for all cache instances to use Dynaache defaults. This
method only comes into play when ObjectGrid is configured as the cache provider for the default cache. | [
"This",
"method",
"reverts",
"the",
"common",
"configuration",
"template",
"for",
"all",
"cache",
"instances",
"to",
"use",
"Dynaache",
"defaults",
".",
"This",
"method",
"only",
"comes",
"into",
"play",
"when",
"ObjectGrid",
"is",
"configured",
"as",
"the",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheConfig.java#L927-L937 |
69,609 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/CustomLogProperties.java | CustomLogProperties.pluginId | public String pluginId() {
if (tc.isEntryEnabled())
Tr.entry(tc, "pluginId", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "pluginId", _pluginId);
return _pluginId;
} | java | public String pluginId() {
if (tc.isEntryEnabled())
Tr.entry(tc, "pluginId", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "pluginId", _pluginId);
return _pluginId;
} | [
"public",
"String",
"pluginId",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"pluginId\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"ex... | Returns the pluginId associated with this type of log
@return int eclipse plugin id | [
"Returns",
"the",
"pluginId",
"associated",
"with",
"this",
"type",
"of",
"log"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/CustomLogProperties.java#L165-L171 |
69,610 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/CustomLogProperties.java | CustomLogProperties.properties | public Properties properties() {
if (tc.isEntryEnabled())
Tr.entry(tc, "propertis", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "properties", _props);
return _props;
} | java | public Properties properties() {
if (tc.isEntryEnabled())
Tr.entry(tc, "propertis", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "properties", _props);
return _props;
} | [
"public",
"Properties",
"properties",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"propertis\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
"."... | Returns the set of properties associated with this log implementation
@return Properties custom properties associated with this log implementation | [
"Returns",
"the",
"set",
"of",
"properties",
"associated",
"with",
"this",
"log",
"implementation"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/CustomLogProperties.java#L181-L187 |
69,611 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/CustomLogProperties.java | CustomLogProperties.resourceFactory | public ResourceFactory resourceFactory() {
if (tc.isEntryEnabled())
Tr.entry(tc, "resourceFactory", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "resourceFactory", _resourceFactory);
return _resourceFactory;
} | java | public ResourceFactory resourceFactory() {
if (tc.isEntryEnabled())
Tr.entry(tc, "resourceFactory", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "resourceFactory", _resourceFactory);
return _resourceFactory;
} | [
"public",
"ResourceFactory",
"resourceFactory",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"resourceFactory\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")... | Returns the Resource Factory associated with this log
implementation
@return ResourceFactory associated with this log
implementation | [
"Returns",
"the",
"Resource",
"Factory",
"associated",
"with",
"this",
"log",
"implementation"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/CustomLogProperties.java#L267-L273 |
69,612 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/WebContainer.java | WebContainer.loadCipherToBit | protected void loadCipherToBit() {
boolean keySizeFromCipherMap =
Boolean.valueOf(WebContainer.getWebContainerProperties().getProperty("com.ibm.ws.webcontainer.keysizefromciphermap", "true")).booleanValue();
//721610
if (keySizeFromCipherMap) {
this.getKeySize... | java | protected void loadCipherToBit() {
boolean keySizeFromCipherMap =
Boolean.valueOf(WebContainer.getWebContainerProperties().getProperty("com.ibm.ws.webcontainer.keysizefromciphermap", "true")).booleanValue();
//721610
if (keySizeFromCipherMap) {
this.getKeySize... | [
"protected",
"void",
"loadCipherToBit",
"(",
")",
"{",
"boolean",
"keySizeFromCipherMap",
"=",
"Boolean",
".",
"valueOf",
"(",
"WebContainer",
".",
"getWebContainerProperties",
"(",
")",
".",
"getProperty",
"(",
"\"com.ibm.ws.webcontainer.keysizefromciphermap\"",
",",
"... | 112102 - added method below to fill the cipher to bit size table | [
"112102",
"-",
"added",
"method",
"below",
"to",
"fill",
"the",
"cipher",
"to",
"bit",
"size",
"table"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/WebContainer.java#L396-L418 |
69,613 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/WebContainer.java | WebContainer.getVirtualHost | public VirtualHost getVirtualHost(String targetHost) throws WebAppHostNotFoundException {
Iterator i = requestMapper.targetMappings();
while (i.hasNext()) {
RequestProcessor rp = (RequestProcessor) i.next();
if (rp instanceof VirtualHost) {
VirtualHost vHost = (V... | java | public VirtualHost getVirtualHost(String targetHost) throws WebAppHostNotFoundException {
Iterator i = requestMapper.targetMappings();
while (i.hasNext()) {
RequestProcessor rp = (RequestProcessor) i.next();
if (rp instanceof VirtualHost) {
VirtualHost vHost = (V... | [
"public",
"VirtualHost",
"getVirtualHost",
"(",
"String",
"targetHost",
")",
"throws",
"WebAppHostNotFoundException",
"{",
"Iterator",
"i",
"=",
"requestMapper",
".",
"targetMappings",
"(",
")",
";",
"while",
"(",
"i",
".",
"hasNext",
"(",
")",
")",
"{",
"Requ... | Method getVirtualHost. Returns null if the input name does not
match any configured host.
@param targetHost
@return VirtualHost
This method is not to be used in any request processing as it
is not optimized for performance
@throws WebAppHostNotFoundException | [
"Method",
"getVirtualHost",
".",
"Returns",
"null",
"if",
"the",
"input",
"name",
"does",
"not",
"match",
"any",
"configured",
"host",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/WebContainer.java#L562-L575 |
69,614 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/WebContainer.java | WebContainer.removeExtraPathInfo | private PathInfoHelper removeExtraPathInfo(String pathInfo) {
if (pathInfo == null)
return null;
int semicolon = pathInfo.indexOf(';');
if (semicolon != -1) {
String tmpPathInfo = pathInfo.substring(0, semicolon);
String extraPathInfo = pathInfo.substring(sem... | java | private PathInfoHelper removeExtraPathInfo(String pathInfo) {
if (pathInfo == null)
return null;
int semicolon = pathInfo.indexOf(';');
if (semicolon != -1) {
String tmpPathInfo = pathInfo.substring(0, semicolon);
String extraPathInfo = pathInfo.substring(sem... | [
"private",
"PathInfoHelper",
"removeExtraPathInfo",
"(",
"String",
"pathInfo",
")",
"{",
"if",
"(",
"pathInfo",
"==",
"null",
")",
"return",
"null",
";",
"int",
"semicolon",
"=",
"pathInfo",
".",
"indexOf",
"(",
"'",
"'",
")",
";",
"if",
"(",
"semicolon",
... | begin 272738 Duplicate CacheServletWrappers when url-rewriting is enabled WAS.webcontainer | [
"begin",
"272738",
"Duplicate",
"CacheServletWrappers",
"when",
"url",
"-",
"rewriting",
"is",
"enabled",
"WAS",
".",
"webcontainer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/WebContainer.java#L1512-L1524 |
69,615 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/WebContainer.java | WebContainer.sendAppUnavailableException | public static void sendAppUnavailableException(HttpServletRequest req, HttpServletResponse res) throws IOException {
if ((req instanceof SRTServletRequest) && (res instanceof SRTServletResponse)) {
IRequest ireq = ((SRTServletRequest) req).getIRequest();
IResponse ires = ((SRTSe... | java | public static void sendAppUnavailableException(HttpServletRequest req, HttpServletResponse res) throws IOException {
if ((req instanceof SRTServletRequest) && (res instanceof SRTServletResponse)) {
IRequest ireq = ((SRTServletRequest) req).getIRequest();
IResponse ires = ((SRTSe... | [
"public",
"static",
"void",
"sendAppUnavailableException",
"(",
"HttpServletRequest",
"req",
",",
"HttpServletResponse",
"res",
")",
"throws",
"IOException",
"{",
"if",
"(",
"(",
"req",
"instanceof",
"SRTServletRequest",
")",
"&&",
"(",
"res",
"instanceof",
"SRTServ... | and throw a NPE because we couldn't get the application's configuration | [
"and",
"throw",
"a",
"NPE",
"because",
"we",
"couldn",
"t",
"get",
"the",
"application",
"s",
"configuration"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/WebContainer.java#L1570-L1577 |
69,616 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/WebContainer.java | WebContainer.sendUnavailableException | protected static void sendUnavailableException(IRequest req, IResponse res) throws IOException {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) //306998.15
logger.logp(Level.FINE, CLASS_NAME, "sendUnavailableException", "Inside sendUnavailableException");... | java | protected static void sendUnavailableException(IRequest req, IResponse res) throws IOException {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) //306998.15
logger.logp(Level.FINE, CLASS_NAME, "sendUnavailableException", "Inside sendUnavailableException");... | [
"protected",
"static",
"void",
"sendUnavailableException",
"(",
"IRequest",
"req",
",",
"IResponse",
"res",
")",
"throws",
"IOException",
"{",
"if",
"(",
"com",
".",
"ibm",
".",
"ejs",
".",
"ras",
".",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
... | 582053 change it to protected from private | [
"582053",
"change",
"it",
"to",
"protected",
"from",
"private"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/WebContainer.java#L1581-L1599 |
69,617 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java | MPJwtNoMpJwtConfig.MPJwtNoMpJwtConfig_notInWebXML_notInApp | @Test
public void MPJwtNoMpJwtConfig_notInWebXML_notInApp() throws Exception {
genericLoginConfigVariationTest(
MpJwtFatConstants.LOGINCONFIG_NOT_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT,
MpJwtFatConstants.LOGINCONFIG_NOT_IN_... | java | @Test
public void MPJwtNoMpJwtConfig_notInWebXML_notInApp() throws Exception {
genericLoginConfigVariationTest(
MpJwtFatConstants.LOGINCONFIG_NOT_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT,
MpJwtFatConstants.LOGINCONFIG_NOT_IN_... | [
"@",
"Test",
"public",
"void",
"MPJwtNoMpJwtConfig_notInWebXML_notInApp",
"(",
")",
"throws",
"Exception",
"{",
"genericLoginConfigVariationTest",
"(",
"MpJwtFatConstants",
".",
"LOGINCONFIG_NOT_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT",
",",
"MpJwtFatConstants",
".",
"LOGINCON... | login-config does NOT exist in web.xml
login-config does NOT exist in the app
the mpJwt feature is NOT enabled
We should receive a 401 status in an exception
@throws Exception | [
"login",
"-",
"config",
"does",
"NOT",
"exist",
"in",
"web",
".",
"xml",
"login",
"-",
"config",
"does",
"NOT",
"exist",
"in",
"the",
"app",
"the",
"mpJwt",
"feature",
"is",
"NOT",
"enabled",
"We",
"should",
"receive",
"a",
"401",
"status",
"in",
"an",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java#L53-L62 |
69,618 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java | MPJwtNoMpJwtConfig.MPJwtNoMpJwtConfig_notInWebXML_basicInApp | @Test
public void MPJwtNoMpJwtConfig_notInWebXML_basicInApp() throws Exception {
genericLoginConfigVariationTest(
MpJwtFatConstants.LOGINCONFIG_NOT_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT,
MpJwtFatConstants.LOGINCONFIG_NOT... | java | @Test
public void MPJwtNoMpJwtConfig_notInWebXML_basicInApp() throws Exception {
genericLoginConfigVariationTest(
MpJwtFatConstants.LOGINCONFIG_NOT_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT,
MpJwtFatConstants.LOGINCONFIG_NOT... | [
"@",
"Test",
"public",
"void",
"MPJwtNoMpJwtConfig_notInWebXML_basicInApp",
"(",
")",
"throws",
"Exception",
"{",
"genericLoginConfigVariationTest",
"(",
"MpJwtFatConstants",
".",
"LOGINCONFIG_NOT_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT",
",",
"MpJwtFatConstants",
".",
"LOGI... | login-config does NOT exist in web.xml
login-config does exist in the app, but is set to BASIC
the mpJwt feature is NOT enabled
We should receive a 401 status in an exception
@throws Exception | [
"login",
"-",
"config",
"does",
"NOT",
"exist",
"in",
"web",
".",
"xml",
"login",
"-",
"config",
"does",
"exist",
"in",
"the",
"app",
"but",
"is",
"set",
"to",
"BASIC",
"the",
"mpJwt",
"feature",
"is",
"NOT",
"enabled",
"We",
"should",
"receive",
"a",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java#L73-L82 |
69,619 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java | MPJwtNoMpJwtConfig.MPJwtNoMpJwtConfig_formLoginInWebXML_notInApp | @Test
public void MPJwtNoMpJwtConfig_formLoginInWebXML_notInApp() throws Exception {
genericLoginConfigFormLoginVariationTest(
MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT,
... | java | @Test
public void MPJwtNoMpJwtConfig_formLoginInWebXML_notInApp() throws Exception {
genericLoginConfigFormLoginVariationTest(
MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT,
... | [
"@",
"Test",
"public",
"void",
"MPJwtNoMpJwtConfig_formLoginInWebXML_notInApp",
"(",
")",
"throws",
"Exception",
"{",
"genericLoginConfigFormLoginVariationTest",
"(",
"MpJwtFatConstants",
".",
"LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT",
",",
"MpJwtFatConstant... | login-config does exist in web.xml, but is set to FORM_LOGIN
login-config does NOT exist in the app
the mpJwt feature is NOT enabled
We should use FORM_LOGIN
@throws Exception | [
"login",
"-",
"config",
"does",
"exist",
"in",
"web",
".",
"xml",
"but",
"is",
"set",
"to",
"FORM_LOGIN",
"login",
"-",
"config",
"does",
"NOT",
"exist",
"in",
"the",
"app",
"the",
"mpJwt",
"feature",
"is",
"NOT",
"enabled",
"We",
"should",
"use",
"FOR... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java#L113-L122 |
69,620 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java | MPJwtNoMpJwtConfig.MPJwtNoMpJwtConfig_formLoginInWebXML_basicInApp | @Test
public void MPJwtNoMpJwtConfig_formLoginInWebXML_basicInApp() throws Exception {
genericLoginConfigFormLoginVariationTest(
MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT,
... | java | @Test
public void MPJwtNoMpJwtConfig_formLoginInWebXML_basicInApp() throws Exception {
genericLoginConfigFormLoginVariationTest(
MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT,
... | [
"@",
"Test",
"public",
"void",
"MPJwtNoMpJwtConfig_formLoginInWebXML_basicInApp",
"(",
")",
"throws",
"Exception",
"{",
"genericLoginConfigFormLoginVariationTest",
"(",
"MpJwtFatConstants",
".",
"LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT",
",",
"MpJwtFatCons... | login-config does exist in web.xml, but is set to FORM_LOGIN
login-config does NOT exist in the app, but is set to BASIC
the mpJwt feature is NOT enabled
We should use FORM_LOGIN
@throws Exception | [
"login",
"-",
"config",
"does",
"exist",
"in",
"web",
".",
"xml",
"but",
"is",
"set",
"to",
"FORM_LOGIN",
"login",
"-",
"config",
"does",
"NOT",
"exist",
"in",
"the",
"app",
"but",
"is",
"set",
"to",
"BASIC",
"the",
"mpJwt",
"feature",
"is",
"NOT",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java#L133-L142 |
69,621 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java | MPJwtNoMpJwtConfig.MPJwtNoMpJwtConfig_formLoginInWebXML_mpJwtInApp | @Test
public void MPJwtNoMpJwtConfig_formLoginInWebXML_mpJwtInApp() throws Exception {
genericLoginConfigFormLoginVariationTest(
MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_MP_JWT_IN_APP_ROOT_CONTEXT,
... | java | @Test
public void MPJwtNoMpJwtConfig_formLoginInWebXML_mpJwtInApp() throws Exception {
genericLoginConfigFormLoginVariationTest(
MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_MP_JWT_IN_APP_ROOT_CONTEXT,
... | [
"@",
"Test",
"public",
"void",
"MPJwtNoMpJwtConfig_formLoginInWebXML_mpJwtInApp",
"(",
")",
"throws",
"Exception",
"{",
"genericLoginConfigFormLoginVariationTest",
"(",
"MpJwtFatConstants",
".",
"LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_MP_JWT_IN_APP_ROOT_CONTEXT",
",",
"MpJwtFatCon... | login-config does exist in web.xml, but is set to FORM_LOGIN
login-config does exist in the app and is set to MP-JWT
the mpJwt feature is NOT enabled
We should use FORM_LOGIN
@throws Exception | [
"login",
"-",
"config",
"does",
"exist",
"in",
"web",
".",
"xml",
"but",
"is",
"set",
"to",
"FORM_LOGIN",
"login",
"-",
"config",
"does",
"exist",
"in",
"the",
"app",
"and",
"is",
"set",
"to",
"MP",
"-",
"JWT",
"the",
"mpJwt",
"feature",
"is",
"NOT",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java#L153-L162 |
69,622 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java | MPJwtNoMpJwtConfig.MPJwtNoMpJwtConfig_mpJwtInWebXML_notInApp | @Test
public void MPJwtNoMpJwtConfig_mpJwtInWebXML_notInApp() throws Exception {
genericLoginConfigVariationTest(
MpJwtFatConstants.LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT,
MpJwtFatConstants.LOGINCONFIG_MP... | java | @Test
public void MPJwtNoMpJwtConfig_mpJwtInWebXML_notInApp() throws Exception {
genericLoginConfigVariationTest(
MpJwtFatConstants.LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT,
MpJwtFatConstants.LOGINCONFIG_MP... | [
"@",
"Test",
"public",
"void",
"MPJwtNoMpJwtConfig_mpJwtInWebXML_notInApp",
"(",
")",
"throws",
"Exception",
"{",
"genericLoginConfigVariationTest",
"(",
"MpJwtFatConstants",
".",
"LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT",
",",
"MpJwtFatConstants",
".",
"LOG... | login-config does exist in web.xml, and is set to MP-JWT
login-config does NOT exist in the app
the mpJwt feature is NOT enabled
We should receive a 401 status in an exception
@throws Exception | [
"login",
"-",
"config",
"does",
"exist",
"in",
"web",
".",
"xml",
"and",
"is",
"set",
"to",
"MP",
"-",
"JWT",
"login",
"-",
"config",
"does",
"NOT",
"exist",
"in",
"the",
"app",
"the",
"mpJwt",
"feature",
"is",
"NOT",
"enabled",
"We",
"should",
"rece... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java#L173-L182 |
69,623 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java | MPJwtNoMpJwtConfig.MPJwtNoMpJwtConfig_mpJwtInWebXML_basicInApp | @Test
public void MPJwtNoMpJwtConfig_mpJwtInWebXML_basicInApp() throws Exception {
genericLoginConfigVariationTest(
MpJwtFatConstants.LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT,
MpJwtFatConstants.LOGINCONFIG... | java | @Test
public void MPJwtNoMpJwtConfig_mpJwtInWebXML_basicInApp() throws Exception {
genericLoginConfigVariationTest(
MpJwtFatConstants.LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT,
MpJwtFatConstants.LOGINCONFIG... | [
"@",
"Test",
"public",
"void",
"MPJwtNoMpJwtConfig_mpJwtInWebXML_basicInApp",
"(",
")",
"throws",
"Exception",
"{",
"genericLoginConfigVariationTest",
"(",
"MpJwtFatConstants",
".",
"LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT",
",",
"MpJwtFatConstants",
".",
... | login-config does exist in web.xml, and is set to MP-JWT
login-config does exist in the app, but is set to BASIC
the mpJwt feature is NOT enabled
We should receive a 401 status in an exception
@throws Exception | [
"login",
"-",
"config",
"does",
"exist",
"in",
"web",
".",
"xml",
"and",
"is",
"set",
"to",
"MP",
"-",
"JWT",
"login",
"-",
"config",
"does",
"exist",
"in",
"the",
"app",
"but",
"is",
"set",
"to",
"BASIC",
"the",
"mpJwt",
"feature",
"is",
"NOT",
"e... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java#L194-L202 |
69,624 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java | MPJwtNoMpJwtConfig.MPJwtNoMpJwtConfig_mpJwtInWebXML_mpJwtInApp | @Mode(TestMode.LITE)
@Test
public void MPJwtNoMpJwtConfig_mpJwtInWebXML_mpJwtInApp() throws Exception {
genericLoginConfigVariationTest(
MpJwtFatConstants.LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_MP_JWT_IN_APP_ROOT_CONTEXT,
MpJ... | java | @Mode(TestMode.LITE)
@Test
public void MPJwtNoMpJwtConfig_mpJwtInWebXML_mpJwtInApp() throws Exception {
genericLoginConfigVariationTest(
MpJwtFatConstants.LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_MP_JWT_IN_APP_ROOT_CONTEXT,
MpJ... | [
"@",
"Mode",
"(",
"TestMode",
".",
"LITE",
")",
"@",
"Test",
"public",
"void",
"MPJwtNoMpJwtConfig_mpJwtInWebXML_mpJwtInApp",
"(",
")",
"throws",
"Exception",
"{",
"genericLoginConfigVariationTest",
"(",
"MpJwtFatConstants",
".",
"LOGINCONFIG_MP_JWT_IN_WEB_XML_SERVLET_MP_JW... | login-config does exist in web.xml, and is set to MP-JWT
login-config does exist in the app, and is set to MP-JWT
the mpJwt feature is NOT enabled
We should receive a 401 status in an exception
@throws Exception | [
"login",
"-",
"config",
"does",
"exist",
"in",
"web",
".",
"xml",
"and",
"is",
"set",
"to",
"MP",
"-",
"JWT",
"login",
"-",
"config",
"does",
"exist",
"in",
"the",
"app",
"and",
"is",
"set",
"to",
"MP",
"-",
"JWT",
"the",
"mpJwt",
"feature",
"is",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/MPJwtNoMpJwtConfig.java#L213-L222 |
69,625 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsTopicImpl.java | JmsTopicImpl.setTopicName | @Override
public void setTopicName(String tName) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTopicName", tName);
setDestDiscrim(tName);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java | @Override
public void setTopicName(String tName) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTopicName", tName);
setDestDiscrim(tName);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | [
"@",
"Override",
"public",
"void",
"setTopicName",
"(",
"String",
"tName",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
... | Set the topicName.
@param tName The name of the topic
@throws JMSException If setDestDiscrim throws one.
@see JmsDestinationImpl#setDestDiscrim | [
"Set",
"the",
"topicName",
"."
] | 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/JmsTopicImpl.java#L90-L97 |
69,626 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsTopicImpl.java | JmsTopicImpl.getTopicSpace | @Override
public String getTopicSpace() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getTopicSpace");
String result = getDestName();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr... | java | @Override
public String getTopicSpace() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getTopicSpace");
String result = getDestName();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr... | [
"@",
"Override",
"public",
"String",
"getTopicSpace",
"(",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc... | Get the topicSpace.
@return the topicSpace
@see JmsDestinationImpl#getDestName | [
"Get",
"the",
"topicSpace",
"."
] | 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/JmsTopicImpl.java#L105-L113 |
69,627 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsTopicImpl.java | JmsTopicImpl.setTopicSpace | @Override
public void setTopicSpace(String tSpace) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTopicSpace", tSpace);
setDestName(tSpace);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java | @Override
public void setTopicSpace(String tSpace) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTopicSpace", tSpace);
setDestName(tSpace);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | [
"@",
"Override",
"public",
"void",
"setTopicSpace",
"(",
"String",
"tSpace",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
... | Set the topicSpace
@param tSpace
@throws JMSException
@see JmsDestinationImpl#setDestName | [
"Set",
"the",
"topicSpace"
] | 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/JmsTopicImpl.java#L122-L129 |
69,628 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/ServerConnectionManagerImpl.java | ServerConnectionManagerImpl.initialise | public static void initialise(AcceptListenerFactory _acceptListenerFactory) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initalise");
acceptListenerFactory = _acceptListenerFactory;
// Create the maintainer of the configuration.
Framew... | java | public static void initialise(AcceptListenerFactory _acceptListenerFactory) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initalise");
acceptListenerFactory = _acceptListenerFactory;
// Create the maintainer of the configuration.
Framew... | [
"public",
"static",
"void",
"initialise",
"(",
"AcceptListenerFactory",
"_acceptListenerFactory",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
"... | Initialises the server connection manager by getting hold of the framework.
@param _acceptListenerFactory
@see com.ibm.ws.sib.jfapchannel.ServerConnectionManager#initialise(com.ibm.ws.sib.jfapchannel.AcceptListenerFactory) | [
"Initialises",
"the",
"server",
"connection",
"manager",
"by",
"getting",
"hold",
"of",
"the",
"framework",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/ServerConnectionManagerImpl.java#L131-L150 |
69,629 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/ServerConnectionManagerImpl.java | ServerConnectionManagerImpl.initialiseAcceptListenerFactory | public static void initialiseAcceptListenerFactory(AcceptListenerFactory _acceptListenerFactory) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initialiseAcceptListenerFactory", _acceptListenerFactory);
acceptListenerFactory = _acceptListenerFactory;
... | java | public static void initialiseAcceptListenerFactory(AcceptListenerFactory _acceptListenerFactory) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initialiseAcceptListenerFactory", _acceptListenerFactory);
acceptListenerFactory = _acceptListenerFactory;
... | [
"public",
"static",
"void",
"initialiseAcceptListenerFactory",
"(",
"AcceptListenerFactory",
"_acceptListenerFactory",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry... | Set the AcceptListenerFactory.
@param _acceptListenerFactory | [
"Set",
"the",
"AcceptListenerFactory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/ServerConnectionManagerImpl.java#L157-L165 |
69,630 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/ServerConnectionManagerImpl.java | ServerConnectionManagerImpl.getActiveOutboundMEtoMEConversations | @Override
public List getActiveOutboundMEtoMEConversations() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getActiveOutboundMEtoMEConversations");
List convs = null;
if (connectionTracker != null) {
convs = connectionTracke... | java | @Override
public List getActiveOutboundMEtoMEConversations() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getActiveOutboundMEtoMEConversations");
List convs = null;
if (connectionTracker != null) {
convs = connectionTracke... | [
"@",
"Override",
"public",
"List",
"getActiveOutboundMEtoMEConversations",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",... | Obtains a list of active outbound ME to ME conversations in this JVM.
@return a list of Conversations | [
"Obtains",
"a",
"list",
"of",
"active",
"outbound",
"ME",
"to",
"ME",
"conversations",
"in",
"this",
"JVM",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/ServerConnectionManagerImpl.java#L247-L260 |
69,631 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/InfoStoreImpl.java | InfoStoreImpl.open | @Override
public void open() throws InfoStoreException {
String methodName = "open";
try {
getClassSource().open();
} catch (ClassSource_Exception e) {
// defect 84235:we are generating multiple Warning/Error messages for each error due to each level reporting them.
... | java | @Override
public void open() throws InfoStoreException {
String methodName = "open";
try {
getClassSource().open();
} catch (ClassSource_Exception e) {
// defect 84235:we are generating multiple Warning/Error messages for each error due to each level reporting them.
... | [
"@",
"Override",
"public",
"void",
"open",
"(",
")",
"throws",
"InfoStoreException",
"{",
"String",
"methodName",
"=",
"\"open\"",
";",
"try",
"{",
"getClassSource",
"(",
")",
".",
"open",
"(",
")",
";",
"}",
"catch",
"(",
"ClassSource_Exception",
"e",
")"... | Open the InfoStore for processing. Primarily, this will open the ClassSources attached to this
InfoStore which will then allow classes to be accessed.
@throws InfoStoreException | [
"Open",
"the",
"InfoStore",
"for",
"processing",
".",
"Primarily",
"this",
"will",
"open",
"the",
"ClassSources",
"attached",
"to",
"this",
"InfoStore",
"which",
"will",
"then",
"allow",
"classes",
"to",
"be",
"accessed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/InfoStoreImpl.java#L86-L100 |
69,632 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/InfoStoreImpl.java | InfoStoreImpl.scanClass | public void scanClass(String className) throws InfoStoreException {
Object[] logParms;
if (tc.isDebugEnabled()) {
logParms = new Object[] { getHashText(), className };
Tr.debug(tc, MessageFormat.format("[ {0} ] Class [ {1} ] ENTER", logParms));
} else {
logPa... | java | public void scanClass(String className) throws InfoStoreException {
Object[] logParms;
if (tc.isDebugEnabled()) {
logParms = new Object[] { getHashText(), className };
Tr.debug(tc, MessageFormat.format("[ {0} ] Class [ {1} ] ENTER", logParms));
} else {
logPa... | [
"public",
"void",
"scanClass",
"(",
"String",
"className",
")",
"throws",
"InfoStoreException",
"{",
"Object",
"[",
"]",
"logParms",
";",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"logParms",
"=",
"new",
"Object",
"[",
"]",
"{",
"getHas... | Visitor helpers ... | [
"Visitor",
"helpers",
"..."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/InfoStoreImpl.java#L126-L150 |
69,633 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/InfoStoreImpl.java | InfoStoreImpl.getPackageInfo | @Override
public PackageInfoImpl getPackageInfo(String name) {
return getClassInfoCache().getPackageInfo(name, ClassInfoCache.DO_NOT_FORCE_PACKAGE);
} | java | @Override
public PackageInfoImpl getPackageInfo(String name) {
return getClassInfoCache().getPackageInfo(name, ClassInfoCache.DO_NOT_FORCE_PACKAGE);
} | [
"@",
"Override",
"public",
"PackageInfoImpl",
"getPackageInfo",
"(",
"String",
"name",
")",
"{",
"return",
"getClassInfoCache",
"(",
")",
".",
"getPackageInfo",
"(",
"name",
",",
"ClassInfoCache",
".",
"DO_NOT_FORCE_PACKAGE",
")",
";",
"}"
] | a package info, even if an error occurrs. | [
"a",
"package",
"info",
"even",
"if",
"an",
"error",
"occurrs",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/InfoStoreImpl.java#L325-L328 |
69,634 | OpenLiberty/open-liberty | dev/com.ibm.ws.management.security/src/com/ibm/ws/management/security/internal/AbstractManagementRole.java | AbstractManagementRole.updateBindings | private void updateBindings(Map<String, Object> props) {
// Process the user element
processProps(props, CFG_KEY_USER, users);
// Process the user-access-id element
processProps(props, CFG_KEY_USER_ACCESSID, users);
// Process the group element
processProps(props, CFG_KE... | java | private void updateBindings(Map<String, Object> props) {
// Process the user element
processProps(props, CFG_KEY_USER, users);
// Process the user-access-id element
processProps(props, CFG_KEY_USER_ACCESSID, users);
// Process the group element
processProps(props, CFG_KE... | [
"private",
"void",
"updateBindings",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"props",
")",
"{",
"// Process the user element",
"processProps",
"(",
"props",
",",
"CFG_KEY_USER",
",",
"users",
")",
";",
"// Process the user-access-id element",
"processProps",
... | Update the binding sets based on the properties from the configuration.
@param props | [
"Update",
"the",
"binding",
"sets",
"based",
"on",
"the",
"properties",
"from",
"the",
"configuration",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.management.security/src/com/ibm/ws/management/security/internal/AbstractManagementRole.java#L66-L76 |
69,635 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncChannelFuture.java | AsyncChannelFuture.cancel | public void cancel(Exception reason) {
// IMPROVEMENT: need to rework how syncs on the future.complete() work. We really should be
// syncing here, so we don't do the channel.cancel if the request is processing
// future.complete() on another thread at the same time. Should just do a quick
... | java | public void cancel(Exception reason) {
// IMPROVEMENT: need to rework how syncs on the future.complete() work. We really should be
// syncing here, so we don't do the channel.cancel if the request is processing
// future.complete() on another thread at the same time. Should just do a quick
... | [
"public",
"void",
"cancel",
"(",
"Exception",
"reason",
")",
"{",
"// IMPROVEMENT: need to rework how syncs on the future.complete() work. We really should be",
"// syncing here, so we don't do the channel.cancel if the request is processing",
"// future.complete() on another thread at the same ... | Attempts to cancel the operation represented by the AsyncFuture.
Cancellation will not succeed if the operation is already complete.
@param reason the object that will be thrown when the future results are retrieved. | [
"Attempts",
"to",
"cancel",
"the",
"operation",
"represented",
"by",
"the",
"AsyncFuture",
".",
"Cancellation",
"will",
"not",
"succeed",
"if",
"the",
"operation",
"is",
"already",
"complete",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncChannelFuture.java#L81-L109 |
69,636 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncChannelFuture.java | AsyncChannelFuture.fireCompletionActions | protected void fireCompletionActions() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "fireCompletionActions");
}
if (this.firstListener != null) {
ICompletionListener listenerToInvoke = this.firstListener;
// reset listener ... | java | protected void fireCompletionActions() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "fireCompletionActions");
}
if (this.firstListener != null) {
ICompletionListener listenerToInvoke = this.firstListener;
// reset listener ... | [
"protected",
"void",
"fireCompletionActions",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"fireCompletionActions\"",
")",
";",
... | Impl Assumes we are holding the completed sem lock | [
"Impl",
"Assumes",
"we",
"are",
"holding",
"the",
"completed",
"sem",
"lock"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncChannelFuture.java#L120-L140 |
69,637 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncChannelFuture.java | AsyncChannelFuture.throwException | protected void throwException() throws InterruptedException, IOException {
if (this.exception instanceof IOException) {
throw (IOException) this.exception;
}
if (this.exception instanceof InterruptedException) {
throw (InterruptedException) this.exception;
}
... | java | protected void throwException() throws InterruptedException, IOException {
if (this.exception instanceof IOException) {
throw (IOException) this.exception;
}
if (this.exception instanceof InterruptedException) {
throw (InterruptedException) this.exception;
}
... | [
"protected",
"void",
"throwException",
"(",
")",
"throws",
"InterruptedException",
",",
"IOException",
"{",
"if",
"(",
"this",
".",
"exception",
"instanceof",
"IOException",
")",
"{",
"throw",
"(",
"IOException",
")",
"this",
".",
"exception",
";",
"}",
"if",
... | Throws the receiver's exception in its correct class.
This assumes that the exception is not null.
@throws InterruptedException
@throws IOException | [
"Throws",
"the",
"receiver",
"s",
"exception",
"in",
"its",
"correct",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncChannelFuture.java#L150-L162 |
69,638 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/matchspace/utils/TraceImpl.java | TraceImpl.internalBytes | private void internalBytes(Object source, Class sourceClass, byte[] data, int start, int count)
{
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append(sourceClass.getName());
stringBuffer.append(" [");
if (source != null)
{
stringBuffer.append(sou... | java | private void internalBytes(Object source, Class sourceClass, byte[] data, int start, int count)
{
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append(sourceClass.getName());
stringBuffer.append(" [");
if (source != null)
{
stringBuffer.append(sou... | [
"private",
"void",
"internalBytes",
"(",
"Object",
"source",
",",
"Class",
"sourceClass",
",",
"byte",
"[",
"]",
"data",
",",
"int",
"start",
",",
"int",
"count",
")",
"{",
"StringBuffer",
"stringBuffer",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"stringB... | Internal implementation of byte data trace.
@param source
@param sourceClass
@param data
@param start
@param count | [
"Internal",
"implementation",
"of",
"byte",
"data",
"trace",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/matchspace/utils/TraceImpl.java#L198-L244 |
69,639 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.client/src/com/ibm/ws/security/client/internal/jaas/JAASClientConfigurationImpl.java | JAASClientConfigurationImpl.createAppConfigurationEntry | public AppConfigurationEntry createAppConfigurationEntry(JAASLoginModuleConfig loginModule, String loginContextEntryName) {
String loginModuleClassName = loginModule.getClassName();
LoginModuleControlFlag controlFlag = loginModule.getControlFlag();
Map<String, Object> options = new HashMap<Strin... | java | public AppConfigurationEntry createAppConfigurationEntry(JAASLoginModuleConfig loginModule, String loginContextEntryName) {
String loginModuleClassName = loginModule.getClassName();
LoginModuleControlFlag controlFlag = loginModule.getControlFlag();
Map<String, Object> options = new HashMap<Strin... | [
"public",
"AppConfigurationEntry",
"createAppConfigurationEntry",
"(",
"JAASLoginModuleConfig",
"loginModule",
",",
"String",
"loginContextEntryName",
")",
"{",
"String",
"loginModuleClassName",
"=",
"loginModule",
".",
"getClassName",
"(",
")",
";",
"LoginModuleControlFlag",... | Create an AppConfigurationEntry object for the given JAAS login module
@param loginModule the JAAS login module
@param loginContextEntryName the JAAS login context entry name referencing the login module
@return the AppConfigurationEntry object
@throws IllegalArgumentException if loginModuleName is null, if LoginModul... | [
"Create",
"an",
"AppConfigurationEntry",
"object",
"for",
"the",
"given",
"JAAS",
"login",
"module"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.client/src/com/ibm/ws/security/client/internal/jaas/JAASClientConfigurationImpl.java#L122-L139 |
69,640 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/NonDelayedClassInfo.java | NonDelayedClassInfo.getAnnotations | @Override
public List<AnnotationInfoImpl> getAnnotations() {
if (annotations != null) {
return annotations;
}
// Several cases where superclasses contribute no annotations. In
// each of these cases case, simply re-use the declared annotations
// collection.
... | java | @Override
public List<AnnotationInfoImpl> getAnnotations() {
if (annotations != null) {
return annotations;
}
// Several cases where superclasses contribute no annotations. In
// each of these cases case, simply re-use the declared annotations
// collection.
... | [
"@",
"Override",
"public",
"List",
"<",
"AnnotationInfoImpl",
">",
"getAnnotations",
"(",
")",
"{",
"if",
"(",
"annotations",
"!=",
"null",
")",
"{",
"return",
"annotations",
";",
"}",
"// Several cases where superclasses contribute no annotations. In",
"// each of the... | declared + inherited | [
"declared",
"+",
"inherited"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/NonDelayedClassInfo.java#L368-L427 |
69,641 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BifurcatedConsumerSessionImpl.java | BifurcatedConsumerSessionImpl.checkNotClosed | private void checkNotClosed() throws SISessionUnavailableException
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "checkNotClosed");
// Check that the consumer session isn't closed
_consumerSession.checkNotClosed();
// Now check that this consumer hasn't closed.
synchronized (this)
{
... | java | private void checkNotClosed() throws SISessionUnavailableException
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "checkNotClosed");
// Check that the consumer session isn't closed
_consumerSession.checkNotClosed();
// Now check that this consumer hasn't closed.
synchronized (this)
{
... | [
"private",
"void",
"checkNotClosed",
"(",
")",
"throws",
"SISessionUnavailableException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"checkNotClosed\"",
")",
";",
"// Check that the consumer session isn't clo... | First check is to make sure that the original Consumer
hasn't been closed. Then check that this bifurcated consumer
session is not closed.
@throws SIObjectClosedException | [
"First",
"check",
"is",
"to",
"make",
"sure",
"that",
"the",
"original",
"Consumer",
"hasn",
"t",
"been",
"closed",
".",
"Then",
"check",
"that",
"this",
"bifurcated",
"consumer",
"session",
"is",
"not",
"closed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/BifurcatedConsumerSessionImpl.java#L319-L349 |
69,642 | OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/CacheSession.java | CacheSession.getSwappableData | @Override
public Map<Object, Object> getSwappableData() {
if (mSwappableData == null) {
mSwappableData = new ConcurrentHashMap<Object, Object>();
if (isNew()) {
//if this is a new session, then we have the updated app data
populatedAppData = true;
... | java | @Override
public Map<Object, Object> getSwappableData() {
if (mSwappableData == null) {
mSwappableData = new ConcurrentHashMap<Object, Object>();
if (isNew()) {
//if this is a new session, then we have the updated app data
populatedAppData = true;
... | [
"@",
"Override",
"public",
"Map",
"<",
"Object",
",",
"Object",
">",
"getSwappableData",
"(",
")",
"{",
"if",
"(",
"mSwappableData",
"==",
"null",
")",
"{",
"mSwappableData",
"=",
"new",
"ConcurrentHashMap",
"<",
"Object",
",",
"Object",
">",
"(",
")",
"... | This method is copied from DatabaseSession.getSwappableData.
@see com.ibm.ws.session.store.common.BackedSession#getSwappableData() | [
"This",
"method",
"is",
"copied",
"from",
"DatabaseSession",
".",
"getSwappableData",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/CacheSession.java#L100-L110 |
69,643 | OpenLiberty/open-liberty | dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/CacheSession.java | CacheSession.getSwappableListeners | @Override
public boolean getSwappableListeners(short requestedListener) {
short thisListenerFlag = getListenerFlag();
boolean rc = false;
// check session's listenrCnt to see if it has any of the type we want
// input listener is either BINDING or ACTIVATION, so if the session has bo... | java | @Override
public boolean getSwappableListeners(short requestedListener) {
short thisListenerFlag = getListenerFlag();
boolean rc = false;
// check session's listenrCnt to see if it has any of the type we want
// input listener is either BINDING or ACTIVATION, so if the session has bo... | [
"@",
"Override",
"public",
"boolean",
"getSwappableListeners",
"(",
"short",
"requestedListener",
")",
"{",
"short",
"thisListenerFlag",
"=",
"getListenerFlag",
"(",
")",
";",
"boolean",
"rc",
"=",
"false",
";",
"// check session's listenrCnt to see if it has any of the t... | Copied from DatabaseSession.getSwappableListeners.
Get the swappable listeners
Called to load session attributes if the session contains Activation or Binding listeners
Note, we always load ALL attributes here since we can't tell which are listeners until they
are loaded.
@see com.ibm.ws.session.store.common.BackedSes... | [
"Copied",
"from",
"DatabaseSession",
".",
"getSwappableListeners",
".",
"Get",
"the",
"swappable",
"listeners",
"Called",
"to",
"load",
"session",
"attributes",
"if",
"the",
"session",
"contains",
"Activation",
"or",
"Binding",
"listeners",
"Note",
"we",
"always",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session.cache/src/com/ibm/ws/session/store/cache/CacheSession.java#L121-L142 |
69,644 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.enlistResource | public boolean enlistResource(XAResource xaRes) throws RollbackException, SystemException, IllegalStateException {
if (tc.isEntryEnabled())
Tr.entry(tc, "enlistResource", xaRes);
// Determine if we are attempting to enlist a second resource within a transaction
// that can't support... | java | public boolean enlistResource(XAResource xaRes) throws RollbackException, SystemException, IllegalStateException {
if (tc.isEntryEnabled())
Tr.entry(tc, "enlistResource", xaRes);
// Determine if we are attempting to enlist a second resource within a transaction
// that can't support... | [
"public",
"boolean",
"enlistResource",
"(",
"XAResource",
"xaRes",
")",
"throws",
"RollbackException",
",",
"SystemException",
",",
"IllegalStateException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"enli... | Attempts to add a one-Phase XA Resource to this unit of work.
@param xaRes The XAResource to add to this unit of work
@return true if the resource was added, false if not.
@throws RollbackException if enlistment fails
@throws SystemException if unexpected error occurs | [
"Attempts",
"to",
"add",
"a",
"one",
"-",
"Phase",
"XA",
"Resource",
"to",
"this",
"unit",
"of",
"work",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L247-L321 |
69,645 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.delistResource | protected boolean delistResource(XAResource xaRes, int flag) throws SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "delistResource", new Object[] { xaRes, Util.printFlag(flag) });
// get resource manager instance
JTAResourceBase jtaRes = (JTAResourceBase) getResourceTable()... | java | protected boolean delistResource(XAResource xaRes, int flag) throws SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "delistResource", new Object[] { xaRes, Util.printFlag(flag) });
// get resource manager instance
JTAResourceBase jtaRes = (JTAResourceBase) getResourceTable()... | [
"protected",
"boolean",
"delistResource",
"(",
"XAResource",
"xaRes",
",",
"int",
"flag",
")",
"throws",
"SystemException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"delistResource\"",
",",
"new",
"O... | Delist the specified resource from the transaction.
@param xaRes the XAResource to delist.
@param flag the XA flags to pass to the resource.
TMSUSPEND, TMFAIL or TMSUCCESS flag to xa_end
@throws SystemException if the resource is not successfully
disassociated from the transaction branch. | [
"Delist",
"the",
"specified",
"resource",
"from",
"the",
"transaction",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L557-L622 |
69,646 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.generateNewBranch | protected Xid generateNewBranch() {
if (tc.isEntryEnabled())
Tr.entry(tc, "generateNewBranch");
// Create a new Xid branch
final XidImpl result = new XidImpl(_txServiceXid, ++_branchCount);
if (tc.isEntryEnabled())
Tr.exit(tc, "generateNewBranch", result);
... | java | protected Xid generateNewBranch() {
if (tc.isEntryEnabled())
Tr.entry(tc, "generateNewBranch");
// Create a new Xid branch
final XidImpl result = new XidImpl(_txServiceXid, ++_branchCount);
if (tc.isEntryEnabled())
Tr.exit(tc, "generateNewBranch", result);
... | [
"protected",
"Xid",
"generateNewBranch",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"generateNewBranch\"",
")",
";",
"// Create a new Xid branch",
"final",
"XidImpl",
"result",
"=",
"new",
"Xid... | Generates a new XidImpl to represent a new branch of this
transaction.
@return A new XidImpl representing a new branch of this transaction. | [
"Generates",
"a",
"new",
"XidImpl",
"to",
"represent",
"a",
"new",
"branch",
"of",
"this",
"transaction",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L630-L640 |
69,647 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.startRes | protected void startRes(JTAResource resource) throws RollbackException, SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "startRes", new Object[] { this, resource });
try {
resource.start();
} catch (XAException xae) {
_errorCode = xae.errorCode; // Sa... | java | protected void startRes(JTAResource resource) throws RollbackException, SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "startRes", new Object[] { this, resource });
try {
resource.start();
} catch (XAException xae) {
_errorCode = xae.errorCode; // Sa... | [
"protected",
"void",
"startRes",
"(",
"JTAResource",
"resource",
")",
"throws",
"RollbackException",
",",
"SystemException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"startRes\"",
",",
"new",
"Object",... | Starts association of the resource with the current transaction and if required
adds a reference to a Resource object to the list in the registered state.
This method is intended to be used for registering local resources.
@param resource
@return | [
"Starts",
"association",
"of",
"the",
"resource",
"with",
"the",
"current",
"transaction",
"and",
"if",
"required",
"adds",
"a",
"reference",
"to",
"a",
"Resource",
"object",
"to",
"the",
"list",
"in",
"the",
"registered",
"state",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L830-L889 |
69,648 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.numRegistered | public int numRegistered() {
final int result = _resourceObjects.size();
if (tc.isDebugEnabled())
Tr.debug(tc, "numRegistered", result);
return result;
} | java | public int numRegistered() {
final int result = _resourceObjects.size();
if (tc.isDebugEnabled())
Tr.debug(tc, "numRegistered", result);
return result;
} | [
"public",
"int",
"numRegistered",
"(",
")",
"{",
"final",
"int",
"result",
"=",
"_resourceObjects",
".",
"size",
"(",
")",
";",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"numRegistered\"",
",",
"result... | Returns the number of Resources currently in the list.
@return The number of registered Resources. | [
"Returns",
"the",
"number",
"of",
"Resources",
"currently",
"in",
"the",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L896-L902 |
69,649 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.distributeEnd | public boolean distributeEnd(int flags) {
if (tc.isEntryEnabled())
Tr.entry(tc, "distributeEnd", Util.printFlag(flags));
boolean result = true;
for (int i = _resourceObjects.size(); --i >= 0;) {
final JTAResource resource = _resourceObjects.get(i);
if (!sen... | java | public boolean distributeEnd(int flags) {
if (tc.isEntryEnabled())
Tr.entry(tc, "distributeEnd", Util.printFlag(flags));
boolean result = true;
for (int i = _resourceObjects.size(); --i >= 0;) {
final JTAResource resource = _resourceObjects.get(i);
if (!sen... | [
"public",
"boolean",
"distributeEnd",
"(",
"int",
"flags",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"distributeEnd\"",
",",
"Util",
".",
"printFlag",
"(",
"flags",
")",
")",
";",
"boolean",
... | Send end to all registered resources
@param flags
@return whether we managed to successfully end all the resources | [
"Send",
"end",
"to",
"all",
"registered",
"resources"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L911-L934 |
69,650 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.updateHeuristicState | private void updateHeuristicState(boolean commit) throws SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "updateHeuristicState", commit);
if (_transaction.isSubordinate()) {
// Get the current transaction state. Need to do this in case we are
// in recovery ... | java | private void updateHeuristicState(boolean commit) throws SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "updateHeuristicState", commit);
if (_transaction.isSubordinate()) {
// Get the current transaction state. Need to do this in case we are
// in recovery ... | [
"private",
"void",
"updateHeuristicState",
"(",
"boolean",
"commit",
")",
"throws",
"SystemException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"updateHeuristicState\"",
",",
"commit",
")",
";",
"if",
... | Possibly update the heuristic state of the transaction.
This is only required if this is a subordinate.
If we are a subordinate we need to update the state and log it for recovery.
@param commit - true if requested to commit, else false | [
"Possibly",
"update",
"the",
"heuristic",
"state",
"of",
"the",
"transaction",
".",
"This",
"is",
"only",
"required",
"if",
"this",
"is",
"a",
"subordinate",
".",
"If",
"we",
"are",
"a",
"subordinate",
"we",
"need",
"to",
"update",
"the",
"state",
"and",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L1768-L1791 |
69,651 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.distributeForget | public boolean distributeForget() throws SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "distributeForget", this);
boolean retryRequired = false; // indicates whether retry necessary
final int resourceCount = _resourceObjects.size();
// Browse through the participa... | java | public boolean distributeForget() throws SystemException {
if (tc.isEntryEnabled())
Tr.entry(tc, "distributeForget", this);
boolean retryRequired = false; // indicates whether retry necessary
final int resourceCount = _resourceObjects.size();
// Browse through the participa... | [
"public",
"boolean",
"distributeForget",
"(",
")",
"throws",
"SystemException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"distributeForget\"",
",",
"this",
")",
";",
"boolean",
"retryRequired",
"=",
... | Distributes forget messages to all Resources in
the appropriate state. Called during retry and mainline.
@return boolean value to indicate whether retries are necessary. | [
"Distributes",
"forget",
"messages",
"to",
"all",
"Resources",
"in",
"the",
"appropriate",
"state",
".",
"Called",
"during",
"retry",
"and",
"mainline",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L1799-L1838 |
69,652 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.forgetResource | protected boolean forgetResource(JTAResource resource) {
if (tc.isEntryEnabled())
Tr.entry(tc, "forgetResource", resource);
boolean result = false; // indicates whether retry necessary
boolean auditing = false;
try {
boolean informResource = true;
a... | java | protected boolean forgetResource(JTAResource resource) {
if (tc.isEntryEnabled())
Tr.entry(tc, "forgetResource", resource);
boolean result = false; // indicates whether retry necessary
boolean auditing = false;
try {
boolean informResource = true;
a... | [
"protected",
"boolean",
"forgetResource",
"(",
"JTAResource",
"resource",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"forgetResource\"",
",",
"resource",
")",
";",
"boolean",
"result",
"=",
"false... | Distribute forget flow to given resource.
Used internally when resource indicates a heuristic condition.
May result in retries if resource cannot be contacted.
@param resource - the resource to issue forget to
@param index - the index of this resource in the arrays
@return boolean to indicate whether retries are neces... | [
"Distribute",
"forget",
"flow",
"to",
"given",
"resource",
".",
"Used",
"internally",
"when",
"resource",
"indicates",
"a",
"heuristic",
"condition",
".",
"May",
"result",
"in",
"retries",
"if",
"resource",
"cannot",
"be",
"contacted",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L1850-L1949 |
69,653 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.distributeCommit | public void distributeCommit()
throws SystemException, HeuristicHazardException, HeuristicMixedException, HeuristicRollbackException {
if (tc.isEntryEnabled())
Tr.entry(tc, "distributeCommit");
final TransactionState ts = _transaction.getTransactionState();
ts.se... | java | public void distributeCommit()
throws SystemException, HeuristicHazardException, HeuristicMixedException, HeuristicRollbackException {
if (tc.isEntryEnabled())
Tr.entry(tc, "distributeCommit");
final TransactionState ts = _transaction.getTransactionState();
ts.se... | [
"public",
"void",
"distributeCommit",
"(",
")",
"throws",
"SystemException",
",",
"HeuristicHazardException",
",",
"HeuristicMixedException",
",",
"HeuristicRollbackException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"t... | Distributes commit messages to all Resources in the registered state. | [
"Distributes",
"commit",
"messages",
"to",
"all",
"Resources",
"in",
"the",
"registered",
"state",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L1955-L2004 |
69,654 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.destroyResources | public void destroyResources() {
if (tc.isEntryEnabled())
Tr.entry(tc, "destroyResources");
// Browse through the participants, processing them as appropriate
final ArrayList<JTAResource> resources = getResourceObjects();
for (JTAResource resource : resources) {
... | java | public void destroyResources() {
if (tc.isEntryEnabled())
Tr.entry(tc, "destroyResources");
// Browse through the participants, processing them as appropriate
final ArrayList<JTAResource> resources = getResourceObjects();
for (JTAResource resource : resources) {
... | [
"public",
"void",
"destroyResources",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"destroyResources\"",
")",
";",
"// Browse through the participants, processing them as appropriate",
"final",
"ArrayLis... | Cleanup resources that have not yet been completed.
A utility function called when transaction completion has been
abandonned either when retries have been exhausted or the operator
has cancelled the transaction. | [
"Cleanup",
"resources",
"that",
"have",
"not",
"yet",
"been",
"completed",
".",
"A",
"utility",
"function",
"called",
"when",
"transaction",
"completion",
"has",
"been",
"abandonned",
"either",
"when",
"retries",
"have",
"been",
"exhausted",
"or",
"the",
"operat... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L2436-L2452 |
69,655 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.compare | @Override
public int compare(JTAResource o1, JTAResource o2) {
if (tc.isEntryEnabled())
Tr.entry(tc, "compare", new Object[] { o1, o2, this });
int result = 0;
int p1 = o1.getPriority();
int p2 = o2.getPriority();
if (p1 < p2)
result = 1;
else ... | java | @Override
public int compare(JTAResource o1, JTAResource o2) {
if (tc.isEntryEnabled())
Tr.entry(tc, "compare", new Object[] { o1, o2, this });
int result = 0;
int p1 = o1.getPriority();
int p2 = o2.getPriority();
if (p1 < p2)
result = 1;
else ... | [
"@",
"Override",
"public",
"int",
"compare",
"(",
"JTAResource",
"o1",
",",
"JTAResource",
"o2",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"compare\"",
",",
"new",
"Object",
"[",
"]",
"{",
... | Comparator returning 0 should leave elements in list alone, preserving original order. | [
"Comparator",
"returning",
"0",
"should",
"leave",
"elements",
"in",
"list",
"alone",
"preserving",
"original",
"order",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L2631-L2645 |
69,656 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.sortResources | protected boolean sortResources() {
if (tc.isEntryEnabled())
Tr.entry(tc, "sortResources", _resourceObjects.toArray());
if (!_sorted) {
final int resourceCount = _resourceObjects.size();
if (_gotPriorityResourcesEnlisted) {
if (resourceCount > 1)
... | java | protected boolean sortResources() {
if (tc.isEntryEnabled())
Tr.entry(tc, "sortResources", _resourceObjects.toArray());
if (!_sorted) {
final int resourceCount = _resourceObjects.size();
if (_gotPriorityResourcesEnlisted) {
if (resourceCount > 1)
... | [
"protected",
"boolean",
"sortResources",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"sortResources\"",
",",
"_resourceObjects",
".",
"toArray",
"(",
")",
")",
";",
"if",
"(",
"!",
"_sorte... | Shuffle commitInLastPhase resources to the end of the list preserving their ordering
or reorder resources based on commitPriority in descending order for commit phase. | [
"Shuffle",
"commitInLastPhase",
"resources",
"to",
"the",
"end",
"of",
"the",
"list",
"preserving",
"their",
"ordering",
"or",
"reorder",
"resources",
"based",
"on",
"commitPriority",
"in",
"descending",
"order",
"for",
"commit",
"phase",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L2651-L2668 |
69,657 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.sortPreparePriorityResources | protected void sortPreparePriorityResources() {
if (tc.isEntryEnabled())
Tr.entry(tc, "sortPreparePriorityResources", _resourceObjects.toArray());
Collections.sort(_resourceObjects, prepareComparator);
if (tc.isEntryEnabled())
Tr.exit(tc, "sortPreparePriorityResources",... | java | protected void sortPreparePriorityResources() {
if (tc.isEntryEnabled())
Tr.entry(tc, "sortPreparePriorityResources", _resourceObjects.toArray());
Collections.sort(_resourceObjects, prepareComparator);
if (tc.isEntryEnabled())
Tr.exit(tc, "sortPreparePriorityResources",... | [
"protected",
"void",
"sortPreparePriorityResources",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"sortPreparePriorityResources\"",
",",
"_resourceObjects",
".",
"toArray",
"(",
")",
")",
";",
"C... | Reorder resources based on commitPriority in asccending order for prepare phase. | [
"Reorder",
"resources",
"based",
"on",
"commitPriority",
"in",
"asccending",
"order",
"for",
"prepare",
"phase",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L2695-L2704 |
69,658 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java | RegisteredResources.isLastAgentEnlisted | public boolean isLastAgentEnlisted() {
final boolean lastAgentEnlisted = (_onePhaseResourceEnlisted != null);
if (tc.isDebugEnabled())
Tr.debug(tc, "isLastAgentEnlisted", lastAgentEnlisted);
return lastAgentEnlisted;
} | java | public boolean isLastAgentEnlisted() {
final boolean lastAgentEnlisted = (_onePhaseResourceEnlisted != null);
if (tc.isDebugEnabled())
Tr.debug(tc, "isLastAgentEnlisted", lastAgentEnlisted);
return lastAgentEnlisted;
} | [
"public",
"boolean",
"isLastAgentEnlisted",
"(",
")",
"{",
"final",
"boolean",
"lastAgentEnlisted",
"=",
"(",
"_onePhaseResourceEnlisted",
"!=",
"null",
")",
";",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\... | Informs the caller if a 1PC resource is enlisted in this unit of work. | [
"Informs",
"the",
"caller",
"if",
"a",
"1PC",
"resource",
"is",
"enlisted",
"in",
"this",
"unit",
"of",
"work",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/RegisteredResources.java#L2812-L2818 |
69,659 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/ControlCreateDurableImpl.java | ControlCreateDurableImpl.getDurableSelectorNamespaceMap | public Map<String,String> getDurableSelectorNamespaceMap() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getDurableSelectorNamespaceMap");
Map<String,String> map = null;
if (jmo.getChoiceField(ControlAccess.BODY_CREATEDURABLE_NAMESPACEMAP) == ControlAccess.IS_BODY... | java | public Map<String,String> getDurableSelectorNamespaceMap() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getDurableSelectorNamespaceMap");
Map<String,String> map = null;
if (jmo.getChoiceField(ControlAccess.BODY_CREATEDURABLE_NAMESPACEMAP) == ControlAccess.IS_BODY... | [
"public",
"Map",
"<",
"String",
",",
"String",
">",
"getDurableSelectorNamespaceMap",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",... | Get the map of prefixes to namespace URLs that are associated with the selector.
@return the map of namespace prefixes | [
"Get",
"the",
"map",
"of",
"prefixes",
"to",
"namespace",
"URLs",
"that",
"are",
"associated",
"with",
"the",
"selector",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/ControlCreateDurableImpl.java#L158-L168 |
69,660 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/ControlCreateDurableImpl.java | ControlCreateDurableImpl.setDurableSelectorNamespaceMap | public void setDurableSelectorNamespaceMap(Map<String,String> namespaceMap) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setDurableSelectorNamespaceMap", namespaceMap);
if (namespaceMap == null) {
jmo.setChoiceField(ControlAccess.BODY_CREATEDURABLE_NAMESPACEMAP... | java | public void setDurableSelectorNamespaceMap(Map<String,String> namespaceMap) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setDurableSelectorNamespaceMap", namespaceMap);
if (namespaceMap == null) {
jmo.setChoiceField(ControlAccess.BODY_CREATEDURABLE_NAMESPACEMAP... | [
"public",
"void",
"setDurableSelectorNamespaceMap",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"namespaceMap",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"e... | Sets a map of prefixes to namespace URLs that are associated with the selector.
@param namespaceMap | [
"Sets",
"a",
"map",
"of",
"prefixes",
"to",
"namespace",
"URLs",
"that",
"are",
"associated",
"with",
"the",
"selector",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/ControlCreateDurableImpl.java#L287-L304 |
69,661 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSAccessFile.java | RLSAccessFile.close | public void close() throws IOException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "close", new Object[]{this, _file});
// By locking on the class rather than the object, and removing
// the inner lock on the class, this seems to resolve the problems
// reported in d347231 that file handles ... | java | public void close() throws IOException
{
if (tc.isEntryEnabled()) Tr.entry(tc, "close", new Object[]{this, _file});
// By locking on the class rather than the object, and removing
// the inner lock on the class, this seems to resolve the problems
// reported in d347231 that file handles ... | [
"public",
"void",
"close",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"close\"",
",",
"new",
"Object",
"[",
"]",
"{",
"this",
",",
"_file",
"}",
")",
";",
"... | The logic in close needs to account for recursive calls. See notes below. | [
"The",
"logic",
"in",
"close",
"needs",
"to",
"account",
"for",
"recursive",
"calls",
".",
"See",
"notes",
"below",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSAccessFile.java#L86-L127 |
69,662 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/NLS.java | NLS.getInteger | public int getInteger(String key) throws MissingResourceException {
String result = getString(key);
try {
return Integer.parseInt(result);
} catch (NumberFormatException nfe) {
if (tc.isEventEnabled()) {
Tr.event(tc, "Unable to parse " + result + " as Inte... | java | public int getInteger(String key) throws MissingResourceException {
String result = getString(key);
try {
return Integer.parseInt(result);
} catch (NumberFormatException nfe) {
if (tc.isEventEnabled()) {
Tr.event(tc, "Unable to parse " + result + " as Inte... | [
"public",
"int",
"getInteger",
"(",
"String",
"key",
")",
"throws",
"MissingResourceException",
"{",
"String",
"result",
"=",
"getString",
"(",
"key",
")",
";",
"try",
"{",
"return",
"Integer",
".",
"parseInt",
"(",
"result",
")",
";",
"}",
"catch",
"(",
... | Not sure why this is here. Looks like it is a replacement for
Integer.getInteger. | [
"Not",
"sure",
"why",
"this",
"is",
"here",
".",
"Looks",
"like",
"it",
"is",
"a",
"replacement",
"for",
"Integer",
".",
"getInteger",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/NLS.java#L408-L424 |
69,663 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java | MPIO.stop | public void stop()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "stop");
// Lock exclusively for start operations
mpioLockManager.lockExclusive();
started = false;
mpioLockManager.unlockExclusive();
if (TraceComponent.isAnyTracingEnabled(... | java | public void stop()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "stop");
// Lock exclusively for start operations
mpioLockManager.lockExclusive();
started = false;
mpioLockManager.unlockExclusive();
if (TraceComponent.isAnyTracingEnabled(... | [
"public",
"void",
"stop",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"stop\"",
")",
";",
"// Lock exclusively for start operatio... | Method to stop MPIO from processing any new messages.
This will take an exclusive lock on the lock manager and change
the started flag to false. | [
"Method",
"to",
"stop",
"MPIO",
"from",
"processing",
"any",
"new",
"messages",
".",
"This",
"will",
"take",
"an",
"exclusive",
"lock",
"on",
"the",
"lock",
"manager",
"and",
"change",
"the",
"started",
"flag",
"to",
"false",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L133-L145 |
69,664 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java | MPIO.receiveMessage | public void receiveMessage(MEConnection conn, AbstractMessage aMessage)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "receiveMessage", new Object[] {conn,
aMessage,
... | java | public void receiveMessage(MEConnection conn, AbstractMessage aMessage)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "receiveMessage", new Object[] {conn,
aMessage,
... | [
"public",
"void",
"receiveMessage",
"(",
"MEConnection",
"conn",
",",
"AbstractMessage",
"aMessage",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"t... | Receive a new Control message from an ME-ME connection.
@param conn The physical connection on which the message was received.
@param msg The ControlMessage received. | [
"Receive",
"a",
"new",
"Control",
"message",
"from",
"an",
"ME",
"-",
"ME",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L153-L221 |
69,665 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java | MPIO.getOrCreateNewMPConnection | public MPConnection getOrCreateNewMPConnection(SIBUuid8 remoteUuid,
MEConnection conn)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getOrCreateNewMPConnection", new Object[] {remoteUuid, conn });
MPConnection mpConn... | java | public MPConnection getOrCreateNewMPConnection(SIBUuid8 remoteUuid,
MEConnection conn)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getOrCreateNewMPConnection", new Object[] {remoteUuid, conn });
MPConnection mpConn... | [
"public",
"MPConnection",
"getOrCreateNewMPConnection",
"(",
"SIBUuid8",
"remoteUuid",
",",
"MEConnection",
"conn",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entr... | Get a MPConnection from the cache and if there isn't one, create a new one and
put it in the cache.
@param cellule The cellule to find a MPConnection for (optional)
@param conn The MEConnection to find a MPConnection for
@return the MPConnection | [
"Get",
"a",
"MPConnection",
"from",
"the",
"cache",
"and",
"if",
"there",
"isn",
"t",
"one",
"create",
"a",
"new",
"one",
"and",
"put",
"it",
"in",
"the",
"cache",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L231-L264 |
69,666 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java | MPIO.removeConnection | public MPConnection removeConnection(MEConnection conn)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeConnection", new Object[] { conn });
MPConnection mpConn;
synchronized(_mpConnectionsByMEConnection)
{
//remove the MPConnection from the 'by M... | java | public MPConnection removeConnection(MEConnection conn)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeConnection", new Object[] { conn });
MPConnection mpConn;
synchronized(_mpConnectionsByMEConnection)
{
//remove the MPConnection from the 'by M... | [
"public",
"MPConnection",
"removeConnection",
"(",
"MEConnection",
"conn",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"removeConnection... | remove a MPConnection from the cache
@param conn The MEConnection of the MPConnection to be removed
@return The MPConnection which removed | [
"remove",
"a",
"MPConnection",
"from",
"the",
"cache"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L383-L404 |
69,667 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java | MPIO.error | public void error(MEConnection conn, Throwable ex)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "error", new Object[] { this, conn, ex});
// This one goes straight to the CEL
_commsErrorListener.error(conn, ex);
if (TraceComponent.isAnyTracingEnabled() && ... | java | public void error(MEConnection conn, Throwable ex)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "error", new Object[] { this, conn, ex});
// This one goes straight to the CEL
_commsErrorListener.error(conn, ex);
if (TraceComponent.isAnyTracingEnabled() && ... | [
"public",
"void",
"error",
"(",
"MEConnection",
"conn",
",",
"Throwable",
"ex",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"error... | Indicates an error has occurred on a connection.
@param conn The connection on which the error occurred.
@param ex The code indicating the type of error (TBD). | [
"Indicates",
"an",
"error",
"has",
"occurred",
"on",
"a",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L412-L422 |
69,668 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java | MPIO.changeConnection | public void changeConnection(MEConnection downConn, MEConnection upConn)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "changeConnection", new Object[] { this, downConn, upConn} );
if(downConn != null)
{
//remove the connection which has gone down
re... | java | public void changeConnection(MEConnection downConn, MEConnection upConn)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "changeConnection", new Object[] { this, downConn, upConn} );
if(downConn != null)
{
//remove the connection which has gone down
re... | [
"public",
"void",
"changeConnection",
"(",
"MEConnection",
"downConn",
",",
"MEConnection",
"upConn",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"... | Indiciates a failed connection, a newly created connection, or a
connection swap. If upConn is null, then connection "downConn"
has been removed from the system. If downConn is null, then
connection "upConn" has been added to the system. Otherwise,
"downConn" has been removed and replaced by "upConn".
@param downCo... | [
"Indiciates",
"a",
"failed",
"connection",
"a",
"newly",
"created",
"connection",
"or",
"a",
"connection",
"swap",
".",
"If",
"upConn",
"is",
"null",
"then",
"connection",
"downConn",
"has",
"been",
"removed",
"from",
"the",
"system",
".",
"If",
"downConn",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L478-L493 |
69,669 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java | MPIO.sendToMe | public void sendToMe(SIBUuid8 targetME, int priority, AbstractMessage aMessage)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "sendToMe", new Object[] { aMessage, Integer.valueOf(priority), targetME });
// find an appropriate MPConnection
MPConnection firstCho... | java | public void sendToMe(SIBUuid8 targetME, int priority, AbstractMessage aMessage)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "sendToMe", new Object[] { aMessage, Integer.valueOf(priority), targetME });
// find an appropriate MPConnection
MPConnection firstCho... | [
"public",
"void",
"sendToMe",
"(",
"SIBUuid8",
"targetME",
",",
"int",
"priority",
",",
"AbstractMessage",
"aMessage",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
"."... | Send a ControlMessage to one specific ME
@param aMessage The ControlMessage to be sent
@param priority The priority at which to send the message
@param targetME The ME to send the message to | [
"Send",
"a",
"ControlMessage",
"to",
"one",
"specific",
"ME"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L502-L531 |
69,670 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java | MPIO.sendDownTree | public void sendDownTree(SIBUuid8[] targets, int priority, AbstractMessage cMsg)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "sendDownTree", new Object[] { this, cMsg, Integer.valueOf(priority), targets});
// Select a set of connections, then annotate the messag... | java | public void sendDownTree(SIBUuid8[] targets, int priority, AbstractMessage cMsg)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "sendDownTree", new Object[] { this, cMsg, Integer.valueOf(priority), targets});
// Select a set of connections, then annotate the messag... | [
"public",
"void",
"sendDownTree",
"(",
"SIBUuid8",
"[",
"]",
"targets",
",",
"int",
"priority",
",",
"AbstractMessage",
"cMsg",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"... | Send a control message to a list of MEs
@param jsMsg The message to be sent
@param priority The priority at which to send it
@param fromTo The MEs to send it to | [
"Send",
"a",
"control",
"message",
"to",
"a",
"list",
"of",
"MEs"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L541-L597 |
69,671 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java | MPIO.isMEReachable | public boolean isMEReachable(SIBUuid8 meUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isMEReachable", new Object[] {this, meUuid});
boolean result = (findMPConnection(meUuid) != null);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryE... | java | public boolean isMEReachable(SIBUuid8 meUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isMEReachable", new Object[] {this, meUuid});
boolean result = (findMPConnection(meUuid) != null);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryE... | [
"public",
"boolean",
"isMEReachable",
"(",
"SIBUuid8",
"meUuid",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"isMEReachable\"",
",",
... | Test whether or not a particular ME is reachable.
@param me The ME to test.
@return True if TRM has a path to this ME, false otherwise. | [
"Test",
"whether",
"or",
"not",
"a",
"particular",
"ME",
"is",
"reachable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L609-L620 |
69,672 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java | MPIO.isCompatibleME | public boolean isCompatibleME(SIBUuid8 meUuid, ProtocolVersion version)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isCompatibleME", new Object[] {meUuid});
boolean result = false;
MPConnection conn = findMPConnection(meUuid);
if (conn!=null)
... | java | public boolean isCompatibleME(SIBUuid8 meUuid, ProtocolVersion version)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isCompatibleME", new Object[] {meUuid});
boolean result = false;
MPConnection conn = findMPConnection(meUuid);
if (conn!=null)
... | [
"public",
"boolean",
"isCompatibleME",
"(",
"SIBUuid8",
"meUuid",
",",
"ProtocolVersion",
"version",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"t... | Test whether or not a particular ME is of a version compatible with this one.
@param me The ME to test.
@return True if ME is of a compatible version | [
"Test",
"whether",
"or",
"not",
"a",
"particular",
"ME",
"is",
"of",
"a",
"version",
"compatible",
"with",
"this",
"one",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L628-L647 |
69,673 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java | MPIO.forceConnect | public void forceConnect(SIBUuid8 meUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "forceConnect", meUuid);
if(_routingManager!=null)
_routingManager.connectToME(meUuid);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java | public void forceConnect(SIBUuid8 meUuid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "forceConnect", meUuid);
if(_routingManager!=null)
_routingManager.connectToME(meUuid);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | [
"public",
"void",
"forceConnect",
"(",
"SIBUuid8",
"meUuid",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"forceConnect\"",
",",
"meU... | Can potentially block for up to 5 seconds | [
"Can",
"potentially",
"block",
"for",
"up",
"to",
"5",
"seconds"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java#L650-L660 |
69,674 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java | ServletStartedListener.createSecurityConstraints | private List<SecurityConstraint> createSecurityConstraints(SecurityMetadata securityMetadataFromDD, ServletSecurityElement servletSecurity, Collection<String> urlPatterns) {
List<SecurityConstraint> securityConstraints = new ArrayList<SecurityConstraint>();
securityConstraints.add(getConstraintFromHttpE... | java | private List<SecurityConstraint> createSecurityConstraints(SecurityMetadata securityMetadataFromDD, ServletSecurityElement servletSecurity, Collection<String> urlPatterns) {
List<SecurityConstraint> securityConstraints = new ArrayList<SecurityConstraint>();
securityConstraints.add(getConstraintFromHttpE... | [
"private",
"List",
"<",
"SecurityConstraint",
">",
"createSecurityConstraints",
"(",
"SecurityMetadata",
"securityMetadataFromDD",
",",
"ServletSecurityElement",
"servletSecurity",
",",
"Collection",
"<",
"String",
">",
"urlPatterns",
")",
"{",
"List",
"<",
"SecurityConst... | Constructs a list of SecurityConstraint objects from the given ServletSecurityElement and list of URL patterns.
@param securityMetadataFromDD the security metadata processed from the deployment descriptor, for updating the roles
@param servletSecurity the ServletSecurityElement that represents the information parsed f... | [
"Constructs",
"a",
"list",
"of",
"SecurityConstraint",
"objects",
"from",
"the",
"given",
"ServletSecurityElement",
"and",
"list",
"of",
"URL",
"patterns",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L303-L308 |
69,675 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java | ServletStartedListener.getConstraintFromHttpElement | private SecurityConstraint getConstraintFromHttpElement(SecurityMetadata securityMetadataFromDD, Collection<String> urlPatterns, ServletSecurityElement servletSecurity) {
List<String> omissionMethods = new ArrayList<String>();
if (!servletSecurity.getMethodNames().isEmpty()) {
omissionMethod... | java | private SecurityConstraint getConstraintFromHttpElement(SecurityMetadata securityMetadataFromDD, Collection<String> urlPatterns, ServletSecurityElement servletSecurity) {
List<String> omissionMethods = new ArrayList<String>();
if (!servletSecurity.getMethodNames().isEmpty()) {
omissionMethod... | [
"private",
"SecurityConstraint",
"getConstraintFromHttpElement",
"(",
"SecurityMetadata",
"securityMetadataFromDD",
",",
"Collection",
"<",
"String",
">",
"urlPatterns",
",",
"ServletSecurityElement",
"servletSecurity",
")",
"{",
"List",
"<",
"String",
">",
"omissionMethods... | Gets the security constraint from the HttpConstraint element defined in the given ServletSecurityElement
with the given list of url patterns.
This constraint applies to all methods that are not explicitly overridden by the HttpMethodConstraint element. The method
constraints are defined as omission methods in this sec... | [
"Gets",
"the",
"security",
"constraint",
"from",
"the",
"HttpConstraint",
"element",
"defined",
"in",
"the",
"given",
"ServletSecurityElement",
"with",
"the",
"given",
"list",
"of",
"url",
"patterns",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L322-L332 |
69,676 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java | ServletStartedListener.getConstraintsFromHttpMethodElement | private List<SecurityConstraint> getConstraintsFromHttpMethodElement(SecurityMetadata securityMetadataFromDD, Collection<String> urlPatterns,
ServletSecurityElement servletSecurity) {
List<SecurityConstraint> securityConstraints = new Arra... | java | private List<SecurityConstraint> getConstraintsFromHttpMethodElement(SecurityMetadata securityMetadataFromDD, Collection<String> urlPatterns,
ServletSecurityElement servletSecurity) {
List<SecurityConstraint> securityConstraints = new Arra... | [
"private",
"List",
"<",
"SecurityConstraint",
">",
"getConstraintsFromHttpMethodElement",
"(",
"SecurityMetadata",
"securityMetadataFromDD",
",",
"Collection",
"<",
"String",
">",
"urlPatterns",
",",
"ServletSecurityElement",
"servletSecurity",
")",
"{",
"List",
"<",
"Sec... | Gets the security constraints from the HttpMethodConstraint elements defined in the given ServletSecurityElement
with the given list of url patterns.
@param securityMetadataFromDD the security metadata processed from the deployment descriptor, for updating the roles
@param urlPatterns the list of URL patterns defined ... | [
"Gets",
"the",
"security",
"constraints",
"from",
"the",
"HttpMethodConstraint",
"elements",
"defined",
"in",
"the",
"given",
"ServletSecurityElement",
"with",
"the",
"given",
"list",
"of",
"url",
"patterns",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L343-L358 |
69,677 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java | ServletStartedListener.createSecurityConstraint | private SecurityConstraint createSecurityConstraint(SecurityMetadata securityMetadataFromDD, List<WebResourceCollection> webResourceCollections,
HttpConstraintElement httpConstraint, boolean fromHttpConstraint) {
List<String> roles = createRoles(httpConstr... | java | private SecurityConstraint createSecurityConstraint(SecurityMetadata securityMetadataFromDD, List<WebResourceCollection> webResourceCollections,
HttpConstraintElement httpConstraint, boolean fromHttpConstraint) {
List<String> roles = createRoles(httpConstr... | [
"private",
"SecurityConstraint",
"createSecurityConstraint",
"(",
"SecurityMetadata",
"securityMetadataFromDD",
",",
"List",
"<",
"WebResourceCollection",
">",
"webResourceCollections",
",",
"HttpConstraintElement",
"httpConstraint",
",",
"boolean",
"fromHttpConstraint",
")",
"... | Creates a security constraint from the given web resource collections, url patterns and HttpConstraint element.
@param securityMetadataFromDD the security metadata processed from the deployment descriptor, for updating the roles
@param webResourceCollections a list of web resource collections
@param httpConstraint the... | [
"Creates",
"a",
"security",
"constraint",
"from",
"the",
"given",
"web",
"resource",
"collections",
"url",
"patterns",
"and",
"HttpConstraint",
"element",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L368-L381 |
69,678 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java | ServletStartedListener.isSSLRequired | private boolean isSSLRequired(HttpConstraintElement httpConstraint) {
boolean sslRequired = false;
TransportGuarantee transportGuarantee = httpConstraint.getTransportGuarantee();
if (transportGuarantee != TransportGuarantee.NONE) {
sslRequired = true;
}
return sslRequ... | java | private boolean isSSLRequired(HttpConstraintElement httpConstraint) {
boolean sslRequired = false;
TransportGuarantee transportGuarantee = httpConstraint.getTransportGuarantee();
if (transportGuarantee != TransportGuarantee.NONE) {
sslRequired = true;
}
return sslRequ... | [
"private",
"boolean",
"isSSLRequired",
"(",
"HttpConstraintElement",
"httpConstraint",
")",
"{",
"boolean",
"sslRequired",
"=",
"false",
";",
"TransportGuarantee",
"transportGuarantee",
"=",
"httpConstraint",
".",
"getTransportGuarantee",
"(",
")",
";",
"if",
"(",
"tr... | Determines if SSL is required for the given HTTP constraint.
SSL is required if the transport guarantee is any value other than NONE.
@param httpConstraint the element representing the information in the @HttpConstraint annotation
@return true if SSL is required, otherwise false | [
"Determines",
"if",
"SSL",
"is",
"required",
"for",
"the",
"given",
"HTTP",
"constraint",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L406-L413 |
69,679 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java | ServletStartedListener.isAccessPrecluded | private boolean isAccessPrecluded(HttpConstraintElement httpConstraint) {
boolean accessPrecluded = false;
String[] roles = httpConstraint.getRolesAllowed();
if (roles == null || roles.length == 0) {
if (EmptyRoleSemantic.DENY == httpConstraint.getEmptyRoleSemantic())
... | java | private boolean isAccessPrecluded(HttpConstraintElement httpConstraint) {
boolean accessPrecluded = false;
String[] roles = httpConstraint.getRolesAllowed();
if (roles == null || roles.length == 0) {
if (EmptyRoleSemantic.DENY == httpConstraint.getEmptyRoleSemantic())
... | [
"private",
"boolean",
"isAccessPrecluded",
"(",
"HttpConstraintElement",
"httpConstraint",
")",
"{",
"boolean",
"accessPrecluded",
"=",
"false",
";",
"String",
"[",
"]",
"roles",
"=",
"httpConstraint",
".",
"getRolesAllowed",
"(",
")",
";",
"if",
"(",
"roles",
"... | Determines if access is precluded for the given HTTP constraint.
Access is precluded when there are no roles, and the emptyRoleSemantic
defined in the annotation is DENY.
@param httpConstraint the element representing the information in the @HttpConstraint annotation
@return true if access is precluded, otherwise fal... | [
"Determines",
"if",
"access",
"is",
"precluded",
"for",
"the",
"given",
"HTTP",
"constraint",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L424-L432 |
69,680 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java | ServletStartedListener.isAccessUncovered | private boolean isAccessUncovered(HttpConstraintElement httpConstraint) {
boolean accessUncovered = false;
String[] roles = httpConstraint.getRolesAllowed();
if (roles == null || roles.length == 0) {
if (EmptyRoleSemantic.PERMIT == httpConstraint.getEmptyRoleSemantic())
... | java | private boolean isAccessUncovered(HttpConstraintElement httpConstraint) {
boolean accessUncovered = false;
String[] roles = httpConstraint.getRolesAllowed();
if (roles == null || roles.length == 0) {
if (EmptyRoleSemantic.PERMIT == httpConstraint.getEmptyRoleSemantic())
... | [
"private",
"boolean",
"isAccessUncovered",
"(",
"HttpConstraintElement",
"httpConstraint",
")",
"{",
"boolean",
"accessUncovered",
"=",
"false",
";",
"String",
"[",
"]",
"roles",
"=",
"httpConstraint",
".",
"getRolesAllowed",
"(",
")",
";",
"if",
"(",
"roles",
"... | Determines if access is uncovered for the given HTTP constraint.
Access is uncovered when there are no roles, and the emptyRoleSemantic
defined in the annotation is PERMIT.
@param httpConstraint the element representing the information in the @HttpConstraint annotation
@return true if access is precluded, otherwise f... | [
"Determines",
"if",
"access",
"is",
"uncovered",
"for",
"the",
"given",
"HTTP",
"constraint",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L443-L452 |
69,681 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java | ServletStartedListener.setModuleSecurityMetaData | private void setModuleSecurityMetaData(Container moduleContainer, SecurityMetadata securityMetadataFromDD) {
try {
WebModuleMetaData wmmd = moduleContainer.adapt(WebModuleMetaData.class);
wmmd.setSecurityMetaData(securityMetadataFromDD);
} catch (UnableToAdaptException e) {
... | java | private void setModuleSecurityMetaData(Container moduleContainer, SecurityMetadata securityMetadataFromDD) {
try {
WebModuleMetaData wmmd = moduleContainer.adapt(WebModuleMetaData.class);
wmmd.setSecurityMetaData(securityMetadataFromDD);
} catch (UnableToAdaptException e) {
... | [
"private",
"void",
"setModuleSecurityMetaData",
"(",
"Container",
"moduleContainer",
",",
"SecurityMetadata",
"securityMetadataFromDD",
")",
"{",
"try",
"{",
"WebModuleMetaData",
"wmmd",
"=",
"moduleContainer",
".",
"adapt",
"(",
"WebModuleMetaData",
".",
"class",
")",
... | Sets the given security metadata on the deployed module's web module metadata for retrieval later.
@param deployedModule the deployed module to get the web module metadata
@param securityMetadataFromDD the security metadata processed from the deployment descriptor | [
"Sets",
"the",
"given",
"security",
"metadata",
"on",
"the",
"deployed",
"module",
"s",
"web",
"module",
"metadata",
"for",
"retrieval",
"later",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/ServletStartedListener.java#L460-L469 |
69,682 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/context/servlet/FacesContextImplBase.java | FacesContextImplBase.release | @Override
public void release()
{
_applicationFactory = null;
_currentFacesContext = null;
if (_defaultExternalContext != null)
{
_defaultExternalContext.release();
_defaultExternalContext = null;
}
_application = null;
_ex... | java | @Override
public void release()
{
_applicationFactory = null;
_currentFacesContext = null;
if (_defaultExternalContext != null)
{
_defaultExternalContext.release();
_defaultExternalContext = null;
}
_application = null;
_ex... | [
"@",
"Override",
"public",
"void",
"release",
"(",
")",
"{",
"_applicationFactory",
"=",
"null",
";",
"_currentFacesContext",
"=",
"null",
";",
"if",
"(",
"_defaultExternalContext",
"!=",
"null",
")",
"{",
"_defaultExternalContext",
".",
"release",
"(",
")",
"... | Releases the instance fields on FacesContextImplBase.
Must be called by sub-classes, when overriding it! | [
"Releases",
"the",
"instance",
"fields",
"on",
"FacesContextImplBase",
".",
"Must",
"be",
"called",
"by",
"sub",
"-",
"classes",
"when",
"overriding",
"it!"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/context/servlet/FacesContextImplBase.java#L112-L144 |
69,683 | OpenLiberty/open-liberty | dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/URLParser.java | URLParser.findMarkers | private void findMarkers(String url, String target) {
final char[] data = url.toCharArray();
// we only care about the last path segment so find that first
int i = 0;
int lastSlash = 0;
for (; i < data.length; i++) {
if ('/' == data[i]) {
lastSlash = ... | java | private void findMarkers(String url, String target) {
final char[] data = url.toCharArray();
// we only care about the last path segment so find that first
int i = 0;
int lastSlash = 0;
for (; i < data.length; i++) {
if ('/' == data[i]) {
lastSlash = ... | [
"private",
"void",
"findMarkers",
"(",
"String",
"url",
",",
"String",
"target",
")",
"{",
"final",
"char",
"[",
"]",
"data",
"=",
"url",
".",
"toCharArray",
"(",
")",
";",
"// we only care about the last path segment so find that first",
"int",
"i",
"=",
"0",
... | Scan the data for various markers, including the provided session id
target.
@param url
@param target | [
"Scan",
"the",
"data",
"for",
"various",
"markers",
"including",
"the",
"provided",
"session",
"id",
"target",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/URLParser.java#L59-L91 |
69,684 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java | FormLogoutExtensionProcessor.formLogout | private void formLogout(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
try {
// if we have a valid custom logout page, set an attribute so SAML SLO knows about it.
String exitPage = getValidLogoutExitPage(req);
if (exitPage != null) {... | java | private void formLogout(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
try {
// if we have a valid custom logout page, set an attribute so SAML SLO knows about it.
String exitPage = getValidLogoutExitPage(req);
if (exitPage != null) {... | [
"private",
"void",
"formLogout",
"(",
"HttpServletRequest",
"req",
",",
"HttpServletResponse",
"res",
")",
"throws",
"ServletException",
",",
"IOException",
"{",
"try",
"{",
"// if we have a valid custom logout page, set an attribute so SAML SLO knows about it.",
"String",
"exi... | Log the user out by clearing the LTPA cookie if LTPA and SSO are enabled. Must also invalidate
the http session since it contains user id and password.
Finally, if the user specified an exit page with a form parameter of logoutExitPage,
redirect to the specified page.
This is a special hidden servlet which is always l... | [
"Log",
"the",
"user",
"out",
"by",
"clearing",
"the",
"LTPA",
"cookie",
"if",
"LTPA",
"and",
"SSO",
"are",
"enabled",
".",
"Must",
"also",
"invalidate",
"the",
"http",
"session",
"since",
"it",
"contains",
"user",
"id",
"and",
"password",
".",
"Finally",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java#L98-L142 |
69,685 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java | FormLogoutExtensionProcessor.getValidLogoutExitPage | private String getValidLogoutExitPage(HttpServletRequest req) {
boolean valid = false;
String exitPage = req.getParameter("logoutExitPage");
if (exitPage != null && exitPage.length() != 0) {
boolean logoutExitURLaccepted = verifyLogoutURL(req, exitPage);
if (logoutExitUR... | java | private String getValidLogoutExitPage(HttpServletRequest req) {
boolean valid = false;
String exitPage = req.getParameter("logoutExitPage");
if (exitPage != null && exitPage.length() != 0) {
boolean logoutExitURLaccepted = verifyLogoutURL(req, exitPage);
if (logoutExitUR... | [
"private",
"String",
"getValidLogoutExitPage",
"(",
"HttpServletRequest",
"req",
")",
"{",
"boolean",
"valid",
"=",
"false",
";",
"String",
"exitPage",
"=",
"req",
".",
"getParameter",
"(",
"\"logoutExitPage\"",
")",
";",
"if",
"(",
"exitPage",
"!=",
"null",
"... | return a logoutExitPage string suitable for redirection if one is defined and valid.
else return null | [
"return",
"a",
"logoutExitPage",
"string",
"suitable",
"for",
"redirection",
"if",
"one",
"is",
"defined",
"and",
"valid",
".",
"else",
"return",
"null"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java#L148-L161 |
69,686 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java | FormLogoutExtensionProcessor.useDefaultLogoutMsg | private void useDefaultLogoutMsg(HttpServletResponse res) {
try {
PrintWriter pw = res.getWriter();
pw.println(DEFAULT_LOGOUT_MSG);
} catch (IOException e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, e.getMessage());... | java | private void useDefaultLogoutMsg(HttpServletResponse res) {
try {
PrintWriter pw = res.getWriter();
pw.println(DEFAULT_LOGOUT_MSG);
} catch (IOException e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, e.getMessage());... | [
"private",
"void",
"useDefaultLogoutMsg",
"(",
"HttpServletResponse",
"res",
")",
"{",
"try",
"{",
"PrintWriter",
"pw",
"=",
"res",
".",
"getWriter",
"(",
")",
";",
"pw",
".",
"println",
"(",
"DEFAULT_LOGOUT_MSG",
")",
";",
"}",
"catch",
"(",
"IOException",
... | Display the default logout message.
@param res | [
"Display",
"the",
"default",
"logout",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java#L182-L192 |
69,687 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java | FormLogoutExtensionProcessor.isRedirectHostTheSameAsLocalHost | private boolean isRedirectHostTheSameAsLocalHost(String exitPage, String logoutURLhost, String hostFullName, String shortName, String ipAddress) {
String localHostIpAddress = "127.0.0.1";
boolean acceptURL = false;
if (logoutURLhost.equalsIgnoreCase("localhost") || logoutURLhost.equals(localHost... | java | private boolean isRedirectHostTheSameAsLocalHost(String exitPage, String logoutURLhost, String hostFullName, String shortName, String ipAddress) {
String localHostIpAddress = "127.0.0.1";
boolean acceptURL = false;
if (logoutURLhost.equalsIgnoreCase("localhost") || logoutURLhost.equals(localHost... | [
"private",
"boolean",
"isRedirectHostTheSameAsLocalHost",
"(",
"String",
"exitPage",
",",
"String",
"logoutURLhost",
",",
"String",
"hostFullName",
",",
"String",
"shortName",
",",
"String",
"ipAddress",
")",
"{",
"String",
"localHostIpAddress",
"=",
"\"127.0.0.1\"",
... | Check the logout URL host name with various combination of shortName, full name and ipAddress.
@param logoutURLhost
@param hostFullName
@param shortName
@param ipAddress | [
"Check",
"the",
"logout",
"URL",
"host",
"name",
"with",
"various",
"combination",
"of",
"shortName",
"full",
"name",
"and",
"ipAddress",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java#L336-L349 |
69,688 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java | FormLogoutExtensionProcessor.isRequestURLEqualsExitPageHost | private boolean isRequestURLEqualsExitPageHost(HttpServletRequest req, String logoutURLhost) {
boolean acceptURL = false;
try {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "about to attempt matching the logout exit url with the domain of the ... | java | private boolean isRequestURLEqualsExitPageHost(HttpServletRequest req, String logoutURLhost) {
boolean acceptURL = false;
try {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "about to attempt matching the logout exit url with the domain of the ... | [
"private",
"boolean",
"isRequestURLEqualsExitPageHost",
"(",
"HttpServletRequest",
"req",
",",
"String",
"logoutURLhost",
")",
"{",
"boolean",
"acceptURL",
"=",
"false",
";",
"try",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc"... | Attempt to match the request URL's host with the URL for the exitPage this might be
the case of a proxy URL that is used in the request.
@param req
@param acceptURL
@return | [
"Attempt",
"to",
"match",
"the",
"request",
"URL",
"s",
"host",
"with",
"the",
"URL",
"for",
"the",
"exitPage",
"this",
"might",
"be",
"the",
"case",
"of",
"a",
"proxy",
"URL",
"that",
"is",
"used",
"in",
"the",
"request",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/internal/FormLogoutExtensionProcessor.java#L359-L378 |
69,689 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Tree.java | Tree.makeExclusiveDependency | public synchronized boolean makeExclusiveDependency(int depStreamID, int exclusiveParentStreamID) {
Node depNode = root.findNode(depStreamID);
Node exclusiveParentNode = root.findNode(exclusiveParentStreamID);
return makeExclusiveDependency(depNode, exclusiveParentNode);
} | java | public synchronized boolean makeExclusiveDependency(int depStreamID, int exclusiveParentStreamID) {
Node depNode = root.findNode(depStreamID);
Node exclusiveParentNode = root.findNode(exclusiveParentStreamID);
return makeExclusiveDependency(depNode, exclusiveParentNode);
} | [
"public",
"synchronized",
"boolean",
"makeExclusiveDependency",
"(",
"int",
"depStreamID",
",",
"int",
"exclusiveParentStreamID",
")",
"{",
"Node",
"depNode",
"=",
"root",
".",
"findNode",
"(",
"depStreamID",
")",
";",
"Node",
"exclusiveParentNode",
"=",
"root",
"... | Helper method to find the nodes given the stream IDs, and then call the method that does the real work.
@param depStreamID
@param exclusiveParentStreamID
@return the Node that was changed, null if the node or the parent node could not be found | [
"Helper",
"method",
"to",
"find",
"the",
"nodes",
"given",
"the",
"stream",
"IDs",
"and",
"then",
"call",
"the",
"method",
"that",
"does",
"the",
"real",
"work",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Tree.java#L271-L277 |
69,690 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Tree.java | Tree.changeParent | public synchronized boolean changeParent(int depStreamID, int newPriority, int newParentStreamID, boolean exclusive) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "changeParent entry: depStreamID: " + depStreamID + " newParentStreamID: " + newParentStreamID + " e... | java | public synchronized boolean changeParent(int depStreamID, int newPriority, int newParentStreamID, boolean exclusive) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "changeParent entry: depStreamID: " + depStreamID + " newParentStreamID: " + newParentStreamID + " e... | [
"public",
"synchronized",
"boolean",
"changeParent",
"(",
"int",
"depStreamID",
",",
"int",
"newPriority",
",",
"int",
"newParentStreamID",
",",
"boolean",
"exclusive",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",... | Implement the above spec functionality
@param depStreamID
@param newParentStreamID
@param exclusive | [
"Implement",
"the",
"above",
"spec",
"functionality"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Tree.java#L373-L450 |
69,691 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/HandlerHolder.java | HandlerHolder.populateTopics | private void populateTopics(String[] topics) {
for (String t : topics) {
// Clean up leading and trailing white space as appropriate
t = t.trim();
// Ignore topics that start or end with a '/'
if (t.startsWith("/") || t.endsWith("/") || t.contains("//") || t.isEm... | java | private void populateTopics(String[] topics) {
for (String t : topics) {
// Clean up leading and trailing white space as appropriate
t = t.trim();
// Ignore topics that start or end with a '/'
if (t.startsWith("/") || t.endsWith("/") || t.contains("//") || t.isEm... | [
"private",
"void",
"populateTopics",
"(",
"String",
"[",
"]",
"topics",
")",
"{",
"for",
"(",
"String",
"t",
":",
"topics",
")",
"{",
"// Clean up leading and trailing white space as appropriate",
"t",
"=",
"t",
".",
"trim",
"(",
")",
";",
"// Ignore topics that... | Parse the topic specifications into the appropriate lists.
@param topics
the topics the handler is interested in | [
"Parse",
"the",
"topic",
"specifications",
"into",
"the",
"appropriate",
"lists",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/HandlerHolder.java#L168-L189 |
69,692 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/HandlerHolder.java | HandlerHolder.checkTopicSubscribePermission | private void checkTopicSubscribePermission(String topic) {
SecurityManager sm = System.getSecurityManager();
if (sm == null)
return;
sm.checkPermission(new TopicPermission(topic, SUBSCRIBE));
} | java | private void checkTopicSubscribePermission(String topic) {
SecurityManager sm = System.getSecurityManager();
if (sm == null)
return;
sm.checkPermission(new TopicPermission(topic, SUBSCRIBE));
} | [
"private",
"void",
"checkTopicSubscribePermission",
"(",
"String",
"topic",
")",
"{",
"SecurityManager",
"sm",
"=",
"System",
".",
"getSecurityManager",
"(",
")",
";",
"if",
"(",
"sm",
"==",
"null",
")",
"return",
";",
"sm",
".",
"checkPermission",
"(",
"new... | Check if the caller has permission to subscribe to events published to
the specified topic.
@param topic
the topic being subscribed to | [
"Check",
"if",
"the",
"caller",
"has",
"permission",
"to",
"subscribe",
"to",
"events",
"published",
"to",
"the",
"specified",
"topic",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/HandlerHolder.java#L198-L204 |
69,693 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/HandlerHolder.java | HandlerHolder.fireEvent | void fireEvent() {
boolean useLock = !isReentrant();
if (useLock) {
lock.lock();
}
EventImpl event = eventQueue.poll();
try {
if (event != null) {
fireEvent(event);
}
} finally {
if (useLock) {
... | java | void fireEvent() {
boolean useLock = !isReentrant();
if (useLock) {
lock.lock();
}
EventImpl event = eventQueue.poll();
try {
if (event != null) {
fireEvent(event);
}
} finally {
if (useLock) {
... | [
"void",
"fireEvent",
"(",
")",
"{",
"boolean",
"useLock",
"=",
"!",
"isReentrant",
"(",
")",
";",
"if",
"(",
"useLock",
")",
"{",
"lock",
".",
"lock",
"(",
")",
";",
"}",
"EventImpl",
"event",
"=",
"eventQueue",
".",
"poll",
"(",
")",
";",
"try",
... | Deliver this event to the next target handler pulled from the
handlerQueue. If the handler is not reentrant, the delivery will be
serialized to prevent multiple threads entering the handler concurrently. | [
"Deliver",
"this",
"event",
"to",
"the",
"next",
"target",
"handler",
"pulled",
"from",
"the",
"handlerQueue",
".",
"If",
"the",
"handler",
"is",
"not",
"reentrant",
"the",
"delivery",
"will",
"be",
"serialized",
"to",
"prevent",
"multiple",
"threads",
"enteri... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/HandlerHolder.java#L340-L357 |
69,694 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security/src/com/ibm/websphere/security/WSSecurityException.java | WSSecurityException.getCause | @Override
public Throwable getCause() {
if (exceptions != null && exceptions.size() > 0)
return (Throwable) exceptions.get(0);
else
return null;
} | java | @Override
public Throwable getCause() {
if (exceptions != null && exceptions.size() > 0)
return (Throwable) exceptions.get(0);
else
return null;
} | [
"@",
"Override",
"public",
"Throwable",
"getCause",
"(",
")",
"{",
"if",
"(",
"exceptions",
"!=",
"null",
"&&",
"exceptions",
".",
"size",
"(",
")",
">",
"0",
")",
"return",
"(",
"Throwable",
")",
"exceptions",
".",
"get",
"(",
"0",
")",
";",
"else",... | Returns the root cause exception.
@return The Throwable root cause exception. | [
"Returns",
"the",
"root",
"cause",
"exception",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/websphere/security/WSSecurityException.java#L103-L109 |
69,695 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelResolver.java | KernelResolver.addBootJars | public void addBootJars(List<URL> urlList) {
addBootJars(cache.getJarFiles(kernelMf), urlList);
addBootJars(cache.getJarFiles(logProviderMf), urlList);
if (osExtensionMf != null)
addBootJars(cache.getJarFiles(osExtensionMf), urlList);
} | java | public void addBootJars(List<URL> urlList) {
addBootJars(cache.getJarFiles(kernelMf), urlList);
addBootJars(cache.getJarFiles(logProviderMf), urlList);
if (osExtensionMf != null)
addBootJars(cache.getJarFiles(osExtensionMf), urlList);
} | [
"public",
"void",
"addBootJars",
"(",
"List",
"<",
"URL",
">",
"urlList",
")",
"{",
"addBootJars",
"(",
"cache",
".",
"getJarFiles",
"(",
"kernelMf",
")",
",",
"urlList",
")",
";",
"addBootJars",
"(",
"cache",
".",
"getJarFiles",
"(",
"logProviderMf",
")",... | Add any boot.jar resources specified by the kernel, log provider, or os extension definition files
@param urlList target list for additional URLs.
@see ResolverCache#getJarFiles(File) | [
"Add",
"any",
"boot",
".",
"jar",
"resources",
"specified",
"by",
"the",
"kernel",
"log",
"provider",
"or",
"os",
"extension",
"definition",
"files"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelResolver.java#L238-L244 |
69,696 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelResolver.java | KernelResolver.addBootJars | private void addBootJars(List<File> jarFiles, List<URL> urlList) {
for (File jarFile : jarFiles) {
try {
urlList.add(jarFile.toURI().toURL());
} catch (MalformedURLException e) {
// Unlikely: we're making URLs for files we know exist
}
... | java | private void addBootJars(List<File> jarFiles, List<URL> urlList) {
for (File jarFile : jarFiles) {
try {
urlList.add(jarFile.toURI().toURL());
} catch (MalformedURLException e) {
// Unlikely: we're making URLs for files we know exist
}
... | [
"private",
"void",
"addBootJars",
"(",
"List",
"<",
"File",
">",
"jarFiles",
",",
"List",
"<",
"URL",
">",
"urlList",
")",
"{",
"for",
"(",
"File",
"jarFile",
":",
"jarFiles",
")",
"{",
"try",
"{",
"urlList",
".",
"add",
"(",
"jarFile",
".",
"toURI",... | Given the list of files, add the URL for each file to the list of URLs
@param jarFiles List of Files (source)
@param urlList List of URLs (target) | [
"Given",
"the",
"list",
"of",
"files",
"add",
"the",
"URL",
"for",
"each",
"file",
"to",
"the",
"list",
"of",
"URLs"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/KernelResolver.java#L252-L260 |
69,697 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java | JsHdrsImpl.getMessageHandle | public SIMessageHandle getMessageHandle() {
// If the transient is not set, build the handle from the values in the message and cache it.
if (cachedMessageHandle == null) {
byte[] b = (byte[]) jmo.getField(JsHdrAccess.SYSTEMMESSAGESOURCEUUID);
if (b != null) {
cac... | java | public SIMessageHandle getMessageHandle() {
// If the transient is not set, build the handle from the values in the message and cache it.
if (cachedMessageHandle == null) {
byte[] b = (byte[]) jmo.getField(JsHdrAccess.SYSTEMMESSAGESOURCEUUID);
if (b != null) {
cac... | [
"public",
"SIMessageHandle",
"getMessageHandle",
"(",
")",
"{",
"// If the transient is not set, build the handle from the values in the message and cache it.",
"if",
"(",
"cachedMessageHandle",
"==",
"null",
")",
"{",
"byte",
"[",
"]",
"b",
"=",
"(",
"byte",
"[",
"]",
... | Get the message handle which uniquely identifies this message.
@return An SIMessageHandle which identifies this message. | [
"Get",
"the",
"message",
"handle",
"which",
"uniquely",
"identifies",
"this",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L658-L671 |
69,698 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java | JsHdrsImpl.setProducerType | final void setProducerType(ProducerType value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setProducerType", value);
/* Get the int value of the ProducerType and set that into the field */
getHdr2().setField(JsHdr2Access.PRODUCERTYPE, val... | java | final void setProducerType(ProducerType value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setProducerType", value);
/* Get the int value of the ProducerType and set that into the field */
getHdr2().setField(JsHdr2Access.PRODUCERTYPE, val... | [
"final",
"void",
"setProducerType",
"(",
"ProducerType",
"value",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setProdu... | Set the value of the ProducerType field in the message header.
This method is only used by message constructors so is not public final.
@param value The ProducerType representing the Producer Type of the message (e.g. Core, API, TRM) | [
"Set",
"the",
"value",
"of",
"the",
"ProducerType",
"field",
"in",
"the",
"message",
"header",
".",
"This",
"method",
"is",
"only",
"used",
"by",
"message",
"constructors",
"so",
"is",
"not",
"public",
"final",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L1459-L1466 |
69,699 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java | JsHdrsImpl.setJsMessageType | final void setJsMessageType(MessageType value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setJsMessageType", value);
/* Get the int value of the MessageType and set that into the field */
jmo.setField(JsHdrAccess.MESSAGETYPE, value.toByt... | java | final void setJsMessageType(MessageType value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setJsMessageType", value);
/* Get the int value of the MessageType and set that into the field */
jmo.setField(JsHdrAccess.MESSAGETYPE, value.toByt... | [
"final",
"void",
"setJsMessageType",
"(",
"MessageType",
"value",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setJsMes... | Set the value of the JsMessageType in the message header.
This method is only used by message constructors so is not public final.
@param value The MessageType representing the Message Type (e.g. JMS) of the message. | [
"Set",
"the",
"value",
"of",
"the",
"JsMessageType",
"in",
"the",
"message",
"header",
".",
"This",
"method",
"is",
"only",
"used",
"by",
"message",
"constructors",
"so",
"is",
"not",
"public",
"final",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsHdrsImpl.java#L1474-L1481 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.