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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
70,700 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxRecoveryAgentImpl.java | TxRecoveryAgentImpl.createFileTranLogConfiguration | private TranLogConfiguration createFileTranLogConfiguration(String recoveredServerIdentity,
FailureScope fs,
String logDir,
int ... | java | private TranLogConfiguration createFileTranLogConfiguration(String recoveredServerIdentity,
FailureScope fs,
String logDir,
int ... | [
"private",
"TranLogConfiguration",
"createFileTranLogConfiguration",
"(",
"String",
"recoveredServerIdentity",
",",
"FailureScope",
"fs",
",",
"String",
"logDir",
",",
"int",
"logSize",
",",
"boolean",
"isPeerRecoverySupported",
")",
"throws",
"URISyntaxException",
"{",
"... | Creates a Filesystem TranLogConfiguration object appropriate for storing transaction logs in a filesystem.
@param recoveredServerIdentity
@param fs
@param logDir
@param logSize
@param isPeerRecoverySupported
@return
@throws URISyntaxException | [
"Creates",
"a",
"Filesystem",
"TranLogConfiguration",
"object",
"appropriate",
"for",
"storing",
"transaction",
"logs",
"in",
"a",
"filesystem",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxRecoveryAgentImpl.java#L675-L714 |
70,701 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxRecoveryAgentImpl.java | TxRecoveryAgentImpl.getPeerLeaseCheckInterval | private int getPeerLeaseCheckInterval() {
if (tc.isEntryEnabled())
Tr.entry(tc, "getPeerLeaseCheckInterval");
int intToReturn;
Integer peerLeaseCheckInterval = null;
try {
peerLeaseCheckInterval = AccessController.doPrivileged(
... | java | private int getPeerLeaseCheckInterval() {
if (tc.isEntryEnabled())
Tr.entry(tc, "getPeerLeaseCheckInterval");
int intToReturn;
Integer peerLeaseCheckInterval = null;
try {
peerLeaseCheckInterval = AccessController.doPrivileged(
... | [
"private",
"int",
"getPeerLeaseCheckInterval",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getPeerLeaseCheckInterval\"",
")",
";",
"int",
"intToReturn",
";",
"Integer",
"peerLeaseCheckInterval",
... | This method retrieves a system property named com.ibm.tx.jta.impl.PeerLeaseCheckInterval
which allows a value to be specified for the time we should wait between peer server status checks.
@return | [
"This",
"method",
"retrieves",
"a",
"system",
"property",
"named",
"com",
".",
"ibm",
".",
"tx",
".",
"jta",
".",
"impl",
".",
"PeerLeaseCheckInterval",
"which",
"allows",
"a",
"value",
"to",
"be",
"specified",
"for",
"the",
"time",
"we",
"should",
"wait",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxRecoveryAgentImpl.java#L722-L749 |
70,702 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxRecoveryAgentImpl.java | TxRecoveryAgentImpl.doNotShutdownOnRecoveryFailure | private boolean doNotShutdownOnRecoveryFailure() {
if (tc.isEntryEnabled())
Tr.entry(tc, "doNotShutdownOnRecoveryFailure");
boolean doCheck = true;
Boolean doNotShutdownOnRecoveryFailure = null;
try {
doNotShutdownOnRecoveryFailure = AccessController.doPrivilege... | java | private boolean doNotShutdownOnRecoveryFailure() {
if (tc.isEntryEnabled())
Tr.entry(tc, "doNotShutdownOnRecoveryFailure");
boolean doCheck = true;
Boolean doNotShutdownOnRecoveryFailure = null;
try {
doNotShutdownOnRecoveryFailure = AccessController.doPrivilege... | [
"private",
"boolean",
"doNotShutdownOnRecoveryFailure",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"doNotShutdownOnRecoveryFailure\"",
")",
";",
"boolean",
"doCheck",
"=",
"true",
";",
"Boolean",... | This method retrieves a system property named com.ibm.ws.recoverylog.spi.DoNotShutdownOnRecoveryFailure
which allows the server to start with failed recovery logs - non 2PC work may still be performed by the server.
@return | [
"This",
"method",
"retrieves",
"a",
"system",
"property",
"named",
"com",
".",
"ibm",
".",
"ws",
".",
"recoverylog",
".",
"spi",
".",
"DoNotShutdownOnRecoveryFailure",
"which",
"allows",
"the",
"server",
"to",
"start",
"with",
"failed",
"recovery",
"logs",
"-"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/TxRecoveryAgentImpl.java#L792-L823 |
70,703 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/WCCustomProperties.java | WCCustomProperties.getStringKey | private static String getStringKey(String propertyKey) {
if (WCCustomProperties.FullyQualifiedPropertiesMap.containsKey(propertyKey)) {
return WCCustomProperties.FullyQualifiedPropertiesMap.get(propertyKey).toLowerCase();
} else {
return propertyKey;
}
} | java | private static String getStringKey(String propertyKey) {
if (WCCustomProperties.FullyQualifiedPropertiesMap.containsKey(propertyKey)) {
return WCCustomProperties.FullyQualifiedPropertiesMap.get(propertyKey).toLowerCase();
} else {
return propertyKey;
}
} | [
"private",
"static",
"String",
"getStringKey",
"(",
"String",
"propertyKey",
")",
"{",
"if",
"(",
"WCCustomProperties",
".",
"FullyQualifiedPropertiesMap",
".",
"containsKey",
"(",
"propertyKey",
")",
")",
"{",
"return",
"WCCustomProperties",
".",
"FullyQualifiedPrope... | propertyKey is lowerCase value | [
"propertyKey",
"is",
"lowerCase",
"value"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/WCCustomProperties.java#L408-L414 |
70,704 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java | LogRepositoryBaseImpl.createLockFile | protected void createLockFile(String pid, String label) throws IOException {
if (!AccessHelper.isDirectory(repositoryLocation)) {
AccessHelper.makeDirectories(repositoryLocation);
}
// Remove stale lock files if any.
for (File lock : listFiles(LOCKFILE_FILTER)) {
... | java | protected void createLockFile(String pid, String label) throws IOException {
if (!AccessHelper.isDirectory(repositoryLocation)) {
AccessHelper.makeDirectories(repositoryLocation);
}
// Remove stale lock files if any.
for (File lock : listFiles(LOCKFILE_FILTER)) {
... | [
"protected",
"void",
"createLockFile",
"(",
"String",
"pid",
",",
"String",
"label",
")",
"throws",
"IOException",
"{",
"if",
"(",
"!",
"AccessHelper",
".",
"isDirectory",
"(",
"repositoryLocation",
")",
")",
"{",
"AccessHelper",
".",
"makeDirectories",
"(",
"... | Creates lock file to be used as a pattern for instance repository.
Should be called only by parent's manager on start up.
@param pid process ID of the parent.
@param label label of the parent.
@throws IOException if there's a problem to create lock file. | [
"Creates",
"lock",
"file",
"to",
"be",
"used",
"as",
"a",
"pattern",
"for",
"instance",
"repository",
".",
"Should",
"be",
"called",
"only",
"by",
"parent",
"s",
"manager",
"on",
"start",
"up",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java#L143-L157 |
70,705 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java | LogRepositoryBaseImpl.getLogFile | protected File getLogFile(File parentLocation, long timestamp) {
if (timestamp < 0) {
throw new IllegalArgumentException("timestamp cannot be negative");
}
StringBuilder sb = new StringBuilder();
sb.append(timestamp).append(EXTENSION);
return new File(parentLocation, ... | java | protected File getLogFile(File parentLocation, long timestamp) {
if (timestamp < 0) {
throw new IllegalArgumentException("timestamp cannot be negative");
}
StringBuilder sb = new StringBuilder();
sb.append(timestamp).append(EXTENSION);
return new File(parentLocation, ... | [
"protected",
"File",
"getLogFile",
"(",
"File",
"parentLocation",
",",
"long",
"timestamp",
")",
"{",
"if",
"(",
"timestamp",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"timestamp cannot be negative\"",
")",
";",
"}",
"StringBuilder",
... | calculates repository file name.
@param timestamp the time in 'millis' of the first record in the file.
@return the file according to repository pattern | [
"calculates",
"repository",
"file",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java#L274-L281 |
70,706 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java | LogRepositoryBaseImpl.getLogFileTimestamp | public long getLogFileTimestamp(File file) {
if (file == null) {
return -1L;
}
String name = file.getName();
// Check name for extension
if (name == null || name.length() == 0 || !name.endsWith(EXTENSION)) {
return -1L;
}
try {
... | java | public long getLogFileTimestamp(File file) {
if (file == null) {
return -1L;
}
String name = file.getName();
// Check name for extension
if (name == null || name.length() == 0 || !name.endsWith(EXTENSION)) {
return -1L;
}
try {
... | [
"public",
"long",
"getLogFileTimestamp",
"(",
"File",
"file",
")",
"{",
"if",
"(",
"file",
"==",
"null",
")",
"{",
"return",
"-",
"1L",
";",
"}",
"String",
"name",
"=",
"file",
".",
"getName",
"(",
")",
";",
"// Check name for extension",
"if",
"(",
"n... | Retrieves the timestamp from the name of the file.
@param file to retrieve timestamp from.
@return timestamp in millis or -1 if name's pattern does not correspond
to the one used for files in the repository. | [
"Retrieves",
"the",
"timestamp",
"from",
"the",
"name",
"of",
"the",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java#L290-L307 |
70,707 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java | LogRepositoryBaseImpl.getLogDirectoryName | public String getLogDirectoryName(long timestamp, String pid, String label) {
if (pid == null || pid.isEmpty()) {
throw new IllegalArgumentException("pid cannot be empty");
}
StringBuilder sb = new StringBuilder();
if (timestamp > 0) {
sb.append(timestamp).append... | java | public String getLogDirectoryName(long timestamp, String pid, String label) {
if (pid == null || pid.isEmpty()) {
throw new IllegalArgumentException("pid cannot be empty");
}
StringBuilder sb = new StringBuilder();
if (timestamp > 0) {
sb.append(timestamp).append... | [
"public",
"String",
"getLogDirectoryName",
"(",
"long",
"timestamp",
",",
"String",
"pid",
",",
"String",
"label",
")",
"{",
"if",
"(",
"pid",
"==",
"null",
"||",
"pid",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
... | returns sub-directory name to be used for instances and sub-processes
@param timestamp time of the instance start. It should be negative for sub-processes
@param pid process Id of the instance or sub-process. It cannot be null or empty.
@param label additional identification to use on the sub-directory.
@return string... | [
"returns",
"sub",
"-",
"directory",
"name",
"to",
"be",
"used",
"for",
"instances",
"and",
"sub",
"-",
"processes"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java#L317-L334 |
70,708 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java | LogRepositoryBaseImpl.parseTimeStamp | public static long parseTimeStamp(String fileName) {
if (fileName == null || fileName.isEmpty()) {
return -1L;
}
int pidIndex = fileName.indexOf(TIMESEPARATOR);
int labelIndex = fileName.indexOf(LABELSEPARATOR);
// If no time separator or it's a part of the label ther... | java | public static long parseTimeStamp(String fileName) {
if (fileName == null || fileName.isEmpty()) {
return -1L;
}
int pidIndex = fileName.indexOf(TIMESEPARATOR);
int labelIndex = fileName.indexOf(LABELSEPARATOR);
// If no time separator or it's a part of the label ther... | [
"public",
"static",
"long",
"parseTimeStamp",
"(",
"String",
"fileName",
")",
"{",
"if",
"(",
"fileName",
"==",
"null",
"||",
"fileName",
".",
"isEmpty",
"(",
")",
")",
"{",
"return",
"-",
"1L",
";",
"}",
"int",
"pidIndex",
"=",
"fileName",
".",
"index... | Retrieves the timestamp out of the directory name.
example: directory file name for a serverinstance would be <repos_timestamp>_<pid>-<label>
returned would be <repos_timestamp> | [
"Retrieves",
"the",
"timestamp",
"out",
"of",
"the",
"directory",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java#L435-L450 |
70,709 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java | LogRepositoryBaseImpl.parsePIDandLabel | public static String parsePIDandLabel(String fileName) {
if (fileName == null || fileName.isEmpty()) {
return null;
}
int pidIndex = fileName.indexOf(TIMESEPARATOR);
int labelIndex = fileName.indexOf(LABELSEPARATOR);
// If no time separator or it's a part of the labe... | java | public static String parsePIDandLabel(String fileName) {
if (fileName == null || fileName.isEmpty()) {
return null;
}
int pidIndex = fileName.indexOf(TIMESEPARATOR);
int labelIndex = fileName.indexOf(LABELSEPARATOR);
// If no time separator or it's a part of the labe... | [
"public",
"static",
"String",
"parsePIDandLabel",
"(",
"String",
"fileName",
")",
"{",
"if",
"(",
"fileName",
"==",
"null",
"||",
"fileName",
".",
"isEmpty",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"int",
"pidIndex",
"=",
"fileName",
".",
"indexO... | Retrieves the PID and label combined out of the directory name.
@param fileName
@return | [
"Retrieves",
"the",
"PID",
"and",
"label",
"combined",
"out",
"of",
"the",
"directory",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryBaseImpl.java#L542-L555 |
70,710 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/ejs/ras/TraceNLS.java | TraceNLS.getFormattedMessageFromLocalizedMessage | public static String getFormattedMessageFromLocalizedMessage(String localizedMessage, Object[] args, boolean quiet) {
return TraceNLSResolver.getInstance().getFormattedMessage(localizedMessage, args);
} | java | public static String getFormattedMessageFromLocalizedMessage(String localizedMessage, Object[] args, boolean quiet) {
return TraceNLSResolver.getInstance().getFormattedMessage(localizedMessage, args);
} | [
"public",
"static",
"String",
"getFormattedMessageFromLocalizedMessage",
"(",
"String",
"localizedMessage",
",",
"Object",
"[",
"]",
"args",
",",
"boolean",
"quiet",
")",
"{",
"return",
"TraceNLSResolver",
".",
"getInstance",
"(",
")",
".",
"getFormattedMessage",
"(... | Return the formatted message obtained by substituting parameters passed
into a message
@param localizedMessage
the message into which parameters will be substituted
@param args
the arguments that will be substituted into the message
@param quiet
indicates whether or not errors will be logged when
encountered
@return S... | [
"Return",
"the",
"formatted",
"message",
"obtained",
"by",
"substituting",
"parameters",
"passed",
"into",
"a",
"message"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/ejs/ras/TraceNLS.java#L681-L683 |
70,711 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/Provisioner.java | Provisioner.resolveBundles | public void resolveBundles(BundleContext bContext, List<Bundle> bundlesToResolve) {
if (bundlesToResolve == null || bundlesToResolve.size() == 0) {
return;
}
FrameworkWiring wiring = adaptSystemBundle(bContext, FrameworkWiring.class);
if (wiring != null) {
Resolu... | java | public void resolveBundles(BundleContext bContext, List<Bundle> bundlesToResolve) {
if (bundlesToResolve == null || bundlesToResolve.size() == 0) {
return;
}
FrameworkWiring wiring = adaptSystemBundle(bContext, FrameworkWiring.class);
if (wiring != null) {
Resolu... | [
"public",
"void",
"resolveBundles",
"(",
"BundleContext",
"bContext",
",",
"List",
"<",
"Bundle",
">",
"bundlesToResolve",
")",
"{",
"if",
"(",
"bundlesToResolve",
"==",
"null",
"||",
"bundlesToResolve",
".",
"size",
"(",
")",
"==",
"0",
")",
"{",
"return",
... | Utility for resolving bundles
@param bundlesToResolve | [
"Utility",
"for",
"resolving",
"bundles"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/Provisioner.java#L532-L553 |
70,712 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/Provisioner.java | Provisioner.getBundleLocation | public static String getBundleLocation(String urlString, String productName) {
String productNameInfo = (productName != null && !productName.isEmpty()) ? (BUNDLE_LOC_PROD_EXT_TAG + productName + ":") : "";
return BUNDLE_LOC_FEATURE_TAG + productNameInfo + urlString;
} | java | public static String getBundleLocation(String urlString, String productName) {
String productNameInfo = (productName != null && !productName.isEmpty()) ? (BUNDLE_LOC_PROD_EXT_TAG + productName + ":") : "";
return BUNDLE_LOC_FEATURE_TAG + productNameInfo + urlString;
} | [
"public",
"static",
"String",
"getBundleLocation",
"(",
"String",
"urlString",
",",
"String",
"productName",
")",
"{",
"String",
"productNameInfo",
"=",
"(",
"productName",
"!=",
"null",
"&&",
"!",
"productName",
".",
"isEmpty",
"(",
")",
")",
"?",
"(",
"BUN... | Gets the bundle location.
The location format is consistent with what SchemaBundle and BundleList.
@return The bundle location. | [
"Gets",
"the",
"bundle",
"location",
".",
"The",
"location",
"format",
"is",
"consistent",
"with",
"what",
"SchemaBundle",
"and",
"BundleList",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/Provisioner.java#L628-L631 |
70,713 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/Provisioner.java | Provisioner.getRegionName | private String getRegionName(String productName) {
if (productName == null || productName.isEmpty()) {
return kernelRegion.getName();
}
return REGION_EXTENSION_PREFIX + INVALID_REGION_CHARS.matcher(productName).replaceAll("-");
} | java | private String getRegionName(String productName) {
if (productName == null || productName.isEmpty()) {
return kernelRegion.getName();
}
return REGION_EXTENSION_PREFIX + INVALID_REGION_CHARS.matcher(productName).replaceAll("-");
} | [
"private",
"String",
"getRegionName",
"(",
"String",
"productName",
")",
"{",
"if",
"(",
"productName",
"==",
"null",
"||",
"productName",
".",
"isEmpty",
"(",
")",
")",
"{",
"return",
"kernelRegion",
".",
"getName",
"(",
")",
";",
"}",
"return",
"REGION_E... | Gets the region name according to the product name.
@param productName the product name. Empty string or <code>null</code> indicates
the liberty profile itself.
@return the region name | [
"Gets",
"the",
"region",
"name",
"according",
"to",
"the",
"product",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/Provisioner.java#L640-L645 |
70,714 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/config/ConfigEntry.java | ConfigEntry.getESIDependencies | public static String getESIDependencies(Enumeration e1, Enumeration e2) {
if ((e1 == null || !e1.hasMoreElements()))
if ((e2 == null || !e2.hasMoreElements()))
return null;
StringBuffer sb = new StringBuffer("dependencies=\"");
if (e1 != null)
while (e1.hasMoreElements())... | java | public static String getESIDependencies(Enumeration e1, Enumeration e2) {
if ((e1 == null || !e1.hasMoreElements()))
if ((e2 == null || !e2.hasMoreElements()))
return null;
StringBuffer sb = new StringBuffer("dependencies=\"");
if (e1 != null)
while (e1.hasMoreElements())... | [
"public",
"static",
"String",
"getESIDependencies",
"(",
"Enumeration",
"e1",
",",
"Enumeration",
"e2",
")",
"{",
"if",
"(",
"(",
"e1",
"==",
"null",
"||",
"!",
"e1",
".",
"hasMoreElements",
"(",
")",
")",
")",
"if",
"(",
"(",
"e2",
"==",
"null",
"||... | expects an enumeration of data ids and an enumeration of templates | [
"expects",
"an",
"enumeration",
"of",
"data",
"ids",
"and",
"an",
"enumeration",
"of",
"templates"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/config/ConfigEntry.java#L127-L144 |
70,715 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElementList.java | ConfigElementList.getBy | public E getBy(String attributeName, String attributeValue) {
String methodName = "get" + Character.toUpperCase(attributeName.charAt(0)) + attributeName.substring(1);
for (E element : this)
if (element != null)
try {
Object value = element.getClass().getMe... | java | public E getBy(String attributeName, String attributeValue) {
String methodName = "get" + Character.toUpperCase(attributeName.charAt(0)) + attributeName.substring(1);
for (E element : this)
if (element != null)
try {
Object value = element.getClass().getMe... | [
"public",
"E",
"getBy",
"(",
"String",
"attributeName",
",",
"String",
"attributeValue",
")",
"{",
"String",
"methodName",
"=",
"\"get\"",
"+",
"Character",
".",
"toUpperCase",
"(",
"attributeName",
".",
"charAt",
"(",
"0",
")",
")",
"+",
"attributeName",
".... | Returns the first element in this list with a matching attribute value.
@param attributeName the attribute for which to search (Example: jndiName)
@param attributeValue the value to match
@return the first element in this list with a matching attribute name/value, or null of no such element is found | [
"Returns",
"the",
"first",
"element",
"in",
"this",
"list",
"with",
"a",
"matching",
"attribute",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElementList.java#L69-L80 |
70,716 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElementList.java | ConfigElementList.getById | public E getById(String id) {
if (id == null) {
for (E element : this) {
if (element != null && element.getId() == null) {
return element;
}
}
} else {
for (E element : this) {
if (element != null && ... | java | public E getById(String id) {
if (id == null) {
for (E element : this) {
if (element != null && element.getId() == null) {
return element;
}
}
} else {
for (E element : this) {
if (element != null && ... | [
"public",
"E",
"getById",
"(",
"String",
"id",
")",
"{",
"if",
"(",
"id",
"==",
"null",
")",
"{",
"for",
"(",
"E",
"element",
":",
"this",
")",
"{",
"if",
"(",
"element",
"!=",
"null",
"&&",
"element",
".",
"getId",
"(",
")",
"==",
"null",
")",... | Returns the first element in this list with a matching identifier
@param id the identifier to search for
@return the first element in this list with a matching identifier, or null of no such element is found | [
"Returns",
"the",
"first",
"element",
"in",
"this",
"list",
"with",
"a",
"matching",
"identifier"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElementList.java#L88-L103 |
70,717 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElementList.java | ConfigElementList.removeById | public E removeById(String id) {
// traverses the list twice, but reuse code
E element = this.getById(id);
if (element != null) {
this.remove(element); // this should always return true since we already found the element
}
return element;
} | java | public E removeById(String id) {
// traverses the list twice, but reuse code
E element = this.getById(id);
if (element != null) {
this.remove(element); // this should always return true since we already found the element
}
return element;
} | [
"public",
"E",
"removeById",
"(",
"String",
"id",
")",
"{",
"// traverses the list twice, but reuse code",
"E",
"element",
"=",
"this",
".",
"getById",
"(",
"id",
")",
";",
"if",
"(",
"element",
"!=",
"null",
")",
"{",
"this",
".",
"remove",
"(",
"element"... | Removes the first element in this list with a matching identifier
@param id the identifier to search for
@return the removed element, or null of no element was removed | [
"Removes",
"the",
"first",
"element",
"in",
"this",
"list",
"with",
"a",
"matching",
"identifier"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElementList.java#L127-L134 |
70,718 | OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElementList.java | ConfigElementList.getOrCreateById | public E getOrCreateById(String id, Class<E> type) throws IllegalAccessException, InstantiationException {
E element = this.getById(id);
if (element == null) {
element = type.newInstance();
element.setId(id);
this.add(element);
}
return element;
} | java | public E getOrCreateById(String id, Class<E> type) throws IllegalAccessException, InstantiationException {
E element = this.getById(id);
if (element == null) {
element = type.newInstance();
element.setId(id);
this.add(element);
}
return element;
} | [
"public",
"E",
"getOrCreateById",
"(",
"String",
"id",
",",
"Class",
"<",
"E",
">",
"type",
")",
"throws",
"IllegalAccessException",
",",
"InstantiationException",
"{",
"E",
"element",
"=",
"this",
".",
"getById",
"(",
"id",
")",
";",
"if",
"(",
"element",... | Returns the first element in this list with a matching identifier, or adds a new element to the end of this list and sets the identifier
@param id the identifier to search for
@param type the type of the element to add when no existing element is found. The type MUST have a public no-argument constructor (but it proba... | [
"Returns",
"the",
"first",
"element",
"in",
"this",
"list",
"with",
"a",
"matching",
"identifier",
"or",
"adds",
"a",
"new",
"element",
"to",
"the",
"end",
"of",
"this",
"list",
"and",
"sets",
"the",
"identifier"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElementList.java#L146-L154 |
70,719 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/trm/TrmMessageType.java | TrmMessageType.getTrmMessageType | public final static TrmMessageType getTrmMessageType(int aValue) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue);
return set[aValue];
} | java | public final static TrmMessageType getTrmMessageType(int aValue) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue);
return set[aValue];
} | [
"public",
"final",
"static",
"TrmMessageType",
"getTrmMessageType",
"(",
"int",
"aValue",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"SibTr",
".",
"debug",
"(",
"tc",
",",
... | Returns the corresponding TrmMessageType for a given integer.
This method should NOT be called by any code outside the MFP component.
It is only public so that it can be accessed by sub-packages.
@param aValue The integer for which an TrmMessageType is required.
@return The corresponding TrmMessageType | [
"Returns",
"the",
"corresponding",
"TrmMessageType",
"for",
"a",
"given",
"integer",
".",
"This",
"method",
"should",
"NOT",
"be",
"called",
"by",
"any",
"code",
"outside",
"the",
"MFP",
"component",
".",
"It",
"is",
"only",
"public",
"so",
"that",
"it",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/trm/TrmMessageType.java#L59-L62 |
70,720 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/ConcurrentServiceReferenceMap.java | ConcurrentServiceReferenceMap.getService | public V getService(K key) {
ComponentContext ctx = context;
if (ctx == null || key == null)
return null;
ConcurrentServiceReferenceElement<V> e = elementMap.get(key);
if (e == null) {
return null;
} else {
return e.getService(ctx);
}... | java | public V getService(K key) {
ComponentContext ctx = context;
if (ctx == null || key == null)
return null;
ConcurrentServiceReferenceElement<V> e = elementMap.get(key);
if (e == null) {
return null;
} else {
return e.getService(ctx);
}... | [
"public",
"V",
"getService",
"(",
"K",
"key",
")",
"{",
"ComponentContext",
"ctx",
"=",
"context",
";",
"if",
"(",
"ctx",
"==",
"null",
"||",
"key",
"==",
"null",
")",
"return",
"null",
";",
"ConcurrentServiceReferenceElement",
"<",
"V",
">",
"e",
"=",
... | Retrieve the service associated with key.
@param key The key associated with the requested service
@return The service if available, null otherwise. | [
"Retrieve",
"the",
"service",
"associated",
"with",
"key",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/ConcurrentServiceReferenceMap.java#L235-L247 |
70,721 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/ConcurrentServiceReferenceMap.java | ConcurrentServiceReferenceMap.getReference | public ServiceReference<V> getReference(K key) {
if (key == null)
return null;
ConcurrentServiceReferenceElement<V> e = elementMap.get(key);
if (e == null) {
return null;
} else {
return e.getReference();
}
} | java | public ServiceReference<V> getReference(K key) {
if (key == null)
return null;
ConcurrentServiceReferenceElement<V> e = elementMap.get(key);
if (e == null) {
return null;
} else {
return e.getReference();
}
} | [
"public",
"ServiceReference",
"<",
"V",
">",
"getReference",
"(",
"K",
"key",
")",
"{",
"if",
"(",
"key",
"==",
"null",
")",
"return",
"null",
";",
"ConcurrentServiceReferenceElement",
"<",
"V",
">",
"e",
"=",
"elementMap",
".",
"get",
"(",
"key",
")",
... | Returns the ServiceReference associated with key
@param key The key associated with the service
@return ServiceRerefence associated with key, or null | [
"Returns",
"the",
"ServiceReference",
"associated",
"with",
"key"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/ConcurrentServiceReferenceMap.java#L280-L290 |
70,722 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/provisioning/ProductExtension.java | ProductExtension.getProductExtensions | public static List<ProductExtensionInfo> getProductExtensions(File installDir) {
ArrayList<ProductExtensionInfo> productList = new ArrayList<ProductExtensionInfo>();
Set<String> extensionsSoFar = new HashSet<String>();
// Get the embedder SPI product extensions
HashMap<String, Propertie... | java | public static List<ProductExtensionInfo> getProductExtensions(File installDir) {
ArrayList<ProductExtensionInfo> productList = new ArrayList<ProductExtensionInfo>();
Set<String> extensionsSoFar = new HashSet<String>();
// Get the embedder SPI product extensions
HashMap<String, Propertie... | [
"public",
"static",
"List",
"<",
"ProductExtensionInfo",
">",
"getProductExtensions",
"(",
"File",
"installDir",
")",
"{",
"ArrayList",
"<",
"ProductExtensionInfo",
">",
"productList",
"=",
"new",
"ArrayList",
"<",
"ProductExtensionInfo",
">",
"(",
")",
";",
"Set"... | Get a list of configured product extensions.
Merge any Product Extensions from:
1) Embedder SPI;
2) WLP_PRODUCT_EXT_DIR environment variable; and
3) etc/extensions.
The order listed is the order of override when gathering the list of ProductExtensionInfo.
@param installDir File representing the install path.
@return... | [
"Get",
"a",
"list",
"of",
"configured",
"product",
"extensions",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/provisioning/ProductExtension.java#L87-L134 |
70,723 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/provisioning/ProductExtension.java | ProductExtension.getProductExtension | public static ProductExtensionInfo getProductExtension(String extensionName) throws IOException {
ProductExtensionInfo productExtensionInfo = null;
List<ProductExtensionInfo> productExtensionList = getProductExtensions(Utils.getInstallDir());
for (ProductExtensionInfo currentProductExtension :... | java | public static ProductExtensionInfo getProductExtension(String extensionName) throws IOException {
ProductExtensionInfo productExtensionInfo = null;
List<ProductExtensionInfo> productExtensionList = getProductExtensions(Utils.getInstallDir());
for (ProductExtensionInfo currentProductExtension :... | [
"public",
"static",
"ProductExtensionInfo",
"getProductExtension",
"(",
"String",
"extensionName",
")",
"throws",
"IOException",
"{",
"ProductExtensionInfo",
"productExtensionInfo",
"=",
"null",
";",
"List",
"<",
"ProductExtensionInfo",
">",
"productExtensionList",
"=",
"... | Find and return a particular configured product extension.
@return | [
"Find",
"and",
"return",
"a",
"particular",
"configured",
"product",
"extension",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/provisioning/ProductExtension.java#L197-L210 |
70,724 | OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.aries.jndi.core/src/org/apache/aries/jndi/startup/Activator.java | Activator.start | @Override
public void start(BundleContext context) {
initialContextFactories = initServiceTracker(context, InitialContextFactory.class, ServiceTrackerCustomizers.ICF_CACHE);
objectFactories = initServiceTracker(context, ObjectFactory.class, ServiceTrackerCustomizers.URL_FACTORY_CACHE);
icfB... | java | @Override
public void start(BundleContext context) {
initialContextFactories = initServiceTracker(context, InitialContextFactory.class, ServiceTrackerCustomizers.ICF_CACHE);
objectFactories = initServiceTracker(context, ObjectFactory.class, ServiceTrackerCustomizers.URL_FACTORY_CACHE);
icfB... | [
"@",
"Override",
"public",
"void",
"start",
"(",
"BundleContext",
"context",
")",
"{",
"initialContextFactories",
"=",
"initServiceTracker",
"(",
"context",
",",
"InitialContextFactory",
".",
"class",
",",
"ServiceTrackerCustomizers",
".",
"ICF_CACHE",
")",
";",
"ob... | private BundleTracker bt = null; | [
"private",
"BundleTracker",
"bt",
"=",
"null",
";"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.aries.jndi.core/src/org/apache/aries/jndi/startup/Activator.java#L83-L134 |
70,725 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java | URBridge.initialize | public void initialize(Map<String, Object> configProps) throws WIMException {
try {
reposId = (String) configProps.get(KEY_ID);
setCustomProperties((List<Map<String, String>>) configProps.get(ConfigConstants.CONFIG_DO_CUSTOM_PROPERTIES));
setMapping();
setBaseEnt... | java | public void initialize(Map<String, Object> configProps) throws WIMException {
try {
reposId = (String) configProps.get(KEY_ID);
setCustomProperties((List<Map<String, String>>) configProps.get(ConfigConstants.CONFIG_DO_CUSTOM_PROPERTIES));
setMapping();
setBaseEnt... | [
"public",
"void",
"initialize",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"configProps",
")",
"throws",
"WIMException",
"{",
"try",
"{",
"reposId",
"=",
"(",
"String",
")",
"configProps",
".",
"get",
"(",
"KEY_ID",
")",
";",
"setCustomProperties",
"("... | Initializes the user registry for use by the adapter.
@param configProps
@return | [
"Initializes",
"the",
"user",
"registry",
"for",
"use",
"by",
"the",
"adapter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java#L226-L283 |
70,726 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java | URBridge.setBaseEntry | private void setBaseEntry(Map<String, Object> configProps) throws WIMException {
/*
* Map<String, List<Map<String, Object>>> configMap = Nester.nest(configProps, BASE_ENTRY);
*
* for (Map<String, Object> entry : configMap.get(BASE_ENTRY)) {
* baseEntryName = (String) entry.get(BASE_ENTRY_NAME);
* }
*/
bas... | java | private void setBaseEntry(Map<String, Object> configProps) throws WIMException {
/*
* Map<String, List<Map<String, Object>>> configMap = Nester.nest(configProps, BASE_ENTRY);
*
* for (Map<String, Object> entry : configMap.get(BASE_ENTRY)) {
* baseEntryName = (String) entry.get(BASE_ENTRY_NAME);
* }
*/
bas... | [
"private",
"void",
"setBaseEntry",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"configProps",
")",
"throws",
"WIMException",
"{",
"/*\n * Map<String, List<Map<String, Object>>> configMap = Nester.nest(configProps, BASE_ENTRY);\n *\n * for (Map<String, Object> entry : configMap.get(B... | Set the baseEntryname from the configuration. The configuration
should have only 1 baseEntry
@param configProps Map containing the configuration information
for the baseEntries.
@throws WIMException Exception is thrown if no baseEntry is set. | [
"Set",
"the",
"baseEntryname",
"from",
"the",
"configuration",
".",
"The",
"configuration",
"should",
"have",
"only",
"1",
"baseEntry"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java#L293-L307 |
70,727 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java | URBridge.setCustomProperties | private void setCustomProperties(List<Map<String, String>> propList) throws WIMException {
final String METHODNAME = "setCustomProperties";
customPropertyMap = new HashMap<String, String>();
if (propList == null) {
return;
}
Iterator<Map<String, String>> itr = propLis... | java | private void setCustomProperties(List<Map<String, String>> propList) throws WIMException {
final String METHODNAME = "setCustomProperties";
customPropertyMap = new HashMap<String, String>();
if (propList == null) {
return;
}
Iterator<Map<String, String>> itr = propLis... | [
"private",
"void",
"setCustomProperties",
"(",
"List",
"<",
"Map",
"<",
"String",
",",
"String",
">",
">",
"propList",
")",
"throws",
"WIMException",
"{",
"final",
"String",
"METHODNAME",
"=",
"\"setCustomProperties\"",
";",
"customPropertyMap",
"=",
"new",
"Has... | Set Custom UR Bridge properties.
@param propList
@throws WIMException | [
"Set",
"Custom",
"UR",
"Bridge",
"properties",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java#L315-L333 |
70,728 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java | URBridge.setConfigEntityMapping | private void setConfigEntityMapping(Map<String, Object> configProps) throws WIMException {
List<String> entityTypes = getSupportedEntityTypes();
String rdnProp;
String type = null;
entityConfigMap = new HashMap<String, String>();
for (int i = 0; i < entityTypes.size(); i++) {
... | java | private void setConfigEntityMapping(Map<String, Object> configProps) throws WIMException {
List<String> entityTypes = getSupportedEntityTypes();
String rdnProp;
String type = null;
entityConfigMap = new HashMap<String, String>();
for (int i = 0; i < entityTypes.size(); i++) {
... | [
"private",
"void",
"setConfigEntityMapping",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"configProps",
")",
"throws",
"WIMException",
"{",
"List",
"<",
"String",
">",
"entityTypes",
"=",
"getSupportedEntityTypes",
"(",
")",
";",
"String",
"rdnProp",
";",
"... | Set the mapping of RDN properties for each entity type. A map is created
with the key as the entity type and the value as the RDN property to be used.
This information is taken from the configuration.
@param configProps map containing the configuration information.
@throws WIMException throw when there is not a mappi... | [
"Set",
"the",
"mapping",
"of",
"RDN",
"properties",
"for",
"each",
"entity",
"type",
".",
"A",
"map",
"is",
"created",
"with",
"the",
"key",
"as",
"the",
"entity",
"type",
"and",
"the",
"value",
"as",
"the",
"RDN",
"property",
"to",
"be",
"used",
".",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java#L345-L360 |
70,729 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java | URBridge.validateEntity | private String validateEntity(Entity entity) throws WIMException {
String METHODNAME = "validateEntity";
String type = null;
String secName = null;
String uniqueId = null;
String uniqueName = null;
if (entity.getIdentifier().isSet(SchemaConstants.PROP_UNIQUE_NAME)) {
... | java | private String validateEntity(Entity entity) throws WIMException {
String METHODNAME = "validateEntity";
String type = null;
String secName = null;
String uniqueId = null;
String uniqueName = null;
if (entity.getIdentifier().isSet(SchemaConstants.PROP_UNIQUE_NAME)) {
... | [
"private",
"String",
"validateEntity",
"(",
"Entity",
"entity",
")",
"throws",
"WIMException",
"{",
"String",
"METHODNAME",
"=",
"\"validateEntity\"",
";",
"String",
"type",
"=",
"null",
";",
"String",
"secName",
"=",
"null",
";",
"String",
"uniqueId",
"=",
"n... | if type is null throw ENFE to be handled by get API. | [
"if",
"type",
"is",
"null",
"throw",
"ENFE",
"to",
"be",
"handled",
"by",
"get",
"API",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java#L577-L635 |
70,730 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java | URBridge.getSecNameFromUniqueID | private String getSecNameFromUniqueID(String uniqueId) throws WIMException {
String METHODNAME = "getSecNameFromUniqueID";
String secName = null;
try {
secName = getUserSecurityName(uniqueId);
} catch (EntryNotFoundException e) {
try {
secName = ge... | java | private String getSecNameFromUniqueID(String uniqueId) throws WIMException {
String METHODNAME = "getSecNameFromUniqueID";
String secName = null;
try {
secName = getUserSecurityName(uniqueId);
} catch (EntryNotFoundException e) {
try {
secName = ge... | [
"private",
"String",
"getSecNameFromUniqueID",
"(",
"String",
"uniqueId",
")",
"throws",
"WIMException",
"{",
"String",
"METHODNAME",
"=",
"\"getSecNameFromUniqueID\"",
";",
"String",
"secName",
"=",
"null",
";",
"try",
"{",
"secName",
"=",
"getUserSecurityName",
"(... | Since UserRegistry throws CustomRegistryException in case of secName not found
modify code to handle CustomRegistryException similar to EntryNotFoundException.
@param uniqueId
@return
@throws WIMException | [
"Since",
"UserRegistry",
"throws",
"CustomRegistryException",
"in",
"case",
"of",
"secName",
"not",
"found",
"modify",
"code",
"to",
"handle",
"CustomRegistryException",
"similar",
"to",
"EntryNotFoundException",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java#L645-L670 |
70,731 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java | URBridge.getRDN | private String getRDN(String name) {
if (name == null) {
return name;
}
int indexOfEqual = name.indexOf('=');
if (indexOfEqual < 0) {
return name;
}
String rdnValue = name.substring(0, indexOfEqual);
return rdnValue;
} | java | private String getRDN(String name) {
if (name == null) {
return name;
}
int indexOfEqual = name.indexOf('=');
if (indexOfEqual < 0) {
return name;
}
String rdnValue = name.substring(0, indexOfEqual);
return rdnValue;
} | [
"private",
"String",
"getRDN",
"(",
"String",
"name",
")",
"{",
"if",
"(",
"name",
"==",
"null",
")",
"{",
"return",
"name",
";",
"}",
"int",
"indexOfEqual",
"=",
"name",
".",
"indexOf",
"(",
"'",
"'",
")",
";",
"if",
"(",
"indexOfEqual",
"<",
"0",... | The method reads the uniqueName of the user and returns the rdn property | [
"The",
"method",
"reads",
"the",
"uniqueName",
"of",
"the",
"user",
"and",
"returns",
"the",
"rdn",
"property"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java#L738-L748 |
70,732 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java | URBridge.isEntityInRealm | @FFDCIgnore(Exception.class)
public boolean isEntityInRealm(String uniqueName) {
if (isSafRegistry()) {
try {
return userRegistry.isValidUser(uniqueName);
} catch (Exception e) {
/* Ignore. */
}
try {
return us... | java | @FFDCIgnore(Exception.class)
public boolean isEntityInRealm(String uniqueName) {
if (isSafRegistry()) {
try {
return userRegistry.isValidUser(uniqueName);
} catch (Exception e) {
/* Ignore. */
}
try {
return us... | [
"@",
"FFDCIgnore",
"(",
"Exception",
".",
"class",
")",
"public",
"boolean",
"isEntityInRealm",
"(",
"String",
"uniqueName",
")",
"{",
"if",
"(",
"isSafRegistry",
"(",
")",
")",
"{",
"try",
"{",
"return",
"userRegistry",
".",
"isValidUser",
"(",
"uniqueName"... | Is the entity in this realm?
@param uniqueName The entity unique name.
@return True if the entity is in the realm, false if the entity is not. | [
"Is",
"the",
"entity",
"in",
"this",
"realm?"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/adapter/urbridge/URBridge.java#L1276-L1310 |
70,733 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java | TransmissionDataIterator.setFields | private void setFields(Connection connection,
JFapByteBuffer buffer,
int priority,
boolean isPooled,
boolean isExchange,
int segmentType,
int conversationId,
... | java | private void setFields(Connection connection,
JFapByteBuffer buffer,
int priority,
boolean isPooled,
boolean isExchange,
int segmentType,
int conversationId,
... | [
"private",
"void",
"setFields",
"(",
"Connection",
"connection",
",",
"JFapByteBuffer",
"buffer",
",",
"int",
"priority",
",",
"boolean",
"isPooled",
",",
"boolean",
"isExchange",
",",
"int",
"segmentType",
",",
"int",
"conversationId",
",",
"int",
"requestNumber"... | Helper method which sets up fields in this class.
@param connection
@param buffer
@param priority
@param isPooled
@param isExchange
@param segmentType
@param conversationId
@param requestNumber
@param conversation
@param sendListener
@param isTerminal
@param size | [
"Helper",
"method",
"which",
"sets",
"up",
"fields",
"in",
"this",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java#L116-L142 |
70,734 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java | TransmissionDataIterator.reset | private void reset(Connection connection,
JFapByteBuffer buffer,
int priority,
boolean isPooled,
boolean isExchange,
int segmentType,
int conversationId,
int requestN... | java | private void reset(Connection connection,
JFapByteBuffer buffer,
int priority,
boolean isPooled,
boolean isExchange,
int segmentType,
int conversationId,
int requestN... | [
"private",
"void",
"reset",
"(",
"Connection",
"connection",
",",
"JFapByteBuffer",
"buffer",
",",
"int",
"priority",
",",
"boolean",
"isPooled",
",",
"boolean",
"isExchange",
",",
"int",
"segmentType",
",",
"int",
"conversationId",
",",
"int",
"requestNumber",
... | Resets the iterator so it is read for use with a new piece of user data.
@param connection
@param data
@param priority
@param isPooled
@param isExchange
@param segmentType
@param conversationId
@param requestNumber
@param conversation
@param sendListener
@param isUserRequest
@param isTerminal
@param size | [
"Resets",
"the",
"iterator",
"so",
"it",
"is",
"read",
"for",
"use",
"with",
"a",
"new",
"piece",
"of",
"user",
"data",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java#L160-L190 |
70,735 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java | TransmissionDataIterator.hasNext | public boolean hasNext()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "hasNext");
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "hasNext", ""+transmissionsRemaining);
return transmissionsRemaining;
} | java | public boolean hasNext()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "hasNext");
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "hasNext", ""+transmissionsRemaining);
return transmissionsRemaining;
} | [
"public",
"boolean",
"hasNext",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"hasNext\"",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
... | Returns true if this iterator contains more transmission data objects.
@return Returns true if this iterator contains more transmission data objects. | [
"Returns",
"true",
"if",
"this",
"iterator",
"contains",
"more",
"transmission",
"data",
"objects",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java#L196-L201 |
70,736 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java | TransmissionDataIterator.allocateFromPool | protected static TransmissionDataIterator allocateFromPool(Connection connection,
JFapByteBuffer buffer,
int priority,
boolean isPoole... | java | protected static TransmissionDataIterator allocateFromPool(Connection connection,
JFapByteBuffer buffer,
int priority,
boolean isPoole... | [
"protected",
"static",
"TransmissionDataIterator",
"allocateFromPool",
"(",
"Connection",
"connection",
",",
"JFapByteBuffer",
"buffer",
",",
"int",
"priority",
",",
"boolean",
"isPooled",
",",
"boolean",
"isExchange",
",",
"int",
"segmentType",
",",
"int",
"conversat... | Allocates an instance of this class from a pool | [
"Allocates",
"an",
"instance",
"of",
"this",
"class",
"from",
"a",
"pool"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java#L321-L341 |
70,737 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java | TransmissionDataIterator.release | protected void release()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "release");
if (!transmissionsRemaining)
{
if (tc.isDebugEnabled()) SibTr.debug(this, tc, "no more transmissions remaining - repooling");
// Ensure we release the byte buffers back into the pool
... | java | protected void release()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "release");
if (!transmissionsRemaining)
{
if (tc.isDebugEnabled()) SibTr.debug(this, tc, "no more transmissions remaining - repooling");
// Ensure we release the byte buffers back into the pool
... | [
"protected",
"void",
"release",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"release\"",
")",
";",
"if",
"(",
"!",
"transmissionsRemaining",
")",
"{",
"if",
"(",
"tc",
... | Returns a previously allocated instance of this class to the pool | [
"Returns",
"a",
"previously",
"allocated",
"instance",
"of",
"this",
"class",
"to",
"the",
"pool"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java#L345-L365 |
70,738 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java | TransmissionDataIterator.getPriority | protected int getPriority()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getPriority");
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getPriority", ""+priority);
return priority;
} | java | protected int getPriority()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getPriority");
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getPriority", ""+priority);
return priority;
} | [
"protected",
"int",
"getPriority",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getPriority\"",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
... | Returns the priority for data transmissions in this iterator | [
"Returns",
"the",
"priority",
"for",
"data",
"transmissions",
"in",
"this",
"iterator"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java#L368-L373 |
70,739 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java | TransmissionDataIterator.setPriority | protected void setPriority(int priority)
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "setPriority", ""+priority);
this.priority = priority;
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "setPriority");
} | java | protected void setPriority(int priority)
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "setPriority", ""+priority);
this.priority = priority;
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "setPriority");
} | [
"protected",
"void",
"setPriority",
"(",
"int",
"priority",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setPriority\"",
",",
"\"\"",
"+",
"priority",
")",
";",
"this",
".",
"... | Sets the priority for data transmissions in this iterator. This is
used when data is enqueued to the priority queue with the "lowest available"
option set - and we need to assigne it a hard priority | [
"Sets",
"the",
"priority",
"for",
"data",
"transmissions",
"in",
"this",
"iterator",
".",
"This",
"is",
"used",
"when",
"data",
"is",
"enqueued",
"to",
"the",
"priority",
"queue",
"with",
"the",
"lowest",
"available",
"option",
"set",
"-",
"and",
"we",
"ne... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java#L380-L385 |
70,740 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java | TransmissionDataIterator.getSize | protected int getSize()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getSize");
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getSize", ""+size);
return size;
} | java | protected int getSize()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getSize");
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getSize", ""+size);
return size;
} | [
"protected",
"int",
"getSize",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getSize\"",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
... | Returns the size of the payload data the user requested tranmitted.
@return Returns the size of the payload data the user requested tranmitted. | [
"Returns",
"the",
"size",
"of",
"the",
"payload",
"data",
"the",
"user",
"requested",
"tranmitted",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionDataIterator.java#L391-L396 |
70,741 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.instrument.serialfilter/src/com/ibm/ws/kernel/instrument/serialfilter/agenthelper/PreMainUtil.java | PreMainUtil.isDebugEnabled | public static boolean isDebugEnabled() {
String value = System.getProperty(DEBUG_PROPERTY);
if (value != null && "true".equalsIgnoreCase(value)) {
return true;
}
return false;
} | java | public static boolean isDebugEnabled() {
String value = System.getProperty(DEBUG_PROPERTY);
if (value != null && "true".equalsIgnoreCase(value)) {
return true;
}
return false;
} | [
"public",
"static",
"boolean",
"isDebugEnabled",
"(",
")",
"{",
"String",
"value",
"=",
"System",
".",
"getProperty",
"(",
"DEBUG_PROPERTY",
")",
";",
"if",
"(",
"value",
"!=",
"null",
"&&",
"\"true\"",
".",
"equalsIgnoreCase",
"(",
"value",
")",
")",
"{",... | Since logger is not activated while processing premain, the trace data needs to be logged by using System.out. | [
"Since",
"logger",
"is",
"not",
"activated",
"while",
"processing",
"premain",
"the",
"trace",
"data",
"needs",
"to",
"be",
"logged",
"by",
"using",
"System",
".",
"out",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.instrument.serialfilter/src/com/ibm/ws/kernel/instrument/serialfilter/agenthelper/PreMainUtil.java#L33-L39 |
70,742 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/PackageCommand.java | PackageCommand.getDefaultPackageExtension | private String getDefaultPackageExtension() {
// Default package format on z/OS is a pax
if ("z/OS".equalsIgnoreCase(bootProps.get("os.name"))) {
return "pax";
}
if (PackageProcessor.IncludeOption.RUNNABLE.matches(includeOption)) {
return "jar";
}
... | java | private String getDefaultPackageExtension() {
// Default package format on z/OS is a pax
if ("z/OS".equalsIgnoreCase(bootProps.get("os.name"))) {
return "pax";
}
if (PackageProcessor.IncludeOption.RUNNABLE.matches(includeOption)) {
return "jar";
}
... | [
"private",
"String",
"getDefaultPackageExtension",
"(",
")",
"{",
"// Default package format on z/OS is a pax",
"if",
"(",
"\"z/OS\"",
".",
"equalsIgnoreCase",
"(",
"bootProps",
".",
"get",
"(",
"\"os.name\"",
")",
")",
")",
"{",
"return",
"\"pax\"",
";",
"}",
"if... | Determine the default package format for the current operating system.
@return "pax" on z/OS and "zip" for all others | [
"Determine",
"the",
"default",
"package",
"format",
"for",
"the",
"current",
"operating",
"system",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/PackageCommand.java#L322-L334 |
70,743 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/ASN1Set.java | ASN1Set.getInstance | public static ASN1Set getInstance(
Object obj)
{
if (obj == null || obj instanceof ASN1Set)
{
return (ASN1Set)obj;
}
throw new IllegalArgumentException("unknown object in getInstance");
} | java | public static ASN1Set getInstance(
Object obj)
{
if (obj == null || obj instanceof ASN1Set)
{
return (ASN1Set)obj;
}
throw new IllegalArgumentException("unknown object in getInstance");
} | [
"public",
"static",
"ASN1Set",
"getInstance",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"obj",
"==",
"null",
"||",
"obj",
"instanceof",
"ASN1Set",
")",
"{",
"return",
"(",
"ASN1Set",
")",
"obj",
";",
"}",
"throw",
"new",
"IllegalArgumentException",
"(",
... | return an ASN1Set from the given object.
@param obj the object we want converted.
@exception IllegalArgumentException if the object cannot be converted. | [
"return",
"an",
"ASN1Set",
"from",
"the",
"given",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/ASN1Set.java#L33-L42 |
70,744 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/support/LibertyHTTPTransportFactory.java | LibertyHTTPTransportFactory.getConduit | @Override
public Conduit getConduit(EndpointInfo endpointInfo, EndpointReferenceType target) throws IOException {
//create our LibertyHTTPConduit so that we can set the TCCL when run the handleResponseInternal asynchronously
LibertyHTTPConduit conduit = new LibertyHTTPConduit(bus, endpointInfo, targ... | java | @Override
public Conduit getConduit(EndpointInfo endpointInfo, EndpointReferenceType target) throws IOException {
//create our LibertyHTTPConduit so that we can set the TCCL when run the handleResponseInternal asynchronously
LibertyHTTPConduit conduit = new LibertyHTTPConduit(bus, endpointInfo, targ... | [
"@",
"Override",
"public",
"Conduit",
"getConduit",
"(",
"EndpointInfo",
"endpointInfo",
",",
"EndpointReferenceType",
"target",
")",
"throws",
"IOException",
"{",
"//create our LibertyHTTPConduit so that we can set the TCCL when run the handleResponseInternal asynchronously",
"Liber... | set the auto-redirect to true | [
"set",
"the",
"auto",
"-",
"redirect",
"to",
"true"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/support/LibertyHTTPTransportFactory.java#L41-L77 |
70,745 | OpenLiberty/open-liberty | dev/com.ibm.ws.crypto.ltpakeyutil/src/com/ibm/ws/crypto/ltpakeyutil/LTPACrypto.java | LTPACrypto.setRSAKey | protected static final void setRSAKey(byte[][] key) {
BigInteger[] k = new BigInteger[8];
for (int i = 0; i < 8; i++) {
if (key[i] != null) {
k[i] = new BigInteger(1, key[i]);
}
}
if (k[3].compareTo(k[4]) < 0) {
BigInteger tmp;
... | java | protected static final void setRSAKey(byte[][] key) {
BigInteger[] k = new BigInteger[8];
for (int i = 0; i < 8; i++) {
if (key[i] != null) {
k[i] = new BigInteger(1, key[i]);
}
}
if (k[3].compareTo(k[4]) < 0) {
BigInteger tmp;
... | [
"protected",
"static",
"final",
"void",
"setRSAKey",
"(",
"byte",
"[",
"]",
"[",
"]",
"key",
")",
"{",
"BigInteger",
"[",
"]",
"k",
"=",
"new",
"BigInteger",
"[",
"8",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"8",
";",
"i",
... | Set the key for RSA algorithms.
@param key The key | [
"Set",
"the",
"key",
"for",
"RSA",
"algorithms",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.ltpakeyutil/src/com/ibm/ws/crypto/ltpakeyutil/LTPACrypto.java#L533-L570 |
70,746 | OpenLiberty/open-liberty | dev/com.ibm.ws.crypto.ltpakeyutil/src/com/ibm/ws/crypto/ltpakeyutil/LTPACrypto.java | LTPACrypto.encrypt | protected static final byte[] encrypt(byte[] data, byte[] key, String cipher) throws Exception {
SecretKey sKey = constructSecretKey(key, cipher);
Cipher ci = createCipher(Cipher.ENCRYPT_MODE, key, cipher, sKey);
return ci.doFinal(data);
} | java | protected static final byte[] encrypt(byte[] data, byte[] key, String cipher) throws Exception {
SecretKey sKey = constructSecretKey(key, cipher);
Cipher ci = createCipher(Cipher.ENCRYPT_MODE, key, cipher, sKey);
return ci.doFinal(data);
} | [
"protected",
"static",
"final",
"byte",
"[",
"]",
"encrypt",
"(",
"byte",
"[",
"]",
"data",
",",
"byte",
"[",
"]",
"key",
",",
"String",
"cipher",
")",
"throws",
"Exception",
"{",
"SecretKey",
"sKey",
"=",
"constructSecretKey",
"(",
"key",
",",
"cipher",... | Encrypt the data.
@param data The byte representation of the data
@param key The key used to encrypt the data
@param cipher The cipher algorithm
@return The encrypted data (ciphertext) | [
"Encrypt",
"the",
"data",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.ltpakeyutil/src/com/ibm/ws/crypto/ltpakeyutil/LTPACrypto.java#L643-L647 |
70,747 | OpenLiberty/open-liberty | dev/com.ibm.ws.crypto.ltpakeyutil/src/com/ibm/ws/crypto/ltpakeyutil/LTPACrypto.java | LTPACrypto.decrypt | protected static final byte[] decrypt(byte[] msg, byte[] key, String cipher) throws Exception {
SecretKey sKey = constructSecretKey(key, cipher);
Cipher ci = createCipher(Cipher.DECRYPT_MODE, key, cipher, sKey);
return ci.doFinal(msg);
} | java | protected static final byte[] decrypt(byte[] msg, byte[] key, String cipher) throws Exception {
SecretKey sKey = constructSecretKey(key, cipher);
Cipher ci = createCipher(Cipher.DECRYPT_MODE, key, cipher, sKey);
return ci.doFinal(msg);
} | [
"protected",
"static",
"final",
"byte",
"[",
"]",
"decrypt",
"(",
"byte",
"[",
"]",
"msg",
",",
"byte",
"[",
"]",
"key",
",",
"String",
"cipher",
")",
"throws",
"Exception",
"{",
"SecretKey",
"sKey",
"=",
"constructSecretKey",
"(",
"key",
",",
"cipher",
... | Decrypt the specified msg.
@param msg The byte representation of the data
@param key The key used to decrypt the data
@param cipher The cipher algorithm
@return The decrypted data (plaintext) | [
"Decrypt",
"the",
"specified",
"msg",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.ltpakeyutil/src/com/ibm/ws/crypto/ltpakeyutil/LTPACrypto.java#L657-L661 |
70,748 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaReferenceUtilsImpl.java | JmsJcaReferenceUtilsImpl.populatePrefixTable | public void populatePrefixTable() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(TRACE, "populatePrefixTable");
}
// Create the storage.
prefixTable = new HashMap<Class,String>();
// Populate with the supported (non-null) data t... | java | public void populatePrefixTable() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(TRACE, "populatePrefixTable");
}
// Create the storage.
prefixTable = new HashMap<Class,String>();
// Populate with the supported (non-null) data t... | [
"public",
"void",
"populatePrefixTable",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"TRACE",
",",
"\"populatePrefixTable\"",
")",
";"... | Populates the prefix table for use when creating a Reference to a
ConnFactory. Creates a map between supported data types for properties
and the prefix used to store them. | [
"Populates",
"the",
"prefix",
"table",
"for",
"use",
"when",
"creating",
"a",
"Reference",
"to",
"a",
"ConnFactory",
".",
"Creates",
"a",
"map",
"between",
"supported",
"data",
"types",
"for",
"properties",
"and",
"the",
"prefix",
"used",
"to",
"store",
"the... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaReferenceUtilsImpl.java#L76-L101 |
70,749 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaReferenceUtilsImpl.java | JmsJcaReferenceUtilsImpl.getMapFromReference | public Map getMapFromReference(final Reference ref, final Map defaults) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "getMapFromReference", new Object[] {ref,defaults});
}
Map extractedProps = null;
// Extract a Map of th... | java | public Map getMapFromReference(final Reference ref, final Map defaults) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "getMapFromReference", new Object[] {ref,defaults});
}
Map extractedProps = null;
// Extract a Map of th... | [
"public",
"Map",
"getMapFromReference",
"(",
"final",
"Reference",
"ref",
",",
"final",
"Map",
"defaults",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
... | Uses the reference passed in to extract a map of properties which have
been stored in this Reference.
@param ref
the reference
@param defaults
the default set of properties to be used (those in the reference will override these)
@return the map of properties | [
"Uses",
"the",
"reference",
"passed",
"in",
"to",
"extract",
"a",
"map",
"of",
"properties",
"which",
"have",
"been",
"stored",
"in",
"this",
"Reference",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaReferenceUtilsImpl.java#L386-L427 |
70,750 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaReferenceUtilsImpl.java | JmsJcaReferenceUtilsImpl.populateReference | public void populateReference(final Reference reference,
final Map properties, final Map defaults) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "populateReference", new Object[] {
reference, properties, defaults});
... | java | public void populateReference(final Reference reference,
final Map properties, final Map defaults) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "populateReference", new Object[] {
reference, properties, defaults});
... | [
"public",
"void",
"populateReference",
"(",
"final",
"Reference",
"reference",
",",
"final",
"Map",
"properties",
",",
"final",
"Map",
"defaults",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
... | Dynamically populates the reference that it has been given using the
properties currently stored in this ConnectionFactory. Note that this way
of doing things automatically handles the adding of extra properties
without the need to change this code.
@param reference
the reference to populate
@param properties
the prop... | [
"Dynamically",
"populates",
"the",
"reference",
"that",
"it",
"has",
"been",
"given",
"using",
"the",
"properties",
"currently",
"stored",
"in",
"this",
"ConnectionFactory",
".",
"Note",
"that",
"this",
"way",
"of",
"doing",
"things",
"automatically",
"handles",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaReferenceUtilsImpl.java#L443-L470 |
70,751 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ServerJFapCommunicator.java | ServerJFapCommunicator.setCommsConnection | @Override
protected void setCommsConnection(CommsConnection cc) {
if (tc.isEntryEnabled())
SibTr.entry(this, tc, "setCommsConnection");
// Retrieve Client Conversation State if necessary
validateConversationState();
sConState.setCommsConnection(cc);
if (tc.isEn... | java | @Override
protected void setCommsConnection(CommsConnection cc) {
if (tc.isEntryEnabled())
SibTr.entry(this, tc, "setCommsConnection");
// Retrieve Client Conversation State if necessary
validateConversationState();
sConState.setCommsConnection(cc);
if (tc.isEn... | [
"@",
"Override",
"protected",
"void",
"setCommsConnection",
"(",
"CommsConnection",
"cc",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setCommsConnection\"",
")",
";",
"// Retrieve Cl... | Sets the CommsConnection associated with this Conversation
@param cc | [
"Sets",
"the",
"CommsConnection",
"associated",
"with",
"this",
"Conversation"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/ServerJFapCommunicator.java#L108-L120 |
70,752 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/GenericTransportAcceptListener.java | GenericTransportAcceptListener.acceptConnection | public ConversationReceiveListener acceptConnection(Conversation cfConversation) {
if (tc.isEntryEnabled())
SibTr.entry(tc, "acceptConnection");
// Return new instance of a GenericTransportReceiveListener. This listener
// determines whether data has been received from a client or M... | java | public ConversationReceiveListener acceptConnection(Conversation cfConversation) {
if (tc.isEntryEnabled())
SibTr.entry(tc, "acceptConnection");
// Return new instance of a GenericTransportReceiveListener. This listener
// determines whether data has been received from a client or M... | [
"public",
"ConversationReceiveListener",
"acceptConnection",
"(",
"Conversation",
"cfConversation",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"acceptConnection\"",
")",
";",
"// Return new instance of a... | Notified when a new conversation is accepted by a listening socket.
@param cfConversation The new conversation.
@return The conversation receive listener to use for asynchronous receive
notification for this whole conversation. | [
"Notified",
"when",
"a",
"new",
"conversation",
"is",
"accepted",
"by",
"a",
"listening",
"socket",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/GenericTransportAcceptListener.java#L67-L79 |
70,753 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/SIBMBeanResultFactory.java | SIBMBeanResultFactory.createSIBQueuedMessage | public static QueuedMessage createSIBQueuedMessage(SIMPQueuedMessageControllable qmc) {
String id = null;
int jsApproximateLength = 0;
String name = null;
String state = null;
String transactionId = null;
String type = null;
String busSystemMessageId = null;
... | java | public static QueuedMessage createSIBQueuedMessage(SIMPQueuedMessageControllable qmc) {
String id = null;
int jsApproximateLength = 0;
String name = null;
String state = null;
String transactionId = null;
String type = null;
String busSystemMessageId = null;
... | [
"public",
"static",
"QueuedMessage",
"createSIBQueuedMessage",
"(",
"SIMPQueuedMessageControllable",
"qmc",
")",
"{",
"String",
"id",
"=",
"null",
";",
"int",
"jsApproximateLength",
"=",
"0",
";",
"String",
"name",
"=",
"null",
";",
"String",
"state",
"=",
"null... | Create a SIBQueuedMessageImpl instance from the supplied
SIMPQueuedMessageControllable.
@param qmc
@return | [
"Create",
"a",
"SIBQueuedMessageImpl",
"instance",
"from",
"the",
"supplied",
"SIMPQueuedMessageControllable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/SIBMBeanResultFactory.java#L43-L79 |
70,754 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/SIBMBeanResultFactory.java | SIBMBeanResultFactory.createSIBSubscription | public static MessagingSubscription createSIBSubscription(SIMPLocalSubscriptionControllable ls) {
long depth = 0;
String id = null;
int maxMsgs = 0;
String name = null;
String selector = null;
String subscriberId = null;
String[] topics = null;
depth = l... | java | public static MessagingSubscription createSIBSubscription(SIMPLocalSubscriptionControllable ls) {
long depth = 0;
String id = null;
int maxMsgs = 0;
String name = null;
String selector = null;
String subscriberId = null;
String[] topics = null;
depth = l... | [
"public",
"static",
"MessagingSubscription",
"createSIBSubscription",
"(",
"SIMPLocalSubscriptionControllable",
"ls",
")",
"{",
"long",
"depth",
"=",
"0",
";",
"String",
"id",
"=",
"null",
";",
"int",
"maxMsgs",
"=",
"0",
";",
"String",
"name",
"=",
"null",
";... | Create a MessagingSubscription instance from the supplied
SIMPLocalSubscriptionControllable.
@param ls
@return | [
"Create",
"a",
"MessagingSubscription",
"instance",
"from",
"the",
"supplied",
"SIMPLocalSubscriptionControllable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/admin/internal/SIBMBeanResultFactory.java#L296-L314 |
70,755 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsConfigHelper.java | StatsConfigHelper.getNLS | private static NLS getNLS(Locale l, String resourceBundle, String statsType) {
// init Locale
boolean bDefaultLocale = false;
if (l == null || l == Locale.getDefault()) {
bDefaultLocale = true;
l = Locale.getDefault();
}
NLS aNLS = null;
if (resou... | java | private static NLS getNLS(Locale l, String resourceBundle, String statsType) {
// init Locale
boolean bDefaultLocale = false;
if (l == null || l == Locale.getDefault()) {
bDefaultLocale = true;
l = Locale.getDefault();
}
NLS aNLS = null;
if (resou... | [
"private",
"static",
"NLS",
"getNLS",
"(",
"Locale",
"l",
",",
"String",
"resourceBundle",
",",
"String",
"statsType",
")",
"{",
"// init Locale",
"boolean",
"bDefaultLocale",
"=",
"false",
";",
"if",
"(",
"l",
"==",
"null",
"||",
"l",
"==",
"Locale",
".",... | in which case we dont cache | [
"in",
"which",
"case",
"we",
"dont",
"cache"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsConfigHelper.java#L76-L159 |
70,756 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsConfigHelper.java | StatsConfigHelper.getStatsConfig | public static PmiModuleConfig getStatsConfig(String statsType) {
PmiModuleConfig cfg = (PmiModuleConfig) rawConfigMap.get(statsType);
if (cfg == null)
cfg = _getStatsConfig(statsType, false, null);
return cfg;
} | java | public static PmiModuleConfig getStatsConfig(String statsType) {
PmiModuleConfig cfg = (PmiModuleConfig) rawConfigMap.get(statsType);
if (cfg == null)
cfg = _getStatsConfig(statsType, false, null);
return cfg;
} | [
"public",
"static",
"PmiModuleConfig",
"getStatsConfig",
"(",
"String",
"statsType",
")",
"{",
"PmiModuleConfig",
"cfg",
"=",
"(",
"PmiModuleConfig",
")",
"rawConfigMap",
".",
"get",
"(",
"statsType",
")",
";",
"if",
"(",
"cfg",
"==",
"null",
")",
"cfg",
"="... | No translation. | [
"No",
"translation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsConfigHelper.java#L190-L195 |
70,757 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsConfigHelper.java | StatsConfigHelper.getTranslatedStatsConfig | public static PmiModuleConfig getTranslatedStatsConfig(String statsType, Locale locale) {
PmiModuleConfig aCfg = getConfig(locale, statsType);
if (aCfg == null)
aCfg = _getStatsConfig(statsType, true, locale);
return aCfg;
} | java | public static PmiModuleConfig getTranslatedStatsConfig(String statsType, Locale locale) {
PmiModuleConfig aCfg = getConfig(locale, statsType);
if (aCfg == null)
aCfg = _getStatsConfig(statsType, true, locale);
return aCfg;
} | [
"public",
"static",
"PmiModuleConfig",
"getTranslatedStatsConfig",
"(",
"String",
"statsType",
",",
"Locale",
"locale",
")",
"{",
"PmiModuleConfig",
"aCfg",
"=",
"getConfig",
"(",
"locale",
",",
"statsType",
")",
";",
"if",
"(",
"aCfg",
"==",
"null",
")",
"aCf... | Translated based on the server locale | [
"Translated",
"based",
"on",
"the",
"server",
"locale"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsConfigHelper.java#L203-L209 |
70,758 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsConfigHelper.java | StatsConfigHelper.translateAndCache | public static void translateAndCache(PmiModuleConfig cfg, Locale l) {
PmiModuleConfig aCfg = getConfig(l, cfg.getUID());
if (aCfg == null) {
aCfg = cfg.copy(); // create a copy before translating
// filter sub-module entry
if (aCfg != null) {
PmiData... | java | public static void translateAndCache(PmiModuleConfig cfg, Locale l) {
PmiModuleConfig aCfg = getConfig(l, cfg.getUID());
if (aCfg == null) {
aCfg = cfg.copy(); // create a copy before translating
// filter sub-module entry
if (aCfg != null) {
PmiData... | [
"public",
"static",
"void",
"translateAndCache",
"(",
"PmiModuleConfig",
"cfg",
",",
"Locale",
"l",
")",
"{",
"PmiModuleConfig",
"aCfg",
"=",
"getConfig",
"(",
"l",
",",
"cfg",
".",
"getUID",
"(",
")",
")",
";",
"if",
"(",
"aCfg",
"==",
"null",
")",
"{... | called by PmiRegistry. | [
"called",
"by",
"PmiRegistry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/stat/StatsConfigHelper.java#L430-L447 |
70,759 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleAggregate.java | ModuleAggregate.getPath | public String[] getPath() {
if (path != null)
return path;
else if (instanceName == null && type == TYPE_SUBMODULE)
return new String[] { moduleID, submoduleName };
else
return super.getPath();
} | java | public String[] getPath() {
if (path != null)
return path;
else if (instanceName == null && type == TYPE_SUBMODULE)
return new String[] { moduleID, submoduleName };
else
return super.getPath();
} | [
"public",
"String",
"[",
"]",
"getPath",
"(",
")",
"{",
"if",
"(",
"path",
"!=",
"null",
")",
"return",
"path",
";",
"else",
"if",
"(",
"instanceName",
"==",
"null",
"&&",
"type",
"==",
"TYPE_SUBMODULE",
")",
"return",
"new",
"String",
"[",
"]",
"{",... | overwrite getPath method | [
"overwrite",
"getPath",
"method"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/ModuleAggregate.java#L114-L121 |
70,760 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/control/SubscriptionMessageType.java | SubscriptionMessageType.getSubscriptionMessageType | public final static SubscriptionMessageType getSubscriptionMessageType(int aValue) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue);
return set[aValue];
} | java | public final static SubscriptionMessageType getSubscriptionMessageType(int aValue) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue);
return set[aValue];
} | [
"public",
"final",
"static",
"SubscriptionMessageType",
"getSubscriptionMessageType",
"(",
"int",
"aValue",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"SibTr",
".",
"debug",
"(",... | Returns the corresponding SubscriptionMessageType for a given integer.
This method should NOT be called by any code outside the MFP component.
It is only public so that it can be accessed by sub-packages.
@param aValue The integer for which an SubscriptionMessageType is required.
@return The corresponding Su... | [
"Returns",
"the",
"corresponding",
"SubscriptionMessageType",
"for",
"a",
"given",
"integer",
".",
"This",
"method",
"should",
"NOT",
"be",
"called",
"by",
"any",
"code",
"outside",
"the",
"MFP",
"component",
".",
"It",
"is",
"only",
"public",
"so",
"that",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/control/SubscriptionMessageType.java#L78-L81 |
70,761 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingList.java | BlockingList.fail | private void fail(final K key) {
final String methodName = "fail(): ";
stateLock.writeLock().lock();
try {
Integer index = actualIndices.remove(key);
if (index == null)
throw new IllegalArgumentException("unknown key: " + key);
elements[index] ... | java | private void fail(final K key) {
final String methodName = "fail(): ";
stateLock.writeLock().lock();
try {
Integer index = actualIndices.remove(key);
if (index == null)
throw new IllegalArgumentException("unknown key: " + key);
elements[index] ... | [
"private",
"void",
"fail",
"(",
"final",
"K",
"key",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"fail(): \"",
";",
"stateLock",
".",
"writeLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"Integer",
"index",
"=",
"actualIndices",
".",
"r... | Permanently fail to retrieve the element associated with the key, independently of any timeout. | [
"Permanently",
"fail",
"to",
"retrieve",
"the",
"element",
"associated",
"with",
"the",
"key",
"independently",
"of",
"any",
"timeout",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingList.java#L445-L462 |
70,762 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingList.java | BlockingList.checkForCompletion | private void checkForCompletion() {
final String methodName = "checkForCompletion(): ";
// mark the list complete if that was the last awaited key
if (actualIndices.isEmpty()) {
if (tc.isDebugEnabled())
Tr.debug(tc, methodName + "setting state=COMPLETE");
... | java | private void checkForCompletion() {
final String methodName = "checkForCompletion(): ";
// mark the list complete if that was the last awaited key
if (actualIndices.isEmpty()) {
if (tc.isDebugEnabled())
Tr.debug(tc, methodName + "setting state=COMPLETE");
... | [
"private",
"void",
"checkForCompletion",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"checkForCompletion(): \"",
";",
"// mark the list complete if that was the last awaited key",
"if",
"(",
"actualIndices",
".",
"isEmpty",
"(",
")",
")",
"{",
"if",
"(",
"t... | if all the keys have been satisfied or permanently failed, mark this list as being complete | [
"if",
"all",
"the",
"keys",
"have",
"been",
"satisfied",
"or",
"permanently",
"failed",
"mark",
"this",
"list",
"as",
"being",
"complete"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingList.java#L465-L475 |
70,763 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingList.java | BlockingList.size | @Override
public int size() {
stateLock.readLock().lock();
try {
switch (state) {
default:
// This list might be empty or full or somewhere in between:
// we don't know until we look!
preFetchAll();
... | java | @Override
public int size() {
stateLock.readLock().lock();
try {
switch (state) {
default:
// This list might be empty or full or somewhere in between:
// we don't know until we look!
preFetchAll();
... | [
"@",
"Override",
"public",
"int",
"size",
"(",
")",
"{",
"stateLock",
".",
"readLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"switch",
"(",
"state",
")",
"{",
"default",
":",
"// This list might be empty or full or somewhere in between:",
"// we do... | Find the size of this list, attempting to retrieve all elements if necessary. | [
"Find",
"the",
"size",
"of",
"this",
"list",
"attempting",
"to",
"retrieve",
"all",
"elements",
"if",
"necessary",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingList.java#L497-L518 |
70,764 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingList.java | BlockingList.ensureElement | @FFDCIgnore(IndexOutOfBoundsException.class)
private boolean ensureElement(int index) {
try {
get(index);
return true;
} catch (IndexOutOfBoundsException e) {
return false;
}
} | java | @FFDCIgnore(IndexOutOfBoundsException.class)
private boolean ensureElement(int index) {
try {
get(index);
return true;
} catch (IndexOutOfBoundsException e) {
return false;
}
} | [
"@",
"FFDCIgnore",
"(",
"IndexOutOfBoundsException",
".",
"class",
")",
"private",
"boolean",
"ensureElement",
"(",
"int",
"index",
")",
"{",
"try",
"{",
"get",
"(",
"index",
")",
";",
"return",
"true",
";",
"}",
"catch",
"(",
"IndexOutOfBoundsException",
"e... | Blocking call to ensure an element is available
@return false if the element is unavailable and the list has timed out | [
"Blocking",
"call",
"to",
"ensure",
"an",
"element",
"is",
"available"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingList.java#L565-L573 |
70,765 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingList.java | BlockingList.getUnmatchedKeys | public Set<K> getUnmatchedKeys() {
stateLock.readLock().lock();
try {
return new HashSet<K>(this.actualIndices.keySet());
} finally {
stateLock.readLock().unlock();
}
} | java | public Set<K> getUnmatchedKeys() {
stateLock.readLock().lock();
try {
return new HashSet<K>(this.actualIndices.keySet());
} finally {
stateLock.readLock().unlock();
}
} | [
"public",
"Set",
"<",
"K",
">",
"getUnmatchedKeys",
"(",
")",
"{",
"stateLock",
".",
"readLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
"return",
"new",
"HashSet",
"<",
"K",
">",
"(",
"this",
".",
"actualIndices",
".",
"keySet",
"(",
")"... | Get a point-in-time view of the unmatched keys.
This may be immediately out of date unless additional
synchronization is performed to prevent concurrent updates. | [
"Get",
"a",
"point",
"-",
"in",
"-",
"time",
"view",
"of",
"the",
"unmatched",
"keys",
".",
"This",
"may",
"be",
"immediately",
"out",
"of",
"date",
"unless",
"additional",
"synchronization",
"is",
"performed",
"to",
"prevent",
"concurrent",
"updates",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingList.java#L659-L666 |
70,766 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/adapter/FrameworkEventAdapter.java | FrameworkEventAdapter.getTopic | private String getTopic(FrameworkEvent frameworkEvent) {
StringBuilder topic = new StringBuilder(FRAMEWORK_EVENT_TOPIC_PREFIX);
switch (frameworkEvent.getType()) {
case FrameworkEvent.STARTED:
topic.append("STARTED");
break;
case FrameworkEvent.ER... | java | private String getTopic(FrameworkEvent frameworkEvent) {
StringBuilder topic = new StringBuilder(FRAMEWORK_EVENT_TOPIC_PREFIX);
switch (frameworkEvent.getType()) {
case FrameworkEvent.STARTED:
topic.append("STARTED");
break;
case FrameworkEvent.ER... | [
"private",
"String",
"getTopic",
"(",
"FrameworkEvent",
"frameworkEvent",
")",
"{",
"StringBuilder",
"topic",
"=",
"new",
"StringBuilder",
"(",
"FRAMEWORK_EVENT_TOPIC_PREFIX",
")",
";",
"switch",
"(",
"frameworkEvent",
".",
"getType",
"(",
")",
")",
"{",
"case",
... | Determine the appropriate topic to use for the Framework Event.
@param frameworkEvent
the framework event that is being adapted
@return the topic or null if the event is not supported | [
"Determine",
"the",
"appropriate",
"topic",
"to",
"use",
"for",
"the",
"Framework",
"Event",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/adapter/FrameworkEventAdapter.java#L107-L134 |
70,767 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.resetStatistics | void resetStatistics(boolean clearHistory) {
lastTimerPop = System.currentTimeMillis();
previousCompleted = threadPool == null ? 0 : threadPool.getCompletedTaskCount();
previousThroughput = 0;
consecutiveQueueEmptyCount = 0;
consecutiveNoAdjustment = 0;
consecutiveOutlie... | java | void resetStatistics(boolean clearHistory) {
lastTimerPop = System.currentTimeMillis();
previousCompleted = threadPool == null ? 0 : threadPool.getCompletedTaskCount();
previousThroughput = 0;
consecutiveQueueEmptyCount = 0;
consecutiveNoAdjustment = 0;
consecutiveOutlie... | [
"void",
"resetStatistics",
"(",
"boolean",
"clearHistory",
")",
"{",
"lastTimerPop",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
";",
"previousCompleted",
"=",
"threadPool",
"==",
"null",
"?",
"0",
":",
"threadPool",
".",
"getCompletedTaskCount",
"(",
")"... | Reset all statistics associated with the target thread pool. | [
"Reset",
"all",
"statistics",
"associated",
"with",
"the",
"target",
"thread",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L651-L667 |
70,768 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.resetThreadPool | void resetThreadPool() {
if (threadPool == null)
return; // if no pool (during shutdown), nothing to retune/reset
// 8/22/2012: Introduced factor - was hard coded at 2
final int availableProcessors = NUMBER_CPUS;
int factor = 2500 * availableProcessors / Math.max(1, (int) p... | java | void resetThreadPool() {
if (threadPool == null)
return; // if no pool (during shutdown), nothing to retune/reset
// 8/22/2012: Introduced factor - was hard coded at 2
final int availableProcessors = NUMBER_CPUS;
int factor = 2500 * availableProcessors / Math.max(1, (int) p... | [
"void",
"resetThreadPool",
"(",
")",
"{",
"if",
"(",
"threadPool",
"==",
"null",
")",
"return",
";",
"// if no pool (during shutdown), nothing to retune/reset",
"// 8/22/2012: Introduced factor - was hard coded at 2",
"final",
"int",
"availableProcessors",
"=",
"NUMBER_CPUS",
... | Reset all statistics associated with the thread pool and reset the pool
size to a value that's based on the number of hardware threads available
to the JVM. | [
"Reset",
"all",
"statistics",
"associated",
"with",
"the",
"thread",
"pool",
"and",
"reset",
"the",
"pool",
"size",
"to",
"a",
"value",
"that",
"s",
"based",
"on",
"the",
"number",
"of",
"hardware",
"threads",
"available",
"to",
"the",
"JVM",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L674-L691 |
70,769 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.deactivate | synchronized void deactivate() {
paused = false;
if (activeTask != null) {
activeTask.cancel();
activeTask = null;
}
this.threadPool = null;
} | java | synchronized void deactivate() {
paused = false;
if (activeTask != null) {
activeTask.cancel();
activeTask = null;
}
this.threadPool = null;
} | [
"synchronized",
"void",
"deactivate",
"(",
")",
"{",
"paused",
"=",
"false",
";",
"if",
"(",
"activeTask",
"!=",
"null",
")",
"{",
"activeTask",
".",
"cancel",
"(",
")",
";",
"activeTask",
"=",
"null",
";",
"}",
"this",
".",
"threadPool",
"=",
"null",
... | Deactivate the controller. Any scheduled tasks will be canceled. | [
"Deactivate",
"the",
"controller",
".",
"Any",
"scheduled",
"tasks",
"will",
"be",
"canceled",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L696-L703 |
70,770 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.resume | synchronized void resume() {
paused = false;
if (activeTask == null) {
activeTask = new IntervalTask(this);
timer.schedule(activeTask, interval, interval);
}
} | java | synchronized void resume() {
paused = false;
if (activeTask == null) {
activeTask = new IntervalTask(this);
timer.schedule(activeTask, interval, interval);
}
} | [
"synchronized",
"void",
"resume",
"(",
")",
"{",
"paused",
"=",
"false",
";",
"if",
"(",
"activeTask",
"==",
"null",
")",
"{",
"activeTask",
"=",
"new",
"IntervalTask",
"(",
"this",
")",
";",
"timer",
".",
"schedule",
"(",
"activeTask",
",",
"interval",
... | Resume monitoring and control of the associated thread pool. | [
"Resume",
"monitoring",
"and",
"control",
"of",
"the",
"associated",
"thread",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L731-L737 |
70,771 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.getThroughputDistribution | ThroughputDistribution getThroughputDistribution(int activeThreads, boolean create) {
if (activeThreads < coreThreads)
activeThreads = coreThreads;
Integer threads = Integer.valueOf(activeThreads);
ThroughputDistribution throughput = threadStats.get(threads);
if ((throughput ... | java | ThroughputDistribution getThroughputDistribution(int activeThreads, boolean create) {
if (activeThreads < coreThreads)
activeThreads = coreThreads;
Integer threads = Integer.valueOf(activeThreads);
ThroughputDistribution throughput = threadStats.get(threads);
if ((throughput ... | [
"ThroughputDistribution",
"getThroughputDistribution",
"(",
"int",
"activeThreads",
",",
"boolean",
"create",
")",
"{",
"if",
"(",
"activeThreads",
"<",
"coreThreads",
")",
"activeThreads",
"=",
"coreThreads",
";",
"Integer",
"threads",
"=",
"Integer",
".",
"valueOf... | Get the throughput distribution data associated with the specified
number of active threads.
@param activeThreads the number of active threads when the data was
collected
@param create whether to create and return a new throughput distribution
if none currently exists
@return the data representing the throughput dis... | [
"Get",
"the",
"throughput",
"distribution",
"data",
"associated",
"with",
"the",
"specified",
"number",
"of",
"active",
"threads",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L752-L763 |
70,772 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.manageIdlePool | boolean manageIdlePool(ThreadPoolExecutor threadPool, long intervalCompleted) {
// Manage the intervalCompleted count
if (intervalCompleted == 0 && threadPool.getActiveCount() == 0) {
consecutiveIdleCount++;
} else {
consecutiveIdleCount = 0;
}
if (conse... | java | boolean manageIdlePool(ThreadPoolExecutor threadPool, long intervalCompleted) {
// Manage the intervalCompleted count
if (intervalCompleted == 0 && threadPool.getActiveCount() == 0) {
consecutiveIdleCount++;
} else {
consecutiveIdleCount = 0;
}
if (conse... | [
"boolean",
"manageIdlePool",
"(",
"ThreadPoolExecutor",
"threadPool",
",",
"long",
"intervalCompleted",
")",
"{",
"// Manage the intervalCompleted count",
"if",
"(",
"intervalCompleted",
"==",
"0",
"&&",
"threadPool",
".",
"getActiveCount",
"(",
")",
"==",
"0",
")",
... | Determine whether or not the thread pool has been idle long enough to
pause the monitoring task.
@param threadPool a reference to the thread pool
@param intervalCompleted the tasks completed this interval
@return true if the controller has been paused | [
"Determine",
"whether",
"or",
"not",
"the",
"thread",
"pool",
"has",
"been",
"idle",
"long",
"enough",
"to",
"pause",
"the",
"monitoring",
"task",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L774-L790 |
70,773 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.handleOutliers | boolean handleOutliers(ThroughputDistribution distribution, double throughput) {
if (throughput < 0.0) {
resetStatistics(false);
return true;
} else if (throughput == 0.0) {
return false;
}
double zScore = distribution.getZScore(throughput);
b... | java | boolean handleOutliers(ThroughputDistribution distribution, double throughput) {
if (throughput < 0.0) {
resetStatistics(false);
return true;
} else if (throughput == 0.0) {
return false;
}
double zScore = distribution.getZScore(throughput);
b... | [
"boolean",
"handleOutliers",
"(",
"ThroughputDistribution",
"distribution",
",",
"double",
"throughput",
")",
"{",
"if",
"(",
"throughput",
"<",
"0.0",
")",
"{",
"resetStatistics",
"(",
"false",
")",
";",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"throu... | Detect and handle aberrant data points by resetting the statistics
in the throughput distribution.
@param distribution the throughput distribution associated with throughput
@param throughput the observed throughput
@return true if the thread pool has been reset due to an aberrant
workload | [
"Detect",
"and",
"handle",
"aberrant",
"data",
"points",
"by",
"resetting",
"the",
"statistics",
"in",
"the",
"throughput",
"distribution",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L802-L872 |
70,774 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.adjustPoolSize | int adjustPoolSize(int poolSize, int poolAdjustment) {
if (threadPool == null)
return poolSize; // arguably should return 0, but "least change" is safer... This happens during shutdown.
int newPoolSize = poolSize + poolAdjustment;
lastAction = LastAction.NONE;
if (poolAdjus... | java | int adjustPoolSize(int poolSize, int poolAdjustment) {
if (threadPool == null)
return poolSize; // arguably should return 0, but "least change" is safer... This happens during shutdown.
int newPoolSize = poolSize + poolAdjustment;
lastAction = LastAction.NONE;
if (poolAdjus... | [
"int",
"adjustPoolSize",
"(",
"int",
"poolSize",
",",
"int",
"poolAdjustment",
")",
"{",
"if",
"(",
"threadPool",
"==",
"null",
")",
"return",
"poolSize",
";",
"// arguably should return 0, but \"least change\" is safer... This happens during shutdown.",
"int",
"newPoolSize... | Adjust the size of the thread pool.
@param poolSize the current pool size
@param poolAdjustment the change to make to the pool
@return the new pool size | [
"Adjust",
"the",
"size",
"of",
"the",
"thread",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1209-L1230 |
70,775 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.poolTputRatioData | private String poolTputRatioData(double poolTputRatio, double poolRatio, double tputRatio,
double smallerPoolTput, double largerPoolTput, int smallerPoolSize, int largerPoolSize) {
StringBuilder sb = new StringBuilder();
sb.append("\n ");
sb.append(String.for... | java | private String poolTputRatioData(double poolTputRatio, double poolRatio, double tputRatio,
double smallerPoolTput, double largerPoolTput, int smallerPoolSize, int largerPoolSize) {
StringBuilder sb = new StringBuilder();
sb.append("\n ");
sb.append(String.for... | [
"private",
"String",
"poolTputRatioData",
"(",
"double",
"poolTputRatio",
",",
"double",
"poolRatio",
",",
"double",
"tputRatio",
",",
"double",
"smallerPoolTput",
",",
"double",
"largerPoolTput",
",",
"int",
"smallerPoolSize",
",",
"int",
"largerPoolSize",
")",
"{"... | Utility method to format pool tput ratio data | [
"Utility",
"method",
"to",
"format",
"pool",
"tput",
"ratio",
"data"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1457-L1470 |
70,776 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.resolveHang | private boolean resolveHang(long tasksCompleted, boolean queueEmpty, int poolSize) {
boolean actionTaken = false;
if (tasksCompleted == 0 && !queueEmpty) {
/**
* When a hang is detected the controller enters hang resolution mode.
* The controller will run on a short... | java | private boolean resolveHang(long tasksCompleted, boolean queueEmpty, int poolSize) {
boolean actionTaken = false;
if (tasksCompleted == 0 && !queueEmpty) {
/**
* When a hang is detected the controller enters hang resolution mode.
* The controller will run on a short... | [
"private",
"boolean",
"resolveHang",
"(",
"long",
"tasksCompleted",
",",
"boolean",
"queueEmpty",
",",
"int",
"poolSize",
")",
"{",
"boolean",
"actionTaken",
"=",
"false",
";",
"if",
"(",
"tasksCompleted",
"==",
"0",
"&&",
"!",
"queueEmpty",
")",
"{",
"/**\n... | Detects a hang in the underlying executor. When a hang is detected, increases the
poolSize in hopes of relieving the hang, unless poolSize has reached maxThreads.
@return true if action was taken to resolve a hang, or false otherwise | [
"Detects",
"a",
"hang",
"in",
"the",
"underlying",
"executor",
".",
"When",
"a",
"hang",
"is",
"detected",
"increases",
"the",
"poolSize",
"in",
"hopes",
"of",
"relieving",
"the",
"hang",
"unless",
"poolSize",
"has",
"reached",
"maxThreads",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1478-L1562 |
70,777 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.pruneData | private boolean pruneData(ThroughputDistribution priorStats, double forecast) {
boolean prune = false;
// if forecast tput is much greater or much smaller than priorStats, we suspect
// priorStats is no longer relevant, so prune it
double tputRatio = forecast / priorStats.getMovingAvera... | java | private boolean pruneData(ThroughputDistribution priorStats, double forecast) {
boolean prune = false;
// if forecast tput is much greater or much smaller than priorStats, we suspect
// priorStats is no longer relevant, so prune it
double tputRatio = forecast / priorStats.getMovingAvera... | [
"private",
"boolean",
"pruneData",
"(",
"ThroughputDistribution",
"priorStats",
",",
"double",
"forecast",
")",
"{",
"boolean",
"prune",
"=",
"false",
";",
"// if forecast tput is much greater or much smaller than priorStats, we suspect",
"// priorStats is no longer relevant, so pr... | Evaluates a ThroughputDistribution for possible removal from the historical dataset.
@param priorStats - ThroughputDistribution under evaluation
@param forecast - expected throughput at the current poolSize
@return - true if priorStats should be removed | [
"Evaluates",
"a",
"ThroughputDistribution",
"for",
"possible",
"removal",
"from",
"the",
"historical",
"dataset",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1583-L1600 |
70,778 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.getSmallestValidPoolSize | private Integer getSmallestValidPoolSize(Integer poolSize, Double forecast) {
Integer smallestPoolSize = threadStats.firstKey();
Integer nextPoolSize = threadStats.higherKey(smallestPoolSize);
Integer pruneSize = -1;
boolean validSmallData = false;
while (!validSmallData && nextP... | java | private Integer getSmallestValidPoolSize(Integer poolSize, Double forecast) {
Integer smallestPoolSize = threadStats.firstKey();
Integer nextPoolSize = threadStats.higherKey(smallestPoolSize);
Integer pruneSize = -1;
boolean validSmallData = false;
while (!validSmallData && nextP... | [
"private",
"Integer",
"getSmallestValidPoolSize",
"(",
"Integer",
"poolSize",
",",
"Double",
"forecast",
")",
"{",
"Integer",
"smallestPoolSize",
"=",
"threadStats",
".",
"firstKey",
"(",
")",
";",
"Integer",
"nextPoolSize",
"=",
"threadStats",
".",
"higherKey",
"... | Returns the smallest valid poolSize in the current historical dataset.
@param poolSize - current poolSize
@param forecast - expected throughput at current poolSize
@return - smallest valid poolSize found | [
"Returns",
"the",
"smallest",
"valid",
"poolSize",
"in",
"the",
"current",
"historical",
"dataset",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1609-L1629 |
70,779 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.getLargestValidPoolSize | private Integer getLargestValidPoolSize(Integer poolSize, Double forecast) {
Integer largestPoolSize = -1;
// find largest poolSize with valid data
boolean validLargeData = false;
while (!validLargeData) {
largestPoolSize = threadStats.lastKey();
ThroughputDistrib... | java | private Integer getLargestValidPoolSize(Integer poolSize, Double forecast) {
Integer largestPoolSize = -1;
// find largest poolSize with valid data
boolean validLargeData = false;
while (!validLargeData) {
largestPoolSize = threadStats.lastKey();
ThroughputDistrib... | [
"private",
"Integer",
"getLargestValidPoolSize",
"(",
"Integer",
"poolSize",
",",
"Double",
"forecast",
")",
"{",
"Integer",
"largestPoolSize",
"=",
"-",
"1",
";",
"// find largest poolSize with valid data",
"boolean",
"validLargeData",
"=",
"false",
";",
"while",
"("... | Returns the largest valid poolSize in the current historical dataset.
@param poolSize - current poolSize
@param forecast - expected throughput at current poolSize
@return - largest valid poolSize found | [
"Returns",
"the",
"largest",
"valid",
"poolSize",
"in",
"the",
"current",
"historical",
"dataset",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1638-L1653 |
70,780 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java | ThreadPoolController.leanTowardShrinking | private boolean leanTowardShrinking(Integer smallerPoolSize, int largerPoolSize,
double smallerPoolTput, double largerPoolTput) {
boolean shouldShrink = false;
double poolRatio = largerPoolSize / smallerPoolSize;
double tputRatio = largerPoolTput / smaller... | java | private boolean leanTowardShrinking(Integer smallerPoolSize, int largerPoolSize,
double smallerPoolTput, double largerPoolTput) {
boolean shouldShrink = false;
double poolRatio = largerPoolSize / smallerPoolSize;
double tputRatio = largerPoolTput / smaller... | [
"private",
"boolean",
"leanTowardShrinking",
"(",
"Integer",
"smallerPoolSize",
",",
"int",
"largerPoolSize",
",",
"double",
"smallerPoolTput",
",",
"double",
"largerPoolTput",
")",
"{",
"boolean",
"shouldShrink",
"=",
"false",
";",
"double",
"poolRatio",
"=",
"larg... | Evaluate current poolSize against farthest poolSize to decide whether it makes sense
to shrink. The final outcome is probabilistic, not deterministic.
@param smallerPoolSize - smaller poolSize for comparison
@param largerPoolSize - larger poolSize for comparison
@param smallerPoolTput - tput (historical or expected) o... | [
"Evaluate",
"current",
"poolSize",
"against",
"farthest",
"poolSize",
"to",
"decide",
"whether",
"it",
"makes",
"sense",
"to",
"shrink",
".",
"The",
"final",
"outcome",
"is",
"probabilistic",
"not",
"deterministic",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThreadPoolController.java#L1665-L1690 |
70,781 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java | TxTMHelper.setConfigurationProvider | protected void setConfigurationProvider(ConfigurationProvider p) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setConfigurationProvider", p);
try {
ConfigurationProviderManager.setConfigurationProvider(p);
// in an osgi environment we may get unconfigured and then reconf... | java | protected void setConfigurationProvider(ConfigurationProvider p) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setConfigurationProvider", p);
try {
ConfigurationProviderManager.setConfigurationProvider(p);
// in an osgi environment we may get unconfigured and then reconf... | [
"protected",
"void",
"setConfigurationProvider",
"(",
"ConfigurationProvider",
"p",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setConfigurationProvider\"",
",",
"p",
")",
";",
"try",
"{",
"Configur... | Called by DS to inject reference to Config Provider
@param p | [
"Called",
"by",
"DS",
"to",
"inject",
"reference",
"to",
"Config",
"Provider"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java#L109-L128 |
70,782 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java | TxTMHelper.setXaResourceFactory | protected void setXaResourceFactory(ServiceReference<ResourceFactory> ref) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setXaResourceFactory, ref " + ref);
_xaResourceFactoryReady = true;
if (ableToStartRecoveryNow()) {
// Can start recovery now
try {
... | java | protected void setXaResourceFactory(ServiceReference<ResourceFactory> ref) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setXaResourceFactory, ref " + ref);
_xaResourceFactoryReady = true;
if (ableToStartRecoveryNow()) {
// Can start recovery now
try {
... | [
"protected",
"void",
"setXaResourceFactory",
"(",
"ServiceReference",
"<",
"ResourceFactory",
">",
"ref",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setXaResourceFactory, ref \"",
"+",
"ref",
")",
... | Called by DS to inject reference to XaResource Factory
@param ref | [
"Called",
"by",
"DS",
"to",
"inject",
"reference",
"to",
"XaResource",
"Factory"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java#L157-L174 |
70,783 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java | TxTMHelper.setRecoveryLogFactory | public void setRecoveryLogFactory(RecoveryLogFactory fac) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setRecoveryLogFactory, factory: " + fac, this);
_recoveryLogFactory = fac;
_recoveryLogFactoryReady = true;
if (ableToStartRecoveryNow()) {
// Can start recovery no... | java | public void setRecoveryLogFactory(RecoveryLogFactory fac) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setRecoveryLogFactory, factory: " + fac, this);
_recoveryLogFactory = fac;
_recoveryLogFactoryReady = true;
if (ableToStartRecoveryNow()) {
// Can start recovery no... | [
"public",
"void",
"setRecoveryLogFactory",
"(",
"RecoveryLogFactory",
"fac",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setRecoveryLogFactory, factory: \"",
"+",
"fac",
",",
"this",
")",
";",
"_rec... | Called by DS to inject reference to RecoveryLog Factory
@param ref | [
"Called",
"by",
"DS",
"to",
"inject",
"reference",
"to",
"RecoveryLog",
"Factory"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java#L186-L202 |
70,784 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java | TxTMHelper.setRecoveryLogService | public void setRecoveryLogService(ServiceReference<RecLogServiceImpl> ref) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setRecoveryLogService", ref);
_recoveryLogServiceReady = true;
if (ableToStartRecoveryNow()) {
// Can start recovery now
try {
... | java | public void setRecoveryLogService(ServiceReference<RecLogServiceImpl> ref) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setRecoveryLogService", ref);
_recoveryLogServiceReady = true;
if (ableToStartRecoveryNow()) {
// Can start recovery now
try {
... | [
"public",
"void",
"setRecoveryLogService",
"(",
"ServiceReference",
"<",
"RecLogServiceImpl",
">",
"ref",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setRecoveryLogService\"",
",",
"ref",
")",
";",
... | Called by DS to inject reference to RecoveryLog Service
@param ref | [
"Called",
"by",
"DS",
"to",
"inject",
"reference",
"to",
"RecoveryLog",
"Service"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java#L214-L230 |
70,785 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java | TxTMHelper.shutdown | public void shutdown(ConfigurationProvider cp) throws Exception {
final int shutdownDelay;
if (cp != null) {
shutdownDelay = cp.getDefaultMaximumShutdownDelay();
} else {
shutdownDelay = 0;
}
shutdown(false, shutdownDelay);
} | java | public void shutdown(ConfigurationProvider cp) throws Exception {
final int shutdownDelay;
if (cp != null) {
shutdownDelay = cp.getDefaultMaximumShutdownDelay();
} else {
shutdownDelay = 0;
}
shutdown(false, shutdownDelay);
} | [
"public",
"void",
"shutdown",
"(",
"ConfigurationProvider",
"cp",
")",
"throws",
"Exception",
"{",
"final",
"int",
"shutdownDelay",
";",
"if",
"(",
"cp",
"!=",
"null",
")",
"{",
"shutdownDelay",
"=",
"cp",
".",
"getDefaultMaximumShutdownDelay",
"(",
")",
";",
... | Used by liberty | [
"Used",
"by",
"liberty"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java#L512-L522 |
70,786 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java | TxTMHelper.retrieveBundleContext | protected void retrieveBundleContext() {
BundleContext bc = TxBundleTools.getBundleContext();
if (tc.isDebugEnabled())
Tr.debug(tc, "retrieveBundleContext, bc " + bc);
_bc = bc;
} | java | protected void retrieveBundleContext() {
BundleContext bc = TxBundleTools.getBundleContext();
if (tc.isDebugEnabled())
Tr.debug(tc, "retrieveBundleContext, bc " + bc);
_bc = bc;
} | [
"protected",
"void",
"retrieveBundleContext",
"(",
")",
"{",
"BundleContext",
"bc",
"=",
"TxBundleTools",
".",
"getBundleContext",
"(",
")",
";",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"retrieveBundleCont... | This method retrieves bundle context. There is a requirement to lookup the DS Services Registry during recovery.
Any bundle context will do for the lookup - this method is overridden in the ws.tx.embeddable bundle so that if that
bundle has started before the tx.jta bundle, then we are still able to access the Service ... | [
"This",
"method",
"retrieves",
"bundle",
"context",
".",
"There",
"is",
"a",
"requirement",
"to",
"lookup",
"the",
"DS",
"Services",
"Registry",
"during",
"recovery",
".",
"Any",
"bundle",
"context",
"will",
"do",
"for",
"the",
"lookup",
"-",
"this",
"method... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/util/TxTMHelper.java#L685-L691 |
70,787 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java | ReceiveListenerDispatchQueue.enqueue | protected void enqueue (final AbstractInvocation invocation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "enqueue", invocation);
barrier.pass(); // Block until allowed to pass
// We need to ensure that the thread processing this queue does not change the "run... | java | protected void enqueue (final AbstractInvocation invocation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "enqueue", invocation);
barrier.pass(); // Block until allowed to pass
// We need to ensure that the thread processing this queue does not change the "run... | [
"protected",
"void",
"enqueue",
"(",
"final",
"AbstractInvocation",
"invocation",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
... | Enqueue an invocation by adding it to the end of the queue | [
"Enqueue",
"an",
"invocation",
"by",
"adding",
"it",
"to",
"the",
"end",
"of",
"the",
"queue"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java#L251-L302 |
70,788 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java | ReceiveListenerDispatchQueue.dequeue | private AbstractInvocation dequeue() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dequeue");
AbstractInvocation invocation;
synchronized (barrier) {
invocation = queue.remove(0);
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ... | java | private AbstractInvocation dequeue() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "dequeue");
AbstractInvocation invocation;
synchronized (barrier) {
invocation = queue.remove(0);
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ... | [
"private",
"AbstractInvocation",
"dequeue",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"dequeue\"",
")",
";",
"... | Dequeue an invocation by removing it from the front of the queue | [
"Dequeue",
"an",
"invocation",
"by",
"removing",
"it",
"from",
"the",
"front",
"of",
"the",
"queue"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java#L306-L317 |
70,789 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java | ReceiveListenerDispatchQueue.unlockBarrier | private void unlockBarrier(final int size, final Conversation.ConversationType conversationType)
{
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unlockBarrier", new Object[]{Integer.valueOf(size), conversationType});
synchronized(barrier)
{
queueSize -= ... | java | private void unlockBarrier(final int size, final Conversation.ConversationType conversationType)
{
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "unlockBarrier", new Object[]{Integer.valueOf(size), conversationType});
synchronized(barrier)
{
queueSize -= ... | [
"private",
"void",
"unlockBarrier",
"(",
"final",
"int",
"size",
",",
"final",
"Conversation",
".",
"ConversationType",
"conversationType",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
... | Unlock the barrier.
@param size from last AbstractInvocation
@param conversationType from last AbstractInvocation | [
"Unlock",
"the",
"barrier",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java#L325-L353 |
70,790 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java | ReceiveListenerDispatchQueue.isEmpty | protected boolean isEmpty () {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isEmpty");
boolean rc;
synchronized (barrier) {
rc = queue.isEmpty();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "isEmpty", rc)... | java | protected boolean isEmpty () {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isEmpty");
boolean rc;
synchronized (barrier) {
rc = queue.isEmpty();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "isEmpty", rc)... | [
"protected",
"boolean",
"isEmpty",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"isEmpty\"",
")",
";",
"boolean",... | Return true if the queue is empty | [
"Return",
"true",
"if",
"the",
"queue",
"is",
"empty"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java#L357-L368 |
70,791 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java | ReceiveListenerDispatchQueue.getDepth | protected int getDepth() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getDepth");
int depth;
synchronized (barrier) {
depth = queue.size();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getDepth", depth... | java | protected int getDepth() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getDepth");
int depth;
synchronized (barrier) {
depth = queue.size();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getDepth", depth... | [
"protected",
"int",
"getDepth",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getDepth\"",
")",
";",
"int",
"de... | Return the depth of the queue | [
"Return",
"the",
"depth",
"of",
"the",
"queue"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java#L372-L383 |
70,792 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java | ReceiveListenerDispatchQueue.doesQueueContainConversation | protected boolean doesQueueContainConversation (final Conversation conversation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "doesQueueContainConversation", conversation);
boolean rc = false;
synchronized (barrier) {
for (int i = 0; i < queue.size(); i++)... | java | protected boolean doesQueueContainConversation (final Conversation conversation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "doesQueueContainConversation", conversation);
boolean rc = false;
synchronized (barrier) {
for (int i = 0; i < queue.size(); i++)... | [
"protected",
"boolean",
"doesQueueContainConversation",
"(",
"final",
"Conversation",
"conversation",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this... | Return true if a conversation is already in this queue | [
"Return",
"true",
"if",
"a",
"conversation",
"is",
"already",
"in",
"this",
"queue"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatchQueue.java#L560-L577 |
70,793 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.sweep | public void sweep() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "Sweep : Stateful Beans = " + ivStatefulBeanList.size());
for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
TimeoutElement elt = e.nextEl... | java | public void sweep() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "Sweep : Stateful Beans = " + ivStatefulBeanList.size());
for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
TimeoutElement elt = e.nextEl... | [
"public",
"void",
"sweep",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"Sweep : Stateful Beans = \"",
"+",
"ivStatefulBeanList",
"."... | Go through the list of bean ids and cleanup beans which have timed out. | [
"Go",
"through",
"the",
"list",
"of",
"bean",
"ids",
"and",
"cleanup",
"beans",
"which",
"have",
"timed",
"out",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L189-L213 |
70,794 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.finalSweep | public void finalSweep(StatefulPassivator passivator) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "finalSweep : Stateful Beans = " + ivStatefulBeanList.size());
for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
... | java | public void finalSweep(StatefulPassivator passivator) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "finalSweep : Stateful Beans = " + ivStatefulBeanList.size());
for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
... | [
"public",
"void",
"finalSweep",
"(",
"StatefulPassivator",
"passivator",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"finalSweep : Stateful... | This method is invoked just before container termination to clean
up stateful beans which have been passivated. | [
"This",
"method",
"is",
"invoked",
"just",
"before",
"container",
"termination",
"to",
"clean",
"up",
"stateful",
"beans",
"which",
"have",
"been",
"passivated",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L219-L244 |
70,795 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.beanDoesNotExistOrHasTimedOut | public boolean beanDoesNotExistOrHasTimedOut(TimeoutElement elt, BeanId beanId) {
if (elt == null) {
// Not in the reaper list, but it might be in local
// failover cache if not in reaper list. So check it if
// there is a local SfFailoverCache object (e.g. when SFSB
... | java | public boolean beanDoesNotExistOrHasTimedOut(TimeoutElement elt, BeanId beanId) {
if (elt == null) {
// Not in the reaper list, but it might be in local
// failover cache if not in reaper list. So check it if
// there is a local SfFailoverCache object (e.g. when SFSB
... | [
"public",
"boolean",
"beanDoesNotExistOrHasTimedOut",
"(",
"TimeoutElement",
"elt",
",",
"BeanId",
"beanId",
")",
"{",
"if",
"(",
"elt",
"==",
"null",
")",
"{",
"// Not in the reaper list, but it might be in local",
"// failover cache if not in reaper list. So check it if",
... | LIDB2018-1 renamed old beanTimedOut method and clarified description. | [
"LIDB2018",
"-",
"1",
"renamed",
"old",
"beanTimedOut",
"method",
"and",
"clarified",
"description",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L296-L318 |
70,796 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.add | public void add(StatefulBeanO beanO) {
BeanId id = beanO.beanId;
TimeoutElement elt = beanO.ivTimeoutElement;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "add " + beanO.beanId + ", " + elt.timeout);
// LIDB2775-23.4 Begins
Object ob... | java | public void add(StatefulBeanO beanO) {
BeanId id = beanO.beanId;
TimeoutElement elt = beanO.ivTimeoutElement;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "add " + beanO.beanId + ", " + elt.timeout);
// LIDB2775-23.4 Begins
Object ob... | [
"public",
"void",
"add",
"(",
"StatefulBeanO",
"beanO",
")",
"{",
"BeanId",
"id",
"=",
"beanO",
".",
"beanId",
";",
"TimeoutElement",
"elt",
"=",
"beanO",
".",
"ivTimeoutElement",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
... | Add a new bean to the list of beans to be checked for timeouts | [
"Add",
"a",
"new",
"bean",
"to",
"the",
"list",
"of",
"beans",
"to",
"be",
"checked",
"for",
"timeouts"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L346-L371 |
70,797 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.remove | public boolean remove(BeanId id) // d129562
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "remove (" + id + ")");
TimeoutElement elt = null;
elt = ivStatefulBeanList.remove(id);
synchronized (this) {
if (elt != null) {
... | java | public boolean remove(BeanId id) // d129562
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "remove (" + id + ")");
TimeoutElement elt = null;
elt = ivStatefulBeanList.remove(id);
synchronized (this) {
if (elt != null) {
... | [
"public",
"boolean",
"remove",
"(",
"BeanId",
"id",
")",
"// d129562",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"remove (\"",
"+",
"id"... | Remove a bean from the list and return true if the bean was in the
list and removed successfully; otherwise return false. | [
"Remove",
"a",
"bean",
"from",
"the",
"list",
"and",
"return",
"true",
"if",
"the",
"bean",
"was",
"in",
"the",
"list",
"and",
"removed",
"successfully",
";",
"otherwise",
"return",
"false",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L377-L404 |
70,798 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.getPassivatedStatefulBeanIds | public synchronized Iterator<BeanId> getPassivatedStatefulBeanIds(J2EEName homeName) {
ArrayList<BeanId> beanList = new ArrayList<BeanId>();
for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
TimeoutElement elt = e.nextElement();
if (hom... | java | public synchronized Iterator<BeanId> getPassivatedStatefulBeanIds(J2EEName homeName) {
ArrayList<BeanId> beanList = new ArrayList<BeanId>();
for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
TimeoutElement elt = e.nextElement();
if (hom... | [
"public",
"synchronized",
"Iterator",
"<",
"BeanId",
">",
"getPassivatedStatefulBeanIds",
"(",
"J2EEName",
"homeName",
")",
"{",
"ArrayList",
"<",
"BeanId",
">",
"beanList",
"=",
"new",
"ArrayList",
"<",
"BeanId",
">",
"(",
")",
";",
"for",
"(",
"Enumeration",... | d103404.1 | [
"d103404",
".",
"1"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L413-L424 |
70,799 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java | StatefulBeanReaper.getBeanTimeoutTime | public long getBeanTimeoutTime(BeanId beanId) {
TimeoutElement elt = ivStatefulBeanList.get(beanId);
long timeoutTime = 0;
if (elt != null) {
if (elt.timeout != 0) {
timeoutTime = elt.lastAccessTime + elt.timeout;
if (timeoutTime < 0) { // F743-6605.1
... | java | public long getBeanTimeoutTime(BeanId beanId) {
TimeoutElement elt = ivStatefulBeanList.get(beanId);
long timeoutTime = 0;
if (elt != null) {
if (elt.timeout != 0) {
timeoutTime = elt.lastAccessTime + elt.timeout;
if (timeoutTime < 0) { // F743-6605.1
... | [
"public",
"long",
"getBeanTimeoutTime",
"(",
"BeanId",
"beanId",
")",
"{",
"TimeoutElement",
"elt",
"=",
"ivStatefulBeanList",
".",
"get",
"(",
"beanId",
")",
";",
"long",
"timeoutTime",
"=",
"0",
";",
"if",
"(",
"elt",
"!=",
"null",
")",
"{",
"if",
"(",... | LIDB2775-23.4 Begins | [
"LIDB2775",
"-",
"23",
".",
"4",
"Begins"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/StatefulBeanReaper.java#L427-L439 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.