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.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.delCacheEntry | public void delCacheEntry(CacheEntry ce, int cause, int source, boolean fromDepIdTemplateInvalidation) {
htod.delCacheEntry(ce, cause, source, fromDepIdTemplateInvalidation);
} | java | public void delCacheEntry(CacheEntry ce, int cause, int source, boolean fromDepIdTemplateInvalidation) {
htod.delCacheEntry(ce, cause, source, fromDepIdTemplateInvalidation);
} | [
"public",
"void",
"delCacheEntry",
"(",
"CacheEntry",
"ce",
",",
"int",
"cause",
",",
"int",
"source",
",",
"boolean",
"fromDepIdTemplateInvalidation",
")",
"{",
"htod",
".",
"delCacheEntry",
"(",
"ce",
",",
"cause",
",",
"source",
",",
"fromDepIdTemplateInvalid... | Call this method to a cache entry from the disk.
@param ce
- cache entry. | [
"Call",
"this",
"method",
"to",
"a",
"cache",
"entry",
"from",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1287-L1289 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.delCacheEntry | public void delCacheEntry(ValueSet removeList, int cause, int source, boolean fromDepIdTemplateInvalidation, boolean fireEvent) {
htod.delCacheEntry(removeList, cause, source, fromDepIdTemplateInvalidation, fireEvent);
} | java | public void delCacheEntry(ValueSet removeList, int cause, int source, boolean fromDepIdTemplateInvalidation, boolean fireEvent) {
htod.delCacheEntry(removeList, cause, source, fromDepIdTemplateInvalidation, fireEvent);
} | [
"public",
"void",
"delCacheEntry",
"(",
"ValueSet",
"removeList",
",",
"int",
"cause",
",",
"int",
"source",
",",
"boolean",
"fromDepIdTemplateInvalidation",
",",
"boolean",
"fireEvent",
")",
"{",
"htod",
".",
"delCacheEntry",
"(",
"removeList",
",",
"cause",
",... | Call this method to remove multiple of cache ids from the disk.
@param removeList
- a collection of cache ids. | [
"Call",
"this",
"method",
"to",
"remove",
"multiple",
"of",
"cache",
"ids",
"from",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1297-L1299 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.readDependency | public ValueSet readDependency(Object id, boolean delete) { // SKS-O
Result result = htod.readDependency(id, delete);
if (result.returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(result.diskException);
this.htod.returnToResultPool(result);
return HTODDynacache... | java | public ValueSet readDependency(Object id, boolean delete) { // SKS-O
Result result = htod.readDependency(id, delete);
if (result.returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(result.diskException);
this.htod.returnToResultPool(result);
return HTODDynacache... | [
"public",
"ValueSet",
"readDependency",
"(",
"Object",
"id",
",",
"boolean",
"delete",
")",
"{",
"// SKS-O",
"Result",
"result",
"=",
"htod",
".",
"readDependency",
"(",
"id",
",",
"delete",
")",
";",
"if",
"(",
"result",
".",
"returnCode",
"==",
"HTODDyna... | Call this method to read a specified dependency id which contains the cache ids from the disk.
@param id
- dependency id.
@param delete
- boolean to delete the dependency id after reading
@return valueSet - the collection of cache ids. | [
"Call",
"this",
"method",
"to",
"read",
"a",
"specified",
"dependency",
"id",
"which",
"contains",
"the",
"cache",
"ids",
"from",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1310-L1323 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.readTemplate | public ValueSet readTemplate(String template, boolean delete) {
Result result = htod.readTemplate(template, delete);
if (result.returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(result.diskException);
this.htod.returnToResultPool(result);
return HTODDynacache.... | java | public ValueSet readTemplate(String template, boolean delete) {
Result result = htod.readTemplate(template, delete);
if (result.returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(result.diskException);
this.htod.returnToResultPool(result);
return HTODDynacache.... | [
"public",
"ValueSet",
"readTemplate",
"(",
"String",
"template",
",",
"boolean",
"delete",
")",
"{",
"Result",
"result",
"=",
"htod",
".",
"readTemplate",
"(",
"template",
",",
"delete",
")",
";",
"if",
"(",
"result",
".",
"returnCode",
"==",
"HTODDynacache"... | Call this method to read a specified template which contains the cache ids from the disk.
@param template
- template id.
@param delete
- boolean to delete the template after reading
@return valueSet - the collection of cache ids. | [
"Call",
"this",
"method",
"to",
"read",
"a",
"specified",
"template",
"which",
"contains",
"the",
"cache",
"ids",
"from",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1334-L1347 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.readTemplatesByRange | public ValueSet readTemplatesByRange(int index, int length) {
Result result = htod.readTemplatesByRange(index, length);
if (result.returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(result.diskException);
this.htod.returnToResultPool(result);
return HTODDynacac... | java | public ValueSet readTemplatesByRange(int index, int length) {
Result result = htod.readTemplatesByRange(index, length);
if (result.returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(result.diskException);
this.htod.returnToResultPool(result);
return HTODDynacac... | [
"public",
"ValueSet",
"readTemplatesByRange",
"(",
"int",
"index",
",",
"int",
"length",
")",
"{",
"Result",
"result",
"=",
"htod",
".",
"readTemplatesByRange",
"(",
"index",
",",
"length",
")",
";",
"if",
"(",
"result",
".",
"returnCode",
"==",
"HTODDynacac... | Call this method to get the template ids based on the index and the length from the disk.
@param index
If index = 0, it starts the beginning. If index = 1, it means "next". If Index = -1, it means
"previous".
@param length
The max number of templates to be read. If length = -1, it reads all templates until the end.
@r... | [
"Call",
"this",
"method",
"to",
"get",
"the",
"template",
"ids",
"based",
"on",
"the",
"index",
"and",
"the",
"length",
"from",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1409-L1422 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.getCacheIdsSize | public int getCacheIdsSize(boolean filter) {
if (filter == CacheOnDisk.FILTER) {
return htod.getCacheIdsSize(filter) - htod.invalidationBuffer.size();
} else {
return htod.getCacheIdsSize(filter);
}
} | java | public int getCacheIdsSize(boolean filter) {
if (filter == CacheOnDisk.FILTER) {
return htod.getCacheIdsSize(filter) - htod.invalidationBuffer.size();
} else {
return htod.getCacheIdsSize(filter);
}
} | [
"public",
"int",
"getCacheIdsSize",
"(",
"boolean",
"filter",
")",
"{",
"if",
"(",
"filter",
"==",
"CacheOnDisk",
".",
"FILTER",
")",
"{",
"return",
"htod",
".",
"getCacheIdsSize",
"(",
"filter",
")",
"-",
"htod",
".",
"invalidationBuffer",
".",
"size",
"(... | Call this method to get the number of the cache ids in the disk.
@param filter
if true, filter the size from the invalidation buffer. Else, no filter - real size of entries in the
disk
@return int - the size | [
"Call",
"this",
"method",
"to",
"get",
"the",
"number",
"of",
"the",
"cache",
"ids",
"in",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1432-L1439 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.delDependencyEntry | public void delDependencyEntry(Object id, Object entry) { // SKS-O
if (htod.delDependencyEntry(id, entry) == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
} | java | public void delDependencyEntry(Object id, Object entry) { // SKS-O
if (htod.delDependencyEntry(id, entry) == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
} | [
"public",
"void",
"delDependencyEntry",
"(",
"Object",
"id",
",",
"Object",
"entry",
")",
"{",
"// SKS-O",
"if",
"(",
"htod",
".",
"delDependencyEntry",
"(",
"id",
",",
"entry",
")",
"==",
"HTODDynacache",
".",
"DISK_EXCEPTION",
")",
"{",
"stopOnError",
"(",... | Call this method to delete a cache id from a specified dependency in the disk.
@param id
- dependency id.
@param entry
- cache id. | [
"Call",
"this",
"method",
"to",
"delete",
"a",
"cache",
"id",
"from",
"a",
"specified",
"dependency",
"in",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1512-L1516 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.delTemplateEntry | public void delTemplateEntry(String template, Object entry) {
if (htod.delTemplateEntry(template, entry) == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
} | java | public void delTemplateEntry(String template, Object entry) {
if (htod.delTemplateEntry(template, entry) == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
} | [
"public",
"void",
"delTemplateEntry",
"(",
"String",
"template",
",",
"Object",
"entry",
")",
"{",
"if",
"(",
"htod",
".",
"delTemplateEntry",
"(",
"template",
",",
"entry",
")",
"==",
"HTODDynacache",
".",
"DISK_EXCEPTION",
")",
"{",
"stopOnError",
"(",
"th... | Call this method to delete a cache id from a specified template in the disk.
@param template
- template id.
@param entry
- cache id. | [
"Call",
"this",
"method",
"to",
"delete",
"a",
"cache",
"id",
"from",
"a",
"specified",
"template",
"in",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1526-L1530 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.delDependency | public void delDependency(Object id) { // SKS-O
if (htod.delDependency(id) == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
} | java | public void delDependency(Object id) { // SKS-O
if (htod.delDependency(id) == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
} | [
"public",
"void",
"delDependency",
"(",
"Object",
"id",
")",
"{",
"// SKS-O",
"if",
"(",
"htod",
".",
"delDependency",
"(",
"id",
")",
"==",
"HTODDynacache",
".",
"DISK_EXCEPTION",
")",
"{",
"stopOnError",
"(",
"this",
".",
"htod",
".",
"diskCacheException",... | Call this method to delete speciifed dependency id from the disk.
@param id
- dependency id. | [
"Call",
"this",
"method",
"to",
"delete",
"speciifed",
"dependency",
"id",
"from",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1538-L1542 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.delTemplate | public void delTemplate(String template) {
if (htod.delTemplate(template) == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
} | java | public void delTemplate(String template) {
if (htod.delTemplate(template) == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
} | [
"public",
"void",
"delTemplate",
"(",
"String",
"template",
")",
"{",
"if",
"(",
"htod",
".",
"delTemplate",
"(",
"template",
")",
"==",
"HTODDynacache",
".",
"DISK_EXCEPTION",
")",
"{",
"stopOnError",
"(",
"this",
".",
"htod",
".",
"diskCacheException",
")"... | Call this method to delete speciifed template from the disk.
@param id
- template id. | [
"Call",
"this",
"method",
"to",
"delete",
"speciifed",
"template",
"from",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1550-L1554 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.writeDependency | public int writeDependency(Object id, ValueSet vs) { // SKS-O
int returnCode = htod.writeDependency(id, vs);
if (returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
return returnCode;
} | java | public int writeDependency(Object id, ValueSet vs) { // SKS-O
int returnCode = htod.writeDependency(id, vs);
if (returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
return returnCode;
} | [
"public",
"int",
"writeDependency",
"(",
"Object",
"id",
",",
"ValueSet",
"vs",
")",
"{",
"// SKS-O",
"int",
"returnCode",
"=",
"htod",
".",
"writeDependency",
"(",
"id",
",",
"vs",
")",
";",
"if",
"(",
"returnCode",
"==",
"HTODDynacache",
".",
"DISK_EXCEP... | Call this method to write a dependency id with a collection of cache ids to the disk.
@param id
- dependency id.
@param vs
- a collection of cache ids. | [
"Call",
"this",
"method",
"to",
"write",
"a",
"dependency",
"id",
"with",
"a",
"collection",
"of",
"cache",
"ids",
"to",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1564-L1570 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.writeTemplate | public int writeTemplate(String template, ValueSet vs) {
int returnCode = htod.writeTemplate(template, vs);
if (returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
return returnCode;
} | java | public int writeTemplate(String template, ValueSet vs) {
int returnCode = htod.writeTemplate(template, vs);
if (returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
return returnCode;
} | [
"public",
"int",
"writeTemplate",
"(",
"String",
"template",
",",
"ValueSet",
"vs",
")",
"{",
"int",
"returnCode",
"=",
"htod",
".",
"writeTemplate",
"(",
"template",
",",
"vs",
")",
";",
"if",
"(",
"returnCode",
"==",
"HTODDynacache",
".",
"DISK_EXCEPTION",... | Call this method to write a template with a collection of cache ids to the disk.
@param template
- template id.
@param vs
- a collection of cache ids. | [
"Call",
"this",
"method",
"to",
"write",
"a",
"template",
"with",
"a",
"collection",
"of",
"cache",
"ids",
"to",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1580-L1586 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.writeDependencyEntry | public int writeDependencyEntry(Object id, Object entry) { // SKS-O
int returnCode = htod.writeDependencyEntry(id, entry);
if (returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
return returnCode;
} | java | public int writeDependencyEntry(Object id, Object entry) { // SKS-O
int returnCode = htod.writeDependencyEntry(id, entry);
if (returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
return returnCode;
} | [
"public",
"int",
"writeDependencyEntry",
"(",
"Object",
"id",
",",
"Object",
"entry",
")",
"{",
"// SKS-O",
"int",
"returnCode",
"=",
"htod",
".",
"writeDependencyEntry",
"(",
"id",
",",
"entry",
")",
";",
"if",
"(",
"returnCode",
"==",
"HTODDynacache",
".",... | Call this method to add a cache id for a specified dependency id to the disk.
@param id
- dependency id.
@param entry
- cache id. | [
"Call",
"this",
"method",
"to",
"add",
"a",
"cache",
"id",
"for",
"a",
"specified",
"dependency",
"id",
"to",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1596-L1602 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.writeTemplateEntry | public int writeTemplateEntry(String template, Object entry) {
int returnCode = htod.writeTemplateEntry(template, entry);
if (returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
return returnCode;
} | java | public int writeTemplateEntry(String template, Object entry) {
int returnCode = htod.writeTemplateEntry(template, entry);
if (returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(this.htod.diskCacheException);
}
return returnCode;
} | [
"public",
"int",
"writeTemplateEntry",
"(",
"String",
"template",
",",
"Object",
"entry",
")",
"{",
"int",
"returnCode",
"=",
"htod",
".",
"writeTemplateEntry",
"(",
"template",
",",
"entry",
")",
";",
"if",
"(",
"returnCode",
"==",
"HTODDynacache",
".",
"DI... | Call this method to add a cache id for a specified template to the disk.
@param template
- template id.
@param entry
- cache id. | [
"Call",
"this",
"method",
"to",
"add",
"a",
"cache",
"id",
"for",
"a",
"specified",
"template",
"to",
"the",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1612-L1618 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.calculateSleepTime | protected long calculateSleepTime() {
Calendar c = new GregorianCalendar();
int currentHour = c.get(Calendar.HOUR_OF_DAY);
int currentMin = c.get(Calendar.MINUTE);
int currentSec = c.get(Calendar.SECOND);
long stime = SECONDS_FOR_24_HOURS - ((currentHour * 60 + currentMin) * 60 +... | java | protected long calculateSleepTime() {
Calendar c = new GregorianCalendar();
int currentHour = c.get(Calendar.HOUR_OF_DAY);
int currentMin = c.get(Calendar.MINUTE);
int currentSec = c.get(Calendar.SECOND);
long stime = SECONDS_FOR_24_HOURS - ((currentHour * 60 + currentMin) * 60 +... | [
"protected",
"long",
"calculateSleepTime",
"(",
")",
"{",
"Calendar",
"c",
"=",
"new",
"GregorianCalendar",
"(",
")",
";",
"int",
"currentHour",
"=",
"c",
".",
"get",
"(",
"Calendar",
".",
"HOUR_OF_DAY",
")",
";",
"int",
"currentMin",
"=",
"c",
".",
"get... | return the sleep time in msec | [
"return",
"the",
"sleep",
"time",
"in",
"msec"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1669-L1683 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.clearInvalidationBuffers | public void clearInvalidationBuffers() {
this.htod.invalidationBuffer.clear(HTODInvalidationBuffer.EXPLICIT_BUFFER); // 3821 NK begin
this.htod.invalidationBuffer.clear(HTODInvalidationBuffer.SCAN_BUFFER);
if (this.evictionPolicy != CacheConfig.EVICTION_NONE) {
this.htod.invalidation... | java | public void clearInvalidationBuffers() {
this.htod.invalidationBuffer.clear(HTODInvalidationBuffer.EXPLICIT_BUFFER); // 3821 NK begin
this.htod.invalidationBuffer.clear(HTODInvalidationBuffer.SCAN_BUFFER);
if (this.evictionPolicy != CacheConfig.EVICTION_NONE) {
this.htod.invalidation... | [
"public",
"void",
"clearInvalidationBuffers",
"(",
")",
"{",
"this",
".",
"htod",
".",
"invalidationBuffer",
".",
"clear",
"(",
"HTODInvalidationBuffer",
".",
"EXPLICIT_BUFFER",
")",
";",
"// 3821 NK begin",
"this",
".",
"htod",
".",
"invalidationBuffer",
".",
"cl... | This method clears invalidaiton buffers in HTODDynacache | [
"This",
"method",
"clears",
"invalidaiton",
"buffers",
"in",
"HTODDynacache"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1695-L1701 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.readHashcodeByRange | public Result readHashcodeByRange(int index, int length, boolean debug, boolean useValue) { // LI4337-17
Result result = this.htod.readHashcodeByRange(index, length, debug, useValue);
if (result.returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(result.diskException);
}
... | java | public Result readHashcodeByRange(int index, int length, boolean debug, boolean useValue) { // LI4337-17
Result result = this.htod.readHashcodeByRange(index, length, debug, useValue);
if (result.returnCode == HTODDynacache.DISK_EXCEPTION) {
stopOnError(result.diskException);
}
... | [
"public",
"Result",
"readHashcodeByRange",
"(",
"int",
"index",
",",
"int",
"length",
",",
"boolean",
"debug",
",",
"boolean",
"useValue",
")",
"{",
"// LI4337-17",
"Result",
"result",
"=",
"this",
".",
"htod",
".",
"readHashcodeByRange",
"(",
"index",
",",
... | This method find the hashcode based on index and length.
@param index
If index = 0, it starts the beginning. If index = 1, it means "next". If Index = -1, it means
"previous".
@param length
The max number of cache ids to be read. If length = -1, it reads all cache ids until the end.
@param debug
true to output id and ... | [
"This",
"method",
"find",
"the",
"hashcode",
"based",
"on",
"index",
"and",
"length",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1731-L1737 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.updateExpirationTime | public int updateExpirationTime(Object id, long oldExpirationTime, int size, long newExpirationTime, long newValidatorExpirationTime) {
int returnCode = this.htod.updateExpirationTime(id, oldExpirationTime, size, newExpirationTime, newValidatorExpirationTime);
if (returnCode == HTODDynacache.DISK_EXCEPT... | java | public int updateExpirationTime(Object id, long oldExpirationTime, int size, long newExpirationTime, long newValidatorExpirationTime) {
int returnCode = this.htod.updateExpirationTime(id, oldExpirationTime, size, newExpirationTime, newValidatorExpirationTime);
if (returnCode == HTODDynacache.DISK_EXCEPT... | [
"public",
"int",
"updateExpirationTime",
"(",
"Object",
"id",
",",
"long",
"oldExpirationTime",
",",
"int",
"size",
",",
"long",
"newExpirationTime",
",",
"long",
"newValidatorExpirationTime",
")",
"{",
"int",
"returnCode",
"=",
"this",
".",
"htod",
".",
"update... | This method is used to update expiration times in GC and disk emtry header | [
"This",
"method",
"is",
"used",
"to",
"update",
"expiration",
"times",
"in",
"GC",
"and",
"disk",
"emtry",
"header"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1742-L1748 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java | CacheOnDisk.checkDirectoryWriteable | protected int checkDirectoryWriteable(String location) {
final String methodName = "checkDirectoryWriteable()";
int rc = CacheOnDisk.LOCATION_OK;
if (location.equals("")) {
rc = CacheOnDisk.LOCATION_NOT_DEFINED;
} else if (location.startsWith("${") && location.indexOf("}") > ... | java | protected int checkDirectoryWriteable(String location) {
final String methodName = "checkDirectoryWriteable()";
int rc = CacheOnDisk.LOCATION_OK;
if (location.equals("")) {
rc = CacheOnDisk.LOCATION_NOT_DEFINED;
} else if (location.startsWith("${") && location.indexOf("}") > ... | [
"protected",
"int",
"checkDirectoryWriteable",
"(",
"String",
"location",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"checkDirectoryWriteable()\"",
";",
"int",
"rc",
"=",
"CacheOnDisk",
".",
"LOCATION_OK",
";",
"if",
"(",
"location",
".",
"equals",
"(",
"... | Check the location whether it is writable or not
@param location
@return int 0 = OK 1 = LOCATION_NOT_DEFINED 2 = INVALID_LOCATION 3 = LOCATION_NOT_DIRECTORY 4 =
LOCATION_NOT_WRITABLE 5 = LOCATION_CANNOT_MAKE_DIR | [
"Check",
"the",
"location",
"whether",
"it",
"is",
"writable",
"or",
"not"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheOnDisk.java#L1841-L1869 | train |
OpenLiberty/open-liberty | dev/wlp-mavenRepoTasks/src/com/ibm/ws/wlp/mavenFeatures/utils/Utils.java | Utils.getRepositorySubpath | public static String getRepositorySubpath(MavenCoordinates artifact) {
StringBuffer buf = new StringBuffer();
String[] groupDirs = artifact.getGroupId().split("\\.");
for (String dir : groupDirs) {
buf.append(dir).append("/");
}
buf.append(artifact.getArtifactId()).append("/").append(artifact.getVersion())... | java | public static String getRepositorySubpath(MavenCoordinates artifact) {
StringBuffer buf = new StringBuffer();
String[] groupDirs = artifact.getGroupId().split("\\.");
for (String dir : groupDirs) {
buf.append(dir).append("/");
}
buf.append(artifact.getArtifactId()).append("/").append(artifact.getVersion())... | [
"public",
"static",
"String",
"getRepositorySubpath",
"(",
"MavenCoordinates",
"artifact",
")",
"{",
"StringBuffer",
"buf",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"String",
"[",
"]",
"groupDirs",
"=",
"artifact",
".",
"getGroupId",
"(",
")",
".",
"split",
... | Gets the expected path within a Maven repository for the given Maven
artifact, based on its Maven coordinates.
@param artifact
the MavenArtifact whose path you want
@return the path within a Maven repository where the artifact should be
stored | [
"Gets",
"the",
"expected",
"path",
"within",
"a",
"Maven",
"repository",
"for",
"the",
"given",
"Maven",
"artifact",
"based",
"on",
"its",
"Maven",
"coordinates",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-mavenRepoTasks/src/com/ibm/ws/wlp/mavenFeatures/utils/Utils.java#L26-L34 | train |
OpenLiberty/open-liberty | dev/wlp-mavenRepoTasks/src/com/ibm/ws/wlp/mavenFeatures/utils/Utils.java | Utils.getFileName | public static String getFileName(MavenCoordinates artifact, Constants.ArtifactType type) {
return artifact.getArtifactId() + "-" + artifact.getVersion() + type.getMavenFileExtension();
} | java | public static String getFileName(MavenCoordinates artifact, Constants.ArtifactType type) {
return artifact.getArtifactId() + "-" + artifact.getVersion() + type.getMavenFileExtension();
} | [
"public",
"static",
"String",
"getFileName",
"(",
"MavenCoordinates",
"artifact",
",",
"Constants",
".",
"ArtifactType",
"type",
")",
"{",
"return",
"artifact",
".",
"getArtifactId",
"(",
")",
"+",
"\"-\"",
"+",
"artifact",
".",
"getVersion",
"(",
")",
"+",
... | Gets the expected file name for a Maven artifact, based on its Maven
coordinates.
@param artifact
the MavenArtifact whose file name you want
@param type
the type of artifact
@return the file name including extension | [
"Gets",
"the",
"expected",
"file",
"name",
"for",
"a",
"Maven",
"artifact",
"based",
"on",
"its",
"Maven",
"coordinates",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-mavenRepoTasks/src/com/ibm/ws/wlp/mavenFeatures/utils/Utils.java#L46-L48 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.clearBody | @Override
public void clearBody() throws javax.jms.JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "clearBody");
// Set the message into write-only mode, handle generic actions
super.clearBody();
// Clear the locally... | java | @Override
public void clearBody() throws javax.jms.JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "clearBody");
// Set the message into write-only mode, handle generic actions
super.clearBody();
// Clear the locally... | [
"@",
"Override",
"public",
"void",
"clearBody",
"(",
")",
"throws",
"javax",
".",
"jms",
".",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
... | Clear out the message body. All other parts of the message are left
untouched.
@exception JMSException if JMS fails to due to some internal JMS error. | [
"Clear",
"out",
"the",
"message",
"body",
".",
"All",
"other",
"parts",
"of",
"the",
"message",
"are",
"left",
"untouched",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L240-L314 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.readByte | @Override
public byte readByte() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readByte");
try {
// Check that we are in read mode
checkBodyReadable("readByte");
if (requiresInit)
... | java | @Override
public byte readByte() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readByte");
try {
// Check that we are in read mode
checkBodyReadable("readByte");
if (requiresInit)
... | [
"@",
"Override",
"public",
"byte",
"readByte",
"(",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",... | Read a signed 8-bit value from the stream message.
@return the next byte from the stream message as a signed 8-bit
<code>byte</code>.
@exception MessageNotReadableException if message in write-only mode.
@exception MessageEOFException if end of message stream
@exception JMSException if JMS fails to read message due t... | [
"Read",
"a",
"signed",
"8",
"-",
"bit",
"value",
"from",
"the",
"stream",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L354-L380 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.readBytes | @Override
public int readBytes(byte[] value, int length) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readBytes", new Object[] { value, length });
try {
// Check that we are in read mode
checkBodyRe... | java | @Override
public int readBytes(byte[] value, int length) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readBytes", new Object[] { value, length });
try {
// Check that we are in read mode
checkBodyRe... | [
"@",
"Override",
"public",
"int",
"readBytes",
"(",
"byte",
"[",
"]",
"value",
",",
"int",
"length",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
... | Read a portion of the bytes message stream.
<P>If the length of array <code>value</code> is less than
the bytes remaining to be read from the stream, the array should
be filled. A subsequent call reads the next increment, etc.
<P>If the bytes remaining in the stream is less than the length of
array <code>value</code>... | [
"Read",
"a",
"portion",
"of",
"the",
"bytes",
"message",
"stream",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L438-L470 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.readChar | @Override
public char readChar() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readChar");
try {
// Check that we are in read mode
checkBodyReadable("readChar");
if (requiresInit)
... | java | @Override
public char readChar() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readChar");
try {
// Check that we are in read mode
checkBodyReadable("readChar");
if (requiresInit)
... | [
"@",
"Override",
"public",
"char",
"readChar",
"(",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",... | Read a Unicode character value from the stream message.
@return the next two bytes from the stream message as a Unicode
character.
@exception MessageNotReadableException if message in write-only mode.
@exception MessageEOFException if end of message stream
@exception JMSException if JMS fails to read message due to
s... | [
"Read",
"a",
"Unicode",
"character",
"value",
"from",
"the",
"stream",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L483-L518 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.readLong | @Override
public long readLong() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readLong");
try {
// Check that we are in read mode
checkBodyReadable("readLong");
if (requiresInit)
... | java | @Override
public long readLong() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readLong");
try {
// Check that we are in read mode
checkBodyReadable("readLong");
if (requiresInit)
... | [
"@",
"Override",
"public",
"long",
"readLong",
"(",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",... | Read a signed 64-bit integer from the stream message.
@return the next eight bytes from the stream message, interpreted as
a <code>long</code>.
@exception MessageNotReadableException if message in write-only mode.
@exception MessageEOFException if end of message stream
@exception JMSException if JMS fails to read mes... | [
"Read",
"a",
"signed",
"64",
"-",
"bit",
"integer",
"from",
"the",
"stream",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L716-L752 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.readUTF | @Override
public String readUTF() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readUTF");
String result;
try {
// Check that we are in read mode
checkBodyReadable("readUTF");
if ... | java | @Override
public String readUTF() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readUTF");
String result;
try {
// Check that we are in read mode
checkBodyReadable("readUTF");
if ... | [
"@",
"Override",
"public",
"String",
"readUTF",
"(",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
"... | Read in a string that has been encoded using a modified UTF-8
format from the stream message.
<P>For more information on the UTF-8 format, see "File System Safe
UCS Transformation Format (FSS_UFT)", X/Open Preliminary Specification,
X/Open Company Ltd., Document Number: P316. This information also
appears in ISO/IEC 1... | [
"Read",
"in",
"a",
"string",
"that",
"has",
"been",
"encoded",
"using",
"a",
"modified",
"UTF",
"-",
"8",
"format",
"from",
"the",
"stream",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L912-L944 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.reset | @Override
public void reset() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "reset");
// After reset has been called, the message body is immutable (the only way of changing it is to
// call clearBody and start again... | java | @Override
public void reset() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "reset");
// After reset has been called, the message body is immutable (the only way of changing it is to
// call clearBody and start again... | [
"@",
"Override",
"public",
"void",
"reset",
"(",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
... | Put the message in read-only mode, and reposition the stream of
bytes to the beginning.
@exception JMSException if JMS fails to reset the message due to
some internal JMS error.
@exception MessageFormatException if message has an invalid
format. | [
"Put",
"the",
"message",
"in",
"read",
"-",
"only",
"mode",
"and",
"reposition",
"the",
"stream",
"of",
"bytes",
"to",
"the",
"beginning",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L955-L1013 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.writeBytes | @Override
public void writeBytes(byte[] value) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "writeBytes", value);
try {
// Check that we are in write mode
checkBodyWriteable("writeBytes");
... | java | @Override
public void writeBytes(byte[] value) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "writeBytes", value);
try {
// Check that we are in write mode
checkBodyWriteable("writeBytes");
... | [
"@",
"Override",
"public",
"void",
"writeBytes",
"(",
"byte",
"[",
"]",
"value",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",... | Write a byte array to the stream message.
@param value of the byte array to be written.
@exception MessageNotWriteableException if message in read-only mode.
@exception JMSException if JMS fails to write message due to
some internal JMS error. | [
"Write",
"a",
"byte",
"array",
"to",
"the",
"stream",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L1110-L1187 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.writeBytes | @Override
public void writeBytes(byte[] value, int offset, int length) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "writeBytes", new Object[] { value, offset, length });
try {
// Check if the producer has promi... | java | @Override
public void writeBytes(byte[] value, int offset, int length) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "writeBytes", new Object[] { value, offset, length });
try {
// Check if the producer has promi... | [
"@",
"Override",
"public",
"void",
"writeBytes",
"(",
"byte",
"[",
"]",
"value",
",",
"int",
"offset",
",",
"int",
"length",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEna... | Write a portion of a byte array to the stream message.
@param value the byte array value to be written.
@param offset the initial offset within the byte array.
@param length the number of bytes to use.
@exception MessageNotWriteableException if message in read-only mode.
@exception JMSException if JMS fails to write ... | [
"Write",
"a",
"portion",
"of",
"a",
"byte",
"array",
"to",
"the",
"stream",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L1200-L1239 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.writeObject | @Override
public void writeObject(Object value) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "writeObject");
// Check if the producer has promised not to modify the payload after it's been set
checkProducerPromise("writeO... | java | @Override
public void writeObject(Object value) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "writeObject");
// Check if the producer has promised not to modify the payload after it's been set
checkProducerPromise("writeO... | [
"@",
"Override",
"public",
"void",
"writeObject",
"(",
"Object",
"value",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"... | Write a Java object to the stream message.
<P>Note that this method only works for the objectified primitive
object types (Integer, Double, Long ...), String's and byte arrays.
@param value the Java object to be written.
@exception MessageNotWriteableException if message in read-only mode.
@exception MessageFormatEx... | [
"Write",
"a",
"Java",
"object",
"to",
"the",
"stream",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L1540-L1595 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.getMsgReference | @Override
protected JsJmsMessage getMsgReference() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getMsgReference");
// If the body is read only, the contents should already be in the
// JS message, so only do the co... | java | @Override
protected JsJmsMessage getMsgReference() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getMsgReference");
// If the body is read only, the contents should already be in the
// JS message, so only do the co... | [
"@",
"Override",
"protected",
"JsJmsMessage",
"getMsgReference",
"(",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
... | override the getMsgReference method of the parent class.
We need to ensure that the message body is written into the JS message
before returning the reference to it. | [
"override",
"the",
"getMsgReference",
"method",
"of",
"the",
"parent",
"class",
".",
"We",
"need",
"to",
"ensure",
"that",
"the",
"message",
"body",
"is",
"written",
"into",
"the",
"JS",
"message",
"before",
"returning",
"the",
"reference",
"to",
"it",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L2002-L2050 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.recordInteger | private void recordInteger(int offset, int length) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "recordInteger", new Object[] { offset, length });
// If the current arrays are full, save them in the vector and allocate some new ones
if (in... | java | private void recordInteger(int offset, int length) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "recordInteger", new Object[] { offset, length });
// If the current arrays are full, save them in the vector and allocate some new ones
if (in... | [
"private",
"void",
"recordInteger",
"(",
"int",
"offset",
",",
"int",
"length",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
... | Records the presence of an integer-style item in the bytes message stream. This method is called by the writeXXX methods
to keep a track of where the integer items are, so they can be byteswapped if necessary at send time.
NB. The arrays and vector maintained by this method are read directly by the _exportBody() metho... | [
"Records",
"the",
"presence",
"of",
"an",
"integer",
"-",
"style",
"item",
"in",
"the",
"bytes",
"message",
"stream",
".",
"This",
"method",
"is",
"called",
"by",
"the",
"writeXXX",
"methods",
"to",
"keep",
"a",
"track",
"of",
"where",
"the",
"integer",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L2226-L2247 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.reverse | private void reverse(byte[] buffer, int offset, int length) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "reverse", new Object[] { buffer, offset, length });
byte temp;
for (int i = 0; i < length / 2; i++) {
temp = buffer[offse... | java | private void reverse(byte[] buffer, int offset, int length) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "reverse", new Object[] { buffer, offset, length });
byte temp;
for (int i = 0; i < length / 2; i++) {
temp = buffer[offse... | [
"private",
"void",
"reverse",
"(",
"byte",
"[",
"]",
"buffer",
",",
"int",
"offset",
",",
"int",
"length",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"ent... | This method reverses a sequence of bytes within a byte array. It is used for byte swapping numeric values
@param buffer byte[]
@param offset int offset of start of sequence
@param length int length of sequence in bytes | [
"This",
"method",
"reverses",
"a",
"sequence",
"of",
"bytes",
"within",
"a",
"byte",
"array",
".",
"It",
"is",
"used",
"for",
"byte",
"swapping",
"numeric",
"values"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L2256-L2269 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java | JmsBytesMessageImpl.checkProducerPromise | private void checkProducerPromise(String jmsMethod, String ffdcProbeID) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "checkProducerPromise", new Object[] { jmsMethod, ffdcProbeID });
// Only proceed if the producer hasn't promi... | java | private void checkProducerPromise(String jmsMethod, String ffdcProbeID) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "checkProducerPromise", new Object[] { jmsMethod, ffdcProbeID });
// Only proceed if the producer hasn't promi... | [
"private",
"void",
"checkProducerPromise",
"(",
"String",
"jmsMethod",
",",
"String",
"ffdcProbeID",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",... | Checks to see if the producer has promised not to modify the payload after it's been set.
If they have, then throw a JMS exception based on the parameters
@throws JMSException | [
"Checks",
"to",
"see",
"if",
"the",
"producer",
"has",
"promised",
"not",
"to",
"modify",
"the",
"payload",
"after",
"it",
"s",
"been",
"set",
".",
"If",
"they",
"have",
"then",
"throw",
"a",
"JMS",
"exception",
"based",
"on",
"the",
"parameters"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsBytesMessageImpl.java#L2277-L2295 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchReadAheadReader.java | CATAsynchReadAheadReader.stopConsumer | public void stopConsumer() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "stopConsumer");
try {
// lock the consumerSession to ensure visibility of update to started.
synchronized (consumerSession) {
consumerS... | java | public void stopConsumer() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "stopConsumer");
try {
// lock the consumerSession to ensure visibility of update to started.
synchronized (consumerSession) {
consumerS... | [
"public",
"void",
"stopConsumer",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"stopConsumer\"",
")",
";",
"try",... | Safely stop the consumer
@param Message to be traced for stop reason. | [
"Safely",
"stop",
"the",
"consumer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchReadAheadReader.java#L175-L195 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerClassifications.java | JSConsumerClassifications.setClassifications | public boolean setClassifications(Flow[] newFlows)
throws InvalidFlowsException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setClassifications", newFlows);
boolean noClassChange = true;
// Do we have the same set of flows but with different weightings... | java | public boolean setClassifications(Flow[] newFlows)
throws InvalidFlowsException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setClassifications", newFlows);
boolean noClassChange = true;
// Do we have the same set of flows but with different weightings... | [
"public",
"boolean",
"setClassifications",
"(",
"Flow",
"[",
"]",
"newFlows",
")",
"throws",
"InvalidFlowsException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry... | Supports the setting of a new set of classifications based on a set of
Flows provided by the caller.
The method is called by JSConsumerSet.setFlowProperites() under a Java 5 write lock that
ensures exclusive access when classifications are being set or changed. The specific lock
taken is JSConsumerSet.classificationWr... | [
"Supports",
"the",
"setting",
"of",
"a",
"new",
"set",
"of",
"classifications",
"based",
"on",
"a",
"set",
"of",
"Flows",
"provided",
"by",
"the",
"caller",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerClassifications.java#L81-L147 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerClassifications.java | JSConsumerClassifications.getNumberOfClasses | public int getNumberOfClasses()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getNumberOfClasses");
SibTr.exit(tc, "getNumberOfClasses", Integer.valueOf(numberOfClasses));
}
return numberOfClasses;
} | java | public int getNumberOfClasses()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getNumberOfClasses");
SibTr.exit(tc, "getNumberOfClasses", Integer.valueOf(numberOfClasses));
}
return numberOfClasses;
} | [
"public",
"int",
"getNumberOfClasses",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getNumberOfClasses\"",
")",
";",
"SibT... | Retrieve the number of classifications specified in the current set.
@return | [
"Retrieve",
"the",
"number",
"of",
"classifications",
"specified",
"in",
"the",
"current",
"set",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerClassifications.java#L154-L162 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerClassifications.java | JSConsumerClassifications.getPosition | public int getPosition(String classificationName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getPosition", classificationName);
int classPos = 0;
// Get the position of the classification
ClassWeight cw = messageClasses.get(classificationName);
i... | java | public int getPosition(String classificationName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getPosition", classificationName);
int classPos = 0;
// Get the position of the classification
ClassWeight cw = messageClasses.get(classificationName);
i... | [
"public",
"int",
"getPosition",
"(",
"String",
"classificationName",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getPosition\"",
",",... | Get the index of a named classification.
@param classificationName
@return | [
"Get",
"the",
"index",
"of",
"a",
"named",
"classification",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerClassifications.java#L170-L185 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerClassifications.java | JSConsumerClassifications.getWeight | public int getWeight(String classificationName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getWeight", classificationName);
int weight = 0;
// Get the weight of the classification
ClassWeight cw = messageClasses.get(classificationName);
if(cw != ... | java | public int getWeight(String classificationName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getWeight", classificationName);
int weight = 0;
// Get the weight of the classification
ClassWeight cw = messageClasses.get(classificationName);
if(cw != ... | [
"public",
"int",
"getWeight",
"(",
"String",
"classificationName",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getWeight\"",
",",
"... | Get the weight of a named classification.
@param classificationName
@return | [
"Get",
"the",
"weight",
"of",
"a",
"named",
"classification",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerClassifications.java#L193-L208 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerClassifications.java | JSConsumerClassifications.findClassIndex | public int findClassIndex(HashMap<Integer, Integer> weightMap)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "findClassIndex");
int classPos = 0;
int randWeight = 0;
// First of all determine total weight
int totalWeight = 0;
Iterator<Integer> it... | java | public int findClassIndex(HashMap<Integer, Integer> weightMap)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "findClassIndex");
int classPos = 0;
int randWeight = 0;
// First of all determine total weight
int totalWeight = 0;
Iterator<Integer> it... | [
"public",
"int",
"findClassIndex",
"(",
"HashMap",
"<",
"Integer",
",",
"Integer",
">",
"weightMap",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
... | Find a pseudo random classification index based on the weightings
table.
@param weightMap
@return | [
"Find",
"a",
"pseudo",
"random",
"classification",
"index",
"based",
"on",
"the",
"weightings",
"table",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerClassifications.java#L240-L295 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSConsumerClassifications.java | JSConsumerClassifications.getFlows | public Flow[] getFlows()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getFlows");
}
Flow[] clonedFlows = flows.clone();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.exit(tc, "getFlows", clonedFlows);
... | java | public Flow[] getFlows()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getFlows");
}
Flow[] clonedFlows = flows.clone();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.exit(tc, "getFlows", clonedFlows);
... | [
"public",
"Flow",
"[",
"]",
"getFlows",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getFlows\"",
")",
";",
"}",
"Fl... | Returns the array of flows defined in this classification specified by XD.
@return | [
"Returns",
"the",
"array",
"of",
"flows",
"defined",
"in",
"this",
"classification",
"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/JSConsumerClassifications.java#L318-L331 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java | ChainDataImpl.getPropertyBag | public Map<Object, Object> getPropertyBag() {
if (this.properties == null) {
this.properties = new HashMap<Object, Object>();
}
return this.properties;
} | java | public Map<Object, Object> getPropertyBag() {
if (this.properties == null) {
this.properties = new HashMap<Object, Object>();
}
return this.properties;
} | [
"public",
"Map",
"<",
"Object",
",",
"Object",
">",
"getPropertyBag",
"(",
")",
"{",
"if",
"(",
"this",
".",
"properties",
"==",
"null",
")",
"{",
"this",
".",
"properties",
"=",
"new",
"HashMap",
"<",
"Object",
",",
"Object",
">",
"(",
")",
";",
"... | Fetch the property bag associated with this Chain.
@return Map<Object,Object> | [
"Fetch",
"the",
"property",
"bag",
"associated",
"with",
"this",
"Chain",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java#L211-L216 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java | ChainDataImpl.getExternalChainData | public ChainDataImpl getExternalChainData() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "getExternalChainData");
}
// Create the list of the parents of the child data objects.
ChannelData[] parents = new ChannelData[this.channelData... | java | public ChainDataImpl getExternalChainData() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "getExternalChainData");
}
// Create the list of the parents of the child data objects.
ChannelData[] parents = new ChannelData[this.channelData... | [
"public",
"ChainDataImpl",
"getExternalChainData",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getExternalChainDa... | Create a cloned representation of this chain data which only includes
references to parent channel data objects. It hides the children and
their names.
@return cloned chain data including parent channel data objects | [
"Create",
"a",
"cloned",
"representation",
"of",
"this",
"chain",
"data",
"which",
"only",
"includes",
"references",
"to",
"parent",
"channel",
"data",
"objects",
".",
"It",
"hides",
"the",
"children",
"and",
"their",
"names",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java#L255-L279 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java | ChainDataImpl.addChainEventListener | public final void addChainEventListener(ChainEventListener listener) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "addChainEventListener: " + listener);
}
if (null != listener) {
this.chainEventListeners.add(listener);
}
... | java | public final void addChainEventListener(ChainEventListener listener) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "addChainEventListener: " + listener);
}
if (null != listener) {
this.chainEventListeners.add(listener);
}
... | [
"public",
"final",
"void",
"addChainEventListener",
"(",
"ChainEventListener",
"listener",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"this",
",... | Enables external entities to be notified of chain events described in
ChainEventListener interface.
@param listener | [
"Enables",
"external",
"entities",
"to",
"be",
"notified",
"of",
"chain",
"events",
"described",
"in",
"ChainEventListener",
"interface",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java#L291-L298 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java | ChainDataImpl.removeChainEventListener | public final void removeChainEventListener(ChainEventListener listener) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "removeChainEventListener: " + listener);
}
if (null != listener) {
if (!this.chainEventListeners.remove(listene... | java | public final void removeChainEventListener(ChainEventListener listener) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "removeChainEventListener: " + listener);
}
if (null != listener) {
if (!this.chainEventListeners.remove(listene... | [
"public",
"final",
"void",
"removeChainEventListener",
"(",
"ChainEventListener",
"listener",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"this",
... | Removes a listener from the list of those being informed of chain events
on this chain.
@param listener | [
"Removes",
"a",
"listener",
"from",
"the",
"list",
"of",
"those",
"being",
"informed",
"of",
"chain",
"events",
"on",
"this",
"chain",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java#L306-L317 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java | ChainDataImpl.removeAllChainEventListeners | public Set<ChainEventListener> removeAllChainEventListeners() {
Set<ChainEventListener> returnListeners = new HashSet<ChainEventListener>(this.chainEventListeners);
this.chainEventListeners.clear();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc,... | java | public Set<ChainEventListener> removeAllChainEventListeners() {
Set<ChainEventListener> returnListeners = new HashSet<ChainEventListener>(this.chainEventListeners);
this.chainEventListeners.clear();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc,... | [
"public",
"Set",
"<",
"ChainEventListener",
">",
"removeAllChainEventListeners",
"(",
")",
"{",
"Set",
"<",
"ChainEventListener",
">",
"returnListeners",
"=",
"new",
"HashSet",
"<",
"ChainEventListener",
">",
"(",
"this",
".",
"chainEventListeners",
")",
";",
"thi... | Remove the chain event listeners from this configuration and return them
in a new hash set. This method is called during the updateChain
in order to move the event listeners from the old config to the new one.
@return ArrayList<ChainEventListener> of chain event listeners | [
"Remove",
"the",
"chain",
"event",
"listeners",
"from",
"this",
"configuration",
"and",
"return",
"them",
"in",
"a",
"new",
"hash",
"set",
".",
"This",
"method",
"is",
"called",
"during",
"the",
"updateChain",
"in",
"order",
"to",
"move",
"the",
"event",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java#L326-L333 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java | ChainDataImpl.setChainEventListeners | public void setChainEventListeners(Set<ChainEventListener> newListeners) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "removeAllChainEventListeners", newListeners);
}
chainEventListeners.clear();
chainEventListeners.addAll(newListene... | java | public void setChainEventListeners(Set<ChainEventListener> newListeners) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(this, tc, "removeAllChainEventListeners", newListeners);
}
chainEventListeners.clear();
chainEventListeners.addAll(newListene... | [
"public",
"void",
"setChainEventListeners",
"(",
"Set",
"<",
"ChainEventListener",
">",
"newListeners",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(... | Set the list of chain event listeners for this chain configuration. This
method was originally created to pass along chain event listeners from one
chain config to another chain config during the updateChain method.
@param newListeners | [
"Set",
"the",
"list",
"of",
"chain",
"event",
"listeners",
"for",
"this",
"chain",
"configuration",
".",
"This",
"method",
"was",
"originally",
"created",
"to",
"pass",
"along",
"chain",
"event",
"listeners",
"from",
"one",
"chain",
"config",
"to",
"another",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java#L342-L348 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java | ChainDataImpl.chainInitialized | public final void chainInitialized() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "chainInitialized, chain: " + this.name);
}
// Clone the list in case one of the event listeners modifies
// the chain during this iteration.
f... | java | public final void chainInitialized() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "chainInitialized, chain: " + this.name);
}
// Clone the list in case one of the event listeners modifies
// the chain during this iteration.
f... | [
"public",
"final",
"void",
"chainInitialized",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"chainInitialized, ch... | This method is called when the chain has been initialized. It informs
each of the chain event listeners. | [
"This",
"method",
"is",
"called",
"when",
"the",
"chain",
"has",
"been",
"initialized",
".",
"It",
"informs",
"each",
"of",
"the",
"chain",
"event",
"listeners",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java#L362-L374 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java | ChainDataImpl.chainStartFailed | public final void chainStartFailed(int attemptsMade, int attemptsLeft) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "chainStartFailed, chain: " + this.name);
}
// Clone the list in case one of the event listeners modifies
// the chai... | java | public final void chainStartFailed(int attemptsMade, int attemptsLeft) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(this, tc, "chainStartFailed, chain: " + this.name);
}
// Clone the list in case one of the event listeners modifies
// the chai... | [
"public",
"final",
"void",
"chainStartFailed",
"(",
"int",
"attemptsMade",
",",
"int",
"attemptsLeft",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"... | This method is called when the chain start fails. It informs
each of the chain event listeners.
@param attemptsMade
@param attemptsLeft | [
"This",
"method",
"is",
"called",
"when",
"the",
"chain",
"start",
"fails",
".",
"It",
"informs",
"each",
"of",
"the",
"chain",
"event",
"listeners",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java#L401-L418 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java | ChainDataImpl.getEndPoint | public CFEndPoint getEndPoint() throws ChannelFrameworkException {
if (null == this.endPoint) {
if (FlowType.INBOUND.equals(this.type)) {
this.endPoint = new CFEndPointImpl(this);
} else {
throw new ChannelFrameworkException(this.name + " is not inbound ch... | java | public CFEndPoint getEndPoint() throws ChannelFrameworkException {
if (null == this.endPoint) {
if (FlowType.INBOUND.equals(this.type)) {
this.endPoint = new CFEndPointImpl(this);
} else {
throw new ChannelFrameworkException(this.name + " is not inbound ch... | [
"public",
"CFEndPoint",
"getEndPoint",
"(",
")",
"throws",
"ChannelFrameworkException",
"{",
"if",
"(",
"null",
"==",
"this",
".",
"endPoint",
")",
"{",
"if",
"(",
"FlowType",
".",
"INBOUND",
".",
"equals",
"(",
"this",
".",
"type",
")",
")",
"{",
"this"... | Access the possible endpoint representation of this chain. This will
throw an exception if the chain is not inbound.
@return CFEndPoint
@throws ChannelFrameworkException | [
"Access",
"the",
"possible",
"endpoint",
"representation",
"of",
"this",
"chain",
".",
"This",
"will",
"throw",
"an",
"exception",
"if",
"the",
"chain",
"is",
"not",
"inbound",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/ChainDataImpl.java#L499-L508 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/archaius/composite/PollingDynamicConfig.java | PollingDynamicConfig.getRawProperty | @Trivial
protected String getRawProperty(String key) {
String rawValue = source.getValue(key);
if (rawValue != null) {
current.put(key, rawValue);
}
return rawValue;
} | java | @Trivial
protected String getRawProperty(String key) {
String rawValue = source.getValue(key);
if (rawValue != null) {
current.put(key, rawValue);
}
return rawValue;
} | [
"@",
"Trivial",
"protected",
"String",
"getRawProperty",
"(",
"String",
"key",
")",
"{",
"String",
"rawValue",
"=",
"source",
".",
"getValue",
"(",
"key",
")",
";",
"if",
"(",
"rawValue",
"!=",
"null",
")",
"{",
"current",
".",
"put",
"(",
"key",
",",
... | Return the raw, unconverted, String associated with a key.
@param key | [
"Return",
"the",
"raw",
"unconverted",
"String",
"associated",
"with",
"a",
"key",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/archaius/composite/PollingDynamicConfig.java#L242-L249 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/view/facelets/TagHandler.java | TagHandler.getRequiredAttribute | protected final TagAttribute getRequiredAttribute(String localName) throws TagException
{
TagAttribute attr = this.getAttribute(localName);
if (attr == null)
{
throw new TagException(this.tag, "Attribute '" + localName + "' is required");
}
return attr;
... | java | protected final TagAttribute getRequiredAttribute(String localName) throws TagException
{
TagAttribute attr = this.getAttribute(localName);
if (attr == null)
{
throw new TagException(this.tag, "Attribute '" + localName + "' is required");
}
return attr;
... | [
"protected",
"final",
"TagAttribute",
"getRequiredAttribute",
"(",
"String",
"localName",
")",
"throws",
"TagException",
"{",
"TagAttribute",
"attr",
"=",
"this",
".",
"getAttribute",
"(",
"localName",
")",
";",
"if",
"(",
"attr",
"==",
"null",
")",
"{",
"thro... | Utility method for fetching a required TagAttribute
@param localName
name of the attribute
@return TagAttribute if found, otherwise error
@throws TagException
if the attribute was not found | [
"Utility",
"method",
"for",
"fetching",
"a",
"required",
"TagAttribute"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/view/facelets/TagHandler.java#L60-L69 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractDestinationHandler.java | AbstractDestinationHandler.setInputHandler | public void setInputHandler(ProducerInputHandler inputHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setInputHandler", inputHandler);
this.inputHandler = inputHandler;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setInputHan... | java | public void setInputHandler(ProducerInputHandler inputHandler)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setInputHandler", inputHandler);
this.inputHandler = inputHandler;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setInputHan... | [
"public",
"void",
"setInputHandler",
"(",
"ProducerInputHandler",
"inputHandler",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"setInputH... | Sets the inputHandler for this destination.
@param inputHandler | [
"Sets",
"the",
"inputHandler",
"for",
"this",
"destination",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractDestinationHandler.java#L406-L411 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractDestinationHandler.java | AbstractDestinationHandler.setBus | void setBus(String busName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setBus", busName);
this.busName = busName;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setBus");
} | java | void setBus(String busName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setBus", busName);
this.busName = busName;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setBus");
} | [
"void",
"setBus",
"(",
"String",
"busName",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"setBus\"",
",",
"busName",
")",
";",
"t... | Sets the bus name for this destination.
@param busName | [
"Sets",
"the",
"bus",
"name",
"for",
"this",
"destination",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractDestinationHandler.java#L417-L422 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractDestinationHandler.java | AbstractDestinationHandler.setForeignBusSendAllowed | public void setForeignBusSendAllowed(boolean sendAllowed)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "setForeignBusSendAllowed", Boolean.valueOf(sendAllowed));
}
// Set the flag on this handler
_sendAllowedOnTargetForeignBus = Boolean.valueOf(se... | java | public void setForeignBusSendAllowed(boolean sendAllowed)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "setForeignBusSendAllowed", Boolean.valueOf(sendAllowed));
}
// Set the flag on this handler
_sendAllowedOnTargetForeignBus = Boolean.valueOf(se... | [
"public",
"void",
"setForeignBusSendAllowed",
"(",
"boolean",
"sendAllowed",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"setFore... | Set the Foreign Bus Level sendAllowed flag
@param sendAllowed | [
"Set",
"the",
"Foreign",
"Bus",
"Level",
"sendAllowed",
"flag"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractDestinationHandler.java#L651-L680 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java | ManagedCompletableFuture.failedFuture | @Trivial
public static <U> CompletableFuture<U> failedFuture(Throwable x) {
throw new UnsupportedOperationException(Tr.formatMessage(tc, "CWWKC1156.not.supported", "ManagedExecutor.failedFuture"));
} | java | @Trivial
public static <U> CompletableFuture<U> failedFuture(Throwable x) {
throw new UnsupportedOperationException(Tr.formatMessage(tc, "CWWKC1156.not.supported", "ManagedExecutor.failedFuture"));
} | [
"@",
"Trivial",
"public",
"static",
"<",
"U",
">",
"CompletableFuture",
"<",
"U",
">",
"failedFuture",
"(",
"Throwable",
"x",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
"Tr",
".",
"formatMessage",
"(",
"tc",
",",
"\"CWWKC1156.not.supported\"... | Because CompletableFuture.failedFuture is static, this is not a true override.
It will be difficult for the user to invoke this method because they would need to get the class
of the CompletableFuture implementation and locate the static failedFuture method on that.
@throws UnsupportedOperationException directing the ... | [
"Because",
"CompletableFuture",
".",
"failedFuture",
"is",
"static",
"this",
"is",
"not",
"a",
"true",
"override",
".",
"It",
"will",
"be",
"difficult",
"for",
"the",
"user",
"to",
"invoke",
"this",
"method",
"because",
"they",
"would",
"need",
"to",
"get",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java#L354-L357 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java | ManagedCompletableFuture.failedStage | @Trivial
public static <U> CompletionStage<U> failedStage(Throwable x) {
throw new UnsupportedOperationException(Tr.formatMessage(tc, "CWWKC1156.not.supported", "ManagedExecutor.failedStage"));
} | java | @Trivial
public static <U> CompletionStage<U> failedStage(Throwable x) {
throw new UnsupportedOperationException(Tr.formatMessage(tc, "CWWKC1156.not.supported", "ManagedExecutor.failedStage"));
} | [
"@",
"Trivial",
"public",
"static",
"<",
"U",
">",
"CompletionStage",
"<",
"U",
">",
"failedStage",
"(",
"Throwable",
"x",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
"Tr",
".",
"formatMessage",
"(",
"tc",
",",
"\"CWWKC1156.not.supported\"",
... | Because CompletableFuture.failedStage is static, this is not a true override.
It will be difficult for the user to invoke this method because they would need to get the class
of the CompletableFuture implementation and locate the static failedStage method on that.
@throws UnsupportedOperationException directing the us... | [
"Because",
"CompletableFuture",
".",
"failedStage",
"is",
"static",
"this",
"is",
"not",
"a",
"true",
"override",
".",
"It",
"will",
"be",
"difficult",
"for",
"the",
"user",
"to",
"invoke",
"this",
"method",
"because",
"they",
"would",
"need",
"to",
"get",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java#L387-L390 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java | ManagedCompletableFuture.newIncompleteFuture | public static <T> CompletableFuture<T> newIncompleteFuture(Executor executor) {
if (JAVA8)
return new ManagedCompletableFuture<T>(new CompletableFuture<T>(), executor, null);
else
return new ManagedCompletableFuture<T>(executor, null);
} | java | public static <T> CompletableFuture<T> newIncompleteFuture(Executor executor) {
if (JAVA8)
return new ManagedCompletableFuture<T>(new CompletableFuture<T>(), executor, null);
else
return new ManagedCompletableFuture<T>(executor, null);
} | [
"public",
"static",
"<",
"T",
">",
"CompletableFuture",
"<",
"T",
">",
"newIncompleteFuture",
"(",
"Executor",
"executor",
")",
"{",
"if",
"(",
"JAVA8",
")",
"return",
"new",
"ManagedCompletableFuture",
"<",
"T",
">",
"(",
"new",
"CompletableFuture",
"<",
"T... | Construct a new incomplete CompletableFuture that is backed by the specified executor.
@param executor the default asynchronous execution facility for the new CompletableFuture.
@return incomplete completable future where the specified executor is the default asynchronous execution facility. | [
"Construct",
"a",
"new",
"incomplete",
"CompletableFuture",
"that",
"is",
"backed",
"by",
"the",
"specified",
"executor",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java#L424-L429 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java | ManagedCompletableFuture.runAsync | @Trivial
public static CompletableFuture<Void> runAsync(Runnable action) {
throw new UnsupportedOperationException(Tr.formatMessage(tc, "CWWKC1156.not.supported", "ManagedExecutor.runAsync"));
} | java | @Trivial
public static CompletableFuture<Void> runAsync(Runnable action) {
throw new UnsupportedOperationException(Tr.formatMessage(tc, "CWWKC1156.not.supported", "ManagedExecutor.runAsync"));
} | [
"@",
"Trivial",
"public",
"static",
"CompletableFuture",
"<",
"Void",
">",
"runAsync",
"(",
"Runnable",
"action",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
"Tr",
".",
"formatMessage",
"(",
"tc",
",",
"\"CWWKC1156.not.supported\"",
",",
"\"Man... | Because CompletableFuture.runAsync is static, this is not a true override.
It will be difficult for the user to invoke this method because they would need to get the class
of the CompletableFuture implementation and locate the static runAsync method on that.
@throws UnsupportedOperationException directing the user to ... | [
"Because",
"CompletableFuture",
".",
"runAsync",
"is",
"static",
"this",
"is",
"not",
"a",
"true",
"override",
".",
"It",
"will",
"be",
"difficult",
"for",
"the",
"user",
"to",
"invoke",
"this",
"method",
"because",
"they",
"would",
"need",
"to",
"get",
"t... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java#L438-L441 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java | ManagedCompletableFuture.supplyAsync | @Trivial
public static <U> CompletableFuture<U> supplyAsync(Supplier<U> action) {
throw new UnsupportedOperationException(Tr.formatMessage(tc, "CWWKC1156.not.supported", "ManagedExecutor.supplyAsync"));
} | java | @Trivial
public static <U> CompletableFuture<U> supplyAsync(Supplier<U> action) {
throw new UnsupportedOperationException(Tr.formatMessage(tc, "CWWKC1156.not.supported", "ManagedExecutor.supplyAsync"));
} | [
"@",
"Trivial",
"public",
"static",
"<",
"U",
">",
"CompletableFuture",
"<",
"U",
">",
"supplyAsync",
"(",
"Supplier",
"<",
"U",
">",
"action",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
"Tr",
".",
"formatMessage",
"(",
"tc",
",",
"\"C... | Because CompletableFuture.supplyAsync is static, this is not a true override.
It will be difficult for the user to invoke this method because they would need to get the class
of the CompletableFuture implementation and locate the static supplyAsync method on that.
@throws UnsupportedOperationException directing the us... | [
"Because",
"CompletableFuture",
".",
"supplyAsync",
"is",
"static",
"this",
"is",
"not",
"a",
"true",
"override",
".",
"It",
"will",
"be",
"difficult",
"for",
"the",
"user",
"to",
"invoke",
"this",
"method",
"because",
"they",
"would",
"need",
"to",
"get",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java#L490-L493 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java | ManagedCompletableFuture.captureThreadContext | private ThreadContextDescriptor captureThreadContext(Executor executor) {
WSManagedExecutorService managedExecutor = defaultExecutor instanceof WSManagedExecutorService //
? (WSManagedExecutorService) defaultExecutor //
: executor != defaultExecutor && executor in... | java | private ThreadContextDescriptor captureThreadContext(Executor executor) {
WSManagedExecutorService managedExecutor = defaultExecutor instanceof WSManagedExecutorService //
? (WSManagedExecutorService) defaultExecutor //
: executor != defaultExecutor && executor in... | [
"private",
"ThreadContextDescriptor",
"captureThreadContext",
"(",
"Executor",
"executor",
")",
"{",
"WSManagedExecutorService",
"managedExecutor",
"=",
"defaultExecutor",
"instanceof",
"WSManagedExecutorService",
"//",
"?",
"(",
"WSManagedExecutorService",
")",
"defaultExecuto... | Captures thread context, if possible, first based on the default asynchronous execution facility,
otherwise based on the specified executor. If neither of these executors are a managed executor,
then thread context is not captured.
@param executor executor argument that is supplied when creating a dependent stage.
@re... | [
"Captures",
"thread",
"context",
"if",
"possible",
"first",
"based",
"on",
"the",
"default",
"asynchronous",
"execution",
"facility",
"otherwise",
"based",
"on",
"the",
"specified",
"executor",
".",
"If",
"neither",
"of",
"these",
"executors",
"are",
"a",
"manag... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java#L698-L711 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java | ManagedCompletableFuture.supportsAsync | @Trivial
private final static FutureRefExecutor supportsAsync(Executor executor) {
if (executor instanceof ExecutorService)
return new FutureRefExecutor((ExecutorService) executor); // valid
if (executor instanceof UnusableExecutor)
throw new UnsupportedOperationException(); ... | java | @Trivial
private final static FutureRefExecutor supportsAsync(Executor executor) {
if (executor instanceof ExecutorService)
return new FutureRefExecutor((ExecutorService) executor); // valid
if (executor instanceof UnusableExecutor)
throw new UnsupportedOperationException(); ... | [
"@",
"Trivial",
"private",
"final",
"static",
"FutureRefExecutor",
"supportsAsync",
"(",
"Executor",
"executor",
")",
"{",
"if",
"(",
"executor",
"instanceof",
"ExecutorService",
")",
"return",
"new",
"FutureRefExecutor",
"(",
"(",
"ExecutorService",
")",
"executor"... | Convenience method to validate that an executor supports running asynchronously
and to wrap the executor, if an ExecutorService, with FutureRefExecutor.
This method is named supportsAsync to make failure stacks more meaningful to users.
@param executor executor instance supplied to *Async methods.
@return FutureRefExe... | [
"Convenience",
"method",
"to",
"validate",
"that",
"an",
"executor",
"supports",
"running",
"asynchronously",
"and",
"to",
"wrap",
"the",
"executor",
"if",
"an",
"ExecutorService",
"with",
"FutureRefExecutor",
".",
"This",
"method",
"is",
"named",
"supportsAsync",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletableFuture.java#L1365-L1372 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.audit.file/src/com/ibm/ws/security/audit/logutils/FileLogUtils.java | FileLogUtils.validateDirectory | static File validateDirectory(final File directory) {
File newDirectory = null;
try {
newDirectory = AccessController.doPrivileged(new java.security.PrivilegedExceptionAction<File>() {
@Override
public File run() throws Exception {
boolea... | java | static File validateDirectory(final File directory) {
File newDirectory = null;
try {
newDirectory = AccessController.doPrivileged(new java.security.PrivilegedExceptionAction<File>() {
@Override
public File run() throws Exception {
boolea... | [
"static",
"File",
"validateDirectory",
"(",
"final",
"File",
"directory",
")",
"{",
"File",
"newDirectory",
"=",
"null",
";",
"try",
"{",
"newDirectory",
"=",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"java",
".",
"security",
".",
"PrivilegedException... | This method will create the directory if it does not exist,
ensuring the specified location is writable.
@param The new directory location
@return A valid/accessible/created directory or null | [
"This",
"method",
"will",
"create",
"the",
"directory",
"if",
"it",
"does",
"not",
"exist",
"ensuring",
"the",
"specified",
"location",
"is",
"writable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.audit.file/src/com/ibm/ws/security/audit/logutils/FileLogUtils.java#L88-L113 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.audit.file/src/com/ibm/ws/security/audit/logutils/FileLogUtils.java | FileLogUtils.createNewFile | static File createNewFile(final FileLogSet fileLogSet) {
final File directory = fileLogSet.getDirectory();
final String fileName = fileLogSet.getFileName();
final String fileExtension = fileLogSet.getFileExtension();
File f = null;
try {
f = AccessController.doPrivil... | java | static File createNewFile(final FileLogSet fileLogSet) {
final File directory = fileLogSet.getDirectory();
final String fileName = fileLogSet.getFileName();
final String fileExtension = fileLogSet.getFileExtension();
File f = null;
try {
f = AccessController.doPrivil... | [
"static",
"File",
"createNewFile",
"(",
"final",
"FileLogSet",
"fileLogSet",
")",
"{",
"final",
"File",
"directory",
"=",
"fileLogSet",
".",
"getDirectory",
"(",
")",
";",
"final",
"String",
"fileName",
"=",
"fileLogSet",
".",
"getFileName",
"(",
")",
";",
"... | This method will create a new file with the specified name and extension in the specified directory. If a unique file is required then it will add a timestamp to the file
and if necessary a unqiue identifier to the file name.
@return The file or <code>null</code> if an error occurs
@see #getUniqueFile(File, String, St... | [
"This",
"method",
"will",
"create",
"a",
"new",
"file",
"with",
"the",
"specified",
"name",
"and",
"extension",
"in",
"the",
"specified",
"directory",
".",
"If",
"a",
"unique",
"file",
"is",
"required",
"then",
"it",
"will",
"add",
"a",
"timestamp",
"to",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.audit.file/src/com/ibm/ws/security/audit/logutils/FileLogUtils.java#L122-L141 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/MessageReader.java | MessageReader.releaseBuffers | public void releaseBuffers() {
// release buffers is desired
if (payloadBuffers != null) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "release payload buffers. number to release is: " + payloadCountOfBuffers);
}
// if the payload buffers have been set in... | java | public void releaseBuffers() {
// release buffers is desired
if (payloadBuffers != null) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, "release payload buffers. number to release is: " + payloadCountOfBuffers);
}
// if the payload buffers have been set in... | [
"public",
"void",
"releaseBuffers",
"(",
")",
"{",
"// release buffers is desired",
"if",
"(",
"payloadBuffers",
"!=",
"null",
")",
"{",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"release payload buffer... | This is never called, except in an exception case. frame buffers should be cleaned up when reset is called on the FrameReadProcessor | [
"This",
"is",
"never",
"called",
"except",
"in",
"an",
"exception",
"case",
".",
"frame",
"buffers",
"should",
"be",
"cleaned",
"up",
"when",
"reset",
"is",
"called",
"on",
"the",
"FrameReadProcessor"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/MessageReader.java#L275-L301 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/javaee/util/DDUtil.java | DDUtil.methodParamsMatch | public static boolean methodParamsMatch(List<String> typeNames, Class<?>[] types)
{
if (typeNames.size() != types.length)
{
return false;
}
for (int i = 0; i < types.length; i++)
{
String typeName = typeNames.get(i);
int typeNameEnd = type... | java | public static boolean methodParamsMatch(List<String> typeNames, Class<?>[] types)
{
if (typeNames.size() != types.length)
{
return false;
}
for (int i = 0; i < types.length; i++)
{
String typeName = typeNames.get(i);
int typeNameEnd = type... | [
"public",
"static",
"boolean",
"methodParamsMatch",
"(",
"List",
"<",
"String",
">",
"typeNames",
",",
"Class",
"<",
"?",
">",
"[",
"]",
"types",
")",
"{",
"if",
"(",
"typeNames",
".",
"size",
"(",
")",
"!=",
"types",
".",
"length",
")",
"{",
"return... | Checks if the specified method parameters object matches the specified
method parameter types.
@param parms the method parameters object
@param types the method parameter types
@return true if the object matches the types | [
"Checks",
"if",
"the",
"specified",
"method",
"parameters",
"object",
"matches",
"the",
"specified",
"method",
"parameter",
"types",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/javaee/util/DDUtil.java#L36-L66 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigExpressionEvaluator.java | ConfigExpressionEvaluator.evaluateExpression | String evaluateExpression(String expr) throws ConfigEvaluatorException {
ConfigExpressionScanner scanner = new ConfigExpressionScanner(expr);
// Expression = Arithmetic | FilterCall
// Arithmetic = Operand [( "+" | "-" | "*" | "/") Operand]*
// Operand = VarName | Long | Functi... | java | String evaluateExpression(String expr) throws ConfigEvaluatorException {
ConfigExpressionScanner scanner = new ConfigExpressionScanner(expr);
// Expression = Arithmetic | FilterCall
// Arithmetic = Operand [( "+" | "-" | "*" | "/") Operand]*
// Operand = VarName | Long | Functi... | [
"String",
"evaluateExpression",
"(",
"String",
"expr",
")",
"throws",
"ConfigEvaluatorException",
"{",
"ConfigExpressionScanner",
"scanner",
"=",
"new",
"ConfigExpressionScanner",
"(",
"expr",
")",
";",
"// Expression = Arithmetic | FilterCall",
"// Arithmetic = Operand [( ... | Evaluate a variable expression.
@param expr the expression string (for example, "x+0")
@param context
@return the result, or null if the evaluation fails because the string
cannot be parsed, a referenced property does not exist, or some
other detectable errors occurs
@throws ConfigEvaluatorException if getPropertyObje... | [
"Evaluate",
"a",
"variable",
"expression",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigExpressionEvaluator.java#L51-L89 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigExpressionEvaluator.java | ConfigExpressionEvaluator.evaluateCountExpression | private int evaluateCountExpression(Object value) {
if (value == null) {
return 0;
}
if (value.getClass().isArray()) {
return Array.getLength(value);
}
if (value instanceof Vector<?>) {
return ((Vector<?>) value).size();
}
retur... | java | private int evaluateCountExpression(Object value) {
if (value == null) {
return 0;
}
if (value.getClass().isArray()) {
return Array.getLength(value);
}
if (value instanceof Vector<?>) {
return ((Vector<?>) value).size();
}
retur... | [
"private",
"int",
"evaluateCountExpression",
"(",
"Object",
"value",
")",
"{",
"if",
"(",
"value",
"==",
"null",
")",
"{",
"return",
"0",
";",
"}",
"if",
"(",
"value",
".",
"getClass",
"(",
")",
".",
"isArray",
"(",
")",
")",
"{",
"return",
"Array",
... | Evaluates the count expression function. If the value is null, then 0 is
returned. If the value is an array, the length is returned. If the value
is a vector, the size is returned. Otherwise, 1 is returned.
@param value the value to evaluate
@return the count of the value | [
"Evaluates",
"the",
"count",
"expression",
"function",
".",
"If",
"the",
"value",
"is",
"null",
"then",
"0",
"is",
"returned",
".",
"If",
"the",
"value",
"is",
"an",
"array",
"the",
"length",
"is",
"returned",
".",
"If",
"the",
"value",
"is",
"a",
"vec... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ConfigExpressionEvaluator.java#L189-L200 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java | ServletExternalContextImpl.getRequestCookieMap | @Override
public Map<String, Object> getRequestCookieMap()
{
if (_requestCookieMap == null)
{
checkHttpServletRequest();
_requestCookieMap = new CookieMap(_httpServletRequest);
}
return _requestCookieMap;
} | java | @Override
public Map<String, Object> getRequestCookieMap()
{
if (_requestCookieMap == null)
{
checkHttpServletRequest();
_requestCookieMap = new CookieMap(_httpServletRequest);
}
return _requestCookieMap;
} | [
"@",
"Override",
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"getRequestCookieMap",
"(",
")",
"{",
"if",
"(",
"_requestCookieMap",
"==",
"null",
")",
"{",
"checkHttpServletRequest",
"(",
")",
";",
"_requestCookieMap",
"=",
"new",
"CookieMap",
"(",
"_... | would be more elegant -= Simon Lessard =- | [
"would",
"be",
"more",
"elegant",
"-",
"=",
"Simon",
"Lessard",
"=",
"-"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java#L298-L308 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java | LocalQPConsumerKey.getDefaultGetCursor | public LockingCursor getDefaultGetCursor()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getDefaultGetCursor");
LockingCursor cursor = consumerKeyFilter[0].getGetCursor();
if(keyGroup != null)
cursor = keyGroup.getDefaultGetCursor();
if (TraceC... | java | public LockingCursor getDefaultGetCursor()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getDefaultGetCursor");
LockingCursor cursor = consumerKeyFilter[0].getGetCursor();
if(keyGroup != null)
cursor = keyGroup.getDefaultGetCursor();
if (TraceC... | [
"public",
"LockingCursor",
"getDefaultGetCursor",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getDefaultGetCursor\"",
")",
";",
... | Return the getCursor for this consumer. This method is only called in the
case where messages are not classified by XD. | [
"Return",
"the",
"getCursor",
"for",
"this",
"consumer",
".",
"This",
"method",
"is",
"only",
"called",
"in",
"the",
"case",
"where",
"messages",
"are",
"not",
"classified",
"by",
"XD",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java#L372-L385 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java | LocalQPConsumerKey.chooseGetCursorIndex | private int chooseGetCursorIndex(int classification)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "chooseGetCursorIndex");
int classIndex = 0;
if(classifyingMessages)
classIndex = consumerSet.chooseGetCursorIndex(classification);
if (T... | java | private int chooseGetCursorIndex(int classification)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "chooseGetCursorIndex");
int classIndex = 0;
if(classifyingMessages)
classIndex = consumerSet.chooseGetCursorIndex(classification);
if (T... | [
"private",
"int",
"chooseGetCursorIndex",
"(",
"int",
"classification",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"chooseGetCursorInde... | Determine the index of the getCursor to use based on the classifications defined
for the ConsumerSet that a consumer belongs to. If SIB is not registered with
XD and no classification is being performed then the default index is returned
Delegates to the consumerSet if non-null, otherwise returns the
default zeroth in... | [
"Determine",
"the",
"index",
"of",
"the",
"getCursor",
"to",
"use",
"based",
"on",
"the",
"classifications",
"defined",
"for",
"the",
"ConsumerSet",
"that",
"a",
"consumer",
"belongs",
"to",
".",
"If",
"SIB",
"is",
"not",
"registered",
"with",
"XD",
"and",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java#L473-L487 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java | LocalQPConsumerKey.detach | public void detach() throws SIResourceException, SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "detach");
// Make sure we are not ready
notReady();
// Remove us from any group we are a member of
if(keyGroup !... | java | public void detach() throws SIResourceException, SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "detach");
// Make sure we are not ready
notReady();
// Remove us from any group we are a member of
if(keyGroup !... | [
"public",
"void",
"detach",
"(",
")",
"throws",
"SIResourceException",
",",
"SINotPossibleInCurrentConfigurationException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"ent... | Detach this consumer | [
"Detach",
"this",
"consumer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java#L492-L534 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java | LocalQPConsumerKey.getConnectionUuid | public SIBUuid12 getConnectionUuid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getConnectionUuid");
SibTr.exit(tc, "getConnectionUuid", connectionUuid);
}
return connectionUuid;
} | java | public SIBUuid12 getConnectionUuid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getConnectionUuid");
SibTr.exit(tc, "getConnectionUuid", connectionUuid);
}
return connectionUuid;
} | [
"public",
"SIBUuid12",
"getConnectionUuid",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getConnectionUuid\"",
")",
";",
"... | Return the consumer's connection Uuid | [
"Return",
"the",
"consumer",
"s",
"connection",
"Uuid"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java#L539-L547 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java | LocalQPConsumerKey.requiresRecovery | public boolean requiresRecovery(SIMPMessage msg)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "requiresRecovery", new Object[] { msg });
boolean recoverable;
Reliability msgReliability = msg.getReliability();
recoverable = msgReliability.compareTo(unrecove... | java | public boolean requiresRecovery(SIMPMessage msg)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "requiresRecovery", new Object[] { msg });
boolean recoverable;
Reliability msgReliability = msg.getReliability();
recoverable = msgReliability.compareTo(unrecove... | [
"public",
"boolean",
"requiresRecovery",
"(",
"SIMPMessage",
"msg",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"requiresRecovery\"",
... | Determine if this consumer will require this message to be recoverable
@param msg message to be delivered
@return true if recovery is required
@throws SIStoreException | [
"Determine",
"if",
"this",
"consumer",
"will",
"require",
"this",
"message",
"to",
"be",
"recoverable"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java#L568-L582 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java | LocalQPConsumerKey.markNotReady | public void markNotReady()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "markNotReady");
ready = false;
if(keyGroup != null)
keyGroup.markNotReady();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "markNotReady"... | java | public void markNotReady()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "markNotReady");
ready = false;
if(keyGroup != null)
keyGroup.markNotReady();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "markNotReady"... | [
"public",
"void",
"markNotReady",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"markNotReady\"",
")",
";",
"ready",
"=",
"fals... | Make this key not ready | [
"Make",
"this",
"key",
"not",
"ready"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java#L678-L690 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java | LocalQPConsumerKey.getParent | public JSConsumerKey getParent()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getParent");
JSConsumerKey key = this;
if(keyGroup != null)
key = keyGroup;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getParen... | java | public JSConsumerKey getParent()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getParent");
JSConsumerKey key = this;
if(keyGroup != null)
key = keyGroup;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "getParen... | [
"public",
"JSConsumerKey",
"getParent",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getParent\"",
")",
";",
"JSConsumerKey",
"... | Return this key's parent if it is a member of a keyGroup | [
"Return",
"this",
"key",
"s",
"parent",
"if",
"it",
"is",
"a",
"member",
"of",
"a",
"keyGroup"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java#L787-L800 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java | LocalQPConsumerKey.start | public void start()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "start");
if(!started)
{
started = true;
if(keyGroup != null)
keyGroup.startMember();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.ex... | java | public void start()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "start");
if(!started)
{
started = true;
if(keyGroup != null)
keyGroup.startMember();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.ex... | [
"public",
"void",
"start",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"start\"",
")",
";",
"if",
"(",
"!",
"started",
")... | The ConsumerKey doesn't actually care if the consumer is started but its
ConsumerKey does | [
"The",
"ConsumerKey",
"doesn",
"t",
"actually",
"care",
"if",
"the",
"consumer",
"is",
"started",
"but",
"its",
"ConsumerKey",
"does"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java#L806-L820 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java | LocalQPConsumerKey.stop | public void stop()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "stop");
if(started)
{
started = false;
if(keyGroup != null)
keyGroup.stopMember();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(... | java | public void stop()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "stop");
if(started)
{
started = false;
if(keyGroup != null)
keyGroup.stopMember();
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(... | [
"public",
"void",
"stop",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"stop\"",
")",
";",
"if",
"(",
"started",
")",
"{",... | The ConsumerKey doesn't actually care if the consumer is stopped but its
ConsumerKey does | [
"The",
"ConsumerKey",
"doesn",
"t",
"actually",
"care",
"if",
"the",
"consumer",
"is",
"stopped",
"but",
"its",
"ConsumerKey",
"does"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java#L826-L840 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java | LocalQPConsumerKey.createNewFiltersAndCursors | private void createNewFiltersAndCursors(ItemStream itemStream)
throws SIResourceException, MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createNewFiltersAndCursors", itemStream);
LockingCursor cursor = null;
// Instantiate a new... | java | private void createNewFiltersAndCursors(ItemStream itemStream)
throws SIResourceException, MessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createNewFiltersAndCursors", itemStream);
LockingCursor cursor = null;
// Instantiate a new... | [
"private",
"void",
"createNewFiltersAndCursors",
"(",
"ItemStream",
"itemStream",
")",
"throws",
"SIResourceException",
",",
"MessageStoreException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
... | Create the filters and cursors for this Key. If XD has registered a
MessageController we'll need a cursor-filter pair for each classification.
@throws SIResourceException
@throws MessageStoreException | [
"Create",
"the",
"filters",
"and",
"cursors",
"for",
"this",
"Key",
".",
"If",
"XD",
"has",
"registered",
"a",
"MessageController",
"we",
"ll",
"need",
"a",
"cursor",
"-",
"filter",
"pair",
"for",
"each",
"classification",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/LocalQPConsumerKey.java#L972-L1014 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsFactoryFactoryImpl.java | JmsFactoryFactoryImpl.createConnectionFactory | @Override
public JmsConnectionFactory createConnectionFactory() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createConnectionFactory");
JmsConnectionFactory jmscf = null;
// get a jca managed connection factory, wh... | java | @Override
public JmsConnectionFactory createConnectionFactory() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createConnectionFactory");
JmsConnectionFactory jmscf = null;
// get a jca managed connection factory, wh... | [
"@",
"Override",
"public",
"JmsConnectionFactory",
"createConnectionFactory",
"(",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"("... | This method is called by the application to retrieve its first
ConnectionFactory object. | [
"This",
"method",
"is",
"called",
"by",
"the",
"application",
"to",
"retrieve",
"its",
"first",
"ConnectionFactory",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsFactoryFactoryImpl.java#L78-L132 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsFactoryFactoryImpl.java | JmsFactoryFactoryImpl.createQueueConnectionFactory | @Override
public JmsQueueConnectionFactory createQueueConnectionFactory() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createQueueConnectionFactory");
JmsQueueConnectionFactory jmsqcf = null;
// get a jca managed q... | java | @Override
public JmsQueueConnectionFactory createQueueConnectionFactory() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createQueueConnectionFactory");
JmsQueueConnectionFactory jmsqcf = null;
// get a jca managed q... | [
"@",
"Override",
"public",
"JmsQueueConnectionFactory",
"createQueueConnectionFactory",
"(",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"ent... | This method is called by the application to retrieve its first
QueueConnectionFactory object. | [
"This",
"method",
"is",
"called",
"by",
"the",
"application",
"to",
"retrieve",
"its",
"first",
"QueueConnectionFactory",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsFactoryFactoryImpl.java#L138-L176 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsFactoryFactoryImpl.java | JmsFactoryFactoryImpl.createTopicConnectionFactory | @Override
public JmsTopicConnectionFactory createTopicConnectionFactory() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createTopicConnectionFactory");
JmsTopicConnectionFactory jmstcf = null;
// get a jca managed t... | java | @Override
public JmsTopicConnectionFactory createTopicConnectionFactory() throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createTopicConnectionFactory");
JmsTopicConnectionFactory jmstcf = null;
// get a jca managed t... | [
"@",
"Override",
"public",
"JmsTopicConnectionFactory",
"createTopicConnectionFactory",
"(",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"ent... | This method is called by the application to retrieve its first
TopicConnectionFactory object. | [
"This",
"method",
"is",
"called",
"by",
"the",
"application",
"to",
"retrieve",
"its",
"first",
"TopicConnectionFactory",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsFactoryFactoryImpl.java#L182-L220 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsFactoryFactoryImpl.java | JmsFactoryFactoryImpl.createQueue | @Override
public JmsQueue createQueue(String name) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createQueue", name);
JmsQueue queue = null;
// if name string is null, empty or just "queue://", throw exception
... | java | @Override
public JmsQueue createQueue(String name) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createQueue", name);
JmsQueue queue = null;
// if name string is null, empty or just "queue://", throw exception
... | [
"@",
"Override",
"public",
"JmsQueue",
"createQueue",
"(",
"String",
"name",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
... | This method is called by the application to create a jms administered
queue object. | [
"This",
"method",
"is",
"called",
"by",
"the",
"application",
"to",
"create",
"a",
"jms",
"administered",
"queue",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsFactoryFactoryImpl.java#L304-L336 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsFactoryFactoryImpl.java | JmsFactoryFactoryImpl.createTopic | @Override
public JmsTopic createTopic(String name) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createTopic", name);
JmsTopic topic = null;
// if name string is null throw exception
if (name == null) {
... | java | @Override
public JmsTopic createTopic(String name) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "createTopic", name);
JmsTopic topic = null;
// if name string is null throw exception
if (name == null) {
... | [
"@",
"Override",
"public",
"JmsTopic",
"createTopic",
"(",
"String",
"name",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
... | This method is called by the application to create a jms administered
topic object. | [
"This",
"method",
"is",
"called",
"by",
"the",
"application",
"to",
"create",
"a",
"jms",
"administered",
"topic",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsFactoryFactoryImpl.java#L342-L374 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/EqualityMatcher.java | EqualityMatcher.handlePut | void handlePut(
SimpleTest test,
Conjunction selector,
MatchTarget object,
InternTable subExpr)
throws MatchingException {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "handlePut",
new Object[] {test,selector,object,subExpr} );
Object value = test.getValue();
if... | java | void handlePut(
SimpleTest test,
Conjunction selector,
MatchTarget object,
InternTable subExpr)
throws MatchingException {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "handlePut",
new Object[] {test,selector,object,subExpr} );
Object value = test.getValue();
if... | [
"void",
"handlePut",
"(",
"SimpleTest",
"test",
",",
"Conjunction",
"selector",
",",
"MatchTarget",
"object",
",",
"InternTable",
"subExpr",
")",
"throws",
"MatchingException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"tc",
".",
"entry",
"... | Implement handlePut. | [
"Implement",
"handlePut",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/EqualityMatcher.java#L62-L77 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/EqualityMatcher.java | EqualityMatcher.handleEqualityPut | void handleEqualityPut(Object value, Conjunction selector,
MatchTarget object, InternTable subExpr) throws MatchingException {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "handleEqualityPut",
new Object[] {value,selector,object,subExpr} );
ContentMatcher next =
(ContentMatcher) ((... | java | void handleEqualityPut(Object value, Conjunction selector,
MatchTarget object, InternTable subExpr) throws MatchingException {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "handleEqualityPut",
new Object[] {value,selector,object,subExpr} );
ContentMatcher next =
(ContentMatcher) ((... | [
"void",
"handleEqualityPut",
"(",
"Object",
"value",
",",
"Conjunction",
"selector",
",",
"MatchTarget",
"object",
",",
"InternTable",
"subExpr",
")",
"throws",
"MatchingException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"tc",
".",
"entry"... | Perform the handlePut function when the test is an equality test
@param value the value of the SimpleTest's comparand, perhaps wrapped
(e.g. by NumericMatcher)
@param selector the Conjunction representing all or part of a selector
@param object the MatchTarget to install
@param subExpr the InternTable used to assign un... | [
"Perform",
"the",
"handlePut",
"function",
"when",
"the",
"test",
"is",
"an",
"equality",
"test"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/EqualityMatcher.java#L86-L103 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/EqualityMatcher.java | EqualityMatcher.handleEqualityRemove | void handleEqualityRemove(Object value, Conjunction selector,
MatchTarget object, InternTable subExpr, OrdinalPosition parentId) throws MatchingException {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "handleEqualityRemove",
new Object[] {value,selector,object,subExpr} );
ContentMatcher ne... | java | void handleEqualityRemove(Object value, Conjunction selector,
MatchTarget object, InternTable subExpr, OrdinalPosition parentId) throws MatchingException {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "handleEqualityRemove",
new Object[] {value,selector,object,subExpr} );
ContentMatcher ne... | [
"void",
"handleEqualityRemove",
"(",
"Object",
"value",
",",
"Conjunction",
"selector",
",",
"MatchTarget",
"object",
",",
"InternTable",
"subExpr",
",",
"OrdinalPosition",
"parentId",
")",
"throws",
"MatchingException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
... | Perform the handleRemove function when the test is an equality test
@param value the value of the SimpleTest's comparand, perhaps wrapped
(e.g. by NumericMatcher)
@param selector the Conjunction representing all or part of a selector
@param object the MatchTarget to remove
@param subExpr the InternTable used to assign ... | [
"Perform",
"the",
"handleRemove",
"function",
"when",
"the",
"test",
"is",
"an",
"equality",
"test"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/EqualityMatcher.java#L171-L185 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/EqualityMatcher.java | EqualityMatcher.isEmpty | boolean isEmpty() {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "isEmpty");
boolean ans = super.isEmpty() && !haveEqualityMatches();
if (tc.isEntryEnabled())
tc.exit(this,cclass, "isEmpty", new Boolean(ans));
return ans;
} | java | boolean isEmpty() {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "isEmpty");
boolean ans = super.isEmpty() && !haveEqualityMatches();
if (tc.isEntryEnabled())
tc.exit(this,cclass, "isEmpty", new Boolean(ans));
return ans;
} | [
"boolean",
"isEmpty",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"tc",
".",
"entry",
"(",
"this",
",",
"cclass",
",",
"\"isEmpty\"",
")",
";",
"boolean",
"ans",
"=",
"super",
".",
"isEmpty",
"(",
")",
"&&",
"!",
"haveEqua... | Override isEmpty to check whether children is empty | [
"Override",
"isEmpty",
"to",
"check",
"whether",
"children",
"is",
"empty"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/EqualityMatcher.java#L188-L195 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/EqualityMatcher.java | EqualityMatcher.nextMatcher | ContentMatcher nextMatcher(Conjunction selector, ContentMatcher oldMatcher) {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "nextMatcher", "selector: "+selector+", oldMatcher: "+oldMatcher);
ContentMatcher ans;
if (!cacheing)
ans = super.nextMatcher(selector, oldMatcher);
else if (oldMatche... | java | ContentMatcher nextMatcher(Conjunction selector, ContentMatcher oldMatcher) {
if (tc.isEntryEnabled())
tc.entry(this,cclass, "nextMatcher", "selector: "+selector+", oldMatcher: "+oldMatcher);
ContentMatcher ans;
if (!cacheing)
ans = super.nextMatcher(selector, oldMatcher);
else if (oldMatche... | [
"ContentMatcher",
"nextMatcher",
"(",
"Conjunction",
"selector",
",",
"ContentMatcher",
"oldMatcher",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"tc",
".",
"entry",
"(",
"this",
",",
"cclass",
",",
"\"nextMatcher\"",
",",
"\"selector: \""... | Override nextMatcher to handle possibility of cacheing | [
"Override",
"nextMatcher",
"to",
"handle",
"possibility",
"of",
"cacheing"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/EqualityMatcher.java#L210-L223 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java | ExceptionDestinationHandlerImpl.setDestination | public void setDestination(DestinationHandler originalDestination)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setDestination", originalDestination);
_originalDestination = originalDestination;
if (TraceComponent.isAnyTracingEnabled() && ... | java | public void setDestination(DestinationHandler originalDestination)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setDestination", originalDestination);
_originalDestination = originalDestination;
if (TraceComponent.isAnyTracingEnabled() && ... | [
"public",
"void",
"setDestination",
"(",
"DestinationHandler",
"originalDestination",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"setDe... | Sets the destination that could not be delivered to.
@param destination The destination to set | [
"Sets",
"the",
"destination",
"that",
"could",
"not",
"be",
"delivered",
"to",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java#L233-L242 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java | ExceptionDestinationHandlerImpl.setDestination | @Override
public void setDestination(SIDestinationAddress destinationAddr)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setDestination", destinationAddr);
if (destinationAddr != null)
{
try
{
_ori... | java | @Override
public void setDestination(SIDestinationAddress destinationAddr)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setDestination", destinationAddr);
if (destinationAddr != null)
{
try
{
_ori... | [
"@",
"Override",
"public",
"void",
"setDestination",
"(",
"SIDestinationAddress",
"destinationAddr",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc"... | Sets the destination that could not be delivered to. Looks up the destination
given its name.
@param destinationName - The destination to set | [
"Sets",
"the",
"destination",
"that",
"could",
"not",
"be",
"delivered",
"to",
".",
"Looks",
"up",
"the",
"destination",
"given",
"its",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java#L251-L279 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java | ExceptionDestinationHandlerImpl.checkCanExceptionMessage | public int checkCanExceptionMessage()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkCanExceptionMessage");
// Return code
int rc = DestinationHandler.OUTPUT_HANDLER_NOT_FOUND;
String newExceptionDestination = null;
boo... | java | public int checkCanExceptionMessage()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkCanExceptionMessage");
// Return code
int rc = DestinationHandler.OUTPUT_HANDLER_NOT_FOUND;
String newExceptionDestination = null;
boo... | [
"public",
"int",
"checkCanExceptionMessage",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"checkCanExceptionMessage\"",
")",
";",
... | Check whether it will be possible to place a message on the exception destination.
@return rc reason code | [
"Check",
"whether",
"it",
"will",
"be",
"possible",
"to",
"place",
"a",
"message",
"on",
"the",
"exception",
"destination",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java#L286-L356 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java | ExceptionDestinationHandlerImpl.handleUndeliverableMessage | @Override
public UndeliverableReturnCode handleUndeliverableMessage(
SIBusMessage msg,
String alternateUser,
TransactionCommon tra... | java | @Override
public UndeliverableReturnCode handleUndeliverableMessage(
SIBusMessage msg,
String alternateUser,
TransactionCommon tra... | [
"@",
"Override",
"public",
"UndeliverableReturnCode",
"handleUndeliverableMessage",
"(",
"SIBusMessage",
"msg",
",",
"String",
"alternateUser",
",",
"TransactionCommon",
"tran",
",",
"int",
"exceptionReason",
",",
"String",
"[",
"]",
"exceptionStrings",
")",
"{",
"// ... | Wrapper method for handleUndeliverableMessage. This version will be called
from an external component via the
com.ibm.ws.sib.processor.ExceptionDestinationHandler interface. E.g. we
need to access this routine from the MQLink in the comms component.
@param msg - The undeliverable message
@param tran - The transaction ... | [
"Wrapper",
"method",
"for",
"handleUndeliverableMessage",
".",
"This",
"version",
"will",
"be",
"called",
"from",
"an",
"external",
"component",
"via",
"the",
"com",
".",
"ibm",
".",
"ws",
".",
"sib",
".",
"processor",
".",
"ExceptionDestinationHandler",
"interf... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java#L428-L440 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java | ExceptionDestinationHandlerImpl.checkMessage | private UndeliverableReturnCode checkMessage(SIMPMessage message)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkMessage", message);
UndeliverableReturnCode rc = UndeliverableReturnCode.OK;
// F001333:E3
// If the message's rel... | java | private UndeliverableReturnCode checkMessage(SIMPMessage message)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkMessage", message);
UndeliverableReturnCode rc = UndeliverableReturnCode.OK;
// F001333:E3
// If the message's rel... | [
"private",
"UndeliverableReturnCode",
"checkMessage",
"(",
"SIMPMessage",
"message",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"checkM... | Checks that a message is valid for delivery to an exception
destination
@param message
@return | [
"Checks",
"that",
"a",
"message",
"is",
"valid",
"for",
"delivery",
"to",
"an",
"exception",
"destination"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java#L1763-L1817 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java | ExceptionDestinationHandlerImpl.checkExceptionDestinationAccess | private AccessResult checkExceptionDestinationAccess(JsMessage msg,
ConnectionImpl conn,
String alternateUser,
boolean defaultInUse)
{
if... | java | private AccessResult checkExceptionDestinationAccess(JsMessage msg,
ConnectionImpl conn,
String alternateUser,
boolean defaultInUse)
{
if... | [
"private",
"AccessResult",
"checkExceptionDestinationAccess",
"(",
"JsMessage",
"msg",
",",
"ConnectionImpl",
"conn",
",",
"String",
"alternateUser",
",",
"boolean",
"defaultInUse",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"... | Checks authority to access exception destination.
@param message
@return | [
"Checks",
"authority",
"to",
"access",
"exception",
"destination",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java#L1825-L1974 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java | ExceptionDestinationHandlerImpl.handleAccessDenied | private void handleAccessDenied(AccessResult result,
JsMessage msg,
String alternateUser)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "handleAccessDenied", new Object[] { result,
... | java | private void handleAccessDenied(AccessResult result,
JsMessage msg,
String alternateUser)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "handleAccessDenied", new Object[] { result,
... | [
"private",
"void",
"handleAccessDenied",
"(",
"AccessResult",
"result",
",",
"JsMessage",
"msg",
",",
"String",
"alternateUser",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Sib... | Fire an event if eventing is enabled and write an audit record.
@param result
@param msg
@param alternateUser | [
"Fire",
"an",
"event",
"if",
"eventing",
"is",
"enabled",
"and",
"write",
"an",
"audit",
"record",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java#L1983-L2036 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java | ExceptionDestinationHandlerImpl.fireMessageExceptionedEvent | private void fireMessageExceptionedEvent(String apiMsgId,
SIMPMessage message,
int exceptionReason)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc,
... | java | private void fireMessageExceptionedEvent(String apiMsgId,
SIMPMessage message,
int exceptionReason)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc,
... | [
"private",
"void",
"fireMessageExceptionedEvent",
"(",
"String",
"apiMsgId",
",",
"SIMPMessage",
"message",
",",
"int",
"exceptionReason",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
"... | Fire an event notification of type TYPE_SIB_MESSAGE_EXCEPTIONED
@param newState | [
"Fire",
"an",
"event",
"notification",
"of",
"type",
"TYPE_SIB_MESSAGE_EXCEPTIONED"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ExceptionDestinationHandlerImpl.java#L2093-L2168 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebGroup.java | WebGroup.decodeUri | public static String decodeUri(String url)
{
int index1 = url.indexOf(sessUrlRewritePrefix);
int index2 = url.indexOf(qMark);
String tmp = null;
if (index2 != -1 && index2 > index1)
{
tmp = url.substring(index2);
}
if (index1 != -1)
{
url = url.substring(0, index1);
if (tmp != null)
{
... | java | public static String decodeUri(String url)
{
int index1 = url.indexOf(sessUrlRewritePrefix);
int index2 = url.indexOf(qMark);
String tmp = null;
if (index2 != -1 && index2 > index1)
{
tmp = url.substring(index2);
}
if (index1 != -1)
{
url = url.substring(0, index1);
if (tmp != null)
{
... | [
"public",
"static",
"String",
"decodeUri",
"(",
"String",
"url",
")",
"{",
"int",
"index1",
"=",
"url",
".",
"indexOf",
"(",
"sessUrlRewritePrefix",
")",
";",
"int",
"index2",
"=",
"url",
".",
"indexOf",
"(",
"qMark",
")",
";",
"String",
"tmp",
"=",
"n... | Strips out the sessionId only form the URI
@param url
@return | [
"Strips",
"out",
"the",
"sessionId",
"only",
"form",
"the",
"URI"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/webapp/WebGroup.java#L395-L414 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletFactory.java | FaceletFactory.setInstance | public static final void setInstance(FaceletFactory factory)
{
if (factory == null)
{
instance.remove();
}
else
{
instance.set(factory);
}
} | java | public static final void setInstance(FaceletFactory factory)
{
if (factory == null)
{
instance.remove();
}
else
{
instance.set(factory);
}
} | [
"public",
"static",
"final",
"void",
"setInstance",
"(",
"FaceletFactory",
"factory",
")",
"{",
"if",
"(",
"factory",
"==",
"null",
")",
"{",
"instance",
".",
"remove",
"(",
")",
";",
"}",
"else",
"{",
"instance",
".",
"set",
"(",
"factory",
")",
";",
... | Set the static instance
@param factory | [
"Set",
"the",
"static",
"instance"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/FaceletFactory.java#L165-L175 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.