repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/BlockVector.java | BlockVector.insertNullElementsAt | public final void insertNullElementsAt(int index, int count)
{
if (tc.isEntryEnabled())
SibTr.entry(
tc,
"insertNullElementsAt",
new Object[] { new Integer(index), new Integer(count)});
for (int i = index; i < index + count; i++)
add(i, null);
if (tc.isEntryEnabled())... | java | public final void insertNullElementsAt(int index, int count)
{
if (tc.isEntryEnabled())
SibTr.entry(
tc,
"insertNullElementsAt",
new Object[] { new Integer(index), new Integer(count)});
for (int i = index; i < index + count; i++)
add(i, null);
if (tc.isEntryEnabled())... | [
"public",
"final",
"void",
"insertNullElementsAt",
"(",
"int",
"index",
",",
"int",
"count",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"insertNullElementsAt\"",
",",
"new",
"Object",
"[",
"]... | Inserts count null values at index, moving up all the components at index
and greater.
index cannot be greater than the size of the Vector.
@exception ArrayIndexOutOfBoundsException if the index was invalid. | [
"Inserts",
"count",
"null",
"values",
"at",
"index",
"moving",
"up",
"all",
"the",
"components",
"at",
"index",
"and",
"greater",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/BlockVector.java#L64-L77 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.opentracing/src/com/ibm/ws/opentracing/filters/SpanFilterBase.java | SpanFilterBase.validatePattern | protected void validatePattern() {
if (pattern.length() == 0) {
throw new IllegalArgumentException(Tr.formatMessage(tc, "OPENTRACING_FILTER_PATTERN_BLANK"));
}
if (!regex) {
try {
URI.create(pattern);
} catch (IllegalArgumentException e) {
... | java | protected void validatePattern() {
if (pattern.length() == 0) {
throw new IllegalArgumentException(Tr.formatMessage(tc, "OPENTRACING_FILTER_PATTERN_BLANK"));
}
if (!regex) {
try {
URI.create(pattern);
} catch (IllegalArgumentException e) {
... | [
"protected",
"void",
"validatePattern",
"(",
")",
"{",
"if",
"(",
"pattern",
".",
"length",
"(",
")",
"==",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"Tr",
".",
"formatMessage",
"(",
"tc",
",",
"\"OPENTRACING_FILTER_PATTERN_BLANK\"",
")",... | Throw exceptions if the pattern is invalid.
@throws IllegalArgumentException Pattern is blank or non-conformant to RFC 2396. | [
"Throw",
"exceptions",
"if",
"the",
"pattern",
"is",
"invalid",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.opentracing/src/com/ibm/ws/opentracing/filters/SpanFilterBase.java#L103-L115 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.opentracing/src/com/ibm/ws/opentracing/filters/SpanFilterBase.java | SpanFilterBase.prepareUri | protected final String prepareUri(final URI uri) {
if (compareRelative) {
final String path = uri.getRawPath();
final String query = uri.getRawQuery();
final String fragment = uri.getRawFragment();
if (query != null && fragment != null) {
return pa... | java | protected final String prepareUri(final URI uri) {
if (compareRelative) {
final String path = uri.getRawPath();
final String query = uri.getRawQuery();
final String fragment = uri.getRawFragment();
if (query != null && fragment != null) {
return pa... | [
"protected",
"final",
"String",
"prepareUri",
"(",
"final",
"URI",
"uri",
")",
"{",
"if",
"(",
"compareRelative",
")",
"{",
"final",
"String",
"path",
"=",
"uri",
".",
"getRawPath",
"(",
")",
";",
"final",
"String",
"query",
"=",
"uri",
".",
"getRawQuery... | Prepare the URI for matching.
@param uri The URI.
@return A String version of the URI to compare to the pattern. | [
"Prepare",
"the",
"URI",
"for",
"matching",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.opentracing/src/com/ibm/ws/opentracing/filters/SpanFilterBase.java#L161-L178 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/ConsoleWrapper.java | ConsoleWrapper.readText | public String readText(String prompt) {
if (!isInputStreamAvailable()) {
return null;
}
try {
return console.readLine(prompt);
} catch (IOError e) {
stderr.println("Exception while reading stdin: " + e.getMessage());
e.printStackTrace(stder... | java | public String readText(String prompt) {
if (!isInputStreamAvailable()) {
return null;
}
try {
return console.readLine(prompt);
} catch (IOError e) {
stderr.println("Exception while reading stdin: " + e.getMessage());
e.printStackTrace(stder... | [
"public",
"String",
"readText",
"(",
"String",
"prompt",
")",
"{",
"if",
"(",
"!",
"isInputStreamAvailable",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"try",
"{",
"return",
"console",
".",
"readLine",
"(",
"prompt",
")",
";",
"}",
"catch",
"(",
... | Reads text from the input String, prompting with the given String.
@param prompt
@return String read from input. | [
"Reads",
"text",
"from",
"the",
"input",
"String",
"prompting",
"with",
"the",
"given",
"String",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/ConsoleWrapper.java#L46-L57 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.request.probes/src/com/ibm/wsspi/probeExtension/FastList.java | FastList.add | public synchronized int add(E object) {
if (object == null)
throw new NullPointerException("FastList add called with null");
if ((count + 1) >= maxCount)
resize(capacity * 2);
int initialAddIndex = addIndex;
// find right spot to add to - start with addIndex and look
// for first open spot. give up i... | java | public synchronized int add(E object) {
if (object == null)
throw new NullPointerException("FastList add called with null");
if ((count + 1) >= maxCount)
resize(capacity * 2);
int initialAddIndex = addIndex;
// find right spot to add to - start with addIndex and look
// for first open spot. give up i... | [
"public",
"synchronized",
"int",
"add",
"(",
"E",
"object",
")",
"{",
"if",
"(",
"object",
"==",
"null",
")",
"throw",
"new",
"NullPointerException",
"(",
"\"FastList add called with null\"",
")",
";",
"if",
"(",
"(",
"count",
"+",
"1",
")",
">=",
"maxCoun... | Adds specified object to the list and increments size
@param object
the object to add to the list
@throws NullPointerException
if a null object is supplied | [
"Adds",
"specified",
"object",
"to",
"the",
"list",
"and",
"increments",
"size"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probes/src/com/ibm/wsspi/probeExtension/FastList.java#L67-L94 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.request.probes/src/com/ibm/wsspi/probeExtension/FastList.java | FastList.getAll | public synchronized List<E> getAll() {
ArrayList<E> list = new ArrayList<E>();
for (E element : listElements) {
if (element != null) {
list.add(element);
}
}
return list;
} | java | public synchronized List<E> getAll() {
ArrayList<E> list = new ArrayList<E>();
for (E element : listElements) {
if (element != null) {
list.add(element);
}
}
return list;
} | [
"public",
"synchronized",
"List",
"<",
"E",
">",
"getAll",
"(",
")",
"{",
"ArrayList",
"<",
"E",
">",
"list",
"=",
"new",
"ArrayList",
"<",
"E",
">",
"(",
")",
";",
"for",
"(",
"E",
"element",
":",
"listElements",
")",
"{",
"if",
"(",
"element",
... | Provides a shallow copy of the list | [
"Provides",
"a",
"shallow",
"copy",
"of",
"the",
"list"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.request.probes/src/com/ibm/wsspi/probeExtension/FastList.java#L129-L139 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/CacheMap.java | CacheMap.addAll | public Object[] addAll(CacheMap c) {
LinkedList<Object> discards = new LinkedList<Object>();
Object discard;
for (int bucketIndex = c.next[c.BEFORE_LRU]; bucketIndex != c.AFTER_MRU; bucketIndex = c.next[bucketIndex])
for (int i = 0; i < c.bucketSizes[bucketIndex]; i++)
... | java | public Object[] addAll(CacheMap c) {
LinkedList<Object> discards = new LinkedList<Object>();
Object discard;
for (int bucketIndex = c.next[c.BEFORE_LRU]; bucketIndex != c.AFTER_MRU; bucketIndex = c.next[bucketIndex])
for (int i = 0; i < c.bucketSizes[bucketIndex]; i++)
... | [
"public",
"Object",
"[",
"]",
"addAll",
"(",
"CacheMap",
"c",
")",
"{",
"LinkedList",
"<",
"Object",
">",
"discards",
"=",
"new",
"LinkedList",
"<",
"Object",
">",
"(",
")",
";",
"Object",
"discard",
";",
"for",
"(",
"int",
"bucketIndex",
"=",
"c",
"... | Inserts into this CacheMap all entries from the specified CacheMap,
returning a list of any values that do not fit.
@param c the source CacheMap from which to copy entries.
@return list of values from the source CacheMap which didn't fit. | [
"Inserts",
"into",
"this",
"CacheMap",
"all",
"entries",
"from",
"the",
"specified",
"CacheMap",
"returning",
"a",
"list",
"of",
"any",
"values",
"that",
"do",
"not",
"fit",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/CacheMap.java#L172-L182 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/CacheMap.java | CacheMap.discardFromBucket | private Object discardFromBucket(int bucketIndex, int entryIndex) {
numDiscards++;
bucketSizes[bucketIndex]--;
numEntries--;
return values[bucketIndex][entryIndex];
} | java | private Object discardFromBucket(int bucketIndex, int entryIndex) {
numDiscards++;
bucketSizes[bucketIndex]--;
numEntries--;
return values[bucketIndex][entryIndex];
} | [
"private",
"Object",
"discardFromBucket",
"(",
"int",
"bucketIndex",
",",
"int",
"entryIndex",
")",
"{",
"numDiscards",
"++",
";",
"bucketSizes",
"[",
"bucketIndex",
"]",
"--",
";",
"numEntries",
"--",
";",
"return",
"values",
"[",
"bucketIndex",
"]",
"[",
"... | Discard an entry from the specified bucket. The actual entry is not nulled out because
it will later be overwritten.
@param bucketIndex the index of the bucket from which to discard an entry.
@param entryIndex the index of the entry within the bucket to discard.
@return the discarded value. | [
"Discard",
"an",
"entry",
"from",
"the",
"specified",
"bucket",
".",
"The",
"actual",
"entry",
"is",
"not",
"nulled",
"out",
"because",
"it",
"will",
"later",
"be",
"overwritten",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/CacheMap.java#L194-L199 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.addRef | int addRef()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addRef");
int ret = NOP;
// If this is a new subscription, then the operation is to subscribe.
if (_refCount++ == 0)
ret = SUBSCRIBE;
checkRefCount();
if (TraceComponent.isAnyTraci... | java | int addRef()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addRef");
int ret = NOP;
// If this is a new subscription, then the operation is to subscribe.
if (_refCount++ == 0)
ret = SUBSCRIBE;
checkRefCount();
if (TraceComponent.isAnyTraci... | [
"int",
"addRef",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"addRef\"",
")",
";",
"int",
"ret",
"=",
"NOP",
";",
"// If ... | Adds a reference to the subscription.
@return The operation represented by the addition of the reference. | [
"Adds",
"a",
"reference",
"to",
"the",
"subscription",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L200-L218 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.removeRef | int removeRef()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeRef");
int ret = NOP;
// If this is the last reference, then the operation is unsubscribe.
if (--_refCount == 0)
ret = UNSUBSCRIBE;
checkRefCount();
if (TraceComponent.isA... | java | int removeRef()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeRef");
int ret = NOP;
// If this is the last reference, then the operation is unsubscribe.
if (--_refCount == 0)
ret = UNSUBSCRIBE;
checkRefCount();
if (TraceComponent.isA... | [
"int",
"removeRef",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"removeRef\"",
")",
";",
"int",
"ret",
"=",
"NOP",
";",
"... | Removes a reference to the subscription.
@return The operation represented by the removal of the reference. | [
"Removes",
"a",
"reference",
"to",
"the",
"subscription",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L226-L244 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.getTopic | final String getTopic()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getTopic");
SibTr.exit(tc, "getTopic", _topic);
}
return _topic;
} | java | final String getTopic()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getTopic");
SibTr.exit(tc, "getTopic", _topic);
}
return _topic;
} | [
"final",
"String",
"getTopic",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getTopic\"",
")",
";",
"SibTr",
".",
"exit... | Returns the value of the topic.
@return The topic. | [
"Returns",
"the",
"value",
"of",
"the",
"topic",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L251-L260 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.getTopicSpaceUuid | final SIBUuid12 getTopicSpaceUuid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getTopicSpaceUuid");
SibTr.exit(tc, "getTopicSpaceUuid", _topicSpaceUuid);
}
return _topicSpaceUuid;
} | java | final SIBUuid12 getTopicSpaceUuid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getTopicSpaceUuid");
SibTr.exit(tc, "getTopicSpaceUuid", _topicSpaceUuid);
}
return _topicSpaceUuid;
} | [
"final",
"SIBUuid12",
"getTopicSpaceUuid",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getTopicSpaceUuid\"",
")",
";",
"S... | Returns the value of the topic space uuid.
@return The topic space uuid | [
"Returns",
"the",
"value",
"of",
"the",
"topic",
"space",
"uuid",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L294-L303 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.getTopicSpaceName | final String getTopicSpaceName()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getTopicSpaceName");
SibTr.exit(tc, "getTopicSpaceName", _topicSpaceName);
}
return _topicSpaceName;
} | java | final String getTopicSpaceName()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getTopicSpaceName");
SibTr.exit(tc, "getTopicSpaceName", _topicSpaceName);
}
return _topicSpaceName;
} | [
"final",
"String",
"getTopicSpaceName",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getTopicSpaceName\"",
")",
";",
"SibT... | Returns the value of the topic space name.
@return The topic space name | [
"Returns",
"the",
"value",
"of",
"the",
"topic",
"space",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L310-L319 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.getMESubUserId | final String getMESubUserId()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getMESubUserId");
SibTr.exit(tc, "getMESubUserId", _meSubUserId);
}
return _meSubUserId;
} | java | final String getMESubUserId()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getMESubUserId");
SibTr.exit(tc, "getMESubUserId", _meSubUserId);
}
return _meSubUserId;
} | [
"final",
"String",
"getMESubUserId",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getMESubUserId\"",
")",
";",
"SibTr",
... | Returns the value of the userid associated with the subscription.
@return The userid. | [
"Returns",
"the",
"value",
"of",
"the",
"userid",
"associated",
"with",
"the",
"subscription",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L326-L335 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.isForeignSecuredProxy | final boolean isForeignSecuredProxy()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isForeignSecuredProxy");
SibTr.exit(tc, "isForeignSecuredProxy", new Boolean(_foreignSecuredProxy));
}
return _foreignSecuredProxy;
} | java | final boolean isForeignSecuredProxy()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isForeignSecuredProxy");
SibTr.exit(tc, "isForeignSecuredProxy", new Boolean(_foreignSecuredProxy));
}
return _foreignSecuredProxy;
} | [
"final",
"boolean",
"isForeignSecuredProxy",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"isForeignSecuredProxy\"",
")",
";"... | Returns true if this proxy sub was from a foreign bus in a secured env.
@return The userid. | [
"Returns",
"true",
"if",
"this",
"proxy",
"sub",
"was",
"from",
"a",
"foreign",
"bus",
"in",
"a",
"secured",
"env",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L354-L363 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.mark | void mark()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "mark");
SibTr.exit(tc, "mark");
}
_marked = true;
} | java | void mark()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "mark");
SibTr.exit(tc, "mark");
}
_marked = true;
} | [
"void",
"mark",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"mark\"",
")",
";",
"SibTr",
".",
"exit",
"(",
"tc",
"... | Marks this object.
Used for deciding if this object is to be deleted.
The object is marked, the proxies are all reregistered.
If there is a mark still left, then this proxy can be deleted. | [
"Marks",
"this",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L386-L395 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.unmark | void unmark()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "unmark");
SibTr.exit(tc, "unmark");
}
_marked = false;
} | java | void unmark()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "unmark");
SibTr.exit(tc, "unmark");
}
_marked = false;
} | [
"void",
"unmark",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"unmark\"",
")",
";",
"SibTr",
".",
"exit",
"(",
"tc",... | Unmarks this object.
Used for deciding if this object is to be deleted.
The object is marked, the proxies are all reregistered.
If there is a mark still left, then this proxy can be deleted. | [
"Unmarks",
"this",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L405-L414 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.isMarked | boolean isMarked()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isMarked");
SibTr.exit(tc, "isMarked", new Boolean(_marked));
}
return _marked;
} | java | boolean isMarked()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "isMarked");
SibTr.exit(tc, "isMarked", new Boolean(_marked));
}
return _marked;
} | [
"boolean",
"isMarked",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"isMarked\"",
")",
";",
"SibTr",
".",
"exit",
"(",
... | Is Marked indicates if this object is still marked.
If it is, then it can be removed.
@return iMarked true if this Subscription is still marked. | [
"Is",
"Marked",
"indicates",
"if",
"this",
"object",
"is",
"still",
"marked",
".",
"If",
"it",
"is",
"then",
"it",
"can",
"be",
"removed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L422-L431 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.registerForPostCommit | protected void registerForPostCommit(MultiMEProxyHandler proxyHandler,
DestinationHandler destination,
PubSubOutputHandler handler,
Neighbour neighbour)
{
if (TraceComponent.isAnyTracingEnabled() ... | java | protected void registerForPostCommit(MultiMEProxyHandler proxyHandler,
DestinationHandler destination,
PubSubOutputHandler handler,
Neighbour neighbour)
{
if (TraceComponent.isAnyTracingEnabled() ... | [
"protected",
"void",
"registerForPostCommit",
"(",
"MultiMEProxyHandler",
"proxyHandler",
",",
"DestinationHandler",
"destination",
",",
"PubSubOutputHandler",
"handler",
",",
"Neighbour",
"neighbour",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"("... | Sets the information in the subscription so that when a commit
is called it can resolve the correct objects to add items to
the MatchSpace.
@param proxyHandler
@param handler | [
"Sets",
"the",
"information",
"in",
"the",
"subscription",
"so",
"that",
"when",
"a",
"commit",
"is",
"called",
"it",
"can",
"resolve",
"the",
"correct",
"objects",
"to",
"add",
"items",
"to",
"the",
"MatchSpace",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L458-L474 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.registerForPostCommit | protected void registerForPostCommit(Neighbour neighbour,
Neighbours neighbours)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "registerForPostCommit",
new Object[] { neighbour, neighbours });
_proxyHandler = null;
... | java | protected void registerForPostCommit(Neighbour neighbour,
Neighbours neighbours)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "registerForPostCommit",
new Object[] { neighbour, neighbours });
_proxyHandler = null;
... | [
"protected",
"void",
"registerForPostCommit",
"(",
"Neighbour",
"neighbour",
",",
"Neighbours",
"neighbours",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
... | Used only for rollback - if the transaction is rolled
back and there is a neighbour set, then rmeove the proxy reference.
@param neighbour the neighbour object for rollback | [
"Used",
"only",
"for",
"rollback",
"-",
"if",
"the",
"transaction",
"is",
"rolled",
"back",
"and",
"there",
"is",
"a",
"neighbour",
"set",
"then",
"rmeove",
"the",
"proxy",
"reference",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L482-L497 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.eventPostRollbackAdd | public void eventPostRollbackAdd(Transaction transaction) throws SevereMessageStoreException
{
super.eventPostRollbackAdd(transaction);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "eventPostRollbackAdd", transaction);
if (_handler != null)
... | java | public void eventPostRollbackAdd(Transaction transaction) throws SevereMessageStoreException
{
super.eventPostRollbackAdd(transaction);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "eventPostRollbackAdd", transaction);
if (_handler != null)
... | [
"public",
"void",
"eventPostRollbackAdd",
"(",
"Transaction",
"transaction",
")",
"throws",
"SevereMessageStoreException",
"{",
"super",
".",
"eventPostRollbackAdd",
"(",
"transaction",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",... | When the add rollback is made, need to remove the
topic.
Or the topicSpace reference needs to be removed.
@param transaction the {@link Transaction} under which the
event has occurred | [
"When",
"the",
"add",
"rollback",
"is",
"made",
"need",
"to",
"remove",
"the",
"topic",
".",
"Or",
"the",
"topicSpace",
"reference",
"needs",
"to",
"be",
"removed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L606-L639 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.eventPostCommitUpdate | public void eventPostCommitUpdate(Transaction transaction) throws SevereMessageStoreException
{
super.eventPostCommitAdd(transaction);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "eventPostCommitUpdate", transaction);
// Remove the current CPS from... | java | public void eventPostCommitUpdate(Transaction transaction) throws SevereMessageStoreException
{
super.eventPostCommitAdd(transaction);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "eventPostCommitUpdate", transaction);
// Remove the current CPS from... | [
"public",
"void",
"eventPostCommitUpdate",
"(",
"Transaction",
"transaction",
")",
"throws",
"SevereMessageStoreException",
"{",
"super",
".",
"eventPostCommitAdd",
"(",
"transaction",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
... | Updates the ControllableProxySubscription.
We go through a full blown MatchSpace add and remove operation
to ensure that MatchSpace caches get re-synched.
@param transaction the {@link Transaction} under which the
event has occurred | [
"Updates",
"the",
"ControllableProxySubscription",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L677-L740 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.setMatchspaceSub | public void setMatchspaceSub(ControllableProxySubscription sub)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setMatchspaceSub", sub);
_controllableProxySubscription = sub;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.... | java | public void setMatchspaceSub(ControllableProxySubscription sub)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setMatchspaceSub", sub);
_controllableProxySubscription = sub;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.... | [
"public",
"void",
"setMatchspaceSub",
"(",
"ControllableProxySubscription",
"sub",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"setMatch... | This sets the field in the MESubscription for the object that was
stored in the Matchspace
@param sub | [
"This",
"sets",
"the",
"field",
"in",
"the",
"MESubscription",
"for",
"the",
"object",
"that",
"was",
"stored",
"in",
"the",
"Matchspace"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L887-L896 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java | MESubscription.getMatchspaceSub | public ControllableProxySubscription getMatchspaceSub()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getMatchspaceSub");
SibTr.exit(tc, "getMatchspaceSub", _controllableProxySubscription);
}
return _controllableProxySubscription;
} | java | public ControllableProxySubscription getMatchspaceSub()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getMatchspaceSub");
SibTr.exit(tc, "getMatchspaceSub", _controllableProxySubscription);
}
return _controllableProxySubscription;
} | [
"public",
"ControllableProxySubscription",
"getMatchspaceSub",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getMatchspaceSub\"",... | Gets the object that was stored in the Matchspace
@return | [
"Gets",
"the",
"object",
"that",
"was",
"stored",
"in",
"the",
"Matchspace"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/MESubscription.java#L902-L910 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/ReferenceStream.java | ReferenceStream.findById | public final AbstractItem findById(long itemId) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "findById", Long.valueOf(itemId));
AbstractItem item = null;
ReferenceCollection ic = ((ReferenceCollection... | java | public final AbstractItem findById(long itemId) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "findById", Long.valueOf(itemId));
AbstractItem item = null;
ReferenceCollection ic = ((ReferenceCollection... | [
"public",
"final",
"AbstractItem",
"findById",
"(",
"long",
"itemId",
")",
"throws",
"SevereMessageStoreException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
... | Reply the item in the receiver with a matching ID. The item returned
stream is neither removed from the message store nor locked for exclusive use
of the caller.
@param itemId
@return item found or null if none.
@throws SevereMessageStoreException
@throws MessageStoreException | [
"Reply",
"the",
"item",
"in",
"the",
"receiver",
"with",
"a",
"matching",
"ID",
".",
"The",
"item",
"returned",
"stream",
"is",
"neither",
"removed",
"from",
"the",
"message",
"store",
"nor",
"locked",
"for",
"exclusive",
"use",
"of",
"the",
"caller",
"."
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/ReferenceStream.java#L191-L209 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/ReferenceStream.java | ReferenceStream.findOldestReference | public final ItemReference findOldestReference() throws MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "findOldestReference");
ReferenceCollection ic = ((ReferenceCollection) _getMembership());
if (null == ic)
... | java | public final ItemReference findOldestReference() throws MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "findOldestReference");
ReferenceCollection ic = ((ReferenceCollection) _getMembership());
if (null == ic)
... | [
"public",
"final",
"ItemReference",
"findOldestReference",
"(",
")",
"throws",
"MessageStoreException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
... | Find the reference that has been known to the stream for longest. The reference returned
may be in any of the states defined in the state model. The caller should not
assume that the reference can be used for any particular purpose.
@return Item, may be null.
@throws {@link MessageStoreException} if the item was spill... | [
"Find",
"the",
"reference",
"that",
"has",
"been",
"known",
"to",
"the",
"stream",
"for",
"longest",
".",
"The",
"reference",
"returned",
"may",
"be",
"in",
"any",
"of",
"the",
"states",
"defined",
"in",
"the",
"state",
"model",
".",
"The",
"caller",
"sh... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/msgstore/ReferenceStream.java#L255-L276 | train |
OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/api/impl/JobOperatorImpl.java | JobOperatorImpl.publishEvent | private void publishEvent(WSJobExecution jobEx, String topicToPublish, String correlationId) {
if (eventsPublisher != null) {
eventsPublisher.publishJobExecutionEvent(jobEx, topicToPublish, correlationId);
}
} | java | private void publishEvent(WSJobExecution jobEx, String topicToPublish, String correlationId) {
if (eventsPublisher != null) {
eventsPublisher.publishJobExecutionEvent(jobEx, topicToPublish, correlationId);
}
} | [
"private",
"void",
"publishEvent",
"(",
"WSJobExecution",
"jobEx",
",",
"String",
"topicToPublish",
",",
"String",
"correlationId",
")",
"{",
"if",
"(",
"eventsPublisher",
"!=",
"null",
")",
"{",
"eventsPublisher",
".",
"publishJobExecutionEvent",
"(",
"jobEx",
",... | Helper method to publish event
@param jobEx
@param topicToPublish
@param correlationId | [
"Helper",
"method",
"to",
"publish",
"event"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/api/impl/JobOperatorImpl.java#L369-L373 | train |
OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/api/impl/JobOperatorImpl.java | JobOperatorImpl.publishEvent | private void publishEvent(WSJobInstance jobInst, String topicToPublish, String correlationId) {
if (eventsPublisher != null) {
eventsPublisher.publishJobInstanceEvent(jobInst, topicToPublish, correlationId);
}
} | java | private void publishEvent(WSJobInstance jobInst, String topicToPublish, String correlationId) {
if (eventsPublisher != null) {
eventsPublisher.publishJobInstanceEvent(jobInst, topicToPublish, correlationId);
}
} | [
"private",
"void",
"publishEvent",
"(",
"WSJobInstance",
"jobInst",
",",
"String",
"topicToPublish",
",",
"String",
"correlationId",
")",
"{",
"if",
"(",
"eventsPublisher",
"!=",
"null",
")",
"{",
"eventsPublisher",
".",
"publishJobInstanceEvent",
"(",
"jobInst",
... | Helper method to publish event with correlationId
@param jobInstance
@param topicToPublish
@param correlationId | [
"Helper",
"method",
"to",
"publish",
"event",
"with",
"correlationId"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/api/impl/JobOperatorImpl.java#L382-L386 | train |
OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/api/impl/JobOperatorImpl.java | JobOperatorImpl.restartInternal | private long restartInternal(long oldExecutionId,
Properties restartParameters) throws JobExecutionAlreadyCompleteException, NoSuchJobExecutionException, JobExecutionNotMostRecentException, JobRestartException, JobSecurityException {
if (authService != null) {
authS... | java | private long restartInternal(long oldExecutionId,
Properties restartParameters) throws JobExecutionAlreadyCompleteException, NoSuchJobExecutionException, JobExecutionNotMostRecentException, JobRestartException, JobSecurityException {
if (authService != null) {
authS... | [
"private",
"long",
"restartInternal",
"(",
"long",
"oldExecutionId",
",",
"Properties",
"restartParameters",
")",
"throws",
"JobExecutionAlreadyCompleteException",
",",
"NoSuchJobExecutionException",
",",
"JobExecutionNotMostRecentException",
",",
"JobRestartException",
",",
"J... | Restart the given execution using the given jobparams.
@return execId of restarted job. | [
"Restart",
"the",
"given",
"execution",
"using",
"the",
"given",
"jobparams",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/api/impl/JobOperatorImpl.java#L651-L676 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/MBeans.java | MBeans.getMessageDigestMD5 | private void getMessageDigestMD5() throws AttributeNotFoundException {
if (MBeans.messageDigestMD5 == null) {
try {
MBeans.messageDigestMD5 = MessageDigestUtility.createMessageDigest("MD5");
} catch (NoSuchAlgorithmException e) {
Tr.error(tc, "DYNA1044E", ... | java | private void getMessageDigestMD5() throws AttributeNotFoundException {
if (MBeans.messageDigestMD5 == null) {
try {
MBeans.messageDigestMD5 = MessageDigestUtility.createMessageDigest("MD5");
} catch (NoSuchAlgorithmException e) {
Tr.error(tc, "DYNA1044E", ... | [
"private",
"void",
"getMessageDigestMD5",
"(",
")",
"throws",
"AttributeNotFoundException",
"{",
"if",
"(",
"MBeans",
".",
"messageDigestMD5",
"==",
"null",
")",
"{",
"try",
"{",
"MBeans",
".",
"messageDigestMD5",
"=",
"MessageDigestUtility",
".",
"createMessageDige... | create messageDigest for MD5 algoritm if it is not created. | [
"create",
"messageDigest",
"for",
"MD5",
"algoritm",
"if",
"it",
"is",
"not",
"created",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/MBeans.java#L651-L660 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/metatype/ExtendedObjectClassDefinitionImpl.java | ExtendedObjectClassDefinitionImpl.getAttributeMap | @Override
@Trivial
public Map<String, ExtendedAttributeDefinition> getAttributeMap() {
Map<String, ExtendedAttributeDefinition> map = null;
AttributeDefinition[] attrDefs = getAttributeDefinitions(ObjectClassDefinition.ALL);
if (attrDefs != null) {
map = new HashMap<String, E... | java | @Override
@Trivial
public Map<String, ExtendedAttributeDefinition> getAttributeMap() {
Map<String, ExtendedAttributeDefinition> map = null;
AttributeDefinition[] attrDefs = getAttributeDefinitions(ObjectClassDefinition.ALL);
if (attrDefs != null) {
map = new HashMap<String, E... | [
"@",
"Override",
"@",
"Trivial",
"public",
"Map",
"<",
"String",
",",
"ExtendedAttributeDefinition",
">",
"getAttributeMap",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"ExtendedAttributeDefinition",
">",
"map",
"=",
"null",
";",
"AttributeDefinition",
"[",
"]",
... | ONLY USED BY SCHEMA WRITER | [
"ONLY",
"USED",
"BY",
"SCHEMA",
"WRITER"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/metatype/ExtendedObjectClassDefinitionImpl.java#L270-L284 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/metatype/ExtendedObjectClassDefinitionImpl.java | ExtendedObjectClassDefinitionImpl.getAliasName | private static String getAliasName(String alias, String bundleLocation) {
String newAlias = alias;
if (alias != null && !alias.isEmpty()) {
try {
if (bundleLocation != null && !bundleLocation.isEmpty()) {
if (bundleLocation.startsWith(XMLConfigConstants.B... | java | private static String getAliasName(String alias, String bundleLocation) {
String newAlias = alias;
if (alias != null && !alias.isEmpty()) {
try {
if (bundleLocation != null && !bundleLocation.isEmpty()) {
if (bundleLocation.startsWith(XMLConfigConstants.B... | [
"private",
"static",
"String",
"getAliasName",
"(",
"String",
"alias",
",",
"String",
"bundleLocation",
")",
"{",
"String",
"newAlias",
"=",
"alias",
";",
"if",
"(",
"alias",
"!=",
"null",
"&&",
"!",
"alias",
".",
"isEmpty",
"(",
")",
")",
"{",
"try",
... | Prefixes the alias with the product extension name if there is a product extension
associated to this OCD.
@param alias The alias name to process.
@param bundleLocation bundle location to analyze to provide prefix for the alias
@return The new alias possibly including a prefix based on the bundle location. | [
"Prefixes",
"the",
"alias",
"with",
"the",
"product",
"extension",
"name",
"if",
"there",
"is",
"a",
"product",
"extension",
"associated",
"to",
"this",
"OCD",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/metatype/ExtendedObjectClassDefinitionImpl.java#L383-L414 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java | ContainerClassLoader.getBytes | @Trivial
private static byte[] getBytes(InputStream stream, int knownSize) throws IOException {
try {
if (knownSize == -1) {
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
try {
byte[] bytes = new byte[1024];
i... | java | @Trivial
private static byte[] getBytes(InputStream stream, int knownSize) throws IOException {
try {
if (knownSize == -1) {
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
try {
byte[] bytes = new byte[1024];
i... | [
"@",
"Trivial",
"private",
"static",
"byte",
"[",
"]",
"getBytes",
"(",
"InputStream",
"stream",
",",
"int",
"knownSize",
")",
"throws",
"IOException",
"{",
"try",
"{",
"if",
"(",
"knownSize",
"==",
"-",
"1",
")",
"{",
"ByteArrayOutputStream",
"byteOut",
"... | Util method to totally read an input stream into a byte array.
Used for class definition.
@param stream the stream to read.
@return byte array of data from stream.
@throws IOException if an error occurs. | [
"Util",
"method",
"to",
"totally",
"read",
"an",
"input",
"stream",
"into",
"a",
"byte",
"array",
".",
"Used",
"for",
"class",
"definition",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java#L124-L153 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java | ContainerClassLoader.getSharedClassCacheURL | static URL getSharedClassCacheURL(URL resourceURL, String resourceName) {
URL sharedClassCacheURL;
if (resourceURL == null) {
sharedClassCacheURL = null;
} else {
String protocol = resourceURL.getProtocol();
if ("jar".equals(protocol)) {
shared... | java | static URL getSharedClassCacheURL(URL resourceURL, String resourceName) {
URL sharedClassCacheURL;
if (resourceURL == null) {
sharedClassCacheURL = null;
} else {
String protocol = resourceURL.getProtocol();
if ("jar".equals(protocol)) {
shared... | [
"static",
"URL",
"getSharedClassCacheURL",
"(",
"URL",
"resourceURL",
",",
"String",
"resourceName",
")",
"{",
"URL",
"sharedClassCacheURL",
";",
"if",
"(",
"resourceURL",
"==",
"null",
")",
"{",
"sharedClassCacheURL",
"=",
"null",
";",
"}",
"else",
"{",
"Stri... | Computes the shared class cache URL from the resource URL.
If the URL is a jar protocol URL, then use it as is.
If it is a wsjar protocol URL, then change it to a jar protocol URL.
If it is a file protocol URL, confirm that the URL ends with the
class file name, and return the directory before the package
qualified cl... | [
"Computes",
"the",
"shared",
"class",
"cache",
"URL",
"from",
"the",
"resource",
"URL",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java#L217-L247 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java | ContainerClassLoader.definePackage | public Package definePackage(String name, Manifest manifest, URL sealBase) throws IllegalArgumentException {
Attributes mA = manifest.getMainAttributes();
String specTitle = mA.getValue(Name.SPECIFICATION_TITLE);
String specVersion = mA.getValue(Name.SPECIFICATION_VERSION);
String specVe... | java | public Package definePackage(String name, Manifest manifest, URL sealBase) throws IllegalArgumentException {
Attributes mA = manifest.getMainAttributes();
String specTitle = mA.getValue(Name.SPECIFICATION_TITLE);
String specVersion = mA.getValue(Name.SPECIFICATION_VERSION);
String specVe... | [
"public",
"Package",
"definePackage",
"(",
"String",
"name",
",",
"Manifest",
"manifest",
",",
"URL",
"sealBase",
")",
"throws",
"IllegalArgumentException",
"{",
"Attributes",
"mA",
"=",
"manifest",
".",
"getMainAttributes",
"(",
")",
";",
"String",
"specTitle",
... | to set vars passed up to ClassLoader.definePackage. | [
"to",
"set",
"vars",
"passed",
"up",
"to",
"ClassLoader",
".",
"definePackage",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java#L1496-L1537 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java | ContainerClassLoader.addToClassPath | protected void addToClassPath(Iterable<ArtifactContainer> artifacts) {
for (ArtifactContainer art : artifacts) {
smartClassPath.addArtifactContainer(art);
}
} | java | protected void addToClassPath(Iterable<ArtifactContainer> artifacts) {
for (ArtifactContainer art : artifacts) {
smartClassPath.addArtifactContainer(art);
}
} | [
"protected",
"void",
"addToClassPath",
"(",
"Iterable",
"<",
"ArtifactContainer",
">",
"artifacts",
")",
"{",
"for",
"(",
"ArtifactContainer",
"art",
":",
"artifacts",
")",
"{",
"smartClassPath",
".",
"addArtifactContainer",
"(",
"art",
")",
";",
"}",
"}"
] | Add all the artifact containers to the class path | [
"Add",
"all",
"the",
"artifact",
"containers",
"to",
"the",
"class",
"path"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java#L1542-L1547 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java | ContainerClassLoader.addLibraryFile | @FFDCIgnore(NullPointerException.class)
protected void addLibraryFile(File f) {
if (!!!f.exists()) {
if (tc.isWarningEnabled()) {
Tr.warning(tc, "cls.library.archive", f, new FileNotFoundException(f.getName()));
}
return;
}
// Skip files ... | java | @FFDCIgnore(NullPointerException.class)
protected void addLibraryFile(File f) {
if (!!!f.exists()) {
if (tc.isWarningEnabled()) {
Tr.warning(tc, "cls.library.archive", f, new FileNotFoundException(f.getName()));
}
return;
}
// Skip files ... | [
"@",
"FFDCIgnore",
"(",
"NullPointerException",
".",
"class",
")",
"protected",
"void",
"addLibraryFile",
"(",
"File",
"f",
")",
"{",
"if",
"(",
"!",
"!",
"!",
"f",
".",
"exists",
"(",
")",
")",
"{",
"if",
"(",
"tc",
".",
"isWarningEnabled",
"(",
")"... | Method to allow adding shared libraries to this classloader, currently using File.
@param f the File to add as a shared lib.. can be a dir or a jar (or a loose xml ;p) | [
"Method",
"to",
"allow",
"adding",
"shared",
"libraries",
"to",
"this",
"classloader",
"currently",
"using",
"File",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java#L1554-L1593 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java | ContainerClassLoader.isArchive | @FFDCIgnore(PrivilegedActionException.class)
private boolean isArchive(File f) {
final File target = f;
try {
AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
@Override
public Void run() throws IOException {
new Zip... | java | @FFDCIgnore(PrivilegedActionException.class)
private boolean isArchive(File f) {
final File target = f;
try {
AccessController.doPrivileged(new PrivilegedExceptionAction<Void>() {
@Override
public Void run() throws IOException {
new Zip... | [
"@",
"FFDCIgnore",
"(",
"PrivilegedActionException",
".",
"class",
")",
"private",
"boolean",
"isArchive",
"(",
"File",
"f",
")",
"{",
"final",
"File",
"target",
"=",
"f",
";",
"try",
"{",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"PrivilegedExcepti... | Check that a file is an archive
@param f | [
"Check",
"that",
"a",
"file",
"is",
"an",
"archive"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ContainerClassLoader.java#L1604-L1623 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jndi.url.contexts/src/com/ibm/ws/jndi/url/contexts/javacolon/JavaJNDIComponentMetaDataAccessor.java | JavaJNDIComponentMetaDataAccessor.getComponentMetaData | public static ComponentMetaData getComponentMetaData(JavaColonNamespace namespace, String name) throws NamingException {
ComponentMetaData cmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
if (cmd == null) {
String fullName = name.isEmpty() ? namespac... | java | public static ComponentMetaData getComponentMetaData(JavaColonNamespace namespace, String name) throws NamingException {
ComponentMetaData cmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
if (cmd == null) {
String fullName = name.isEmpty() ? namespac... | [
"public",
"static",
"ComponentMetaData",
"getComponentMetaData",
"(",
"JavaColonNamespace",
"namespace",
",",
"String",
"name",
")",
"throws",
"NamingException",
"{",
"ComponentMetaData",
"cmd",
"=",
"ComponentMetaDataAccessorImpl",
".",
"getComponentMetaDataAccessor",
"(",
... | Helper method to get the component metadata from the thread context.
@return the component metadata data for the thread.
@throws NamingException Throws NamingException if running on a non-Java EE thread. | [
"Helper",
"method",
"to",
"get",
"the",
"component",
"metadata",
"from",
"the",
"thread",
"context",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jndi.url.contexts/src/com/ibm/ws/jndi/url/contexts/javacolon/JavaJNDIComponentMetaDataAccessor.java#L36-L45 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.setConfiguration | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setConfiguration(ServiceReference<SecurityConfiguration> ref) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
configs.putReference(id, ref);
}... | java | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setConfiguration(ServiceReference<SecurityConfiguration> ref) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
configs.putReference(id, ref);
}... | [
"@",
"Reference",
"(",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"cardinality",
"=",
"ReferenceCardinality",
".",
"MULTIPLE",
")",
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"setConfiguration",
"(",
"ServiceReference",
"<",
"SecurityConfig... | Method will be called for each SecurityConfiguration that is registered
in the OSGi service registry. We maintain an internal map of these for
easy access.
If the ID is not defined for the configuration, it is incomplete and
can not be used.
@param ref Reference to a registered SecurityConfiguration | [
"Method",
"will",
"be",
"called",
"for",
"each",
"SecurityConfiguration",
"that",
"is",
"registered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"maintain",
"an",
"internal",
"map",
"of",
"these",
"for",
"easy",
"access",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L92-L101 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.unsetConfiguration | protected Map<String, Object> unsetConfiguration(ServiceReference<SecurityConfiguration> ref) {
configs.removeReference((String) ref.getProperty(KEY_ID), ref);
return getServiceProperties();
} | java | protected Map<String, Object> unsetConfiguration(ServiceReference<SecurityConfiguration> ref) {
configs.removeReference((String) ref.getProperty(KEY_ID), ref);
return getServiceProperties();
} | [
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"unsetConfiguration",
"(",
"ServiceReference",
"<",
"SecurityConfiguration",
">",
"ref",
")",
"{",
"configs",
".",
"removeReference",
"(",
"(",
"String",
")",
"ref",
".",
"getProperty",
"(",
"KEY_ID",
")",... | Method will be called for each SecurityConfiguration that is unregistered
in the OSGi service registry. We must remove this instance from our
internal map.
@param ref Reference to an unregistered SecurityConfiguration | [
"Method",
"will",
"be",
"called",
"for",
"each",
"SecurityConfiguration",
"that",
"is",
"unregistered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"must",
"remove",
"this",
"instance",
"from",
"our",
"internal",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L110-L113 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.setAuthentication | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setAuthentication(ServiceReference<AuthenticationService> ref) {
if (hasPropertiesFromFile(ref)) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
... | java | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setAuthentication(ServiceReference<AuthenticationService> ref) {
if (hasPropertiesFromFile(ref)) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
... | [
"@",
"Reference",
"(",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"cardinality",
"=",
"ReferenceCardinality",
".",
"MULTIPLE",
")",
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"setAuthentication",
"(",
"ServiceReference",
"<",
"Authenticatio... | Method will be called for each AuthenticationService that is registered
in the OSGi service registry. We maintain an internal map of these for
easy access.
@param ref Reference to a registered AuthenticationService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"AuthenticationService",
"that",
"is",
"registered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"maintain",
"an",
"internal",
"map",
"of",
"these",
"for",
"easy",
"access",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L132-L148 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.unsetAuthentication | protected Map<String, Object> unsetAuthentication(ServiceReference<AuthenticationService> ref) {
authentication.removeReference((String) ref.getProperty(KEY_ID), ref);
authentication.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new authentication service... | java | protected Map<String, Object> unsetAuthentication(ServiceReference<AuthenticationService> ref) {
authentication.removeReference((String) ref.getProperty(KEY_ID), ref);
authentication.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new authentication service... | [
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"unsetAuthentication",
"(",
"ServiceReference",
"<",
"AuthenticationService",
">",
"ref",
")",
"{",
"authentication",
".",
"removeReference",
"(",
"(",
"String",
")",
"ref",
".",
"getProperty",
"(",
"KEY_ID"... | Method will be called for each AuthenticationService that is unregistered
in the OSGi service registry. We must remove this instance from our
internal map.
@param ref Reference to an unregistered AuthenticationService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"AuthenticationService",
"that",
"is",
"unregistered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"must",
"remove",
"this",
"instance",
"from",
"our",
"internal",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L157-L164 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.setAuthorization | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setAuthorization(ServiceReference<AuthorizationService> ref) {
if (hasPropertiesFromFile(ref)) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
... | java | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE)
protected Map<String, Object> setAuthorization(ServiceReference<AuthorizationService> ref) {
if (hasPropertiesFromFile(ref)) {
String id = (String) ref.getProperty(KEY_ID);
if (id != null) {
... | [
"@",
"Reference",
"(",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"cardinality",
"=",
"ReferenceCardinality",
".",
"MULTIPLE",
")",
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"setAuthorization",
"(",
"ServiceReference",
"<",
"AuthorizationS... | Method will be called for each AuthorizationService that is registered
in the OSGi service registry. We maintain an internal map of these for
easy access.
@param ref Reference to a registered AuthorizationService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"AuthorizationService",
"that",
"is",
"registered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"maintain",
"an",
"internal",
"map",
"of",
"these",
"for",
"easy",
"access",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L173-L189 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.unsetAuthorization | protected Map<String, Object> unsetAuthorization(ServiceReference<AuthorizationService> ref) {
authorization.removeReference((String) ref.getProperty(KEY_ID), ref);
authorization.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new authorization service
... | java | protected Map<String, Object> unsetAuthorization(ServiceReference<AuthorizationService> ref) {
authorization.removeReference((String) ref.getProperty(KEY_ID), ref);
authorization.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new authorization service
... | [
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"unsetAuthorization",
"(",
"ServiceReference",
"<",
"AuthorizationService",
">",
"ref",
")",
"{",
"authorization",
".",
"removeReference",
"(",
"(",
"String",
")",
"ref",
".",
"getProperty",
"(",
"KEY_ID",
... | Method will be called for each AuthorizationService that is unregistered
in the OSGi service registry. We must remove this instance from our
internal map.
@param ref Reference to an unregistered AuthorizationService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"AuthorizationService",
"that",
"is",
"unregistered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"must",
"remove",
"this",
"instance",
"from",
"our",
"internal",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L198-L205 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.setUserRegistry | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE, target = "(config.displayId=*)")
protected Map<String, Object> setUserRegistry(ServiceReference<UserRegistryService> ref) {
adjustUserRegistryServiceRef(ref);
// determine a new user registry service
u... | java | @Reference(policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE, target = "(config.displayId=*)")
protected Map<String, Object> setUserRegistry(ServiceReference<UserRegistryService> ref) {
adjustUserRegistryServiceRef(ref);
// determine a new user registry service
u... | [
"@",
"Reference",
"(",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"cardinality",
"=",
"ReferenceCardinality",
".",
"MULTIPLE",
",",
"target",
"=",
"\"(config.displayId=*)\"",
")",
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"setUserRegistry"... | Method will be called for each UserRegistryService that is registered
in the OSGi service registry. We maintain an internal map of these for
easy access.
@param ref Reference to a registered UserRegistryService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"UserRegistryService",
"that",
"is",
"registered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"maintain",
"an",
"internal",
"map",
"of",
"these",
"for",
"easy",
"access",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L214-L221 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.unsetUserRegistry | protected Map<String, Object> unsetUserRegistry(ServiceReference<UserRegistryService> ref) {
userRegistry.removeReference((String) ref.getProperty(KEY_ID), ref);
userRegistry.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new user registry service
... | java | protected Map<String, Object> unsetUserRegistry(ServiceReference<UserRegistryService> ref) {
userRegistry.removeReference((String) ref.getProperty(KEY_ID), ref);
userRegistry.removeReference(String.valueOf(ref.getProperty(KEY_SERVICE_ID)), ref);
// determine a new user registry service
... | [
"protected",
"Map",
"<",
"String",
",",
"Object",
">",
"unsetUserRegistry",
"(",
"ServiceReference",
"<",
"UserRegistryService",
">",
"ref",
")",
"{",
"userRegistry",
".",
"removeReference",
"(",
"(",
"String",
")",
"ref",
".",
"getProperty",
"(",
"KEY_ID",
")... | Method will be called for each UserRegistryService that is unregistered
in the OSGi service registry. We must remove this instance from our
internal map.
@param ref Reference to an unregistered UserRegistryService | [
"Method",
"will",
"be",
"called",
"for",
"each",
"UserRegistryService",
"that",
"is",
"unregistered",
"in",
"the",
"OSGi",
"service",
"registry",
".",
"We",
"must",
"remove",
"this",
"instance",
"from",
"our",
"internal",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L251-L258 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.getEffectiveSecurityConfiguration | private SecurityConfiguration getEffectiveSecurityConfiguration() {
SecurityConfiguration effectiveConfig = configs.getService(cfgSystemDomain);
if (effectiveConfig == null) {
Tr.error(tc, "SECURITY_SERVICE_ERROR_BAD_DOMAIN", cfgSystemDomain, CFG_KEY_SYSTEM_DOMAIN);
throw new Ill... | java | private SecurityConfiguration getEffectiveSecurityConfiguration() {
SecurityConfiguration effectiveConfig = configs.getService(cfgSystemDomain);
if (effectiveConfig == null) {
Tr.error(tc, "SECURITY_SERVICE_ERROR_BAD_DOMAIN", cfgSystemDomain, CFG_KEY_SYSTEM_DOMAIN);
throw new Ill... | [
"private",
"SecurityConfiguration",
"getEffectiveSecurityConfiguration",
"(",
")",
"{",
"SecurityConfiguration",
"effectiveConfig",
"=",
"configs",
".",
"getService",
"(",
"cfgSystemDomain",
")",
";",
"if",
"(",
"effectiveConfig",
"==",
"null",
")",
"{",
"Tr",
".",
... | Eventually this will be execution context aware and pick the right domain.
Till then, we're only accessing the system domain configuration.
@return SecurityConfiguration representing the "effective" configuration
for the execution context. | [
"Eventually",
"this",
"will",
"be",
"execution",
"context",
"aware",
"and",
"pick",
"the",
"right",
"domain",
".",
"Till",
"then",
"we",
"re",
"only",
"accessing",
"the",
"system",
"domain",
"configuration",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L374-L381 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.autoDetectService | private <V> V autoDetectService(String serviceName, ConcurrentServiceReferenceMap<String, V> map) {
Iterator<V> services = map.getServices();
if (services.hasNext() == false) {
Tr.error(tc, "SECURITY_SERVICE_NO_SERVICE_AVAILABLE", serviceName);
throw new IllegalStateException(Tr.... | java | private <V> V autoDetectService(String serviceName, ConcurrentServiceReferenceMap<String, V> map) {
Iterator<V> services = map.getServices();
if (services.hasNext() == false) {
Tr.error(tc, "SECURITY_SERVICE_NO_SERVICE_AVAILABLE", serviceName);
throw new IllegalStateException(Tr.... | [
"private",
"<",
"V",
">",
"V",
"autoDetectService",
"(",
"String",
"serviceName",
",",
"ConcurrentServiceReferenceMap",
"<",
"String",
",",
"V",
">",
"map",
")",
"{",
"Iterator",
"<",
"V",
">",
"services",
"=",
"map",
".",
"getServices",
"(",
")",
";",
"... | When the configuration element is not defined, use some "auto-detect"
logic to try and return the single Service of a specified field. If
there is no service, or multiple services, that is considered an error
case which "auto-detect" can not resolve.
@param serviceName name of the service
@param map ConcurrentServiceR... | [
"When",
"the",
"configuration",
"element",
"is",
"not",
"defined",
"use",
"some",
"auto",
"-",
"detect",
"logic",
"to",
"try",
"and",
"return",
"the",
"single",
"Service",
"of",
"a",
"specified",
"field",
".",
"If",
"there",
"is",
"no",
"service",
"or",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L401-L414 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.getAuthenticationService | private AuthenticationService getAuthenticationService(String id) {
AuthenticationService service = authentication.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_AUTHENTICATION_REF, id);
}
return service... | java | private AuthenticationService getAuthenticationService(String id) {
AuthenticationService service = authentication.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_AUTHENTICATION_REF, id);
}
return service... | [
"private",
"AuthenticationService",
"getAuthenticationService",
"(",
"String",
"id",
")",
"{",
"AuthenticationService",
"service",
"=",
"authentication",
".",
"getService",
"(",
"id",
")",
";",
"if",
"(",
"service",
"==",
"null",
")",
"{",
"throwIllegalArgumentExcep... | Retrieve the AuthenticationService for the specified id.
@param id AuthenticationService id to retrieve
@return A non-null AuthenticationService instance. | [
"Retrieve",
"the",
"AuthenticationService",
"for",
"the",
"specified",
"id",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L444-L450 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.getAuthorizationService | private AuthorizationService getAuthorizationService(String id) {
AuthorizationService service = authorization.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_AUTHORIZATION_REF, id);
}
return service;
... | java | private AuthorizationService getAuthorizationService(String id) {
AuthorizationService service = authorization.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_AUTHORIZATION_REF, id);
}
return service;
... | [
"private",
"AuthorizationService",
"getAuthorizationService",
"(",
"String",
"id",
")",
"{",
"AuthorizationService",
"service",
"=",
"authorization",
".",
"getService",
"(",
"id",
")",
";",
"if",
"(",
"service",
"==",
"null",
")",
"{",
"throwIllegalArgumentException... | Retrieve the AuthorizationService for the specified id.
@param id AuthorizationService id to retrieve
@return A non-null AuthorizationService instance. | [
"Retrieve",
"the",
"AuthorizationService",
"for",
"the",
"specified",
"id",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L527-L533 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java | SecurityServiceImpl.getUserRegistryService | private UserRegistryService getUserRegistryService(String id) {
UserRegistryService service = userRegistry.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_USERREGISTRY_REF, id);
}
return service;
} | java | private UserRegistryService getUserRegistryService(String id) {
UserRegistryService service = userRegistry.getService(id);
if (service == null) {
throwIllegalArgumentExceptionInvalidAttributeValue(SecurityConfiguration.CFG_KEY_USERREGISTRY_REF, id);
}
return service;
} | [
"private",
"UserRegistryService",
"getUserRegistryService",
"(",
"String",
"id",
")",
"{",
"UserRegistryService",
"service",
"=",
"userRegistry",
".",
"getService",
"(",
"id",
")",
";",
"if",
"(",
"service",
"==",
"null",
")",
"{",
"throwIllegalArgumentExceptionInva... | Retrieve the UserRegistryService for the specified id.
@param id UserRegistryService id to retrieve
@return A non-null UserRegistryService instance. | [
"Retrieve",
"the",
"UserRegistryService",
"for",
"the",
"specified",
"id",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/internal/SecurityServiceImpl.java#L558-L564 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentHandler.java | ComponentHandler.getFacetName | protected final String getFacetName(FaceletContext ctx, UIComponent parent)
{
// TODO: REFACTOR - "facelets.FACET_NAME" should be a constant somewhere, used to be in FacetHandler
// from real Facelets
return (String) parent.getAttributes().get("facelets.FACET_NAME");
} | java | protected final String getFacetName(FaceletContext ctx, UIComponent parent)
{
// TODO: REFACTOR - "facelets.FACET_NAME" should be a constant somewhere, used to be in FacetHandler
// from real Facelets
return (String) parent.getAttributes().get("facelets.FACET_NAME");
} | [
"protected",
"final",
"String",
"getFacetName",
"(",
"FaceletContext",
"ctx",
",",
"UIComponent",
"parent",
")",
"{",
"// TODO: REFACTOR - \"facelets.FACET_NAME\" should be a constant somewhere, used to be in FacetHandler",
"// from real Facelets",
"return",
"(",
"St... | Return the Facet name we are scoped in, otherwise null
@param ctx
@return | [
"Return",
"the",
"Facet",
"name",
"we",
"are",
"scoped",
"in",
"otherwise",
"null"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentHandler.java#L198-L203 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTranManagerImpl.java | EmbeddableTranManagerImpl.completeTxTimeout | public void completeTxTimeout() throws TransactionRolledbackException
{
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "completeTxTimeout");
if (tx != null && tx.isTimedOut())
{
if (traceOn && t... | java | public void completeTxTimeout() throws TransactionRolledbackException
{
final boolean traceOn = TraceComponent.isAnyTracingEnabled();
if (traceOn && tc.isEntryEnabled())
Tr.entry(tc, "completeTxTimeout");
if (tx != null && tx.isTimedOut())
{
if (traceOn && t... | [
"public",
"void",
"completeTxTimeout",
"(",
")",
"throws",
"TransactionRolledbackException",
"{",
"final",
"boolean",
"traceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"traceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
... | Complete processing of passive transaction timeout. | [
"Complete",
"processing",
"of",
"passive",
"transaction",
"timeout",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTranManagerImpl.java#L91-L115 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.addConsumer | public void addConsumer(DispatchableConsumerPoint lcp)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addConsumer", lcp);
// WARNING: We mustn't hold the LCP lock of the consumer at this point
synchronized(consumerList)
{
consumerList.add(lcp);
}
... | java | public void addConsumer(DispatchableConsumerPoint lcp)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "addConsumer", lcp);
// WARNING: We mustn't hold the LCP lock of the consumer at this point
synchronized(consumerList)
{
consumerList.add(lcp);
}
... | [
"public",
"void",
"addConsumer",
"(",
"DispatchableConsumerPoint",
"lcp",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"addConsumer\"",
... | Add a new consumer to this set.
@param lcp | [
"Add",
"a",
"new",
"consumer",
"to",
"this",
"set",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L158-L172 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.removeConsumer | public void removeConsumer(DispatchableConsumerPoint lcp)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeConsumer", lcp);
// WARNING: We mustn't hold the LCP lock of the consumer at this point
synchronized(consumerList)
{
consumerList.remove(lcp)... | java | public void removeConsumer(DispatchableConsumerPoint lcp)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "removeConsumer", lcp);
// WARNING: We mustn't hold the LCP lock of the consumer at this point
synchronized(consumerList)
{
consumerList.remove(lcp)... | [
"public",
"void",
"removeConsumer",
"(",
"DispatchableConsumerPoint",
"lcp",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"removeConsumer... | Remove a consumer from the set.
@param lcp | [
"Remove",
"a",
"consumer",
"from",
"the",
"set",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L178-L192 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.getGetCursorIndex | public int getGetCursorIndex(SIMPMessage msg)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getGetCursorIndex");
// The zeroth index is reserved for non-classified messages
int classPos = 0;
synchronized(classifications)
{
if(classifications.g... | java | public int getGetCursorIndex(SIMPMessage msg)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getGetCursorIndex");
// The zeroth index is reserved for non-classified messages
int classPos = 0;
synchronized(classifications)
{
if(classifications.g... | [
"public",
"int",
"getGetCursorIndex",
"(",
"SIMPMessage",
"msg",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getGetCursorIndex\"",
")... | Determine the index of the getCursor to use based on the classification of a
message.
@param msg
@return | [
"Determine",
"the",
"index",
"of",
"the",
"getCursor",
"to",
"use",
"based",
"on",
"the",
"classification",
"of",
"a",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L201-L227 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.chooseGetCursorIndex | public synchronized int chooseGetCursorIndex(int previous)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "chooseGetCursorIndex", new Object[] {Integer.valueOf(previous)});
// The zeroth index represents the default cursor for non-classified messages.
int cla... | java | public synchronized int chooseGetCursorIndex(int previous)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "chooseGetCursorIndex", new Object[] {Integer.valueOf(previous)});
// The zeroth index represents the default cursor for non-classified messages.
int cla... | [
"public",
"synchronized",
"int",
"chooseGetCursorIndex",
"(",
"int",
"previous",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"chooseGe... | Determine the index of the getCursor to use based on the classifications defined
for the ConsumerSet that this consumer belongs to.
@param msg
@return | [
"Determine",
"the",
"index",
"of",
"the",
"getCursor",
"to",
"use",
"based",
"on",
"the",
"classifications",
"defined",
"for",
"the",
"ConsumerSet",
"that",
"this",
"consumer",
"belongs",
"to",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L236-L278 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.getClassifications | public JSConsumerClassifications getClassifications()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getClassifications");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getClassifications", classifications);
// T... | java | public JSConsumerClassifications getClassifications()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getClassifications");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getClassifications", classifications);
// T... | [
"public",
"JSConsumerClassifications",
"getClassifications",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getClassifications\"",
")",... | Returns a reference to the Classifications object that wraps the
classifications specified by XD.
@return | [
"Returns",
"a",
"reference",
"to",
"the",
"Classifications",
"object",
"that",
"wraps",
"the",
"classifications",
"specified",
"by",
"XD",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L286-L296 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.prepareAddActiveMessage | public boolean prepareAddActiveMessage()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this,tc, "prepareAddActiveMessage");
boolean messageAccepted = false;
boolean limitReached = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
... | java | public boolean prepareAddActiveMessage()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this,tc, "prepareAddActiveMessage");
boolean messageAccepted = false;
boolean limitReached = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
... | [
"public",
"boolean",
"prepareAddActiveMessage",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"prepareAddActiveMessage\"... | Because there may be multiple members or the ConsumerSet, if we're managing
the active mesage count we must 'reserve' a space for any message that a consumer
may lock, rather than lock it first then realise that the ConsumerSet has reached
its maximum active message limit and have to unlock it.
Preparing the add of a ... | [
"Because",
"there",
"may",
"be",
"multiple",
"members",
"or",
"the",
"ConsumerSet",
"if",
"we",
"re",
"managing",
"the",
"active",
"mesage",
"count",
"we",
"must",
"reserve",
"a",
"space",
"for",
"any",
"message",
"that",
"a",
"consumer",
"may",
"lock",
"r... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L312-L437 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.takeClassificationReadLock | public void takeClassificationReadLock()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "takeClassificationReadLock");
classificationReadLock.lock();
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "takeClassification... | java | public void takeClassificationReadLock()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "takeClassificationReadLock");
classificationReadLock.lock();
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "takeClassification... | [
"public",
"void",
"takeClassificationReadLock",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"takeClassificationReadLock\"",
")",
";... | Take a classification readlock | [
"Take",
"a",
"classification",
"readlock"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L997-L1006 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java | JSConsumerSet.freeClassificationReadLock | public void freeClassificationReadLock()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "freeClassificationReadLock");
classificationReadLock.unlock();
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "freeClassificati... | java | public void freeClassificationReadLock()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "freeClassificationReadLock");
classificationReadLock.unlock();
if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "freeClassificati... | [
"public",
"void",
"freeClassificationReadLock",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"freeClassificationReadLock\"",
")",
";... | Free a classification readlock
TODO Put all calls to this in a finally | [
"Free",
"a",
"classification",
"readlock"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerSet.java#L1013-L1022 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ContainerAS.java | ContainerAS.registerSynchronization | public void registerSynchronization(Synchronization s) throws CPIException
{
try {
ivContainer.uowCtrl.enlistWithSession(s);
// enlistSession(s)
} catch (CSIException e) {
throw new CPIException(e.toString());
}
} | java | public void registerSynchronization(Synchronization s) throws CPIException
{
try {
ivContainer.uowCtrl.enlistWithSession(s);
// enlistSession(s)
} catch (CSIException e) {
throw new CPIException(e.toString());
}
} | [
"public",
"void",
"registerSynchronization",
"(",
"Synchronization",
"s",
")",
"throws",
"CPIException",
"{",
"try",
"{",
"ivContainer",
".",
"uowCtrl",
".",
"enlistWithSession",
"(",
"s",
")",
";",
"// enlistSession(s)",
"}",
"catch",
"(",
"CSIException",
"e",
... | Register the synchronization object with this activity session | [
"Register",
"the",
"synchronization",
"object",
"with",
"this",
"activity",
"session"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ContainerAS.java#L308-L316 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ContainerAS.java | ContainerAS.getEJBKeys | private EJBKey[] getEJBKeys(BeanO[] beans)
{
EJBKey result[] = null;
if (beans != null) {
result = new EJBKey[beans.length];
for (int i = 0; i < beans.length; ++i) {
result[i] = beans[i].getId();
}
}
return result;
} | java | private EJBKey[] getEJBKeys(BeanO[] beans)
{
EJBKey result[] = null;
if (beans != null) {
result = new EJBKey[beans.length];
for (int i = 0; i < beans.length; ++i) {
result[i] = beans[i].getId();
}
}
return result;
} | [
"private",
"EJBKey",
"[",
"]",
"getEJBKeys",
"(",
"BeanO",
"[",
"]",
"beans",
")",
"{",
"EJBKey",
"result",
"[",
"]",
"=",
"null",
";",
"if",
"(",
"beans",
"!=",
"null",
")",
"{",
"result",
"=",
"new",
"EJBKey",
"[",
"beans",
".",
"length",
"]",
... | Get snapshot of all EJBKeys associated with the beans involved in current
activity session | [
"Get",
"snapshot",
"of",
"all",
"EJBKeys",
"associated",
"with",
"the",
"beans",
"involved",
"in",
"current",
"activity",
"session"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ContainerAS.java#L322-L332 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ContainerAS.java | ContainerAS.getBeanOs | private BeanO[] getBeanOs()
{
BeanO result[];
result = new BeanO[ivBeanOs.size()];
Iterator<BeanO> iter = ivBeanOs.values().iterator();
int i = 0;
while (iter.hasNext()) {
result[i++] = iter.next();
}
return result;
} | java | private BeanO[] getBeanOs()
{
BeanO result[];
result = new BeanO[ivBeanOs.size()];
Iterator<BeanO> iter = ivBeanOs.values().iterator();
int i = 0;
while (iter.hasNext()) {
result[i++] = iter.next();
}
return result;
} | [
"private",
"BeanO",
"[",
"]",
"getBeanOs",
"(",
")",
"{",
"BeanO",
"result",
"[",
"]",
";",
"result",
"=",
"new",
"BeanO",
"[",
"ivBeanOs",
".",
"size",
"(",
")",
"]",
";",
"Iterator",
"<",
"BeanO",
">",
"iter",
"=",
"ivBeanOs",
".",
"values",
"(",... | Get snapshot of all beans involved in current activity session | [
"Get",
"snapshot",
"of",
"all",
"beans",
"involved",
"in",
"current",
"activity",
"session"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ContainerAS.java#L337-L347 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/classsource/internal/ClassSourceImpl_ClassLoader.java | ClassSourceImpl_ClassLoader.scanClasses | @Override
public void scanClasses(
ClassSource_Streamer streamer,
Set<String> i_seedClassNamesSet,
ScanPolicy scanPolicy) {
throw new UnsupportedOperationException();
} | java | @Override
public void scanClasses(
ClassSource_Streamer streamer,
Set<String> i_seedClassNamesSet,
ScanPolicy scanPolicy) {
throw new UnsupportedOperationException();
} | [
"@",
"Override",
"public",
"void",
"scanClasses",
"(",
"ClassSource_Streamer",
"streamer",
",",
"Set",
"<",
"String",
">",
"i_seedClassNamesSet",
",",
"ScanPolicy",
"scanPolicy",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
")",
";",
"}"
] | scan policy, and external regions are never scanned iteratively. | [
"scan",
"policy",
"and",
"external",
"regions",
"are",
"never",
"scanned",
"iteratively",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/classsource/internal/ClassSourceImpl_ClassLoader.java#L95-L102 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/RolePlayer.java | RolePlayer.getPartyRoles | public List<com.ibm.wsspi.security.wim.model.PartyRole> getPartyRoles() {
if (partyRoles == null) {
partyRoles = new ArrayList<com.ibm.wsspi.security.wim.model.PartyRole>();
}
return this.partyRoles;
} | java | public List<com.ibm.wsspi.security.wim.model.PartyRole> getPartyRoles() {
if (partyRoles == null) {
partyRoles = new ArrayList<com.ibm.wsspi.security.wim.model.PartyRole>();
}
return this.partyRoles;
} | [
"public",
"List",
"<",
"com",
".",
"ibm",
".",
"wsspi",
".",
"security",
".",
"wim",
".",
"model",
".",
"PartyRole",
">",
"getPartyRoles",
"(",
")",
"{",
"if",
"(",
"partyRoles",
"==",
"null",
")",
"{",
"partyRoles",
"=",
"new",
"ArrayList",
"<",
"co... | Gets the value of the partyRoles property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the partyRoles property.
<p>
For example, to... | [
"Gets",
"the",
"value",
"of",
"the",
"partyRoles",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/RolePlayer.java#L107-L112 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSDynamic.java | JSDynamic.getExpectedSchema | public JSchema getExpectedSchema(Map context) {
if (expectedSchema != null)
return expectedSchema;
if (expectedType == null)
return null;
expectedSchema = (JSchema)context.get(expectedType);
if (expectedSchema != null)
return expectedSchema;
expectedSchema = new JSchema(expectedTyp... | java | public JSchema getExpectedSchema(Map context) {
if (expectedSchema != null)
return expectedSchema;
if (expectedType == null)
return null;
expectedSchema = (JSchema)context.get(expectedType);
if (expectedSchema != null)
return expectedSchema;
expectedSchema = new JSchema(expectedTyp... | [
"public",
"JSchema",
"getExpectedSchema",
"(",
"Map",
"context",
")",
"{",
"if",
"(",
"expectedSchema",
"!=",
"null",
")",
"return",
"expectedSchema",
";",
"if",
"(",
"expectedType",
"==",
"null",
")",
"return",
"null",
";",
"expectedSchema",
"=",
"(",
"JSch... | Retrieve the subschema corresponding to the expected type (will be null iff expected
type is null. Constructs the subschema if it doesn't already exist. The context
argument guards against duplicate construction of schemas in the event that the
definition is recursive. | [
"Retrieve",
"the",
"subschema",
"corresponding",
"to",
"the",
"expected",
"type",
"(",
"will",
"be",
"null",
"iff",
"expected",
"type",
"is",
"null",
".",
"Constructs",
"the",
"subschema",
"if",
"it",
"doesn",
"t",
"already",
"exist",
".",
"The",
"context",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSDynamic.java#L67-L77 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java | SecurityContextImpl.taskStarting | @Override
public void taskStarting() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
prevInvocationSubject = subjectManager.getInvocationSubject();
prevCallerSubject = subjectManager.getCallerSubject();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, ... | java | @Override
public void taskStarting() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
prevInvocationSubject = subjectManager.getInvocationSubject();
prevCallerSubject = subjectManager.getCallerSubject();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, ... | [
"@",
"Override",
"public",
"void",
"taskStarting",
"(",
")",
"{",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"prevInvocationSubject",
"=",
"subjectManager",
".",
"getInvocationSubject",
"(",
")",
";",
"prevCaller... | Push the subjects associated with this security context onto the thread. | [
"Push",
"the",
"subjects",
"associated",
"with",
"this",
"security",
"context",
"onto",
"the",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java#L211-L226 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java | SecurityContextImpl.taskStopping | @Override
public void taskStopping() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, "taskStopping", "restore caller/invocation subjects", prevCallerSubject, prevInvocationSubject);
subjectManager.setCallerSubjec... | java | @Override
public void taskStopping() {
final boolean trace = TraceComponent.isAnyTracingEnabled();
if (trace && tc.isEntryEnabled())
Tr.entry(this, tc, "taskStopping", "restore caller/invocation subjects", prevCallerSubject, prevInvocationSubject);
subjectManager.setCallerSubjec... | [
"@",
"Override",
"public",
"void",
"taskStopping",
"(",
")",
"{",
"final",
"boolean",
"trace",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"trace",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"("... | Restore the subjects that were previously on the thread prior to applying this
security context. | [
"Restore",
"the",
"subjects",
"that",
"were",
"previously",
"on",
"the",
"thread",
"prior",
"to",
"applying",
"this",
"security",
"context",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java#L232-L243 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java | SecurityContextImpl.readState | private void readState(GetField fields) throws IOException {
//get caller principal
callerPrincipal = (WSPrincipal) fields.get(CALLER_PRINCIPAL, null);
//get boolean marking if subjects are equal
subjectsAreEqual = fields.get(SUBJECTS_ARE_EQUAL, false);
//only deserialize invoc... | java | private void readState(GetField fields) throws IOException {
//get caller principal
callerPrincipal = (WSPrincipal) fields.get(CALLER_PRINCIPAL, null);
//get boolean marking if subjects are equal
subjectsAreEqual = fields.get(SUBJECTS_ARE_EQUAL, false);
//only deserialize invoc... | [
"private",
"void",
"readState",
"(",
"GetField",
"fields",
")",
"throws",
"IOException",
"{",
"//get caller principal",
"callerPrincipal",
"=",
"(",
"WSPrincipal",
")",
"fields",
".",
"get",
"(",
"CALLER_PRINCIPAL",
",",
"null",
")",
";",
"//get boolean marking if s... | Read the security context
@param fields
@throws IOException if there are I/O errors while reading from the underlying InputStream | [
"Read",
"the",
"security",
"context"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java#L333-L351 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java | SecurityContextImpl.recreateFullSubject | @FFDCIgnore(AuthenticationException.class)
protected Subject recreateFullSubject(WSPrincipal wsPrincipal, SecurityService securityService,
AtomicServiceReference<UnauthenticatedSubjectService> unauthenticatedSubjectServiceRef, String customCacheKey) {
Subject subjec... | java | @FFDCIgnore(AuthenticationException.class)
protected Subject recreateFullSubject(WSPrincipal wsPrincipal, SecurityService securityService,
AtomicServiceReference<UnauthenticatedSubjectService> unauthenticatedSubjectServiceRef, String customCacheKey) {
Subject subjec... | [
"@",
"FFDCIgnore",
"(",
"AuthenticationException",
".",
"class",
")",
"protected",
"Subject",
"recreateFullSubject",
"(",
"WSPrincipal",
"wsPrincipal",
",",
"SecurityService",
"securityService",
",",
"AtomicServiceReference",
"<",
"UnauthenticatedSubjectService",
">",
"unau... | Perform a login to recreate the full subject, given a WSPrincipal
@param wsPrincipal the deserialized WSPrincipal that will be used for creating the new subject
@param securityService the security service to use for authenticating the user
@param AtomicServiceReference<UnauthenticatedSubjectService> reference to the u... | [
"Perform",
"a",
"login",
"to",
"recreate",
"the",
"full",
"subject",
"given",
"a",
"WSPrincipal"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java#L362-L382 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java | SecurityContextImpl.getWSPrincipal | protected WSPrincipal getWSPrincipal(Subject subject) throws IOException {
WSPrincipal wsPrincipal = null;
Set<WSPrincipal> principals = (subject != null) ? subject.getPrincipals(WSPrincipal.class) : null;
if (principals != null && !principals.isEmpty()) {
if (principals.size() > 1) ... | java | protected WSPrincipal getWSPrincipal(Subject subject) throws IOException {
WSPrincipal wsPrincipal = null;
Set<WSPrincipal> principals = (subject != null) ? subject.getPrincipals(WSPrincipal.class) : null;
if (principals != null && !principals.isEmpty()) {
if (principals.size() > 1) ... | [
"protected",
"WSPrincipal",
"getWSPrincipal",
"(",
"Subject",
"subject",
")",
"throws",
"IOException",
"{",
"WSPrincipal",
"wsPrincipal",
"=",
"null",
";",
"Set",
"<",
"WSPrincipal",
">",
"principals",
"=",
"(",
"subject",
"!=",
"null",
")",
"?",
"subject",
".... | Get the WSPrincipal from the subject
@param subject
@return the WSPrincipal of the subject
@throws IOException if there is more than one WSPrincipal in the subject | [
"Get",
"the",
"WSPrincipal",
"from",
"the",
"subject"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java#L391-L410 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java | SecurityContextImpl.serializeSubjectCacheKey | private void serializeSubjectCacheKey(PutField fields) throws Exception {
if (callerSubject != null) {
Hashtable<String, ?> hashtable =
subjectHelper.getHashtableFromSubject(callerSubject, new String[] { AttributeNameConstants.WSCREDENTIAL_CACHE_KEY });
if (h... | java | private void serializeSubjectCacheKey(PutField fields) throws Exception {
if (callerSubject != null) {
Hashtable<String, ?> hashtable =
subjectHelper.getHashtableFromSubject(callerSubject, new String[] { AttributeNameConstants.WSCREDENTIAL_CACHE_KEY });
if (h... | [
"private",
"void",
"serializeSubjectCacheKey",
"(",
"PutField",
"fields",
")",
"throws",
"Exception",
"{",
"if",
"(",
"callerSubject",
"!=",
"null",
")",
"{",
"Hashtable",
"<",
"String",
",",
"?",
">",
"hashtable",
"=",
"subjectHelper",
".",
"getHashtableFromSub... | Serialize the cache lookup keys for the caller and invocation subjects | [
"Serialize",
"the",
"cache",
"lookup",
"keys",
"for",
"the",
"caller",
"and",
"invocation",
"subjects"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.context/src/com/ibm/ws/security/context/internal/SecurityContextImpl.java#L430-L506 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/BodyContentImpl.java | BodyContentImpl.clear | public void clear() throws IOException {
if (writer != null) {
throw new IOException();
} else {
nextChar = 0;
if (limitBuffer && (strBuffer.length() > this.bodyContentBuffSize)){ //PK95332 - starts
if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable... | java | public void clear() throws IOException {
if (writer != null) {
throw new IOException();
} else {
nextChar = 0;
if (limitBuffer && (strBuffer.length() > this.bodyContentBuffSize)){ //PK95332 - starts
if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable... | [
"public",
"void",
"clear",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"writer",
"!=",
"null",
")",
"{",
"throw",
"new",
"IOException",
"(",
")",
";",
"}",
"else",
"{",
"nextChar",
"=",
"0",
";",
"if",
"(",
"limitBuffer",
"&&",
"(",
"strBuffer... | Clear the contents of the buffer. If the buffer has been already
been flushed then the clear operation shall throw an IOException
to signal the fact that some data has already been irrevocably
written to the client response stream.
@throws IOException If an I/O error occurs | [
"Clear",
"the",
"contents",
"of",
"the",
"buffer",
".",
"If",
"the",
"buffer",
"has",
"been",
"already",
"been",
"flushed",
"then",
"the",
"clear",
"operation",
"shall",
"throw",
"an",
"IOException",
"to",
"signal",
"the",
"fact",
"that",
"some",
"data",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/BodyContentImpl.java#L537-L551 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/BodyContentImpl.java | BodyContentImpl.writeOut | public void writeOut(Writer out) throws IOException {
if (writer == null) {
out.write(strBuffer.toString()); // PK33136
// Flush not called as the writer passed could be a BodyContent and
// it doesn't allow to flush.
}
} | java | public void writeOut(Writer out) throws IOException {
if (writer == null) {
out.write(strBuffer.toString()); // PK33136
// Flush not called as the writer passed could be a BodyContent and
// it doesn't allow to flush.
}
} | [
"public",
"void",
"writeOut",
"(",
"Writer",
"out",
")",
"throws",
"IOException",
"{",
"if",
"(",
"writer",
"==",
"null",
")",
"{",
"out",
".",
"write",
"(",
"strBuffer",
".",
"toString",
"(",
")",
")",
";",
"// PK33136",
"// Flush not called as the writer p... | Write the contents of this BodyJspWriter into a Writer.
Subclasses are likely to do interesting things with the
implementation so some things are extra efficient.
@param out The writer into which to place the contents of this body
evaluation | [
"Write",
"the",
"contents",
"of",
"this",
"BodyJspWriter",
"into",
"a",
"Writer",
".",
"Subclasses",
"are",
"likely",
"to",
"do",
"interesting",
"things",
"with",
"the",
"implementation",
"so",
"some",
"things",
"are",
"extra",
"efficient",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/BodyContentImpl.java#L630-L636 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/BodyContentImpl.java | BodyContentImpl.setWriter | void setWriter(Writer writer) {
// PM12137 - starts
if (closed) {
if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable(Level.FINE)){
logger.logp(Level.FINE, CLASS_NAME, "setWriter", "resetting closed to false for this=["+this+"]");
}
closed = false... | java | void setWriter(Writer writer) {
// PM12137 - starts
if (closed) {
if(com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable(Level.FINE)){
logger.logp(Level.FINE, CLASS_NAME, "setWriter", "resetting closed to false for this=["+this+"]");
}
closed = false... | [
"void",
"setWriter",
"(",
"Writer",
"writer",
")",
"{",
"// PM12137 - starts",
"if",
"(",
"closed",
")",
"{",
"if",
"(",
"com",
".",
"ibm",
".",
"ejs",
".",
"ras",
".",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"logger",
".",
"isLogga... | Sets the writer to which all output is written. | [
"Sets",
"the",
"writer",
"to",
"which",
"all",
"output",
"is",
"written",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp.2.3/src/org/apache/jasper/runtime/BodyContentImpl.java#L650-L685 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.context/src/com/ibm/ws/context/service/serializable/ContextualObject.java | ContextualObject.getExecutionProperties | @Trivial
public final Map<String, String> getExecutionProperties() {
TreeMap<String, String> copy = null;
if (internalPropNames != null) {
copy = new TreeMap<String, String>(threadContextDescriptor.getExecutionProperties());
for (String name : internalPropNames)
... | java | @Trivial
public final Map<String, String> getExecutionProperties() {
TreeMap<String, String> copy = null;
if (internalPropNames != null) {
copy = new TreeMap<String, String>(threadContextDescriptor.getExecutionProperties());
for (String name : internalPropNames)
... | [
"@",
"Trivial",
"public",
"final",
"Map",
"<",
"String",
",",
"String",
">",
"getExecutionProperties",
"(",
")",
"{",
"TreeMap",
"<",
"String",
",",
"String",
">",
"copy",
"=",
"null",
";",
"if",
"(",
"internalPropNames",
"!=",
"null",
")",
"{",
"copy",
... | Returns a copy of execution properties.
@return a copy of execution properties. Null if execution properties were not specified. | [
"Returns",
"a",
"copy",
"of",
"execution",
"properties",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.context/src/com/ibm/ws/context/service/serializable/ContextualObject.java#L112-L121 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.createTimeoutRequest | public TimerWorkItem createTimeoutRequest(long timeoutTime, TimerCallback _callback, IAbstractAsyncFuture _future) {
TimerWorkItem wi = new TimerWorkItem(timeoutTime, _callback, _future, _future.getReuseCount());
_future.setTimeoutWorkItem(wi);
// put this to the Timer's work queue. Use the q... | java | public TimerWorkItem createTimeoutRequest(long timeoutTime, TimerCallback _callback, IAbstractAsyncFuture _future) {
TimerWorkItem wi = new TimerWorkItem(timeoutTime, _callback, _future, _future.getReuseCount());
_future.setTimeoutWorkItem(wi);
// put this to the Timer's work queue. Use the q... | [
"public",
"TimerWorkItem",
"createTimeoutRequest",
"(",
"long",
"timeoutTime",
",",
"TimerCallback",
"_callback",
",",
"IAbstractAsyncFuture",
"_future",
")",
"{",
"TimerWorkItem",
"wi",
"=",
"new",
"TimerWorkItem",
"(",
"timeoutTime",
",",
"_callback",
",",
"_future"... | Creates a work item and puts it on the work queue for requesting a
timeout to be started.
@param timeoutTime
how long this timeout is for in milliseconds.
@param _callback
the routine to be called when/if the timeout triggers
@param _future
attachment to be passed to the callback routine
@return the work item that was... | [
"Creates",
"a",
"work",
"item",
"and",
"puts",
"it",
"on",
"the",
"work",
"queue",
"for",
"requesting",
"a",
"timeout",
"to",
"be",
"started",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L108-L129 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.timeSlotPruning | public void timeSlotPruning(long curTime) {
// if a bucket has not been accessed in a while, and it only has
// dead entries then get rid of it
TimeSlot slotEntry = this.firstSlot;
TimeSlot nextSlot = null;
int endIndex = 0;
int i;
while (slotEntry != null) {
... | java | public void timeSlotPruning(long curTime) {
// if a bucket has not been accessed in a while, and it only has
// dead entries then get rid of it
TimeSlot slotEntry = this.firstSlot;
TimeSlot nextSlot = null;
int endIndex = 0;
int i;
while (slotEntry != null) {
... | [
"public",
"void",
"timeSlotPruning",
"(",
"long",
"curTime",
")",
"{",
"// if a bucket has not been accessed in a while, and it only has",
"// dead entries then get rid of it",
"TimeSlot",
"slotEntry",
"=",
"this",
".",
"firstSlot",
";",
"TimeSlot",
"nextSlot",
"=",
"null",
... | Remove slots which have no active requests, and no new requests
have been added in a set amount of time.
@param curTime
the current time in msec. | [
"Remove",
"slots",
"which",
"have",
"no",
"active",
"requests",
"and",
"no",
"new",
"requests",
"have",
"been",
"added",
"in",
"a",
"set",
"amount",
"of",
"time",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L241-L271 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.insertWorkItem | public void insertWorkItem(TimerWorkItem work, long curTime) {
// find the time slot, or create a new one
long insertTime = work.timeoutTime;
TimeSlot nextSlot = this.firstSlot;
while (nextSlot != null) {
if ((insertTime == nextSlot.timeoutTime) && (nextSlot.lastEntryIndex !... | java | public void insertWorkItem(TimerWorkItem work, long curTime) {
// find the time slot, or create a new one
long insertTime = work.timeoutTime;
TimeSlot nextSlot = this.firstSlot;
while (nextSlot != null) {
if ((insertTime == nextSlot.timeoutTime) && (nextSlot.lastEntryIndex !... | [
"public",
"void",
"insertWorkItem",
"(",
"TimerWorkItem",
"work",
",",
"long",
"curTime",
")",
"{",
"// find the time slot, or create a new one",
"long",
"insertTime",
"=",
"work",
".",
"timeoutTime",
";",
"TimeSlot",
"nextSlot",
"=",
"this",
".",
"firstSlot",
";",
... | Put a work item into an existing time slot, or create a new time
slot and put the work item into that time slot.
@param work
@param curTime | [
"Put",
"a",
"work",
"item",
"into",
"an",
"existing",
"time",
"slot",
"or",
"create",
"a",
"new",
"time",
"slot",
"and",
"put",
"the",
"work",
"item",
"into",
"that",
"time",
"slot",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L280-L302 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.insertSlot | public TimeSlot insertSlot(long newSlotTimeout, TimeSlot slot) {
// this routine assumes the list is not empty
TimeSlot retSlot = new TimeSlot(newSlotTimeout);
retSlot.nextEntry = slot;
retSlot.prevEntry = slot.prevEntry;
if (retSlot.prevEntry != null) {
retSlot.pre... | java | public TimeSlot insertSlot(long newSlotTimeout, TimeSlot slot) {
// this routine assumes the list is not empty
TimeSlot retSlot = new TimeSlot(newSlotTimeout);
retSlot.nextEntry = slot;
retSlot.prevEntry = slot.prevEntry;
if (retSlot.prevEntry != null) {
retSlot.pre... | [
"public",
"TimeSlot",
"insertSlot",
"(",
"long",
"newSlotTimeout",
",",
"TimeSlot",
"slot",
")",
"{",
"// this routine assumes the list is not empty",
"TimeSlot",
"retSlot",
"=",
"new",
"TimeSlot",
"(",
"newSlotTimeout",
")",
";",
"retSlot",
".",
"nextEntry",
"=",
"... | Create a new time slot with a given timeout time, and add this new
time slot in front of an existing time slot in the list.
@param newSlotTimeout
- timeout time for the new time slot
@param slot
- existing time slot
@return TimeSlot - time slot that was created and added | [
"Create",
"a",
"new",
"time",
"slot",
"with",
"a",
"given",
"timeout",
"time",
"and",
"add",
"this",
"new",
"time",
"slot",
"in",
"front",
"of",
"an",
"existing",
"time",
"slot",
"in",
"the",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L314-L330 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.insertSlotAtEnd | public TimeSlot insertSlotAtEnd(long newSlotTimeout) {
// this routine assumes that list could be empty
TimeSlot retSlot = new TimeSlot(newSlotTimeout);
if (this.lastSlot == null) {
// list was empty
this.lastSlot = retSlot;
this.firstSlot = retSlot;
}... | java | public TimeSlot insertSlotAtEnd(long newSlotTimeout) {
// this routine assumes that list could be empty
TimeSlot retSlot = new TimeSlot(newSlotTimeout);
if (this.lastSlot == null) {
// list was empty
this.lastSlot = retSlot;
this.firstSlot = retSlot;
}... | [
"public",
"TimeSlot",
"insertSlotAtEnd",
"(",
"long",
"newSlotTimeout",
")",
"{",
"// this routine assumes that list could be empty",
"TimeSlot",
"retSlot",
"=",
"new",
"TimeSlot",
"(",
"newSlotTimeout",
")",
";",
"if",
"(",
"this",
".",
"lastSlot",
"==",
"null",
")... | Create a new time slot with a given timeout time, and add this new
time slot at the end of the time slot list.
@param newSlotTimeout
- timeout time for the new slot
@return time slot that was created and added | [
"Create",
"a",
"new",
"time",
"slot",
"with",
"a",
"given",
"timeout",
"time",
"and",
"add",
"this",
"new",
"time",
"slot",
"at",
"the",
"end",
"of",
"the",
"time",
"slot",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L340-L353 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.removeSlot | public void removeSlot(TimeSlot oldSlot) {
if (oldSlot.nextEntry != null) {
oldSlot.nextEntry.prevEntry = oldSlot.prevEntry;
} else {
// old slot was tail.
this.lastSlot = oldSlot.prevEntry;
}
if (oldSlot.prevEntry != null) {
oldSlot.prev... | java | public void removeSlot(TimeSlot oldSlot) {
if (oldSlot.nextEntry != null) {
oldSlot.nextEntry.prevEntry = oldSlot.prevEntry;
} else {
// old slot was tail.
this.lastSlot = oldSlot.prevEntry;
}
if (oldSlot.prevEntry != null) {
oldSlot.prev... | [
"public",
"void",
"removeSlot",
"(",
"TimeSlot",
"oldSlot",
")",
"{",
"if",
"(",
"oldSlot",
".",
"nextEntry",
"!=",
"null",
")",
"{",
"oldSlot",
".",
"nextEntry",
".",
"prevEntry",
"=",
"oldSlot",
".",
"prevEntry",
";",
"}",
"else",
"{",
"// old slot was t... | Remove a time slot from the list.
@param oldSlot | [
"Remove",
"a",
"time",
"slot",
"from",
"the",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L360-L376 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java | Timer.checkForTimeouts | public void checkForTimeouts(long checkTime) {
TimeSlot nextSlot = this.firstSlot;
TimerWorkItem entry = null;
TimeSlot oldSlot = null;
while (nextSlot != null && checkTime >= nextSlot.timeoutTime) {
// Timeout all entries here
int endIndex = nextSlot.lastEntryIn... | java | public void checkForTimeouts(long checkTime) {
TimeSlot nextSlot = this.firstSlot;
TimerWorkItem entry = null;
TimeSlot oldSlot = null;
while (nextSlot != null && checkTime >= nextSlot.timeoutTime) {
// Timeout all entries here
int endIndex = nextSlot.lastEntryIn... | [
"public",
"void",
"checkForTimeouts",
"(",
"long",
"checkTime",
")",
"{",
"TimeSlot",
"nextSlot",
"=",
"this",
".",
"firstSlot",
";",
"TimerWorkItem",
"entry",
"=",
"null",
";",
"TimeSlot",
"oldSlot",
"=",
"null",
";",
"while",
"(",
"nextSlot",
"!=",
"null",... | Check for timeouts in the time slot list.
@param checkTime
to use for calculation if time outs have occurred. | [
"Check",
"for",
"timeouts",
"in",
"the",
"time",
"slot",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/Timer.java#L384-L410 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.service.location/src/com/ibm/ws/kernel/service/location/internal/FileLocator.java | FileLocator.getMatchingFileNames | public static List<String> getMatchingFileNames(String root, String filterExpr, boolean fullPath) {
List<File> fileList = getMatchingFiles(root, filterExpr);
List<String> list = new ArrayList<String>(fileList.size());
for (File f : fileList) {
if (fullPath)
list.add(... | java | public static List<String> getMatchingFileNames(String root, String filterExpr, boolean fullPath) {
List<File> fileList = getMatchingFiles(root, filterExpr);
List<String> list = new ArrayList<String>(fileList.size());
for (File f : fileList) {
if (fullPath)
list.add(... | [
"public",
"static",
"List",
"<",
"String",
">",
"getMatchingFileNames",
"(",
"String",
"root",
",",
"String",
"filterExpr",
",",
"boolean",
"fullPath",
")",
"{",
"List",
"<",
"File",
">",
"fileList",
"=",
"getMatchingFiles",
"(",
"root",
",",
"filterExpr",
"... | Get a list of file names from the given path that match the provided
filter; not recursive.
@param root
base directory to look for files
@param filterExpr
the regular expression to match, may be null
@return List of File objects; List will be empty if root is null | [
"Get",
"a",
"list",
"of",
"file",
"names",
"from",
"the",
"given",
"path",
"that",
"match",
"the",
"provided",
"filter",
";",
"not",
"recursive",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service.location/src/com/ibm/ws/kernel/service/location/internal/FileLocator.java#L275-L287 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java | PartnerLogTable.getEntry | public PartnerLogData getEntry(int index) {
if (tc.isEntryEnabled())
Tr.entry(tc, "getEntry", index);
_pltReadLock.lock();
try {
final PartnerLogData entry = _partnerLogTable.get(index - 1);
if (tc.isEntryEnabled())
Tr.exit(tc, "getEntry", en... | java | public PartnerLogData getEntry(int index) {
if (tc.isEntryEnabled())
Tr.entry(tc, "getEntry", index);
_pltReadLock.lock();
try {
final PartnerLogData entry = _partnerLogTable.get(index - 1);
if (tc.isEntryEnabled())
Tr.exit(tc, "getEntry", en... | [
"public",
"PartnerLogData",
"getEntry",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getEntry\"",
",",
"index",
")",
";",
"_pltReadLock",
".",
"lock",
"(",
")",
";",
"try... | Return the entry in the recovery table at the given
index, or null if the index is out of the table's bounds
The supplied index is actually one greater than the index into the table.
@param index the index in the table of the PartnerLogData object
@return the entry in the recovery table at the given
index, or null i... | [
"Return",
"the",
"entry",
"in",
"the",
"recovery",
"table",
"at",
"the",
"given",
"index",
"or",
"null",
"if",
"the",
"index",
"is",
"out",
"of",
"the",
"table",
"s",
"bounds"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java#L91-L112 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java | PartnerLogTable.addEntry | public void addEntry(PartnerLogData logData) {
if (tc.isEntryEnabled())
Tr.entry(tc, "addEntry", logData);
_pltWriteLock.lock();
try {
addPartnerEntry(logData);
} finally {
_pltWriteLock.unlock();
}
if (tc.isEntryEnabled())
... | java | public void addEntry(PartnerLogData logData) {
if (tc.isEntryEnabled())
Tr.entry(tc, "addEntry", logData);
_pltWriteLock.lock();
try {
addPartnerEntry(logData);
} finally {
_pltWriteLock.unlock();
}
if (tc.isEntryEnabled())
... | [
"public",
"void",
"addEntry",
"(",
"PartnerLogData",
"logData",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"addEntry\"",
",",
"logData",
")",
";",
"_pltWriteLock",
".",
"lock",
"(",
")",
";",
... | Add an entry at the end of the recovery table.
@param logData the PartnerLogData object to add to the table
@return result the entry index into the table | [
"Add",
"an",
"entry",
"at",
"the",
"end",
"of",
"the",
"recovery",
"table",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java#L121-L135 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java | PartnerLogTable.findEntry | public PartnerLogData findEntry(RecoveryWrapper rw) {
if (tc.isEntryEnabled())
Tr.entry(tc, "findEntry", rw);
PartnerLogData entry;
_pltWriteLock.lock();
try {
// Search the partner log table...
for (PartnerLogData pld : _partnerLogTable) {
... | java | public PartnerLogData findEntry(RecoveryWrapper rw) {
if (tc.isEntryEnabled())
Tr.entry(tc, "findEntry", rw);
PartnerLogData entry;
_pltWriteLock.lock();
try {
// Search the partner log table...
for (PartnerLogData pld : _partnerLogTable) {
... | [
"public",
"PartnerLogData",
"findEntry",
"(",
"RecoveryWrapper",
"rw",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"findEntry\"",
",",
"rw",
")",
";",
"PartnerLogData",
"entry",
";",
"_pltWriteLock... | This method searches the partner log table for an entry with matching wrapper.
If an entry does not exist, one is created and added to the table. It should
only be accessing the "runtime" table.
Called from: TranManagerSet.registerResourceInfo
TranManagerSet.registerJCAProvider
TransactionState.setState when logging a... | [
"This",
"method",
"searches",
"the",
"partner",
"log",
"table",
"for",
"an",
"entry",
"with",
"matching",
"wrapper",
".",
"If",
"an",
"entry",
"does",
"not",
"exist",
"one",
"is",
"created",
"and",
"added",
"to",
"the",
"table",
".",
"It",
"should",
"onl... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java#L197-L231 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java | PartnerLogTable.clearUnused | public void clearUnused() {
if (tc.isEntryEnabled())
Tr.entry(tc, "clearUnused");
final RecoveryLog partnerLog = _failureScopeController.getPartnerLog();
_pltWriteLock.lock();
try {
boolean cleared = false;
for (PartnerLogData pld : _partnerLogTabl... | java | public void clearUnused() {
if (tc.isEntryEnabled())
Tr.entry(tc, "clearUnused");
final RecoveryLog partnerLog = _failureScopeController.getPartnerLog();
_pltWriteLock.lock();
try {
boolean cleared = false;
for (PartnerLogData pld : _partnerLogTabl... | [
"public",
"void",
"clearUnused",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"clearUnused\"",
")",
";",
"final",
"RecoveryLog",
"partnerLog",
"=",
"_failureScopeController",
".",
"getPartnerLog"... | Scans through the partners listed in this table and instructs each of them to clear themselves from
the recovery log if they are not associated with current transactions. Entries remain in the table
an can be re-logged during if they are used again. | [
"Scans",
"through",
"the",
"partners",
"listed",
"in",
"this",
"table",
"and",
"instructs",
"each",
"of",
"them",
"to",
"clear",
"themselves",
"from",
"the",
"recovery",
"log",
"if",
"they",
"are",
"not",
"associated",
"with",
"current",
"transactions",
".",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java#L306-L337 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java | PartnerLogTable.recover | public boolean recover(RecoveryManager recoveryManager, ClassLoader cl, Xid[] xids) {
boolean success = true; // flag to indicate that we recovered all RMs
if (tc.isEntryEnabled())
Tr.entry(tc, "recover", new Object[] { this, _failureScopeController.serverName() });
final int resta... | java | public boolean recover(RecoveryManager recoveryManager, ClassLoader cl, Xid[] xids) {
boolean success = true; // flag to indicate that we recovered all RMs
if (tc.isEntryEnabled())
Tr.entry(tc, "recover", new Object[] { this, _failureScopeController.serverName() });
final int resta... | [
"public",
"boolean",
"recover",
"(",
"RecoveryManager",
"recoveryManager",
",",
"ClassLoader",
"cl",
",",
"Xid",
"[",
"]",
"xids",
")",
"{",
"boolean",
"success",
"=",
"true",
";",
"// flag to indicate that we recovered all RMs",
"if",
"(",
"tc",
".",
"isEntryEnab... | Determine XA RMs needing recovery.
<p>
For each resource manager known to the transaction service all
indoubt transactions are located.
@param cl A class loader for contacting XA RMs | [
"Determine",
"XA",
"RMs",
"needing",
"recovery",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogTable.java#L348-L373 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jndi.management.j2ee/src/com/ibm/ws/jndi/management/j2ee/internal/JNDIMBeanRuntime.java | JNDIMBeanRuntime.registerMBean | private <T> ServiceRegistration<T> registerMBean(ObjectName on, Class<T> type, T o) {
Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put("jmx.objectname", on.toString());
return context.registerService(type, o, props);
} | java | private <T> ServiceRegistration<T> registerMBean(ObjectName on, Class<T> type, T o) {
Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put("jmx.objectname", on.toString());
return context.registerService(type, o, props);
} | [
"private",
"<",
"T",
">",
"ServiceRegistration",
"<",
"T",
">",
"registerMBean",
"(",
"ObjectName",
"on",
",",
"Class",
"<",
"T",
">",
"type",
",",
"T",
"o",
")",
"{",
"Dictionary",
"<",
"String",
",",
"Object",
">",
"props",
"=",
"new",
"Hashtable",
... | Used to Register an MBean
@param on : The ObjectName registration for the MBean
@param type : The class type of the MBean being register
@param o: The MBean
@return : A service registration that provides access to manage the MBean | [
"Used",
"to",
"Register",
"an",
"MBean"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jndi.management.j2ee/src/com/ibm/ws/jndi/management/j2ee/internal/JNDIMBeanRuntime.java#L104-L108 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/async/AsyncContext31Impl.java | AsyncContext31Impl.startReadListener | public void startReadListener(ThreadContextManager tcm, SRTInputStream31 inputStream) throws Exception{
try {
ReadListenerRunnable rlRunnable = new ReadListenerRunnable(tcm, inputStream, this);
this.setReadListenerRunning(true);
com.ibm.ws.webcontainer.osgi.WebContainer.getEx... | java | public void startReadListener(ThreadContextManager tcm, SRTInputStream31 inputStream) throws Exception{
try {
ReadListenerRunnable rlRunnable = new ReadListenerRunnable(tcm, inputStream, this);
this.setReadListenerRunning(true);
com.ibm.ws.webcontainer.osgi.WebContainer.getEx... | [
"public",
"void",
"startReadListener",
"(",
"ThreadContextManager",
"tcm",
",",
"SRTInputStream31",
"inputStream",
")",
"throws",
"Exception",
"{",
"try",
"{",
"ReadListenerRunnable",
"rlRunnable",
"=",
"new",
"ReadListenerRunnable",
"(",
"tcm",
",",
"inputStream",
",... | A read listener has been set on the SRTInputStream and we will set it up to do its
first read on another thread. | [
"A",
"read",
"listener",
"has",
"been",
"set",
"on",
"the",
"SRTInputStream",
"and",
"we",
"will",
"set",
"it",
"up",
"to",
"do",
"its",
"first",
"read",
"on",
"another",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/async/AsyncContext31Impl.java#L193-L208 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/framework/Framework.java | Framework.getThreadPool | public ThreadPool getThreadPool(String threadPoolName, int minSize, int maxSize)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getThreadPool",
new Object[]{threadPoolName, minSize, maxSize});
ThreadPool threadPool = n... | java | public ThreadPool getThreadPool(String threadPoolName, int minSize, int maxSize)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getThreadPool",
new Object[]{threadPoolName, minSize, maxSize});
ThreadPool threadPool = n... | [
"public",
"ThreadPool",
"getThreadPool",
"(",
"String",
"threadPoolName",
",",
"int",
"minSize",
",",
"int",
"maxSize",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".... | Retrieves a thread pool that is backed by the appropriate framework implementation.
@param threadPoolName The name for the new thread pool.
@param minSize The minimum size for the new pool.
@param maxSize The maximum size for the new pool.
@return Returns a thread pool of the correct type (this is different depending... | [
"Retrieves",
"a",
"thread",
"pool",
"that",
"is",
"backed",
"by",
"the",
"appropriate",
"framework",
"implementation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/framework/Framework.java#L182-L232 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/websphere/monitor/meters/StatisticsMeter.java | StatisticsMeter.cleanup | private void cleanup() {
StatsDataReference ref = null;
while ((ref = (StatsDataReference) statisticsReferenceQueue.poll()) != null) {
StatsData oldStats = null;
StatsData updatedStats = null;
do {
oldStats = terminatedThreadStats.get();
... | java | private void cleanup() {
StatsDataReference ref = null;
while ((ref = (StatsDataReference) statisticsReferenceQueue.poll()) != null) {
StatsData oldStats = null;
StatsData updatedStats = null;
do {
oldStats = terminatedThreadStats.get();
... | [
"private",
"void",
"cleanup",
"(",
")",
"{",
"StatsDataReference",
"ref",
"=",
"null",
";",
"while",
"(",
"(",
"ref",
"=",
"(",
"StatsDataReference",
")",
"statisticsReferenceQueue",
".",
"poll",
"(",
")",
")",
"!=",
"null",
")",
"{",
"StatsData",
"oldStat... | Poll the reference queue looking for statistics data associated with
a thread that is no longer reachable. If one is found, update the
terminated thread statistics. | [
"Poll",
"the",
"reference",
"queue",
"looking",
"for",
"statistics",
"data",
"associated",
"with",
"a",
"thread",
"that",
"is",
"no",
"longer",
"reachable",
".",
"If",
"one",
"is",
"found",
"update",
"the",
"terminated",
"thread",
"statistics",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/monitor/meters/StatisticsMeter.java#L329-L340 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java | CommonMpJwtFat.goodAppExpectations | public Expectations goodAppExpectations(String theUrl, String appClass) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectations(CommonExpectations.successfullyReachedUrl(theUrl));
expectations.addExpectation(new ResponseFullExpectation(MpJwtFatConstants.S... | java | public Expectations goodAppExpectations(String theUrl, String appClass) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectations(CommonExpectations.successfullyReachedUrl(theUrl));
expectations.addExpectation(new ResponseFullExpectation(MpJwtFatConstants.S... | [
"public",
"Expectations",
"goodAppExpectations",
"(",
"String",
"theUrl",
",",
"String",
"appClass",
")",
"throws",
"Exception",
"{",
"Expectations",
"expectations",
"=",
"new",
"Expectations",
"(",
")",
";",
"expectations",
".",
"addExpectations",
"(",
"CommonExpec... | Set good app check expectations - sets checks for good status code and for a message indicating what if any app class was invoked successfully
@param theUrl - the url that the test invoked
@param appClass - the app class that should have been invoked
@return - newly created Expectations
@throws Exception | [
"Set",
"good",
"app",
"check",
"expectations",
"-",
"sets",
"checks",
"for",
"good",
"status",
"code",
"and",
"for",
"a",
"message",
"indicating",
"what",
"if",
"any",
"app",
"class",
"was",
"invoked",
"successfully"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java#L95-L102 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java | CommonMpJwtFat.badAppExpectations | public Expectations badAppExpectations(String errorMessage) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectation(new ResponseStatusExpectation(HttpServletResponse.SC_UNAUTHORIZED));
expectations.addExpectation(new ResponseMessageExpectation(MpJwtFatCons... | java | public Expectations badAppExpectations(String errorMessage) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectation(new ResponseStatusExpectation(HttpServletResponse.SC_UNAUTHORIZED));
expectations.addExpectation(new ResponseMessageExpectation(MpJwtFatCons... | [
"public",
"Expectations",
"badAppExpectations",
"(",
"String",
"errorMessage",
")",
"throws",
"Exception",
"{",
"Expectations",
"expectations",
"=",
"new",
"Expectations",
"(",
")",
";",
"expectations",
".",
"addExpectation",
"(",
"new",
"ResponseStatusExpectation",
"... | Set bad app check expectations - sets checks for a 401 status code and the expected error message in the server's messages.log
@param errorMessage - the error message to search for in the server's messages.log file
@return - newly created Expectations
@throws Exception | [
"Set",
"bad",
"app",
"check",
"expectations",
"-",
"sets",
"checks",
"for",
"a",
"401",
"status",
"code",
"and",
"the",
"expected",
"error",
"message",
"in",
"the",
"server",
"s",
"messages",
".",
"log"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java#L111-L118 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java | CommonMpJwtFat.buildAppUrl | public String buildAppUrl(LibertyServer theServer, String root, String app) throws Exception {
return SecurityFatHttpUtils.getServerUrlBase(theServer) + root + "/rest/" + app + "/" + MpJwtFatConstants.MPJWT_GENERIC_APP_NAME;
} | java | public String buildAppUrl(LibertyServer theServer, String root, String app) throws Exception {
return SecurityFatHttpUtils.getServerUrlBase(theServer) + root + "/rest/" + app + "/" + MpJwtFatConstants.MPJWT_GENERIC_APP_NAME;
} | [
"public",
"String",
"buildAppUrl",
"(",
"LibertyServer",
"theServer",
",",
"String",
"root",
",",
"String",
"app",
")",
"throws",
"Exception",
"{",
"return",
"SecurityFatHttpUtils",
".",
"getServerUrlBase",
"(",
"theServer",
")",
"+",
"root",
"+",
"\"/rest/\"",
... | Build the http app url
@param theServer - The server where the app is running (used to get the port)
@param root - the root context of the app
@param app - the specific app to run
@return - returns the full url to invoke
@throws Exception | [
"Build",
"the",
"http",
"app",
"url"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java#L129-L133 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java | CommonMpJwtFat.buildAppSecureUrl | public String buildAppSecureUrl(LibertyServer theServer, String root, String app) throws Exception {
return SecurityFatHttpUtils.getServerSecureUrlBase(theServer) + root + "/rest/" + app + "/" + MpJwtFatConstants.MPJWT_GENERIC_APP_NAME;
} | java | public String buildAppSecureUrl(LibertyServer theServer, String root, String app) throws Exception {
return SecurityFatHttpUtils.getServerSecureUrlBase(theServer) + root + "/rest/" + app + "/" + MpJwtFatConstants.MPJWT_GENERIC_APP_NAME;
} | [
"public",
"String",
"buildAppSecureUrl",
"(",
"LibertyServer",
"theServer",
",",
"String",
"root",
",",
"String",
"app",
")",
"throws",
"Exception",
"{",
"return",
"SecurityFatHttpUtils",
".",
"getServerSecureUrlBase",
"(",
"theServer",
")",
"+",
"root",
"+",
"\"/... | Build the https app url
@param theServer - The server where the app is running (used to get the port)
@param root - the root context of the app
@param app - the specific app to run
@return - returns the full url to invoke
@throws Exception | [
"Build",
"the",
"https",
"app",
"url"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java#L144-L148 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java | CommonMpJwtFat.setBadIssuerExpectations | public Expectations setBadIssuerExpectations(LibertyServer server) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectation(new ResponseStatusExpectation(HttpServletResponse.SC_UNAUTHORIZED));
expectations.addExpectation(new ServerMessageExpectation(server... | java | public Expectations setBadIssuerExpectations(LibertyServer server) throws Exception {
Expectations expectations = new Expectations();
expectations.addExpectation(new ResponseStatusExpectation(HttpServletResponse.SC_UNAUTHORIZED));
expectations.addExpectation(new ServerMessageExpectation(server... | [
"public",
"Expectations",
"setBadIssuerExpectations",
"(",
"LibertyServer",
"server",
")",
"throws",
"Exception",
"{",
"Expectations",
"expectations",
"=",
"new",
"Expectations",
"(",
")",
";",
"expectations",
".",
"addExpectation",
"(",
"new",
"ResponseStatusExpectatio... | Set expectations for tests that have bad issuers
@return Expectations
@throws Exception | [
"Set",
"expectations",
"for",
"tests",
"that",
"have",
"bad",
"issuers"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat/fat/src/com/ibm/ws/security/mp/jwt/fat/CommonMpJwtFat.java#L300-L310 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.