repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
OpenLiberty/open-liberty | dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java | LTPAToken2.toUTF8String | private static final String toUTF8String(byte[] b) {
String ns = null;
try {
ns = new String(b, "UTF8");
} catch (UnsupportedEncodingException e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Error converting to string;... | java | private static final String toUTF8String(byte[] b) {
String ns = null;
try {
ns = new String(b, "UTF8");
} catch (UnsupportedEncodingException e) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Error converting to string;... | [
"private",
"static",
"final",
"String",
"toUTF8String",
"(",
"byte",
"[",
"]",
"b",
")",
"{",
"String",
"ns",
"=",
"null",
";",
"try",
"{",
"ns",
"=",
"new",
"String",
"(",
"b",
",",
"\"UTF8\"",
")",
";",
"}",
"catch",
"(",
"UnsupportedEncodingExceptio... | Convert the byte representation to the UTF-8 String form.
@param b The byte representation
@return The UTF-8 String form | [
"Convert",
"the",
"byte",
"representation",
"to",
"the",
"UTF",
"-",
"8",
"String",
"form",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java#L431-L441 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java | LTPAToken2.toSimpleString | private static final String toSimpleString(byte[] b) {
StringBuilder sb = new StringBuilder();
for (int i = 0, len = b.length; i < len; i++) {
sb.append((char) (b[i] & 0xff));
}
String str = sb.toString();
return str;
} | java | private static final String toSimpleString(byte[] b) {
StringBuilder sb = new StringBuilder();
for (int i = 0, len = b.length; i < len; i++) {
sb.append((char) (b[i] & 0xff));
}
String str = sb.toString();
return str;
} | [
"private",
"static",
"final",
"String",
"toSimpleString",
"(",
"byte",
"[",
"]",
"b",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"len",
"=",
"b",
".",
"length",
";",
"i",
"<",... | Convert the byte representation to the String form.
@param b The byte representation
@return The String form | [
"Convert",
"the",
"byte",
"representation",
"to",
"the",
"String",
"form",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java#L449-L456 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java | LTPAToken2.getSimpleBytes | private static final byte[] getSimpleBytes(String str) {
StringBuilder sb = new StringBuilder(str);
byte[] b = new byte[sb.length()];
for (int i = 0, len = sb.length(); i < len; i++) {
b[i] = (byte) sb.charAt(i);
}
return b;
} | java | private static final byte[] getSimpleBytes(String str) {
StringBuilder sb = new StringBuilder(str);
byte[] b = new byte[sb.length()];
for (int i = 0, len = sb.length(); i < len; i++) {
b[i] = (byte) sb.charAt(i);
}
return b;
} | [
"private",
"static",
"final",
"byte",
"[",
"]",
"getSimpleBytes",
"(",
"String",
"str",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
"str",
")",
";",
"byte",
"[",
"]",
"b",
"=",
"new",
"byte",
"[",
"sb",
".",
"length",
"(",
")",... | Convert the String form to the byte representation
@param str The String form
@return The byte representation | [
"Convert",
"the",
"String",
"form",
"to",
"the",
"byte",
"representation"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token.ltpa/src/com/ibm/ws/security/token/ltpa/internal/LTPAToken2.java#L464-L471 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/ProtectedFunctionMapper.java | ProtectedFunctionMapper.getInstance | public static ProtectedFunctionMapper getInstance() {
ProtectedFunctionMapper funcMapper;
if (System.getSecurityManager() != null) {
funcMapper = (ProtectedFunctionMapper) AccessController.doPrivileged(
new PrivilegedAction() {
@Ove... | java | public static ProtectedFunctionMapper getInstance() {
ProtectedFunctionMapper funcMapper;
if (System.getSecurityManager() != null) {
funcMapper = (ProtectedFunctionMapper) AccessController.doPrivileged(
new PrivilegedAction() {
@Ove... | [
"public",
"static",
"ProtectedFunctionMapper",
"getInstance",
"(",
")",
"{",
"ProtectedFunctionMapper",
"funcMapper",
";",
"if",
"(",
"System",
".",
"getSecurityManager",
"(",
")",
"!=",
"null",
")",
"{",
"funcMapper",
"=",
"(",
"ProtectedFunctionMapper",
")",
"Ac... | Generated Servlet and Tag Handler implementations call this
method to retrieve an instance of the ProtectedFunctionMapper.
This is necessary since generated code does not have access to
create instances of classes in this package.
@return A new protected function mapper. | [
"Generated",
"Servlet",
"and",
"Tag",
"Handler",
"implementations",
"call",
"this",
"method",
"to",
"retrieve",
"an",
"instance",
"of",
"the",
"ProtectedFunctionMapper",
".",
"This",
"is",
"necessary",
"since",
"generated",
"code",
"does",
"not",
"have",
"access",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/ProtectedFunctionMapper.java#L103-L118 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/ProtectedFunctionMapper.java | ProtectedFunctionMapper.resolveFunction | @Override
public Method resolveFunction(String prefix, String localName) {
return (Method) this.fnmap.get(prefix + ":" + localName);
} | java | @Override
public Method resolveFunction(String prefix, String localName) {
return (Method) this.fnmap.get(prefix + ":" + localName);
} | [
"@",
"Override",
"public",
"Method",
"resolveFunction",
"(",
"String",
"prefix",
",",
"String",
"localName",
")",
"{",
"return",
"(",
"Method",
")",
"this",
".",
"fnmap",
".",
"get",
"(",
"prefix",
"+",
"\":\"",
"+",
"localName",
")",
";",
"}"
] | Resolves the specified local name and prefix into a Java.lang.Method.
Returns null if the prefix and local name are not found.
@param prefix the prefix of the function
@param localName the short name of the function
@return the result of the method mapping. Null means no entry found. | [
"Resolves",
"the",
"specified",
"local",
"name",
"and",
"prefix",
"into",
"a",
"Java",
".",
"lang",
".",
"Method",
".",
"Returns",
"null",
"if",
"the",
"prefix",
"and",
"local",
"name",
"are",
"not",
"found",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/ProtectedFunctionMapper.java#L177-L180 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRepeated.java | JSRepeated.setItemType | public void setItemType(JMFType elem) {
if (elem == null)
throw new NullPointerException("Repeated item cannot be null");
itemType = (JSType)elem;
itemType.parent = this;
itemType.siblingPosition = 0;
} | java | public void setItemType(JMFType elem) {
if (elem == null)
throw new NullPointerException("Repeated item cannot be null");
itemType = (JSType)elem;
itemType.parent = this;
itemType.siblingPosition = 0;
} | [
"public",
"void",
"setItemType",
"(",
"JMFType",
"elem",
")",
"{",
"if",
"(",
"elem",
"==",
"null",
")",
"throw",
"new",
"NullPointerException",
"(",
"\"Repeated item cannot be null\"",
")",
";",
"itemType",
"=",
"(",
"JSType",
")",
"elem",
";",
"itemType",
... | Set the item type of the array | [
"Set",
"the",
"item",
"type",
"of",
"the",
"array"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRepeated.java#L82-L88 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpDispatcherChannel.java | HttpDispatcherChannel.incrementActiveConns | protected void incrementActiveConns() {
int count = this.activeConnections.incrementAndGet();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Increment active, current=" + count);
}
} | java | protected void incrementActiveConns() {
int count = this.activeConnections.incrementAndGet();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Increment active, current=" + count);
}
} | [
"protected",
"void",
"incrementActiveConns",
"(",
")",
"{",
"int",
"count",
"=",
"this",
".",
"activeConnections",
".",
"incrementAndGet",
"(",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",... | Increase the number of active connections currently being processed inside
the HTTP dispatcher. | [
"Increase",
"the",
"number",
"of",
"active",
"connections",
"currently",
"being",
"processed",
"inside",
"the",
"HTTP",
"dispatcher",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpDispatcherChannel.java#L109-L114 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpDispatcherChannel.java | HttpDispatcherChannel.decrementActiveConns | protected void decrementActiveConns() {
int count = this.activeConnections.decrementAndGet();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Decrement active, current=" + count);
}
if (0 == count && this.quiescing) {
signalNoConne... | java | protected void decrementActiveConns() {
int count = this.activeConnections.decrementAndGet();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Decrement active, current=" + count);
}
if (0 == count && this.quiescing) {
signalNoConne... | [
"protected",
"void",
"decrementActiveConns",
"(",
")",
"{",
"int",
"count",
"=",
"this",
".",
"activeConnections",
".",
"decrementAndGet",
"(",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",... | Decrement the number of active connections being processed by the dispatcher. | [
"Decrement",
"the",
"number",
"of",
"active",
"connections",
"being",
"processed",
"by",
"the",
"dispatcher",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpDispatcherChannel.java#L119-L127 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileData.java | ZipFileData.enactOpen | @Trivial
public void enactOpen(long openAt) {
String methodName = "enactOpen";
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled() ) {
Tr.debug(tc, methodName + " On [ " + path + " ] at [ " + toRelSec(initialAt, openAt) + " (s) ]");
}
if ( zipFileState == Zip... | java | @Trivial
public void enactOpen(long openAt) {
String methodName = "enactOpen";
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled() ) {
Tr.debug(tc, methodName + " On [ " + path + " ] at [ " + toRelSec(initialAt, openAt) + " (s) ]");
}
if ( zipFileState == Zip... | [
"@",
"Trivial",
"public",
"void",
"enactOpen",
"(",
"long",
"openAt",
")",
"{",
"String",
"methodName",
"=",
"\"enactOpen\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr... | PENDING -> FULLY_CLOSED | [
"PENDING",
"-",
">",
"FULLY_CLOSED"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileData.java#L200-L264 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileData.java | ZipFileData.reacquireZipFile | @Trivial
protected ZipFile reacquireZipFile() throws IOException, ZipException {
String methodName = "reacquireZipFile";
File rawZipFile = new File(path);
long newZipLength = FileUtils.fileLength(rawZipFile);
long newZipLastModified = FileUtils.fileLastModified(rawZipFile);
... | java | @Trivial
protected ZipFile reacquireZipFile() throws IOException, ZipException {
String methodName = "reacquireZipFile";
File rawZipFile = new File(path);
long newZipLength = FileUtils.fileLength(rawZipFile);
long newZipLastModified = FileUtils.fileLastModified(rawZipFile);
... | [
"@",
"Trivial",
"protected",
"ZipFile",
"reacquireZipFile",
"(",
")",
"throws",
"IOException",
",",
"ZipException",
"{",
"String",
"methodName",
"=",
"\"reacquireZipFile\"",
";",
"File",
"rawZipFile",
"=",
"new",
"File",
"(",
"path",
")",
";",
"long",
"newZipLen... | Re-acquire the ZIP file.
If either the zip file length or last modified times changed
since the zip file was set, re-open the zip file and update
the length and last modified times.
A warning is displayed if changes are detected and there are
active opens. If there are no active opens, the data will be
in a pending ... | [
"Re",
"-",
"acquire",
"the",
"ZIP",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.artifact.zip/src/com/ibm/ws/artifact/zip/cache/internal/ZipFileData.java#L468-L535 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/XMLUtils.java | XMLUtils.getAttribute | public static String getAttribute(XMLStreamReader reader, String localName) {
int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
String name = reader.getAttributeLocalName(i);
if (localName.equals(name)) {
return reader.getAttributeValue(i);... | java | public static String getAttribute(XMLStreamReader reader, String localName) {
int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
String name = reader.getAttributeLocalName(i);
if (localName.equals(name)) {
return reader.getAttributeValue(i);... | [
"public",
"static",
"String",
"getAttribute",
"(",
"XMLStreamReader",
"reader",
",",
"String",
"localName",
")",
"{",
"int",
"count",
"=",
"reader",
".",
"getAttributeCount",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"count",
";",
... | Get the element attribute value
@param reader
@param localName
@return | [
"Get",
"the",
"element",
"attribute",
"value"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/XMLUtils.java#L29-L38 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/XMLUtils.java | XMLUtils.createInstanceByElement | public static <T> T createInstanceByElement(XMLStreamReader reader, Class<T> clazz, Set<String> attrNames) {
if (reader == null || clazz == null || attrNames == null)
return null;
try {
T instance = clazz.newInstance();
int count = reader.getAttributeCount();
... | java | public static <T> T createInstanceByElement(XMLStreamReader reader, Class<T> clazz, Set<String> attrNames) {
if (reader == null || clazz == null || attrNames == null)
return null;
try {
T instance = clazz.newInstance();
int count = reader.getAttributeCount();
... | [
"public",
"static",
"<",
"T",
">",
"T",
"createInstanceByElement",
"(",
"XMLStreamReader",
"reader",
",",
"Class",
"<",
"T",
">",
"clazz",
",",
"Set",
"<",
"String",
">",
"attrNames",
")",
"{",
"if",
"(",
"reader",
"==",
"null",
"||",
"clazz",
"==",
"n... | Create the instance by parse the element, the instance's class must have the empty construct.
The clazz must have the fields in attrNames and all the fields type must be String
@param reader
@param clazz
@param attrNames
@return | [
"Create",
"the",
"instance",
"by",
"parse",
"the",
"element",
"the",
"instance",
"s",
"class",
"must",
"have",
"the",
"empty",
"construct",
".",
"The",
"clazz",
"must",
"have",
"the",
"fields",
"in",
"attrNames",
"and",
"all",
"the",
"fields",
"type",
"mus... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/XMLUtils.java#L49-L80 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java | BindingsHelper.removeEjbBindings | public void removeEjbBindings()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "removeEjbBindings called");
// Just loop through the values, not the keys, as the simple-binding-name
// key may have a # in front of it when the bean was not simple,... | java | public void removeEjbBindings()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "removeEjbBindings called");
// Just loop through the values, not the keys, as the simple-binding-name
// key may have a # in front of it when the bean was not simple,... | [
"public",
"void",
"removeEjbBindings",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"removeEjbBindings called\"",
")",
";",
"// Just ... | Removes all of the EJB bindings for this EJB from the bean specific
and sever wide maps. | [
"Removes",
"all",
"of",
"the",
"EJB",
"bindings",
"for",
"this",
"EJB",
"from",
"the",
"bean",
"specific",
"and",
"sever",
"wide",
"maps",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java#L162-L177 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java | BindingsHelper.isUniqueShortDefaultBinding | public boolean isUniqueShortDefaultBinding(String interfaceName)
{
// If there were no explicit bindings, and only one implicit
// binding, then it is considered uniquie. d457053.1
BindingData bdata = ivServerContextBindingMap.get(interfaceName);
if (bdata != n... | java | public boolean isUniqueShortDefaultBinding(String interfaceName)
{
// If there were no explicit bindings, and only one implicit
// binding, then it is considered uniquie. d457053.1
BindingData bdata = ivServerContextBindingMap.get(interfaceName);
if (bdata != n... | [
"public",
"boolean",
"isUniqueShortDefaultBinding",
"(",
"String",
"interfaceName",
")",
"{",
"// If there were no explicit bindings, and only one implicit",
"// binding, then it is considered uniquie. d457053.1",
"BindingData",
"bdata",
"=",
"ivServerContextBindingMa... | Returns true if a short form default binding is present for the
specified interface, and the current bean is currently the
only bean with this short form default binding, and there are
no explicit bindings.
@param interfaceName name of the EJB interface to check for a
unique short form binding. | [
"Returns",
"true",
"if",
"a",
"short",
"form",
"default",
"binding",
"is",
"present",
"for",
"the",
"specified",
"interface",
"and",
"the",
"current",
"bean",
"is",
"currently",
"the",
"only",
"bean",
"with",
"this",
"short",
"form",
"default",
"binding",
"a... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java#L200-L215 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java | BindingsHelper.removeShortDefaultBindings | public void removeShortDefaultBindings()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "removeShortDefaultBindings called");
for (String bindingName : ivEjbContextShortDefaultJndiNames)
{
removeFromServerContextBindingMap(bindingName... | java | public void removeShortDefaultBindings()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "removeShortDefaultBindings called");
for (String bindingName : ivEjbContextShortDefaultJndiNames)
{
removeFromServerContextBindingMap(bindingName... | [
"public",
"void",
"removeShortDefaultBindings",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"removeShortDefaultBindings called\"",
")",
... | Removes all of the short form default bindings for this EJB from
the bean specific and sever wide maps. | [
"Removes",
"all",
"of",
"the",
"short",
"form",
"default",
"bindings",
"for",
"this",
"EJB",
"from",
"the",
"bean",
"specific",
"and",
"sever",
"wide",
"maps",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java#L230-L241 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java | BindingsHelper.addToServerContextBindingMap | private void addToServerContextBindingMap(String interfaceName,
String bindingName)
throws NameAlreadyBoundException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "addToServerContextBindingMap : "... | java | private void addToServerContextBindingMap(String interfaceName,
String bindingName)
throws NameAlreadyBoundException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "addToServerContextBindingMap : "... | [
"private",
"void",
"addToServerContextBindingMap",
"(",
"String",
"interfaceName",
",",
"String",
"bindingName",
")",
"throws",
"NameAlreadyBoundException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",... | d457053.1 | [
"d457053",
".",
"1"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java#L557-L631 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java | BindingsHelper.getLocalHelper | public static BindingsHelper getLocalHelper(HomeRecord homeRecord)
{
if (homeRecord.ivLocalBindingsHelper == null)
{
homeRecord.ivLocalBindingsHelper =
new BindingsHelper(homeRecord,
cvAllLocalBindings,
... | java | public static BindingsHelper getLocalHelper(HomeRecord homeRecord)
{
if (homeRecord.ivLocalBindingsHelper == null)
{
homeRecord.ivLocalBindingsHelper =
new BindingsHelper(homeRecord,
cvAllLocalBindings,
... | [
"public",
"static",
"BindingsHelper",
"getLocalHelper",
"(",
"HomeRecord",
"homeRecord",
")",
"{",
"if",
"(",
"homeRecord",
".",
"ivLocalBindingsHelper",
"==",
"null",
")",
"{",
"homeRecord",
".",
"ivLocalBindingsHelper",
"=",
"new",
"BindingsHelper",
"(",
"homeReco... | A method for obtaining a Binding Name Helper for use with the local jndi namespace.
@param homeRecord The HomeRecord associated with the bean whose interfaces or home are to
have jndi binding name(s) constructed.
@return An instance of a BindingsHelper for generating jndi names intended to be bound into
the local jndi... | [
"A",
"method",
"for",
"obtaining",
"a",
"Binding",
"Name",
"Helper",
"for",
"use",
"with",
"the",
"local",
"jndi",
"namespace",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java#L790-L800 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java | BindingsHelper.getRemoteHelper | public static BindingsHelper getRemoteHelper(HomeRecord homeRecord)
{
if (homeRecord.ivRemoteBindingsHelper == null)
{
homeRecord.ivRemoteBindingsHelper =
new BindingsHelper(homeRecord,
cvAllRemoteBindings,
... | java | public static BindingsHelper getRemoteHelper(HomeRecord homeRecord)
{
if (homeRecord.ivRemoteBindingsHelper == null)
{
homeRecord.ivRemoteBindingsHelper =
new BindingsHelper(homeRecord,
cvAllRemoteBindings,
... | [
"public",
"static",
"BindingsHelper",
"getRemoteHelper",
"(",
"HomeRecord",
"homeRecord",
")",
"{",
"if",
"(",
"homeRecord",
".",
"ivRemoteBindingsHelper",
"==",
"null",
")",
"{",
"homeRecord",
".",
"ivRemoteBindingsHelper",
"=",
"new",
"BindingsHelper",
"(",
"homeR... | A method for obtaining a Binding Name Helper for use with the remote jndi namespace.
@param homeRecord The HomeRecord associated with the bean whose interfaces or home are to
have jndi binding name(s) constructed.
@return an instance of a BindingsHelper for generating jndi names intended to be bound into
the remote jn... | [
"A",
"method",
"for",
"obtaining",
"a",
"Binding",
"Name",
"Helper",
"for",
"use",
"with",
"the",
"remote",
"jndi",
"namespace",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BindingsHelper.java#L810-L820 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.stop | public synchronized void stop() {
if (timer != null) {
timer.keepRunning = false;
timer.interrupt();
timer = null;
}
// Remove this manager from the space alert list
LogRepositorySpaceAlert.getInstance().removeRepositoryInfo(this);
} | java | public synchronized void stop() {
if (timer != null) {
timer.keepRunning = false;
timer.interrupt();
timer = null;
}
// Remove this manager from the space alert list
LogRepositorySpaceAlert.getInstance().removeRepositoryInfo(this);
} | [
"public",
"synchronized",
"void",
"stop",
"(",
")",
"{",
"if",
"(",
"timer",
"!=",
"null",
")",
"{",
"timer",
".",
"keepRunning",
"=",
"false",
";",
"timer",
".",
"interrupt",
"(",
")",
";",
"timer",
"=",
"null",
";",
"}",
"// Remove this manager from th... | stop logging and thus stop the timer retention thread | [
"stop",
"logging",
"and",
"thus",
"stop",
"the",
"timer",
"retention",
"thread"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L102-L110 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.calculateFileSplit | protected static long calculateFileSplit(long repositorySize) {
if (repositorySize <= 0) {
return MAX_LOG_FILE_SIZE;
}
if (repositorySize < MIN_REPOSITORY_SIZE) {
throw new IllegalArgumentException("Specified repository size is too small");
}
long result = repositorySize / SPLIT_RATIO;
if (resul... | java | protected static long calculateFileSplit(long repositorySize) {
if (repositorySize <= 0) {
return MAX_LOG_FILE_SIZE;
}
if (repositorySize < MIN_REPOSITORY_SIZE) {
throw new IllegalArgumentException("Specified repository size is too small");
}
long result = repositorySize / SPLIT_RATIO;
if (resul... | [
"protected",
"static",
"long",
"calculateFileSplit",
"(",
"long",
"repositorySize",
")",
"{",
"if",
"(",
"repositorySize",
"<=",
"0",
")",
"{",
"return",
"MAX_LOG_FILE_SIZE",
";",
"}",
"if",
"(",
"repositorySize",
"<",
"MIN_REPOSITORY_SIZE",
")",
"{",
"throw",
... | calculates maximum size of repository files based on the required maximum limit
on total size of the repository.
@param repositorySize space constrain on the repository.
@return size constrain of an individual file in the repository. | [
"calculates",
"maximum",
"size",
"of",
"repository",
"files",
"based",
"on",
"the",
"required",
"maximum",
"limit",
"on",
"total",
"size",
"of",
"the",
"repository",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L162-L179 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.initFileList | private void initFileList(boolean force) {
if (totalSize < 0 || force) {
fileList.clear();
parentFilesMap.clear();
totalSize = 0L;
File[] files = listRepositoryFiles();
if (files.length > 0) {
Arrays.sort(files, fileComparator);
for (File file: files) {
long size = AccessHelper.getFileLeng... | java | private void initFileList(boolean force) {
if (totalSize < 0 || force) {
fileList.clear();
parentFilesMap.clear();
totalSize = 0L;
File[] files = listRepositoryFiles();
if (files.length > 0) {
Arrays.sort(files, fileComparator);
for (File file: files) {
long size = AccessHelper.getFileLeng... | [
"private",
"void",
"initFileList",
"(",
"boolean",
"force",
")",
"{",
"if",
"(",
"totalSize",
"<",
"0",
"||",
"force",
")",
"{",
"fileList",
".",
"clear",
"(",
")",
";",
"parentFilesMap",
".",
"clear",
"(",
")",
";",
"totalSize",
"=",
"0L",
";",
"Fil... | Initializes file list from the list of files in the repository.
This method should be called while holding a lock on fileList.
@param force indicator that the list should be initialized from the file
system even if it was initialized before. | [
"Initializes",
"file",
"list",
"from",
"the",
"list",
"of",
"files",
"in",
"the",
"repository",
".",
"This",
"method",
"should",
"be",
"called",
"while",
"holding",
"a",
"lock",
"on",
"fileList",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L205-L238 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.deleteEmptyRepositoryDirs | protected void deleteEmptyRepositoryDirs() {
File[] directories = listRepositoryDirs();
//determine if the server/controller instance directory is empty
for(int i = 0; i < directories.length; i++){
// This is a directory we should not delete
boolean currentDir = ivSubDirectory != null && ivSubDirectory.c... | java | protected void deleteEmptyRepositoryDirs() {
File[] directories = listRepositoryDirs();
//determine if the server/controller instance directory is empty
for(int i = 0; i < directories.length; i++){
// This is a directory we should not delete
boolean currentDir = ivSubDirectory != null && ivSubDirectory.c... | [
"protected",
"void",
"deleteEmptyRepositoryDirs",
"(",
")",
"{",
"File",
"[",
"]",
"directories",
"=",
"listRepositoryDirs",
"(",
")",
";",
"//determine if the server/controller instance directory is empty",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"director... | Deletes all empty server instance directories, including empty servant directories | [
"Deletes",
"all",
"empty",
"server",
"instance",
"directories",
"including",
"empty",
"servant",
"directories"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L244-L275 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.deleteDirectory | protected void deleteDirectory(File directoryName){
if (debugLogger.isLoggable(Level.FINE) && isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "deleteDirectory", "empty directory "+((directoryName == null) ? "None":
directoryName.getPath()));
}
if (AccessHelper.deleteFile(directoryName)) { //... | java | protected void deleteDirectory(File directoryName){
if (debugLogger.isLoggable(Level.FINE) && isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "deleteDirectory", "empty directory "+((directoryName == null) ? "None":
directoryName.getPath()));
}
if (AccessHelper.deleteFile(directoryName)) { //... | [
"protected",
"void",
"deleteDirectory",
"(",
"File",
"directoryName",
")",
"{",
"if",
"(",
"debugLogger",
".",
"isLoggable",
"(",
"Level",
".",
"FINE",
")",
"&&",
"isDebugEnabled",
"(",
")",
")",
"{",
"debugLogger",
".",
"logp",
"(",
"Level",
".",
"FINE",
... | Deletes the specified directory
@param the name of the directory to be deleted | [
"Deletes",
"the",
"specified",
"directory"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L281-L296 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.purgeOldFiles | private boolean purgeOldFiles(long total) {
boolean result = false;
// Should delete some files.
if (debugLogger.isLoggable(Level.FINE) && LogRepositoryBaseImpl.isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "purgeOldFiles", "total: "+total+" listSz: "+fileList.size());
}
while(total > 0 && fi... | java | private boolean purgeOldFiles(long total) {
boolean result = false;
// Should delete some files.
if (debugLogger.isLoggable(Level.FINE) && LogRepositoryBaseImpl.isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "purgeOldFiles", "total: "+total+" listSz: "+fileList.size());
}
while(total > 0 && fi... | [
"private",
"boolean",
"purgeOldFiles",
"(",
"long",
"total",
")",
"{",
"boolean",
"result",
"=",
"false",
";",
"// Should delete some files.",
"if",
"(",
"debugLogger",
".",
"isLoggable",
"(",
"Level",
".",
"FINE",
")",
"&&",
"LogRepositoryBaseImpl",
".",
"isDeb... | Removes old files from the repository. This method does not remove
the most recent file.
This method should be called while holding a lock on fileList.
@param total the amount in bytes of required free space.
@return <code>true</code> if at least one file was removed from the repository. | [
"Removes",
"old",
"files",
"from",
"the",
"repository",
".",
"This",
"method",
"does",
"not",
"remove",
"the",
"most",
"recent",
"file",
".",
"This",
"method",
"should",
"be",
"called",
"while",
"holding",
"a",
"lock",
"on",
"fileList",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L356-L373 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.purgeOldestFile | private FileDetails purgeOldestFile() {
debugListLL("prepurgeOldestFile") ;
debugListHM("prepurgeOldestFile") ;
FileDetails returnFD = getOldestInactive() ;
if (debugLogger.isLoggable(Level.FINE) && LogRepositoryBaseImpl.isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "purgeOldestFile", "oldestI... | java | private FileDetails purgeOldestFile() {
debugListLL("prepurgeOldestFile") ;
debugListHM("prepurgeOldestFile") ;
FileDetails returnFD = getOldestInactive() ;
if (debugLogger.isLoggable(Level.FINE) && LogRepositoryBaseImpl.isDebugEnabled()) {
debugLogger.logp(Level.FINE, thisClass, "purgeOldestFile", "oldestI... | [
"private",
"FileDetails",
"purgeOldestFile",
"(",
")",
"{",
"debugListLL",
"(",
"\"prepurgeOldestFile\"",
")",
";",
"debugListHM",
"(",
"\"prepurgeOldestFile\"",
")",
";",
"FileDetails",
"returnFD",
"=",
"getOldestInactive",
"(",
")",
";",
"if",
"(",
"debugLogger",
... | Removes the oldest file from the repository. This method has logic to avoid removing currently active files
This method should be called with a lock on filelist already attained
@return instance representing the deleted file or <code>null</code> if
fileList was reinitinialized. | [
"Removes",
"the",
"oldest",
"file",
"from",
"the",
"repository",
".",
"This",
"method",
"has",
"logic",
"to",
"avoid",
"removing",
"currently",
"active",
"files",
"This",
"method",
"should",
"be",
"called",
"with",
"a",
"lock",
"on",
"filelist",
"already",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L382-L418 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.addNewFileFromSubProcess | public synchronized String addNewFileFromSubProcess(long spTimeStamp, String spPid, String spLabel) {
// TODO: It is theoretically possible that subProcess already created one of these (although it won't happen in our scenario.
// Consider either pulling actual pid from the files on initFileList or looking for the ... | java | public synchronized String addNewFileFromSubProcess(long spTimeStamp, String spPid, String spLabel) {
// TODO: It is theoretically possible that subProcess already created one of these (although it won't happen in our scenario.
// Consider either pulling actual pid from the files on initFileList or looking for the ... | [
"public",
"synchronized",
"String",
"addNewFileFromSubProcess",
"(",
"long",
"spTimeStamp",
",",
"String",
"spPid",
",",
"String",
"spLabel",
")",
"{",
"// TODO: It is theoretically possible that subProcess already created one of these (although it won't happen in our scenario.",
"//... | add information about a new file being created by a subProcess in order to maintain retention information. This is done for all
files created by each subProcess. If IPC facility is not ready, subProcess may have to create first, then notify when IPC is up.
@param spTimeStamp timestamp to associate with the file
@param... | [
"add",
"information",
"about",
"a",
"new",
"file",
"being",
"created",
"by",
"a",
"subProcess",
"in",
"order",
"to",
"maintain",
"retention",
"information",
".",
"This",
"is",
"done",
"for",
"all",
"files",
"created",
"by",
"each",
"subProcess",
".",
"If",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L462-L496 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java | LogRepositoryManagerImpl.inactivateSubProcess | public void inactivateSubProcess(String spPid) {
synchronized (fileList) { // always lock fileList first to avoid deadlock
synchronized(activeFilesMap) { // Right into sync block because 99% case is that map contains pid
activeFilesMap.remove(spPid) ;
}
}
if (debugLogger.isLoggable(Level.FINE) && LogR... | java | public void inactivateSubProcess(String spPid) {
synchronized (fileList) { // always lock fileList first to avoid deadlock
synchronized(activeFilesMap) { // Right into sync block because 99% case is that map contains pid
activeFilesMap.remove(spPid) ;
}
}
if (debugLogger.isLoggable(Level.FINE) && LogR... | [
"public",
"void",
"inactivateSubProcess",
"(",
"String",
"spPid",
")",
"{",
"synchronized",
"(",
"fileList",
")",
"{",
"// always lock fileList first to avoid deadlock",
"synchronized",
"(",
"activeFilesMap",
")",
"{",
"// Right into sync block because 99% case is that map cont... | inactivate active file for a given process. Should only be one file active for a process
@param spPid | [
"inactivate",
"active",
"file",
"for",
"a",
"given",
"process",
".",
"Should",
"only",
"be",
"one",
"file",
"active",
"for",
"a",
"process"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/LogRepositoryManagerImpl.java#L502-L511 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/FileServletWrapper.java | FileServletWrapper.getContentLength | protected int getContentLength(boolean update) {
if (update){
contentLength = (int) this.getFileSize(update);
return contentLength;
} else {
if (contentLength==-1){
contentLength = (int) this.getFileSize(update);
retur... | java | protected int getContentLength(boolean update) {
if (update){
contentLength = (int) this.getFileSize(update);
return contentLength;
} else {
if (contentLength==-1){
contentLength = (int) this.getFileSize(update);
retur... | [
"protected",
"int",
"getContentLength",
"(",
"boolean",
"update",
")",
"{",
"if",
"(",
"update",
")",
"{",
"contentLength",
"=",
"(",
"int",
")",
"this",
".",
"getFileSize",
"(",
"update",
")",
";",
"return",
"contentLength",
";",
"}",
"else",
"{",
"if",... | PM92967, pulled up method | [
"PM92967",
"pulled",
"up",
"method"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/servlet/FileServletWrapper.java#L744-L757 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParserException.java | ScheduleExpressionParserException.logError | public void logError(String moduleName, String beanName, String methodName)
{
Tr.error(tc, ivError.getMessageId(), new Object[] { beanName, moduleName, methodName, ivField });
} | java | public void logError(String moduleName, String beanName, String methodName)
{
Tr.error(tc, ivError.getMessageId(), new Object[] { beanName, moduleName, methodName, ivField });
} | [
"public",
"void",
"logError",
"(",
"String",
"moduleName",
",",
"String",
"beanName",
",",
"String",
"methodName",
")",
"{",
"Tr",
".",
"error",
"(",
"tc",
",",
"ivError",
".",
"getMessageId",
"(",
")",
",",
"new",
"Object",
"[",
"]",
"{",
"beanName",
... | Logs an error message corresponding to this exception.
@param moduleName the module name
@param beanName the bean name | [
"Logs",
"an",
"error",
"message",
"corresponding",
"to",
"this",
"exception",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParserException.java#L95-L98 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/SIMPItem.java | SIMPItem.restore | protected void restore(ObjectInputStream ois, int dataVersion) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "restore", new Object[] { dataVersion});
checkPersistentVersionId(dataVersion);
if (TraceComponent.isAnyTracingEnabl... | java | protected void restore(ObjectInputStream ois, int dataVersion) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "restore", new Object[] { dataVersion});
checkPersistentVersionId(dataVersion);
if (TraceComponent.isAnyTracingEnabl... | [
"protected",
"void",
"restore",
"(",
"ObjectInputStream",
"ois",
",",
"int",
"dataVersion",
")",
"throws",
"SevereMessageStoreException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"S... | Child classes should override this method to restore their persistent
data.
@param ois ObjectInputStream to restore data from.
@param dataVersion Version number of object read from store.
@throws SevereMessageStoreException | [
"Child",
"classes",
"should",
"override",
"this",
"method",
"to",
"restore",
"their",
"persistent",
"data",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/SIMPItem.java#L110-L118 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/FileDirObjectStore.java | FileDirObjectStore.captureCheckpointManagedObjects | synchronized void captureCheckpointManagedObjects()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"captureCheckpointManagedObjectsremove"
);
// Now that we are synchron... | java | synchronized void captureCheckpointManagedObjects()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"captureCheckpointManagedObjectsremove"
);
// Now that we are synchron... | [
"synchronized",
"void",
"captureCheckpointManagedObjects",
"(",
")",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"cclass",
",",
"\"captureCheckpo... | Capture the ManagedObjects to write and delete as part of the checkpoint. | [
"Capture",
"the",
"ManagedObjects",
"to",
"write",
"and",
"delete",
"as",
"part",
"of",
"the",
"checkpoint",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/FileDirObjectStore.java#L436-L459 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/FileDirObjectStore.java | FileDirObjectStore.write | private void write(ManagedObject managedObject)
throws ObjectManagerException
{
final String methodName = "write";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName,
... | java | private void write(ManagedObject managedObject)
throws ObjectManagerException
{
final String methodName = "write";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName,
... | [
"private",
"void",
"write",
"(",
"ManagedObject",
"managedObject",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"write\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled... | Writes an object to hardened storage, but may return before the write completes.
@param managedObject to be written.
@throws ObjectManagerException | [
"Writes",
"an",
"object",
"to",
"hardened",
"storage",
"but",
"may",
"return",
"before",
"the",
"write",
"completes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/FileDirObjectStore.java#L607-L679 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/FileDirObjectStore.java | FileDirObjectStore.writeHeader | public void writeHeader()
throws ObjectManagerException
{
final String methodName = "writeHeader";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName);
try {
... | java | public void writeHeader()
throws ObjectManagerException
{
final String methodName = "writeHeader";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName);
try {
... | [
"public",
"void",
"writeHeader",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"writeHeader\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"... | Write header information for disk in the file headerIdentifier
and force it to disk.
@throws ObjectManagerException | [
"Write",
"header",
"information",
"for",
"disk",
"in",
"the",
"file",
"headerIdentifier",
"and",
"force",
"it",
"to",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/FileDirObjectStore.java#L687-L727 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.repository.liberty/src/com/ibm/ws/repository/connections/liberty/MainRepository.java | MainRepository.createConnection | public static RestRepositoryConnection createConnection(RestRepositoryConnectionProxy proxy) throws RepositoryBackendIOException {
readRepoProperties(proxy);
RestRepositoryConnection connection = new RestRepositoryConnection(repoProperties.getProperty(REPOSITORY_URL_PROP).trim());
connection.se... | java | public static RestRepositoryConnection createConnection(RestRepositoryConnectionProxy proxy) throws RepositoryBackendIOException {
readRepoProperties(proxy);
RestRepositoryConnection connection = new RestRepositoryConnection(repoProperties.getProperty(REPOSITORY_URL_PROP).trim());
connection.se... | [
"public",
"static",
"RestRepositoryConnection",
"createConnection",
"(",
"RestRepositoryConnectionProxy",
"proxy",
")",
"throws",
"RepositoryBackendIOException",
"{",
"readRepoProperties",
"(",
"proxy",
")",
";",
"RestRepositoryConnection",
"connection",
"=",
"new",
"RestRepo... | Creates a LoginInfoEntry with a proxy. This will then load the default repository using a hosted properties file on DHE.
@param proxy
@throws RepositoryBackendIOException | [
"Creates",
"a",
"LoginInfoEntry",
"with",
"a",
"proxy",
".",
"This",
"will",
"then",
"load",
"the",
"default",
"repository",
"using",
"a",
"hosted",
"properties",
"file",
"on",
"DHE",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.liberty/src/com/ibm/ws/repository/connections/liberty/MainRepository.java#L74-L103 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.repository.liberty/src/com/ibm/ws/repository/connections/liberty/MainRepository.java | MainRepository.repositoryDescriptionFileExists | public static boolean repositoryDescriptionFileExists(RestRepositoryConnectionProxy proxy) {
boolean exists = false;
try {
URL propertiesFileURL = getPropertiesFileLocation();
// Are we accessing the properties file (from DHE) using a proxy ?
if (proxy != null) {
... | java | public static boolean repositoryDescriptionFileExists(RestRepositoryConnectionProxy proxy) {
boolean exists = false;
try {
URL propertiesFileURL = getPropertiesFileLocation();
// Are we accessing the properties file (from DHE) using a proxy ?
if (proxy != null) {
... | [
"public",
"static",
"boolean",
"repositoryDescriptionFileExists",
"(",
"RestRepositoryConnectionProxy",
"proxy",
")",
"{",
"boolean",
"exists",
"=",
"false",
";",
"try",
"{",
"URL",
"propertiesFileURL",
"=",
"getPropertiesFileLocation",
"(",
")",
";",
"// Are we accessi... | Tests if the repository description properties file exists as defined by the
location override system property or at the default location
@return true if the properties file exists, otherwise false | [
"Tests",
"if",
"the",
"repository",
"description",
"properties",
"file",
"exists",
"as",
"defined",
"by",
"the",
"location",
"override",
"system",
"property",
"or",
"at",
"the",
"default",
"location"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.liberty/src/com/ibm/ws/repository/connections/liberty/MainRepository.java#L118-L160 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.repository.liberty/src/com/ibm/ws/repository/connections/liberty/MainRepository.java | MainRepository.checkHttpResponseCodeValid | private static void checkHttpResponseCodeValid(URLConnection connection) throws RepositoryHttpException, IOException {
// if HTTP URL not File URL
if (connection instanceof HttpURLConnection) {
HttpURLConnection conn = (HttpURLConnection) connection;
conn.setRequestMethod("GET");... | java | private static void checkHttpResponseCodeValid(URLConnection connection) throws RepositoryHttpException, IOException {
// if HTTP URL not File URL
if (connection instanceof HttpURLConnection) {
HttpURLConnection conn = (HttpURLConnection) connection;
conn.setRequestMethod("GET");... | [
"private",
"static",
"void",
"checkHttpResponseCodeValid",
"(",
"URLConnection",
"connection",
")",
"throws",
"RepositoryHttpException",
",",
"IOException",
"{",
"// if HTTP URL not File URL",
"if",
"(",
"connection",
"instanceof",
"HttpURLConnection",
")",
"{",
"HttpURLCon... | Checks for a valid response code and throws and exception with the response code if an error
@param connection
@throws RepositoryHttpException
@throws IOException | [
"Checks",
"for",
"a",
"valid",
"response",
"code",
"and",
"throws",
"and",
"exception",
"with",
"the",
"response",
"code",
"if",
"an",
"error"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.liberty/src/com/ibm/ws/repository/connections/liberty/MainRepository.java#L263-L273 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerDumpUtil.java | ServerDumpUtil.isZos | public static boolean isZos() {
String os = AccessController.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
return System.getProperty("os.name");
}
});
return os != null && (os.equalsIgnoreCase("OS/390") || os.e... | java | public static boolean isZos() {
String os = AccessController.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
return System.getProperty("os.name");
}
});
return os != null && (os.equalsIgnoreCase("OS/390") || os.e... | [
"public",
"static",
"boolean",
"isZos",
"(",
")",
"{",
"String",
"os",
"=",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"PrivilegedAction",
"<",
"String",
">",
"(",
")",
"{",
"@",
"Override",
"public",
"String",
"run",
"(",
")",
"{",
"return",
"... | In general find another way to do what you are trying, this is meant as a
VERY VERY last resort and agreed to by Gary. | [
"In",
"general",
"find",
"another",
"way",
"to",
"do",
"what",
"you",
"are",
"trying",
"this",
"is",
"meant",
"as",
"a",
"VERY",
"VERY",
"last",
"resort",
"and",
"agreed",
"to",
"by",
"Gary",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ServerDumpUtil.java#L25-L35 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/DefaultWelcomePage.java | DefaultWelcomePage.safeOpen | private InputStream safeOpen(String file) {
URL url = bundle.getEntry(file);
if (url != null) {
try {
return url.openStream();
} catch (IOException e) {
// if we get an IOException just return null for default page.
}
}
return null;
} | java | private InputStream safeOpen(String file) {
URL url = bundle.getEntry(file);
if (url != null) {
try {
return url.openStream();
} catch (IOException e) {
// if we get an IOException just return null for default page.
}
}
return null;
} | [
"private",
"InputStream",
"safeOpen",
"(",
"String",
"file",
")",
"{",
"URL",
"url",
"=",
"bundle",
".",
"getEntry",
"(",
"file",
")",
";",
"if",
"(",
"url",
"!=",
"null",
")",
"{",
"try",
"{",
"return",
"url",
".",
"openStream",
"(",
")",
";",
"}"... | Attempt to open the file in the bundle and return null if something goes wrong. | [
"Attempt",
"to",
"open",
"the",
"file",
"in",
"the",
"bundle",
"and",
"return",
"null",
"if",
"something",
"goes",
"wrong",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/DefaultWelcomePage.java#L78-L88 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/SIMPUtils.java | SIMPUtils.parseTempPrefix | public static String parseTempPrefix(String destinationName)
{
//Temporary dests are of the form _Q/_T<Prefix>_<MEId><TempdestId>
String prefix = null;
if (destinationName != null
&& (destinationName
.startsWith(SIMPConstants.TEMPORARY_PUBSUB_DESTINATION_PREFIX))
|| destinationName.sta... | java | public static String parseTempPrefix(String destinationName)
{
//Temporary dests are of the form _Q/_T<Prefix>_<MEId><TempdestId>
String prefix = null;
if (destinationName != null
&& (destinationName
.startsWith(SIMPConstants.TEMPORARY_PUBSUB_DESTINATION_PREFIX))
|| destinationName.sta... | [
"public",
"static",
"String",
"parseTempPrefix",
"(",
"String",
"destinationName",
")",
"{",
"//Temporary dests are of the form _Q/_T<Prefix>_<MEId><TempdestId>",
"String",
"prefix",
"=",
"null",
";",
"if",
"(",
"destinationName",
"!=",
"null",
"&&",
"(",
"destinationName... | Used to extract the destination prefix component of a full temporary
destination name.
@param destinationName
@return temporary destination prefix | [
"Used",
"to",
"extract",
"the",
"destination",
"prefix",
"component",
"of",
"a",
"full",
"temporary",
"destination",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/SIMPUtils.java#L191-L210 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/SIMPUtils.java | SIMPUtils.setGuaranteedDeliveryProperties | public static void setGuaranteedDeliveryProperties(ControlMessage msg,
SIBUuid8 sourceMEUuid,
SIBUuid8 targetMEUuid,
SIBUuid12 streamId,
... | java | public static void setGuaranteedDeliveryProperties(ControlMessage msg,
SIBUuid8 sourceMEUuid,
SIBUuid8 targetMEUuid,
SIBUuid12 streamId,
... | [
"public",
"static",
"void",
"setGuaranteedDeliveryProperties",
"(",
"ControlMessage",
"msg",
",",
"SIBUuid8",
"sourceMEUuid",
",",
"SIBUuid8",
"targetMEUuid",
",",
"SIBUuid12",
"streamId",
",",
"SIBUuid12",
"gatheringTargetDestUuid",
",",
"SIBUuid12",
"targetDestUuid",
",... | Set up guaranteed delivery message properties. These are compulsory properties
on a control message and are therefore set throughout the code. The method
makes it easier to cope with new properties in the message.
@param msg ControlMessage on which to set properties. | [
"Set",
"up",
"guaranteed",
"delivery",
"message",
"properties",
".",
"These",
"are",
"compulsory",
"properties",
"on",
"a",
"control",
"message",
"and",
"are",
"therefore",
"set",
"throughout",
"the",
"code",
".",
"The",
"method",
"makes",
"it",
"easier",
"to"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/SIMPUtils.java#L334-L352 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/util/internal/UtilImpl_InternMap.java | UtilImpl_InternMap.intern | @Override
// Don't log this call: Rely on 'intern(String, boolean)' to log the intern call and result.
@Trivial
public String intern(String value) {
return intern(value, Util_InternMap.DO_FORCE);
} | java | @Override
// Don't log this call: Rely on 'intern(String, boolean)' to log the intern call and result.
@Trivial
public String intern(String value) {
return intern(value, Util_InternMap.DO_FORCE);
} | [
"@",
"Override",
"// Don't log this call: Rely on 'intern(String, boolean)' to log the intern call and result. ",
"@",
"Trivial",
"public",
"String",
"intern",
"(",
"String",
"value",
")",
"{",
"return",
"intern",
"(",
"value",
",",
"Util_InternMap",
".",
"DO_FORCE",
")"... | Intern a string value. Do force the value to be interned.
See {@link #intern(String, boolean) and {@link Util_InternMap#DO_FORCE}.
@param value The string value which is to be interned.
@return The interned string value. Only null if the string
value is null. | [
"Intern",
"a",
"string",
"value",
".",
"Do",
"force",
"the",
"value",
"to",
"be",
"interned",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/util/internal/UtilImpl_InternMap.java#L241-L246 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgMap.java | JsMsgMap.isChanged | public boolean isChanged() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isChanged");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "isChanged", changed);
return changed;
} | java | public boolean isChanged() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isChanged");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "isChanged", changed);
return changed;
} | [
"public",
"boolean",
"isChanged",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"isChanged\"",
")",
";",
"if",
"... | Is the map 'fluffed up' into a HashMap? d317373.1 | [
"Is",
"the",
"map",
"fluffed",
"up",
"into",
"a",
"HashMap?",
"d317373",
".",
"1"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgMap.java#L92-L96 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgMap.java | JsMsgMap.setUnChanged | public void setUnChanged() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setUnChanged");
changed = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setUnChanged");
} | java | public void setUnChanged() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setUnChanged");
changed = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setUnChanged");
} | [
"public",
"void",
"setUnChanged",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setUnChanged\"",
")",
";",
"chang... | Set the changed flag back to false if the map is written back to JMF | [
"Set",
"the",
"changed",
"flag",
"back",
"to",
"false",
"if",
"the",
"map",
"is",
"written",
"back",
"to",
"JMF"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgMap.java#L99-L103 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgMap.java | JsMsgMap.setChanged | public void setChanged() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setChanged");
changed = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setChanged");
} | java | public void setChanged() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setChanged");
changed = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setChanged");
} | [
"public",
"void",
"setChanged",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setChanged\"",
")",
";",
"changed",... | Set the changed flag to true if the caller knows better than the map itself | [
"Set",
"the",
"changed",
"flag",
"to",
"true",
"if",
"the",
"caller",
"knows",
"better",
"than",
"the",
"map",
"itself"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgMap.java#L106-L110 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgMap.java | JsMsgMap.put | public Object put(String key, Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", new Object[]{key, PasswordUtils.replaceValueIfKeyIsPassword(key,value)});
// If the value is null (which is allowed for a Map Message) we can't tell
// quickly whether... | java | public Object put(String key, Object value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", new Object[]{key, PasswordUtils.replaceValueIfKeyIsPassword(key,value)});
// If the value is null (which is allowed for a Map Message) we can't tell
// quickly whether... | [
"public",
"Object",
"put",
"(",
"String",
"key",
",",
"Object",
"value",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
... | Once we've made one update, others don't matter so save time by not checking. d317373.1 | [
"Once",
"we",
"ve",
"made",
"one",
"update",
"others",
"don",
"t",
"matter",
"so",
"save",
"time",
"by",
"not",
"checking",
".",
"d317373",
".",
"1"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgMap.java#L142-L168 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/WebServiceRefInfo.java | WebServiceRefInfo.addWebServiceFeatureInfo | public void addWebServiceFeatureInfo(String seiName, WebServiceFeatureInfo featureInfo) {
PortComponentRefInfo portComponentRefInfo = seiNamePortComponentRefInfoMap.get(seiName);
if (portComponentRefInfo == null) {
portComponentRefInfo = new PortComponentRefInfo(seiName);
seiName... | java | public void addWebServiceFeatureInfo(String seiName, WebServiceFeatureInfo featureInfo) {
PortComponentRefInfo portComponentRefInfo = seiNamePortComponentRefInfoMap.get(seiName);
if (portComponentRefInfo == null) {
portComponentRefInfo = new PortComponentRefInfo(seiName);
seiName... | [
"public",
"void",
"addWebServiceFeatureInfo",
"(",
"String",
"seiName",
",",
"WebServiceFeatureInfo",
"featureInfo",
")",
"{",
"PortComponentRefInfo",
"portComponentRefInfo",
"=",
"seiNamePortComponentRefInfoMap",
".",
"get",
"(",
"seiName",
")",
";",
"if",
"(",
"portCo... | Add a feature info to the PortComponentRefInfo, if the target one does not exist, a new one with
that port component interface will be created
@param seiName port component interface name
@param featureInfo feature info of the target port | [
"Add",
"a",
"feature",
"info",
"to",
"the",
"PortComponentRefInfo",
"if",
"the",
"target",
"one",
"does",
"not",
"exist",
"a",
"new",
"one",
"with",
"that",
"port",
"component",
"interface",
"will",
"be",
"created"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/WebServiceRefInfo.java#L197-L204 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ScheduledTask.java | ScheduledTask.getName | @Trivial
final String getName() {
Map<String, String> execProps = getExecutionProperties();
String taskName = execProps == null ? null : execProps.get(ManagedTask.IDENTITY_NAME);
return taskName == null ? task.toString() : taskName;
} | java | @Trivial
final String getName() {
Map<String, String> execProps = getExecutionProperties();
String taskName = execProps == null ? null : execProps.get(ManagedTask.IDENTITY_NAME);
return taskName == null ? task.toString() : taskName;
} | [
"@",
"Trivial",
"final",
"String",
"getName",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"execProps",
"=",
"getExecutionProperties",
"(",
")",
";",
"String",
"taskName",
"=",
"execProps",
"==",
"null",
"?",
"null",
":",
"execProps",
".",
"g... | Returns the task name.
@return the task name. | [
"Returns",
"the",
"task",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent/src/com/ibm/ws/concurrent/internal/ScheduledTask.java#L638-L643 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/WASConfiguration.java | WASConfiguration.getDefaultWasConfiguration | public static WASConfiguration getDefaultWasConfiguration() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getDefaultWasConfiguration()");
WASConfiguration config = new WASConfiguration();
if (TraceComponent.isAnyTracingEnabl... | java | public static WASConfiguration getDefaultWasConfiguration() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getDefaultWasConfiguration()");
WASConfiguration config = new WASConfiguration();
if (TraceComponent.isAnyTracingEnabl... | [
"public",
"static",
"WASConfiguration",
"getDefaultWasConfiguration",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getDefaultWasConfi... | Create a new WASConfiguration object
@return a new WASConfiguration object | [
"Create",
"a",
"new",
"WASConfiguration",
"object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/WASConfiguration.java#L47-L57 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TransactionCommitLogRecord.java | TransactionCommitLogRecord.performRecovery | public void performRecovery(ObjectManagerState objectManagerState)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"performRecovery",
... | java | public void performRecovery(ObjectManagerState objectManagerState)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"performRecovery",
... | [
"public",
"void",
"performRecovery",
"(",
"ObjectManagerState",
"objectManagerState",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entr... | Called to perform recovery action during a warm start of the objectManager.
@param ObjectManagerState
of the ObjectManager performing recovery. | [
"Called",
"to",
"perform",
"recovery",
"action",
"during",
"a",
"warm",
"start",
"of",
"the",
"objectManager",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TransactionCommitLogRecord.java#L118-L138 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java | CacheUnitImpl.initialize | public void initialize(CacheConfig cc) {
if (tc.isEntryEnabled())
Tr.entry(tc, "initialize");
cacheConfig = cc;
if (null != cc){
try {
if (tc.isDebugEnabled())
Tr.debug(tc, "Initializing CacheUnit " + uniqueServerNameFQ);
nullRemoteSe... | java | public void initialize(CacheConfig cc) {
if (tc.isEntryEnabled())
Tr.entry(tc, "initialize");
cacheConfig = cc;
if (null != cc){
try {
if (tc.isDebugEnabled())
Tr.debug(tc, "Initializing CacheUnit " + uniqueServerNameFQ);
nullRemoteSe... | [
"public",
"void",
"initialize",
"(",
"CacheConfig",
"cc",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"initialize\"",
")",
";",
"cacheConfig",
"=",
"cc",
";",
"if",
"(",
"null",
"!=",
"cc",
... | This is a helper method called by this CacheUnitImpl's constructor.
It creates all the local objects - BatchUpdateDaemon, InvalidationAuditDaemon,
and TimeLimitDaemon. These objects are used by all cache instances.
@param The file name of the configuration xml file. | [
"This",
"is",
"a",
"helper",
"method",
"called",
"by",
"this",
"CacheUnitImpl",
"s",
"constructor",
".",
"It",
"creates",
"all",
"the",
"local",
"objects",
"-",
"BatchUpdateDaemon",
"InvalidationAuditDaemon",
"and",
"TimeLimitDaemon",
".",
"These",
"objects",
"are... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java#L69-L90 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java | CacheUnitImpl.batchUpdate | public void batchUpdate(String cacheName, HashMap invalidateIdEvents, HashMap invalidateTemplateEvents, ArrayList pushEntryEvents) {
if (tc.isEntryEnabled())
Tr.entry(tc, "batchUpdate():"+cacheName);
invalidationAuditDaemon.registerInvalidations(cacheName, invalidateIdEvents.values().iterat... | java | public void batchUpdate(String cacheName, HashMap invalidateIdEvents, HashMap invalidateTemplateEvents, ArrayList pushEntryEvents) {
if (tc.isEntryEnabled())
Tr.entry(tc, "batchUpdate():"+cacheName);
invalidationAuditDaemon.registerInvalidations(cacheName, invalidateIdEvents.values().iterat... | [
"public",
"void",
"batchUpdate",
"(",
"String",
"cacheName",
",",
"HashMap",
"invalidateIdEvents",
",",
"HashMap",
"invalidateTemplateEvents",
",",
"ArrayList",
"pushEntryEvents",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry... | This implements the method in the CacheUnit interface.
It applies the updates to the local internal caches and
the external caches.
It validates timestamps to prevent race conditions.
@param invalidateIdEvents A HashMap of invalidate by id.
@param invalidateTemplateEvents A HashMap of invalidate by template.
@param pu... | [
"This",
"implements",
"the",
"method",
"in",
"the",
"CacheUnit",
"interface",
".",
"It",
"applies",
"the",
"updates",
"to",
"the",
"local",
"internal",
"caches",
"and",
"the",
"external",
"caches",
".",
"It",
"validates",
"timestamps",
"to",
"prevent",
"race",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java#L116-L140 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java | CacheUnitImpl.getEntry | public CacheEntry getEntry(String cacheName, Object id, boolean ignoreCounting ) {
if (tc.isEntryEnabled())
Tr.entry(tc, "getEntry: {0}", id);
DCache cache = ServerCache.getCache(cacheName);
CacheEntry cacheEntry = null;
if ( cache != null ) {
cacheEntry = (Cac... | java | public CacheEntry getEntry(String cacheName, Object id, boolean ignoreCounting ) {
if (tc.isEntryEnabled())
Tr.entry(tc, "getEntry: {0}", id);
DCache cache = ServerCache.getCache(cacheName);
CacheEntry cacheEntry = null;
if ( cache != null ) {
cacheEntry = (Cac... | [
"public",
"CacheEntry",
"getEntry",
"(",
"String",
"cacheName",
",",
"Object",
"id",
",",
"boolean",
"ignoreCounting",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getEntry: {0}\"",
",",
"id",
")... | This implements the method in the CacheUnit interface.
This is called by DRSNotificationService and DRSMessageListener.
A returned null indicates that the local cache should
execute it and return the result to the coordinating CacheUnit.
@param cacheName The cache name
@param id The cache id for the entry. The id can... | [
"This",
"implements",
"the",
"method",
"in",
"the",
"CacheUnit",
"interface",
".",
"This",
"is",
"called",
"by",
"DRSNotificationService",
"and",
"DRSMessageListener",
".",
"A",
"returned",
"null",
"indicates",
"that",
"the",
"local",
"cache",
"should",
"execute",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java#L153-L166 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java | CacheUnitImpl.setEntry | public void setEntry(String cacheName, CacheEntry cacheEntry) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setEntry: {0}", cacheEntry.id);
cacheEntry = invalidationAuditDaemon.filterEntry(cacheName, cacheEntry);
if (cacheEntry != null) {
DCache cache = ServerCache.getCache(ca... | java | public void setEntry(String cacheName, CacheEntry cacheEntry) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setEntry: {0}", cacheEntry.id);
cacheEntry = invalidationAuditDaemon.filterEntry(cacheName, cacheEntry);
if (cacheEntry != null) {
DCache cache = ServerCache.getCache(ca... | [
"public",
"void",
"setEntry",
"(",
"String",
"cacheName",
",",
"CacheEntry",
"cacheEntry",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setEntry: {0}\"",
",",
"cacheEntry",
".",
"id",
")",
";",
... | This implements the method in the CacheUnit interface.
This is called by DRSNotificationService and DRSMessageListener.
@param cacheName The cache name
@param cacheEntry The entry to be set. | [
"This",
"implements",
"the",
"method",
"in",
"the",
"CacheUnit",
"interface",
".",
"This",
"is",
"called",
"by",
"DRSNotificationService",
"and",
"DRSMessageListener",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java#L175-L186 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java | CacheUnitImpl.setExternalCacheFragment | public void setExternalCacheFragment(ExternalInvalidation externalCacheFragment) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setExternalCacheFragment: {0}", externalCacheFragment.getUri());
externalCacheFragment = invalidationAuditDaemon.filterExternalCacheFragment(ServerCache.cache.getCacheNam... | java | public void setExternalCacheFragment(ExternalInvalidation externalCacheFragment) {
if (tc.isEntryEnabled())
Tr.entry(tc, "setExternalCacheFragment: {0}", externalCacheFragment.getUri());
externalCacheFragment = invalidationAuditDaemon.filterExternalCacheFragment(ServerCache.cache.getCacheNam... | [
"public",
"void",
"setExternalCacheFragment",
"(",
"ExternalInvalidation",
"externalCacheFragment",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setExternalCacheFragment: {0}\"",
",",
"externalCacheFragment",
... | This implements the method in the CacheUnit interface.
This is called by DRSRemoteService and NullRemoteServices.
@param externalCacheFragment The external cache fragment to be relayed. | [
"This",
"implements",
"the",
"method",
"in",
"the",
"CacheUnit",
"interface",
".",
"This",
"is",
"called",
"by",
"DRSRemoteService",
"and",
"NullRemoteServices",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java#L194-L203 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java | CacheUnitImpl.startServices | public void startServices(boolean startTLD) {
synchronized (this.serviceMonitor) { //multiple threads can call this concurrently
if (this.batchUpdateDaemon == null) {
//----------------------------------------------
// Initialize BatchUpdateDaemon object
//------------------... | java | public void startServices(boolean startTLD) {
synchronized (this.serviceMonitor) { //multiple threads can call this concurrently
if (this.batchUpdateDaemon == null) {
//----------------------------------------------
// Initialize BatchUpdateDaemon object
//------------------... | [
"public",
"void",
"startServices",
"(",
"boolean",
"startTLD",
")",
"{",
"synchronized",
"(",
"this",
".",
"serviceMonitor",
")",
"{",
"//multiple threads can call this concurrently ",
"if",
"(",
"this",
".",
"batchUpdateDaemon",
"==",
"null",
")",
"{",
"//---------... | This is called by ServerCache to start BatchUpdateDaemon,
InvalidationAuditDaemon, TimeLimitDaemon and ExternalCacheServices
These services should only start once for all cache instances
@param startTLD this param is false for a third party cache provider | [
"This",
"is",
"called",
"by",
"ServerCache",
"to",
"start",
"BatchUpdateDaemon",
"InvalidationAuditDaemon",
"TimeLimitDaemon",
"and",
"ExternalCacheServices",
"These",
"services",
"should",
"only",
"start",
"once",
"for",
"all",
"cache",
"instances"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java#L245-L321 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java | CacheUnitImpl.addAlias | public void addAlias(String cacheName, Object id, Object[] aliasArray) {
if (id != null && aliasArray != null) {
DCache cache = ServerCache.getCache(cacheName);
if (cache != null) {
try {
cache.addAlias(id, aliasArray, false, false);
} ... | java | public void addAlias(String cacheName, Object id, Object[] aliasArray) {
if (id != null && aliasArray != null) {
DCache cache = ServerCache.getCache(cacheName);
if (cache != null) {
try {
cache.addAlias(id, aliasArray, false, false);
} ... | [
"public",
"void",
"addAlias",
"(",
"String",
"cacheName",
",",
"Object",
"id",
",",
"Object",
"[",
"]",
"aliasArray",
")",
"{",
"if",
"(",
"id",
"!=",
"null",
"&&",
"aliasArray",
"!=",
"null",
")",
"{",
"DCache",
"cache",
"=",
"ServerCache",
".",
"getC... | This implements the method in the CacheUnit interface. This is called to
add alias ids for cache id.
@param cacheName
The cache name
@param id
The cache id
@param aliasArray
The array of alias ids | [
"This",
"implements",
"the",
"method",
"in",
"the",
"CacheUnit",
"interface",
".",
"This",
"is",
"called",
"to",
"add",
"alias",
"ids",
"for",
"cache",
"id",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java#L334-L347 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java | CacheUnitImpl.removeAlias | public void removeAlias(String cacheName, Object alias) {
if (alias != null) {
DCache cache = ServerCache.getCache(cacheName);
if (cache != null) {
try {
cache.removeAlias(alias, false, false);
} catch (IllegalArgumentException e) {
... | java | public void removeAlias(String cacheName, Object alias) {
if (alias != null) {
DCache cache = ServerCache.getCache(cacheName);
if (cache != null) {
try {
cache.removeAlias(alias, false, false);
} catch (IllegalArgumentException e) {
... | [
"public",
"void",
"removeAlias",
"(",
"String",
"cacheName",
",",
"Object",
"alias",
")",
"{",
"if",
"(",
"alias",
"!=",
"null",
")",
"{",
"DCache",
"cache",
"=",
"ServerCache",
".",
"getCache",
"(",
"cacheName",
")",
";",
"if",
"(",
"cache",
"!=",
"nu... | This implements the method in the CacheUnit interface.
This is called to remove alias ids from cache id.
@param cacheName The cache name
@param alias The alias ids | [
"This",
"implements",
"the",
"method",
"in",
"the",
"CacheUnit",
"interface",
".",
"This",
"is",
"called",
"to",
"remove",
"alias",
"ids",
"from",
"cache",
"id",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java#L356-L369 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java | CacheUnitImpl.getCommandCache | public CommandCache getCommandCache(String cacheName) throws DynamicCacheServiceNotStarted, IllegalStateException {
if (servletCacheUnit == null) {
throw new DynamicCacheServiceNotStarted("Servlet cache service has not been started.");
}
return servletCacheUnit.getCommandCache(cacheName);
} | java | public CommandCache getCommandCache(String cacheName) throws DynamicCacheServiceNotStarted, IllegalStateException {
if (servletCacheUnit == null) {
throw new DynamicCacheServiceNotStarted("Servlet cache service has not been started.");
}
return servletCacheUnit.getCommandCache(cacheName);
} | [
"public",
"CommandCache",
"getCommandCache",
"(",
"String",
"cacheName",
")",
"throws",
"DynamicCacheServiceNotStarted",
",",
"IllegalStateException",
"{",
"if",
"(",
"servletCacheUnit",
"==",
"null",
")",
"{",
"throw",
"new",
"DynamicCacheServiceNotStarted",
"(",
"\"Se... | This implements the method in the CacheUnit interface.
This is called to get Command Cache object.
@param cacheName The cache name
@return CommandCache object | [
"This",
"implements",
"the",
"method",
"in",
"the",
"CacheUnit",
"interface",
".",
"This",
"is",
"called",
"to",
"get",
"Command",
"Cache",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java#L388-L393 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java | CacheUnitImpl.getJSPCache | public JSPCache getJSPCache(String cacheName) throws DynamicCacheServiceNotStarted, IllegalStateException {
if (servletCacheUnit == null) {
throw new DynamicCacheServiceNotStarted("Servlet cache service has not been started.");
}
return servletCacheUnit.getJSPCache(cacheName);
} | java | public JSPCache getJSPCache(String cacheName) throws DynamicCacheServiceNotStarted, IllegalStateException {
if (servletCacheUnit == null) {
throw new DynamicCacheServiceNotStarted("Servlet cache service has not been started.");
}
return servletCacheUnit.getJSPCache(cacheName);
} | [
"public",
"JSPCache",
"getJSPCache",
"(",
"String",
"cacheName",
")",
"throws",
"DynamicCacheServiceNotStarted",
",",
"IllegalStateException",
"{",
"if",
"(",
"servletCacheUnit",
"==",
"null",
")",
"{",
"throw",
"new",
"DynamicCacheServiceNotStarted",
"(",
"\"Servlet ca... | This implements the method in the CacheUnit interface.
This is called to get JSP Cache object.
@param cacheName The cache name
@return JSPCache object | [
"This",
"implements",
"the",
"method",
"in",
"the",
"CacheUnit",
"interface",
".",
"This",
"is",
"called",
"to",
"get",
"JSP",
"Cache",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java#L402-L407 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java | CacheUnitImpl.createObjectCache | public Object createObjectCache(String cacheName) throws DynamicCacheServiceNotStarted, IllegalStateException {
if (objectCacheUnit == null) {
throw new DynamicCacheServiceNotStarted("Object cache service has not been started.");
}
return objectCacheUnit.createObjectCache(cacheName);
} | java | public Object createObjectCache(String cacheName) throws DynamicCacheServiceNotStarted, IllegalStateException {
if (objectCacheUnit == null) {
throw new DynamicCacheServiceNotStarted("Object cache service has not been started.");
}
return objectCacheUnit.createObjectCache(cacheName);
} | [
"public",
"Object",
"createObjectCache",
"(",
"String",
"cacheName",
")",
"throws",
"DynamicCacheServiceNotStarted",
",",
"IllegalStateException",
"{",
"if",
"(",
"objectCacheUnit",
"==",
"null",
")",
"{",
"throw",
"new",
"DynamicCacheServiceNotStarted",
"(",
"\"Object ... | This implements the method in the CacheUnit interface.
This is called to create object cache.
It calls ObjectCacheUnit to perform this operation.
@param cacheName The cache name | [
"This",
"implements",
"the",
"method",
"in",
"the",
"CacheUnit",
"interface",
".",
"This",
"is",
"called",
"to",
"create",
"object",
"cache",
".",
"It",
"calls",
"ObjectCacheUnit",
"to",
"perform",
"this",
"operation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java#L441-L446 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java | CacheUnitImpl.createEventSource | public EventSource createEventSource(boolean createAsyncEventSource, String cacheName) throws DynamicCacheServiceNotStarted {
if (objectCacheUnit == null) {
throw new DynamicCacheServiceNotStarted("Object cache service has not been started.");
}
return objectCacheUnit.createEventSource(createAsync... | java | public EventSource createEventSource(boolean createAsyncEventSource, String cacheName) throws DynamicCacheServiceNotStarted {
if (objectCacheUnit == null) {
throw new DynamicCacheServiceNotStarted("Object cache service has not been started.");
}
return objectCacheUnit.createEventSource(createAsync... | [
"public",
"EventSource",
"createEventSource",
"(",
"boolean",
"createAsyncEventSource",
",",
"String",
"cacheName",
")",
"throws",
"DynamicCacheServiceNotStarted",
"{",
"if",
"(",
"objectCacheUnit",
"==",
"null",
")",
"{",
"throw",
"new",
"DynamicCacheServiceNotStarted",
... | This implements the method in the CacheUnit interface.
This is called to create event source object.
It calls ObjectCacheUnit to perform this operation.
@param createAsyncEventSource boolean true - using async thread context for callback; false - using caller thread for callback
@param cacheName The cache name
@return... | [
"This",
"implements",
"the",
"method",
"in",
"the",
"CacheUnit",
"interface",
".",
"This",
"is",
"called",
"to",
"create",
"event",
"source",
"object",
".",
"It",
"calls",
"ObjectCacheUnit",
"to",
"perform",
"this",
"operation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheUnitImpl.java#L457-L462 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/PolicyQualifierInfo.java | PolicyQualifierInfo.toASN1Object | public DERObject toASN1Object()
{
ASN1EncodableVector dev = new ASN1EncodableVector();
dev.add(policyQualifierId);
dev.add(qualifier);
return new DERSequence(dev);
} | java | public DERObject toASN1Object()
{
ASN1EncodableVector dev = new ASN1EncodableVector();
dev.add(policyQualifierId);
dev.add(qualifier);
return new DERSequence(dev);
} | [
"public",
"DERObject",
"toASN1Object",
"(",
")",
"{",
"ASN1EncodableVector",
"dev",
"=",
"new",
"ASN1EncodableVector",
"(",
")",
";",
"dev",
".",
"add",
"(",
"policyQualifierId",
")",
";",
"dev",
".",
"add",
"(",
"qualifier",
")",
";",
"return",
"new",
"DE... | Returns a DER-encodable representation of this instance.
@return a <code>DERObject</code> value | [
"Returns",
"a",
"DER",
"-",
"encodable",
"representation",
"of",
"this",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/PolicyQualifierInfo.java#L99-L106 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPOutputHandler.java | PtoPOutputHandler.sendAckExpectedMessage | public void sendAckExpectedMessage(long ackExpStamp,
int priority,
Reliability reliability,
SIBUuid12 stream) // not used for ptp
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() ... | java | public void sendAckExpectedMessage(long ackExpStamp,
int priority,
Reliability reliability,
SIBUuid12 stream) // not used for ptp
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() ... | [
"public",
"void",
"sendAckExpectedMessage",
"(",
"long",
"ackExpStamp",
",",
"int",
"priority",
",",
"Reliability",
"reliability",
",",
"SIBUuid12",
"stream",
")",
"// not used for ptp",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTra... | sendAckExpectedMessage is called from SourceStream timer alarm | [
"sendAckExpectedMessage",
"is",
"called",
"from",
"SourceStream",
"timer",
"alarm"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPOutputHandler.java#L631-L737 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPOutputHandler.java | PtoPOutputHandler.sendSilenceMessage | public void sendSilenceMessage(
long startStamp,
long endStamp,
long completedPrefix,
boolean requestedOnly,
int priority,
Reliability reliability,
SIBUuid12 stream)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.ent... | java | public void sendSilenceMessage(
long startStamp,
long endStamp,
long completedPrefix,
boolean requestedOnly,
int priority,
Reliability reliability,
SIBUuid12 stream)
throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.ent... | [
"public",
"void",
"sendSilenceMessage",
"(",
"long",
"startStamp",
",",
"long",
"endStamp",
",",
"long",
"completedPrefix",
",",
"boolean",
"requestedOnly",
",",
"int",
"priority",
",",
"Reliability",
"reliability",
",",
"SIBUuid12",
"stream",
")",
"throws",
"SIRe... | sendSilenceMessage may be called from SourceStream
when a Nack is recevied | [
"sendSilenceMessage",
"may",
"be",
"called",
"from",
"SourceStream",
"when",
"a",
"Nack",
"is",
"recevied"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPOutputHandler.java#L743-L834 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPOutputHandler.java | PtoPOutputHandler.handleRollback | protected void handleRollback(LocalTransaction transaction)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "handleRollback", transaction);
// Roll back the transaction if we created it.
if (transaction != null)
{
try
{
transaction.rollback... | java | protected void handleRollback(LocalTransaction transaction)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "handleRollback", transaction);
// Roll back the transaction if we created it.
if (transaction != null)
{
try
{
transaction.rollback... | [
"protected",
"void",
"handleRollback",
"(",
"LocalTransaction",
"transaction",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"handleRollba... | This method checks to see if rollback is required
@param transaction The transaction to rollback. | [
"This",
"method",
"checks",
"to",
"see",
"if",
"rollback",
"is",
"required"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPOutputHandler.java#L1542-L1569 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPOutputHandler.java | PtoPOutputHandler.updateTargetCellule | public void updateTargetCellule(SIBUuid8 targetMEUuid) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "updateTargetCellule", targetMEUuid);
this.targetMEUuid = targetMEUuid;
sourceStreamManager.updateTargetCellule(targetMEUui... | java | public void updateTargetCellule(SIBUuid8 targetMEUuid) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "updateTargetCellule", targetMEUuid);
this.targetMEUuid = targetMEUuid;
sourceStreamManager.updateTargetCellule(targetMEUui... | [
"public",
"void",
"updateTargetCellule",
"(",
"SIBUuid8",
"targetMEUuid",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
... | This method should only be called when the PtoPOutputHandler was created
for a Link with an unknown targetCellule and WLM has now told us correct
targetCellule. | [
"This",
"method",
"should",
"only",
"be",
"called",
"when",
"the",
"PtoPOutputHandler",
"was",
"created",
"for",
"a",
"Link",
"with",
"an",
"unknown",
"targetCellule",
"and",
"WLM",
"has",
"now",
"told",
"us",
"correct",
"targetCellule",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPOutputHandler.java#L2542-L2554 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPOutputHandler.java | PtoPOutputHandler.updateRoutingCellule | public void updateRoutingCellule( SIBUuid8 routingME )
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "updateRoutingCellule", routingME);
this.routingMEUuid = routingME;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr... | java | public void updateRoutingCellule( SIBUuid8 routingME )
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "updateRoutingCellule", routingME);
this.routingMEUuid = routingME;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr... | [
"public",
"void",
"updateRoutingCellule",
"(",
"SIBUuid8",
"routingME",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"updateRoutingCellul... | This method should only be called when the PtoPOutputHandler was created
for a Link. It is called every time a message is sent | [
"This",
"method",
"should",
"only",
"be",
"called",
"when",
"the",
"PtoPOutputHandler",
"was",
"created",
"for",
"a",
"Link",
".",
"It",
"is",
"called",
"every",
"time",
"a",
"message",
"is",
"sent"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/PtoPOutputHandler.java#L2560-L2569 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/AsyncUpdateThread.java | AsyncUpdateThread.enqueueWork | public void enqueueWork(AsyncUpdate unit) throws ClosedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "enqueueWork", unit);
synchronized (this)
{
if (closed)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | java | public void enqueueWork(AsyncUpdate unit) throws ClosedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "enqueueWork", unit);
synchronized (this)
{
if (closed)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
... | [
"public",
"void",
"enqueueWork",
"(",
"AsyncUpdate",
"unit",
")",
"throws",
"ClosedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
... | Enqueue an AsyncUpdate
@param unit the AsyncUpdate | [
"Enqueue",
"an",
"AsyncUpdate"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/AsyncUpdateThread.java#L129-L174 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/AsyncUpdateThread.java | AsyncUpdateThread.startExecutingUpdates | private void startExecutingUpdates() throws ClosedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "startExecutingUpdates");
// swap the enqueuedUnits and executingUnits.
ArrayList temp = executingUnits;
executingUnits = enqueuedUnits;
enqueuedUni... | java | private void startExecutingUpdates() throws ClosedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "startExecutingUpdates");
// swap the enqueuedUnits and executingUnits.
ArrayList temp = executingUnits;
executingUnits = enqueuedUnits;
enqueuedUni... | [
"private",
"void",
"startExecutingUpdates",
"(",
")",
"throws",
"ClosedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"startExecutin... | Internal method. Should be called from within a synchronized block. | [
"Internal",
"method",
".",
"Should",
"be",
"called",
"from",
"within",
"a",
"synchronized",
"block",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/AsyncUpdateThread.java#L179-L219 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/AsyncUpdateThread.java | AsyncUpdateThread.alarm | public void alarm(Object thandle)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "alarm", new Object[] {this, mp.getMessagingEngineUuid()});
synchronized (this)
{
if (!closed)
{
if ((executeSinceExpiry) || executing)
{ // has committed... | java | public void alarm(Object thandle)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "alarm", new Object[] {this, mp.getMessagingEngineUuid()});
synchronized (this)
{
if (!closed)
{
if ((executeSinceExpiry) || executing)
{ // has committed... | [
"public",
"void",
"alarm",
"(",
"Object",
"thandle",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"alarm\"",
",",
"new",
"Object",
... | end class ExecutionThread ... | [
"end",
"class",
"ExecutionThread",
"..."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/AsyncUpdateThread.java#L462-L498 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/AsyncUpdateThread.java | AsyncUpdateThread.waitTillAllUpdatesExecuted | public void waitTillAllUpdatesExecuted() throws InterruptedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "waitTillAllUpdatesExecuted");
synchronized (this)
{
while (enqueuedUnits.size() > 0 || executing)
{
try
{
thi... | java | public void waitTillAllUpdatesExecuted() throws InterruptedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "waitTillAllUpdatesExecuted");
synchronized (this)
{
while (enqueuedUnits.size() > 0 || executing)
{
try
{
thi... | [
"public",
"void",
"waitTillAllUpdatesExecuted",
"(",
")",
"throws",
"InterruptedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"wait... | This method blocks till there are 0 enqueued updates and 0 executing updates.
Useful for unit testing. | [
"This",
"method",
"blocks",
"till",
"there",
"are",
"0",
"enqueued",
"updates",
"and",
"0",
"executing",
"updates",
".",
"Useful",
"for",
"unit",
"testing",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/AsyncUpdateThread.java#L519-L542 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/websphere/servlet/event/FilterErrorEvent.java | FilterErrorEvent.getRootCause | public Throwable getRootCause() {
Throwable root = getError();
while(true) {
if(root instanceof ServletException) {
ServletException se = (ServletException)_error;
Throwable seRoot = se.getRootCause();
if(seRoot == null) {
r... | java | public Throwable getRootCause() {
Throwable root = getError();
while(true) {
if(root instanceof ServletException) {
ServletException se = (ServletException)_error;
Throwable seRoot = se.getRootCause();
if(seRoot == null) {
r... | [
"public",
"Throwable",
"getRootCause",
"(",
")",
"{",
"Throwable",
"root",
"=",
"getError",
"(",
")",
";",
"while",
"(",
"true",
")",
"{",
"if",
"(",
"root",
"instanceof",
"ServletException",
")",
"{",
"ServletException",
"se",
"=",
"(",
"ServletException",
... | Get the original cause of the error.
Use of ServletExceptions by the engine to rethrow errors
can cause the original error to be buried within one or more
exceptions. This method will sift through the wrapped ServletExceptions
to return the original error. | [
"Get",
"the",
"original",
"cause",
"of",
"the",
"error",
".",
"Use",
"of",
"ServletExceptions",
"by",
"the",
"engine",
"to",
"rethrow",
"errors",
"can",
"cause",
"the",
"original",
"error",
"to",
"be",
"buried",
"within",
"one",
"or",
"more",
"exceptions",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/websphere/servlet/event/FilterErrorEvent.java#L53-L73 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/inbound/security/SecurityInflowContextProviderImpl.java | SecurityInflowContextProviderImpl.activate | protected void activate(ComponentContext context) {
securityServiceRef.activate(context);
unauthSubjectServiceRef.activate(context);
authServiceRef.activate(context);
credServiceRef.activate(context);
} | java | protected void activate(ComponentContext context) {
securityServiceRef.activate(context);
unauthSubjectServiceRef.activate(context);
authServiceRef.activate(context);
credServiceRef.activate(context);
} | [
"protected",
"void",
"activate",
"(",
"ComponentContext",
"context",
")",
"{",
"securityServiceRef",
".",
"activate",
"(",
"context",
")",
";",
"unauthSubjectServiceRef",
".",
"activate",
"(",
"context",
")",
";",
"authServiceRef",
".",
"activate",
"(",
"context",... | Called during service activation.
@param context | [
"Called",
"during",
"service",
"activation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/inbound/security/SecurityInflowContextProviderImpl.java#L66-L71 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.initialise | protected void initialise(String logFileName,
int logFileType,
java.util.Map objectStoreLocations,
ObjectManagerEventCallback[] callbacks)
throws ObjectManagerException {
final String methodName = "init... | java | protected void initialise(String logFileName,
int logFileType,
java.util.Map objectStoreLocations,
ObjectManagerEventCallback[] callbacks)
throws ObjectManagerException {
final String methodName = "init... | [
"protected",
"void",
"initialise",
"(",
"String",
"logFileName",
",",
"int",
"logFileType",
",",
"java",
".",
"util",
".",
"Map",
"objectStoreLocations",
",",
"ObjectManagerEventCallback",
"[",
"]",
"callbacks",
")",
"throws",
"ObjectManagerException",
"{",
"final",... | Create a handle for the ObjectManagerState and initialise it of necessary.
@param logFileName of the transaction log file,
all instances of the ObjectManager must use exactly the same log file name.
@param logFileType one of LOG_FILE_TYPE_XXX.
@param objectStoreLocations to map ObjectStore names to their disk location... | [
"Create",
"a",
"handle",
"for",
"the",
"ObjectManagerState",
"and",
"initialise",
"it",
"of",
"necessary",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L203-L261 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.createObjectManagerState | protected ObjectManagerState createObjectManagerState(String logFileName,
int logFileType,
java.util.Map objectStoreLocations,
ObjectManagerEventC... | java | protected ObjectManagerState createObjectManagerState(String logFileName,
int logFileType,
java.util.Map objectStoreLocations,
ObjectManagerEventC... | [
"protected",
"ObjectManagerState",
"createObjectManagerState",
"(",
"String",
"logFileName",
",",
"int",
"logFileType",
",",
"java",
".",
"util",
".",
"Map",
"objectStoreLocations",
",",
"ObjectManagerEventCallback",
"[",
"]",
"callbacks",
")",
"throws",
"ObjectManagerE... | Instantiate the ObjectManagerState. A subclass of ObjectManager should override this method if a subclass of
ObjecManagerState is required.
@param logFileName of the transaction log file.
@param logFileType one of LOG_FILE_TYPE_XXX.
@param objectStoreLocations referring ObjectStore name to their disk location, filenam... | [
"Instantiate",
"the",
"ObjectManagerState",
".",
"A",
"subclass",
"of",
"ObjectManager",
"should",
"override",
"this",
"method",
"if",
"a",
"subclass",
"of",
"ObjecManagerState",
"is",
"required",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L277-L287 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.warmStarted | public final boolean warmStarted()
{
final String methodName = "warmStarted";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName);
boolean isWarmStarted = false;
if (objectMana... | java | public final boolean warmStarted()
{
final String methodName = "warmStarted";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName);
boolean isWarmStarted = false;
if (objectMana... | [
"public",
"final",
"boolean",
"warmStarted",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"warmStarted\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
... | returns true if the objectManager was warm started.
@return boolean true if warm started. | [
"returns",
"true",
"if",
"the",
"objectManager",
"was",
"warm",
"started",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L294-L312 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.shutdown | public final void shutdown()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "shutdown"
);
objectManagerState.shutdown();
if (Tracing.... | java | public final void shutdown()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "shutdown"
);
objectManagerState.shutdown();
if (Tracing.... | [
"public",
"final",
"void",
"shutdown",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"cclass",
",... | Terminates the ObjectManager.
@throws ObjectManagerException | [
"Terminates",
"the",
"ObjectManager",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L319-L333 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.shutdownFast | public final void shutdownFast()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "shutdownFast"
);
if (!testInterfaces) {
if (Traci... | java | public final void shutdownFast()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "shutdownFast"
);
if (!testInterfaces) {
if (Traci... | [
"public",
"final",
"void",
"shutdownFast",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"cclass",
... | Terminates the ObjectManager, without taking a checkpoint.
The allows the ObjectManager to be restarted as if it had crashed
and is only intended for testing emergency restart.
@throws ObjectManagerException | [
"Terminates",
"the",
"ObjectManager",
"without",
"taking",
"a",
"checkpoint",
".",
"The",
"allows",
"the",
"ObjectManager",
"to",
"be",
"restarted",
"as",
"if",
"it",
"had",
"crashed",
"and",
"is",
"only",
"intended",
"for",
"testing",
"emergency",
"restart",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L342-L366 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.waitForCheckpoint | public final void waitForCheckpoint()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "waitForCheckpoint"
);
if (!testInterfaces) {
... | java | public final void waitForCheckpoint()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "waitForCheckpoint"
);
if (!testInterfaces) {
... | [
"public",
"final",
"void",
"waitForCheckpoint",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"ccla... | Waits for one checkpoint to complete.
@throws ObjectManagerException | [
"Waits",
"for",
"one",
"checkpoint",
"to",
"complete",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L373-L396 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.getTransaction | public final Transaction getTransaction()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getTransaction"
);
// If the log is full introduce a ... | java | public final Transaction getTransaction()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getTransaction"
);
// If the log is full introduce a ... | [
"public",
"final",
"Transaction",
"getTransaction",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"... | Factory method to crate a new transaction for use with the ObjectManager.
@return Transaction the new transaction.
@throws ObjectManagerException | [
"Factory",
"method",
"to",
"crate",
"a",
"new",
"transaction",
"for",
"use",
"with",
"the",
"ObjectManager",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L533-L551 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.getTransactionByXID | public final Transaction getTransactionByXID(byte[] XID)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getTransactionByXID"
, "XIDe=" + XID + "(byte[]"
... | java | public final Transaction getTransactionByXID(byte[] XID)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getTransactionByXID"
, "XIDe=" + XID + "(byte[]"
... | [
"public",
"final",
"Transaction",
"getTransactionByXID",
"(",
"byte",
"[",
"]",
"XID",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
... | Locate a transaction registered with this ObjectManager.
with the same XID as the one passed.
If a null XID is passed this will return any registered transaction with a null XID.
@param XID Xopen identifier.
@return Transaction identified by the XID.
@throws ObjectManagerException | [
"Locate",
"a",
"transaction",
"registered",
"with",
"this",
"ObjectManager",
".",
"with",
"the",
"same",
"XID",
"as",
"the",
"one",
"passed",
".",
"If",
"a",
"null",
"XID",
"is",
"passed",
"this",
"will",
"return",
"any",
"registered",
"transaction",
"with",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L562-L579 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.getTransactionIterator | public final java.util.Iterator getTransactionIterator()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getTransactionIterator"
);
java.util.I... | java | public final java.util.Iterator getTransactionIterator()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getTransactionIterator"
);
java.util.I... | [
"public",
"final",
"java",
".",
"util",
".",
"Iterator",
"getTransactionIterator",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",... | Create an iterator over all transactions known to this ObjectManager.
The iterator returned is safe against concurrent modification of the set of transactions,
new transactions created after the iterator is created may not be covered by the iterator.
@return java.util.Iterator over Transactions.
@throws ObjectManagerE... | [
"Create",
"an",
"iterator",
"over",
"all",
"transactions",
"known",
"to",
"this",
"ObjectManager",
".",
"The",
"iterator",
"returned",
"is",
"safe",
"against",
"concurrent",
"modification",
"of",
"the",
"set",
"of",
"transactions",
"new",
"transactions",
"created"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L589-L604 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.getObjectStore | public final ObjectStore getObjectStore(String objectStoreName)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getObjectStore"
, "objectStoreName=" + obje... | java | public final ObjectStore getObjectStore(String objectStoreName)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getObjectStore"
, "objectStoreName=" + obje... | [
"public",
"final",
"ObjectStore",
"getObjectStore",
"(",
"String",
"objectStoreName",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"en... | Locate an ObjectStore used by this objectManager.
@param objectStoreName of the ObjectStore.
@return ObjectStore found matching the identifier.
@throws ObjectManagerException | [
"Locate",
"an",
"ObjectStore",
"used",
"by",
"this",
"objectManager",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L613-L630 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.getObjectStoreIterator | public final java.util.Iterator getObjectStoreIterator()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getObjectStoreIterator"
);
java.util.I... | java | public final java.util.Iterator getObjectStoreIterator()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getObjectStoreIterator"
);
java.util.I... | [
"public",
"final",
"java",
".",
"util",
".",
"Iterator",
"getObjectStoreIterator",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",... | Create an iterator over all ObjectStores known to this ObjectManager.
@return java.util.Iterator over Transactions.
@throws ObjectManagerException | [
"Create",
"an",
"iterator",
"over",
"all",
"ObjectStores",
"known",
"to",
"this",
"ObjectManager",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L638-L653 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.getNamedObject | public final Token getNamedObject(String name
, Transaction transaction)
throws ObjectManagerException
{
final String methodName = "getNamedObject";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cc... | java | public final Token getNamedObject(String name
, Transaction transaction)
throws ObjectManagerException
{
final String methodName = "getNamedObject";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cc... | [
"public",
"final",
"Token",
"getNamedObject",
"(",
"String",
"name",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"getNamedObject\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"... | Locate a Token by name within this objectManager.
@param name The name of the Token to be located.
@param transaction controlling visibility of the named ManagedObject.
@return Token of the named ManagedObject or null.
@throws ObjectManagerException | [
"Locate",
"a",
"Token",
"by",
"name",
"within",
"this",
"objectManager",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L740-L770 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.removeNamedObject | public final Token removeNamedObject(String name
, Transaction transaction)
throws ObjectManagerException {
final String methodName = "removeNamedObject";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(thi... | java | public final Token removeNamedObject(String name
, Transaction transaction)
throws ObjectManagerException {
final String methodName = "removeNamedObject";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(thi... | [
"public",
"final",
"Token",
"removeNamedObject",
"(",
"String",
"name",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"removeNamedObject\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled... | Remove a named ManagedObject locatable by name within this objectManager.
@param name The name of the ManagedObject to be removed.
@param transaction The transaction which scopes the naming.
@return Token of any existing ManagedObject associated with this name or null.
@throws ObjectManagerException | [
"Remove",
"a",
"named",
"ManagedObject",
"locatable",
"by",
"name",
"within",
"this",
"objectManager",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L780-L827 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.setTransactionsPerCheckpoint | public final void setTransactionsPerCheckpoint(long persistentTransactionsPerCheckpoint
, long nonPersistentTransactionsPerCheckpoint
, Transaction transaction)
throws ObjectManagerException
{
... | java | public final void setTransactionsPerCheckpoint(long persistentTransactionsPerCheckpoint
, long nonPersistentTransactionsPerCheckpoint
, Transaction transaction)
throws ObjectManagerException
{
... | [
"public",
"final",
"void",
"setTransactionsPerCheckpoint",
"(",
"long",
"persistentTransactionsPerCheckpoint",
",",
"long",
"nonPersistentTransactionsPerCheckpoint",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
... | Create a named ManagedObject by name within this objectManager.
@param persistentTransactionsPerCheckpoint the number of persistent transactions that can commit or backout before
a checkpoint is written in the log. A high number results in long restart times a low number impacts
runtime performance.
@param nonPersiste... | [
"Create",
"a",
"named",
"ManagedObject",
"by",
"name",
"within",
"this",
"objectManager",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L874-L899 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.setMaximumActiveTransactions | public final void setMaximumActiveTransactions(int maximumActiveTransactions
, Transaction transaction)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
... | java | public final void setMaximumActiveTransactions(int maximumActiveTransactions
, Transaction transaction)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
... | [
"public",
"final",
"void",
"setMaximumActiveTransactions",
"(",
"int",
"maximumActiveTransactions",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntr... | Change the maximum active transactrions that the ObjectManager will allow to start. If this call reduces the
maximum then existing transactions continue but no new ones are allowed until the total has fallen below the new
maximum.
@param maximumActiveTransactions to set.
@param transaction controling the update.
@thro... | [
"Change",
"the",
"maximum",
"active",
"transactrions",
"that",
"the",
"ObjectManager",
"will",
"allow",
"to",
"start",
".",
"If",
"this",
"call",
"reduces",
"the",
"maximum",
"then",
"existing",
"transactions",
"continue",
"but",
"no",
"new",
"ones",
"are",
"a... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L920-L942 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.captureStatistics | public java.util.Map captureStatistics(String name
)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"captureStatistics",... | java | public java.util.Map captureStatistics(String name
)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"captureStatistics",... | [
"public",
"java",
".",
"util",
".",
"Map",
"captureStatistics",
"(",
"String",
"name",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
"."... | Capture statistics.
@param name The name of the component to capture statistics from.
@return java.util.Map the captured statistics.
@throws ObjectManagerException | [
"Capture",
"statistics",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L1041-L1091 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java | ObjectManager.registerEventCallback | public void registerEventCallback(ObjectManagerEventCallback callback)
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, "registerEventCallback", callback);
objectManagerState.registerEventCallback(callback);
if (Tracing.isAnyTracingEnable... | java | public void registerEventCallback(ObjectManagerEventCallback callback)
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, "registerEventCallback", callback);
objectManagerState.registerEventCallback(callback);
if (Tracing.isAnyTracingEnable... | [
"public",
"void",
"registerEventCallback",
"(",
"ObjectManagerEventCallback",
"callback",
")",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"cclas... | Defect 495856, 496893 | [
"Defect",
"495856",
"496893"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ObjectManager.java#L1117-L1126 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/BootstrapDefaults.java | BootstrapDefaults.getLogProviderDefinition | public String getLogProviderDefinition(BootstrapConfig bootProps) {
String logProvider = bootProps.get(BOOTPROP_LOG_PROVIDER);
if (logProvider == null)
logProvider = defaults.getProperty(MANIFEST_LOG_PROVIDER);
if (logProvider != null)
bootProps.put(BOOTPROP_LOG_PROVIDE... | java | public String getLogProviderDefinition(BootstrapConfig bootProps) {
String logProvider = bootProps.get(BOOTPROP_LOG_PROVIDER);
if (logProvider == null)
logProvider = defaults.getProperty(MANIFEST_LOG_PROVIDER);
if (logProvider != null)
bootProps.put(BOOTPROP_LOG_PROVIDE... | [
"public",
"String",
"getLogProviderDefinition",
"(",
"BootstrapConfig",
"bootProps",
")",
"{",
"String",
"logProvider",
"=",
"bootProps",
".",
"get",
"(",
"BOOTPROP_LOG_PROVIDER",
")",
";",
"if",
"(",
"logProvider",
"==",
"null",
")",
"logProvider",
"=",
"defaults... | Find and return the name of the log provider. Look in
bootstrap properties first, if not explicitly defined there, get
the default from the manifest.
@return the selected log provider | [
"Find",
"and",
"return",
"the",
"name",
"of",
"the",
"log",
"provider",
".",
"Look",
"in",
"bootstrap",
"properties",
"first",
"if",
"not",
"explicitly",
"defined",
"there",
"get",
"the",
"default",
"from",
"the",
"manifest",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/BootstrapDefaults.java#L101-L111 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/BootstrapDefaults.java | BootstrapDefaults.getOSExtensionDefinition | public String getOSExtensionDefinition(BootstrapConfig bootProps) {
String osExtension = bootProps.get(BOOTPROP_OS_EXTENSIONS);
if (osExtension == null) {
String normalizedName = getNormalizedOperatingSystemName(bootProps.get("os.name"));
osExtension = defaults.getProperty(MANIF... | java | public String getOSExtensionDefinition(BootstrapConfig bootProps) {
String osExtension = bootProps.get(BOOTPROP_OS_EXTENSIONS);
if (osExtension == null) {
String normalizedName = getNormalizedOperatingSystemName(bootProps.get("os.name"));
osExtension = defaults.getProperty(MANIF... | [
"public",
"String",
"getOSExtensionDefinition",
"(",
"BootstrapConfig",
"bootProps",
")",
"{",
"String",
"osExtension",
"=",
"bootProps",
".",
"get",
"(",
"BOOTPROP_OS_EXTENSIONS",
")",
";",
"if",
"(",
"osExtension",
"==",
"null",
")",
"{",
"String",
"normalizedNa... | Find and return the name of the os extension. Look in
bootstrap properties first, if not explicitly defined there, get
the default from the manifest.
@return the selected log provider | [
"Find",
"and",
"return",
"the",
"name",
"of",
"the",
"os",
"extension",
".",
"Look",
"in",
"bootstrap",
"properties",
"first",
"if",
"not",
"explicitly",
"defined",
"there",
"get",
"the",
"default",
"from",
"the",
"manifest",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/BootstrapDefaults.java#L120-L132 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/archaius/cache/ConfigCache.java | ConfigCache.getProperty | private TypeContainer getProperty(String propName) {
TypeContainer container = cache.get(propName);
if (container == null) {
container = new TypeContainer(propName, config, version);
TypeContainer existing = cache.putIfAbsent(propName, container);
if (existing != null... | java | private TypeContainer getProperty(String propName) {
TypeContainer container = cache.get(propName);
if (container == null) {
container = new TypeContainer(propName, config, version);
TypeContainer existing = cache.putIfAbsent(propName, container);
if (existing != null... | [
"private",
"TypeContainer",
"getProperty",
"(",
"String",
"propName",
")",
"{",
"TypeContainer",
"container",
"=",
"cache",
".",
"get",
"(",
"propName",
")",
";",
"if",
"(",
"container",
"==",
"null",
")",
"{",
"container",
"=",
"new",
"TypeContainer",
"(",
... | Gets the cached property container or make a new one, cache it and return it
@param propName
@return the property's container | [
"Gets",
"the",
"cached",
"property",
"container",
"or",
"make",
"a",
"new",
"one",
"cache",
"it",
"and",
"return",
"it"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/archaius/cache/ConfigCache.java#L63-L74 | train |
OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/execution/impl/RuntimeSplitFlowExecution.java | RuntimeSplitFlowExecution.publishStartedEvent | private void publishStartedEvent() {
BatchEventsPublisher publisher = getBatchEventsPublisher();
if (publisher != null) {
publisher.publishSplitFlowEvent(getSplitName(),
getFlowName(),
getTopLevelInstanc... | java | private void publishStartedEvent() {
BatchEventsPublisher publisher = getBatchEventsPublisher();
if (publisher != null) {
publisher.publishSplitFlowEvent(getSplitName(),
getFlowName(),
getTopLevelInstanc... | [
"private",
"void",
"publishStartedEvent",
"(",
")",
"{",
"BatchEventsPublisher",
"publisher",
"=",
"getBatchEventsPublisher",
"(",
")",
";",
"if",
"(",
"publisher",
"!=",
"null",
")",
"{",
"publisher",
".",
"publishSplitFlowEvent",
"(",
"getSplitName",
"(",
")",
... | Publish started event | [
"Publish",
"started",
"event"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/execution/impl/RuntimeSplitFlowExecution.java#L152-L163 | train |
OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/execution/impl/RuntimeSplitFlowExecution.java | RuntimeSplitFlowExecution.publishEndedEvent | private void publishEndedEvent() {
BatchEventsPublisher publisher = getBatchEventsPublisher();
if (publisher != null) {
publisher.publishSplitFlowEvent(getSplitName(),
getFlowName(),
getTopLevelInstanceI... | java | private void publishEndedEvent() {
BatchEventsPublisher publisher = getBatchEventsPublisher();
if (publisher != null) {
publisher.publishSplitFlowEvent(getSplitName(),
getFlowName(),
getTopLevelInstanceI... | [
"private",
"void",
"publishEndedEvent",
"(",
")",
"{",
"BatchEventsPublisher",
"publisher",
"=",
"getBatchEventsPublisher",
"(",
")",
";",
"if",
"(",
"publisher",
"!=",
"null",
")",
"{",
"publisher",
".",
"publishSplitFlowEvent",
"(",
"getSplitName",
"(",
")",
"... | Publish ended event | [
"Publish",
"ended",
"event"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/execution/impl/RuntimeSplitFlowExecution.java#L168-L179 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.rt.rs.client.3.2/src/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java | JAXRSClientFactoryBean.setHeaders | public void setHeaders(Map<String, String> map) {
headers = new MetadataMap<String, String>();
for (Map.Entry<String, String> entry : map.entrySet()) {
String[] values = entry.getValue().split(",");
for (String v : values) {
if (v.length() != 0) {
... | java | public void setHeaders(Map<String, String> map) {
headers = new MetadataMap<String, String>();
for (Map.Entry<String, String> entry : map.entrySet()) {
String[] values = entry.getValue().split(",");
for (String v : values) {
if (v.length() != 0) {
... | [
"public",
"void",
"setHeaders",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"map",
")",
"{",
"headers",
"=",
"new",
"MetadataMap",
"<",
"String",
",",
"String",
">",
"(",
")",
";",
"for",
"(",
"Map",
".",
"Entry",
"<",
"String",
",",
"String",
"... | Sets the headers new proxy or WebClient instances will be
initialized with.
@param map the headers | [
"Sets",
"the",
"headers",
"new",
"proxy",
"or",
"WebClient",
"instances",
"will",
"be",
"initialized",
"with",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.rs.client.3.2/src/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java#L187-L197 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.rt.rs.client.3.2/src/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java | JAXRSClientFactoryBean.createWebClient | public WebClient createWebClient() {
String serviceAddress = getAddress();
int queryIndex = serviceAddress != null ? serviceAddress.lastIndexOf('?') : -1;
if (queryIndex != -1) {
serviceAddress = serviceAddress.substring(0, queryIndex);
}
Service service = new JAXRSSe... | java | public WebClient createWebClient() {
String serviceAddress = getAddress();
int queryIndex = serviceAddress != null ? serviceAddress.lastIndexOf('?') : -1;
if (queryIndex != -1) {
serviceAddress = serviceAddress.substring(0, queryIndex);
}
Service service = new JAXRSSe... | [
"public",
"WebClient",
"createWebClient",
"(",
")",
"{",
"String",
"serviceAddress",
"=",
"getAddress",
"(",
")",
";",
"int",
"queryIndex",
"=",
"serviceAddress",
"!=",
"null",
"?",
"serviceAddress",
".",
"lastIndexOf",
"(",
"'",
"'",
")",
":",
"-",
"1",
"... | Creates a WebClient instance
@return WebClient instance | [
"Creates",
"a",
"WebClient",
"instance"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.rs.client.3.2/src/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java#L211-L236 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.rt.rs.client.3.2/src/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java | JAXRSClientFactoryBean.create | public <T> T create(Class<T> cls, Object... varValues) {
return cls.cast(createWithValues(varValues));
} | java | public <T> T create(Class<T> cls, Object... varValues) {
return cls.cast(createWithValues(varValues));
} | [
"public",
"<",
"T",
">",
"T",
"create",
"(",
"Class",
"<",
"T",
">",
"cls",
",",
"Object",
"...",
"varValues",
")",
"{",
"return",
"cls",
".",
"cast",
"(",
"createWithValues",
"(",
"varValues",
")",
")",
";",
"}"
] | Creates a proxy
@param cls the proxy class
@param varValues optional list of values which will be used to substitute
template variables specified in the class-level JAX-RS Path annotations
@return the proxy | [
"Creates",
"a",
"proxy"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.rs.client.3.2/src/org/apache/cxf/jaxrs/client/JAXRSClientFactoryBean.java#L263-L265 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/ConnectorService.java | ConnectorService.deserialize | public static final Object deserialize(byte[] bytes) throws Exception {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(tc, "deserialize");
Object o;
try {
ByteArrayInputStream bis = new ByteArrayInputStream(... | java | public static final Object deserialize(byte[] bytes) throws Exception {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(tc, "deserialize");
Object o;
try {
ByteArrayInputStream bis = new ByteArrayInputStream(... | [
"public",
"static",
"final",
"Object",
"deserialize",
"(",
"byte",
"[",
"]",
"bytes",
")",
"throws",
"Exception",
"{",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"trace",
"&&",
"tc",
".",
"isEn... | Deserialize from an array of bytes.
@param bytes serialized bytes.
@return deserialized object. | [
"Deserialize",
"from",
"an",
"array",
"of",
"bytes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/ConnectorService.java#L44-L65 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/ConnectorService.java | ConnectorService.getMessage | public static final String getMessage(String key, Object... args) {
return NLS.getFormattedMessage(key, args, key);
} | java | public static final String getMessage(String key, Object... args) {
return NLS.getFormattedMessage(key, args, key);
} | [
"public",
"static",
"final",
"String",
"getMessage",
"(",
"String",
"key",
",",
"Object",
"...",
"args",
")",
"{",
"return",
"NLS",
".",
"getFormattedMessage",
"(",
"key",
",",
"args",
",",
"key",
")",
";",
"}"
] | Get a translated message from J2CAMessages file.
@param key message key.
@param args message parameters
@return a translated message. | [
"Get",
"a",
"translated",
"message",
"from",
"J2CAMessages",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ws/jca/cm/ConnectorService.java#L79-L81 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.