repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java | AbstractTreeMap.containsValue | public boolean containsValue(Object value) throws ObjectManagerException {
if (getRoot() != null)
return containsValue(getRoot(), value);
return false;
} | java | public boolean containsValue(Object value) throws ObjectManagerException {
if (getRoot() != null)
return containsValue(getRoot(), value);
return false;
} | [
"public",
"boolean",
"containsValue",
"(",
"Object",
"value",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"getRoot",
"(",
")",
"!=",
"null",
")",
"return",
"containsValue",
"(",
"getRoot",
"(",
")",
",",
"value",
")",
";",
"return",
"false",
"... | Searches this TreeMap for the specified value.
@param value the object to search for
@return true if <code>value</code> is a value of this TreeMap, false
otherwise | [
"Searches",
"this",
"TreeMap",
"for",
"the",
"specified",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java#L618-L622 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java | AbstractTreeMap.entrySet | public Set entrySet() throws ObjectManagerException {
return new AbstractSetView() {
public long size() {
return size;
}
public boolean contains(Object object) throws ObjectManagerException {
if (object instanceof Map.Entry) {
... | java | public Set entrySet() throws ObjectManagerException {
return new AbstractSetView() {
public long size() {
return size;
}
public boolean contains(Object object) throws ObjectManagerException {
if (object instanceof Map.Entry) {
... | [
"public",
"Set",
"entrySet",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"return",
"new",
"AbstractSetView",
"(",
")",
"{",
"public",
"long",
"size",
"(",
")",
"{",
"return",
"size",
";",
"}",
"public",
"boolean",
"contains",
"(",
"Object",
"object",
... | Answers a Set of the mappings contained in this TreeMap. Each element in
the set is a Map.Entry. The set is backed by this TreeMap so changes to
one are relected by the other. The set does not support adding.
@return a Set of the mappings | [
"Answers",
"a",
"Set",
"of",
"the",
"mappings",
"contained",
"in",
"this",
"TreeMap",
".",
"Each",
"element",
"in",
"the",
"set",
"is",
"a",
"Map",
".",
"Entry",
".",
"The",
"set",
"is",
"backed",
"by",
"this",
"TreeMap",
"so",
"changes",
"to",
"one",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java#L643-L666 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java | AbstractTreeMap.get | public Object get(Object key) throws ObjectManagerException {
Entry node = find(key);
if (node != null)
return node.value;
return null;
} | java | public Object get(Object key) throws ObjectManagerException {
Entry node = find(key);
if (node != null)
return node.value;
return null;
} | [
"public",
"Object",
"get",
"(",
"Object",
"key",
")",
"throws",
"ObjectManagerException",
"{",
"Entry",
"node",
"=",
"find",
"(",
"key",
")",
";",
"if",
"(",
"node",
"!=",
"null",
")",
"return",
"node",
".",
"value",
";",
"return",
"null",
";",
"}"
] | Answers the value of the mapping with the specified key.
@param key the key
@return the value of the mapping with the specified key
@exception ClassCastException
when the key cannot be compared with the keys in this
TreeMap
@exception NullPointerException
when the key is null and the comparator cannot handle null | [
"Answers",
"the",
"value",
"of",
"the",
"mapping",
"with",
"the",
"specified",
"key",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java#L821-L826 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java | AbstractTreeMap.headMap | public SortedMap headMap(Object endKey) {
// Check for errors
if (comparator == null)
((Comparable) endKey).compareTo(endKey);
else
comparator.compare(endKey, endKey);
return makeSubMap(null, endKey);
} | java | public SortedMap headMap(Object endKey) {
// Check for errors
if (comparator == null)
((Comparable) endKey).compareTo(endKey);
else
comparator.compare(endKey, endKey);
return makeSubMap(null, endKey);
} | [
"public",
"SortedMap",
"headMap",
"(",
"Object",
"endKey",
")",
"{",
"// Check for errors",
"if",
"(",
"comparator",
"==",
"null",
")",
"(",
"(",
"Comparable",
")",
"endKey",
")",
".",
"compareTo",
"(",
"endKey",
")",
";",
"else",
"comparator",
".",
"compa... | Answers a SortedMap of the specified portion of this TreeMap which
contains keys less than the end key. The returned SortedMap is backed by
this TreeMap so changes to one are reflected by the other.
@param endKey the end key
@return a submap where the keys are less than <code>endKey</code>
@exception ClassCastExcept... | [
"Answers",
"a",
"SortedMap",
"of",
"the",
"specified",
"portion",
"of",
"this",
"TreeMap",
"which",
"contains",
"keys",
"less",
"than",
"the",
"end",
"key",
".",
"The",
"returned",
"SortedMap",
"is",
"backed",
"by",
"this",
"TreeMap",
"so",
"changes",
"to",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java#L844-L851 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java | AbstractTreeMap.keyCollection | public Collection keyCollection() {
if (keyCollection == null) {
keyCollection = new AbstractCollectionView() {
public long size() throws ObjectManagerException {
return AbstractTreeMap.this.size();
}
public Iterator iterator() thr... | java | public Collection keyCollection() {
if (keyCollection == null) {
keyCollection = new AbstractCollectionView() {
public long size() throws ObjectManagerException {
return AbstractTreeMap.this.size();
}
public Iterator iterator() thr... | [
"public",
"Collection",
"keyCollection",
"(",
")",
"{",
"if",
"(",
"keyCollection",
"==",
"null",
")",
"{",
"keyCollection",
"=",
"new",
"AbstractCollectionView",
"(",
")",
"{",
"public",
"long",
"size",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"retu... | Answers a Collection of the keys contained in this TreeMap. The set is backed by
this TreeMap so changes to one are relected by the other. The Collection does
not support adding.
@return a Collection of the keys | [
"Answers",
"a",
"Collection",
"of",
"the",
"keys",
"contained",
"in",
"this",
"TreeMap",
".",
"The",
"set",
"is",
"backed",
"by",
"this",
"TreeMap",
"so",
"changes",
"to",
"one",
"are",
"relected",
"by",
"the",
"other",
".",
"The",
"Collection",
"does",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java#L860-L878 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java | AbstractTreeMap.remove | public Object remove(Object key) throws ObjectManagerException {
Entry node = find(key);
if (node == null)
return null;
Object result = node.value;
rbDelete(node);
return result;
} | java | public Object remove(Object key) throws ObjectManagerException {
Entry node = find(key);
if (node == null)
return null;
Object result = node.value;
rbDelete(node);
return result;
} | [
"public",
"Object",
"remove",
"(",
"Object",
"key",
")",
"throws",
"ObjectManagerException",
"{",
"Entry",
"node",
"=",
"find",
"(",
"key",
")",
";",
"if",
"(",
"node",
"==",
"null",
")",
"return",
"null",
";",
"Object",
"result",
"=",
"node",
".",
"va... | Removes a mapping with the specified key from this TreeMap.
@param key the key of the mapping to remove
@return the value of the removed mapping or null if key is not a key in
this TreeMap
@exception ClassCastException
when the key cannot be compared with the keys in this
TreeMap
@exception NullPointerException
when... | [
"Removes",
"a",
"mapping",
"with",
"the",
"specified",
"key",
"from",
"this",
"TreeMap",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java#L1048-L1055 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java | AbstractTreeMap.subMap | public SortedMap subMap(Object startKey, Object endKey) {
if (comparator == null) {
if (((Comparable) startKey).compareTo(endKey) <= 0)
return makeSubMap(startKey, endKey);
} else {
if (comparator.compare(startKey, endKey) <= 0)
return makeSubMap(s... | java | public SortedMap subMap(Object startKey, Object endKey) {
if (comparator == null) {
if (((Comparable) startKey).compareTo(endKey) <= 0)
return makeSubMap(startKey, endKey);
} else {
if (comparator.compare(startKey, endKey) <= 0)
return makeSubMap(s... | [
"public",
"SortedMap",
"subMap",
"(",
"Object",
"startKey",
",",
"Object",
"endKey",
")",
"{",
"if",
"(",
"comparator",
"==",
"null",
")",
"{",
"if",
"(",
"(",
"(",
"Comparable",
")",
"startKey",
")",
".",
"compareTo",
"(",
"endKey",
")",
"<=",
"0",
... | Answers a SortedMap of the specified portion of this TreeMap which
contains keys greater or equal to the start key but less than the end
key. The returned SortedMap is backed by this TreeMap so changes to one
are reflected by the other.
@param startKey the start key
@param endKey the end key
@return a submap where th... | [
"Answers",
"a",
"SortedMap",
"of",
"the",
"specified",
"portion",
"of",
"this",
"TreeMap",
"which",
"contains",
"keys",
"greater",
"or",
"equal",
"to",
"the",
"start",
"key",
"but",
"less",
"than",
"the",
"end",
"key",
".",
"The",
"returned",
"SortedMap",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java#L1103-L1112 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java | AbstractTreeMap.tailMap | public SortedMap tailMap(Object startKey) {
// Check for errors
if (comparator == null)
((Comparable) startKey).compareTo(startKey);
else
comparator.compare(startKey, startKey);
return makeSubMap(startKey, null);
} | java | public SortedMap tailMap(Object startKey) {
// Check for errors
if (comparator == null)
((Comparable) startKey).compareTo(startKey);
else
comparator.compare(startKey, startKey);
return makeSubMap(startKey, null);
} | [
"public",
"SortedMap",
"tailMap",
"(",
"Object",
"startKey",
")",
"{",
"// Check for errors",
"if",
"(",
"comparator",
"==",
"null",
")",
"(",
"(",
"Comparable",
")",
"startKey",
")",
".",
"compareTo",
"(",
"startKey",
")",
";",
"else",
"comparator",
".",
... | Answers a SortedMap of the specified portion of this TreeMap which
contains keys greater or equal to the start key. The returned SortedMap
is backed by this TreeMap so changes to one are reflected by the other.
@param startKey the start key
@return a submap where the keys are greater or equal to
<code>startKey</code>... | [
"Answers",
"a",
"SortedMap",
"of",
"the",
"specified",
"portion",
"of",
"this",
"TreeMap",
"which",
"contains",
"keys",
"greater",
"or",
"equal",
"to",
"the",
"start",
"key",
".",
"The",
"returned",
"SortedMap",
"is",
"backed",
"by",
"this",
"TreeMap",
"so",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java#L1142-L1149 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java | AbstractTreeMap.values | public Collection values() {
if (values == null) {
values = new AbstractCollectionView() {
public long size() throws ObjectManagerException {
return AbstractTreeMap.this.size();
}
public Iterator iterator() throws ObjectManagerExce... | java | public Collection values() {
if (values == null) {
values = new AbstractCollectionView() {
public long size() throws ObjectManagerException {
return AbstractTreeMap.this.size();
}
public Iterator iterator() throws ObjectManagerExce... | [
"public",
"Collection",
"values",
"(",
")",
"{",
"if",
"(",
"values",
"==",
"null",
")",
"{",
"values",
"=",
"new",
"AbstractCollectionView",
"(",
")",
"{",
"public",
"long",
"size",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"return",
"AbstractTreeM... | Answers a Collection of the values contained in this TreeMap. The
collection is backed by this TreeMap so changes to one are relected by
the other. The collection does not support adding.
@return a Collection of the values | [
"Answers",
"a",
"Collection",
"of",
"the",
"values",
"contained",
"in",
"this",
"TreeMap",
".",
"The",
"collection",
"is",
"backed",
"by",
"this",
"TreeMap",
"so",
"changes",
"to",
"one",
"are",
"relected",
"by",
"the",
"other",
".",
"The",
"collection",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractTreeMap.java#L1158-L1175 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.mongo_fat/fat/src/com/ibm/ws/mongo/fat/MongoServerSelector.java | MongoServerSelector.assignMongoServers | public static void assignMongoServers(LibertyServer libertyServer) throws Exception {
MongoServerSelector mongoServerSelector = new MongoServerSelector(libertyServer);
mongoServerSelector.updateLibertyServerMongos();
} | java | public static void assignMongoServers(LibertyServer libertyServer) throws Exception {
MongoServerSelector mongoServerSelector = new MongoServerSelector(libertyServer);
mongoServerSelector.updateLibertyServerMongos();
} | [
"public",
"static",
"void",
"assignMongoServers",
"(",
"LibertyServer",
"libertyServer",
")",
"throws",
"Exception",
"{",
"MongoServerSelector",
"mongoServerSelector",
"=",
"new",
"MongoServerSelector",
"(",
"libertyServer",
")",
";",
"mongoServerSelector",
".",
"updateLi... | Reads a server configuration and replaces the placeholder values with an available host and port as specified in the mongo.properties file
@param libertyServer The server configuration to assign Mongo servers to
@throws Exception Can't connect to any of the specified Mongo servers | [
"Reads",
"a",
"server",
"configuration",
"and",
"replaces",
"the",
"placeholder",
"values",
"with",
"an",
"available",
"host",
"and",
"port",
"as",
"specified",
"in",
"the",
"mongo",
".",
"properties",
"file"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.mongo_fat/fat/src/com/ibm/ws/mongo/fat/MongoServerSelector.java#L67-L70 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.mongo_fat/fat/src/com/ibm/ws/mongo/fat/MongoServerSelector.java | MongoServerSelector.getMongoElements | private Map<String, List<MongoElement>> getMongoElements() throws Exception {
for (MongoElement mongo : serverConfig.getMongos()) {
addMongoElementToMap(mongo);
}
for (MongoDBElement mongoDB : serverConfig.getMongoDBs()) {
if (mongoDB.getMongo() != null) {
... | java | private Map<String, List<MongoElement>> getMongoElements() throws Exception {
for (MongoElement mongo : serverConfig.getMongos()) {
addMongoElementToMap(mongo);
}
for (MongoDBElement mongoDB : serverConfig.getMongoDBs()) {
if (mongoDB.getMongo() != null) {
... | [
"private",
"Map",
"<",
"String",
",",
"List",
"<",
"MongoElement",
">",
">",
"getMongoElements",
"(",
")",
"throws",
"Exception",
"{",
"for",
"(",
"MongoElement",
"mongo",
":",
"serverConfig",
".",
"getMongos",
"(",
")",
")",
"{",
"addMongoElementToMap",
"("... | Creates a mapping of a Mongo server placeholder value to the one or more mongo elements in the server.xml containing that placeholder
@param libertyServer
@return | [
"Creates",
"a",
"mapping",
"of",
"a",
"Mongo",
"server",
"placeholder",
"value",
"to",
"the",
"one",
"or",
"more",
"mongo",
"elements",
"in",
"the",
"server",
".",
"xml",
"containing",
"that",
"placeholder"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.mongo_fat/fat/src/com/ibm/ws/mongo/fat/MongoServerSelector.java#L91-L101 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.mongo_fat/fat/src/com/ibm/ws/mongo/fat/MongoServerSelector.java | MongoServerSelector.updateMongoElements | private void updateMongoElements(String serverPlaceholder, ExternalTestService mongoService) {
Integer[] port = { Integer.valueOf(mongoService.getPort()) };
for (MongoElement mongo : mongoElements.get(serverPlaceholder)) {
mongo.setHostNames(mongoService.getAddress());
mongo.setP... | java | private void updateMongoElements(String serverPlaceholder, ExternalTestService mongoService) {
Integer[] port = { Integer.valueOf(mongoService.getPort()) };
for (MongoElement mongo : mongoElements.get(serverPlaceholder)) {
mongo.setHostNames(mongoService.getAddress());
mongo.setP... | [
"private",
"void",
"updateMongoElements",
"(",
"String",
"serverPlaceholder",
",",
"ExternalTestService",
"mongoService",
")",
"{",
"Integer",
"[",
"]",
"port",
"=",
"{",
"Integer",
".",
"valueOf",
"(",
"mongoService",
".",
"getPort",
"(",
")",
")",
"}",
";",
... | For the mongo elements containing the given placeholder value, the host and port placeholder values in the mongo element are replaced with an actual host and port of an
available mongo server.
@param availableMongoServer | [
"For",
"the",
"mongo",
"elements",
"containing",
"the",
"given",
"placeholder",
"value",
"the",
"host",
"and",
"port",
"placeholder",
"values",
"in",
"the",
"mongo",
"element",
"are",
"replaced",
"with",
"an",
"actual",
"host",
"and",
"port",
"of",
"an",
"av... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.mongo_fat/fat/src/com/ibm/ws/mongo/fat/MongoServerSelector.java#L125-L139 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.mongo_fat/fat/src/com/ibm/ws/mongo/fat/MongoServerSelector.java | MongoServerSelector.validateMongoConnection | private static boolean validateMongoConnection(ExternalTestService mongoService) {
String method = "validateMongoConnection";
MongoClient mongoClient = null;
String host = mongoService.getAddress();
int port = mongoService.getPort();
File trustStore = null;
MongoClient... | java | private static boolean validateMongoConnection(ExternalTestService mongoService) {
String method = "validateMongoConnection";
MongoClient mongoClient = null;
String host = mongoService.getAddress();
int port = mongoService.getPort();
File trustStore = null;
MongoClient... | [
"private",
"static",
"boolean",
"validateMongoConnection",
"(",
"ExternalTestService",
"mongoService",
")",
"{",
"String",
"method",
"=",
"\"validateMongoConnection\"",
";",
"MongoClient",
"mongoClient",
"=",
"null",
";",
"String",
"host",
"=",
"mongoService",
".",
"g... | Creates a connection to the mongo server at the given location using the mongo java client.
@param location
@param auth
@param encrypted
@return
@throws Exception | [
"Creates",
"a",
"connection",
"to",
"the",
"mongo",
"server",
"at",
"the",
"given",
"location",
"using",
"the",
"mongo",
"java",
"client",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.mongo_fat/fat/src/com/ibm/ws/mongo/fat/MongoServerSelector.java#L190-L242 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.mongo_fat/fat/src/com/ibm/ws/mongo/fat/MongoServerSelector.java | MongoServerSelector.getSocketFactory | private static SSLSocketFactory getSocketFactory(File trustStore) throws KeyStoreException, FileNotFoundException, IOException, NoSuchAlgorithmException, CertificateException, KeyManagementException {
KeyStore keystore = KeyStore.getInstance("JKS");
InputStream truststoreInputStream = null;
try... | java | private static SSLSocketFactory getSocketFactory(File trustStore) throws KeyStoreException, FileNotFoundException, IOException, NoSuchAlgorithmException, CertificateException, KeyManagementException {
KeyStore keystore = KeyStore.getInstance("JKS");
InputStream truststoreInputStream = null;
try... | [
"private",
"static",
"SSLSocketFactory",
"getSocketFactory",
"(",
"File",
"trustStore",
")",
"throws",
"KeyStoreException",
",",
"FileNotFoundException",
",",
"IOException",
",",
"NoSuchAlgorithmException",
",",
"CertificateException",
",",
"KeyManagementException",
"{",
"K... | Returns an SSLSocketFactory needed to connect to an SSL mongo server. The socket factory is created using the testTruststore.jks.
@return
@throws KeyStoreException
@throws FileNotFoundException
@throws IOException
@throws NoSuchAlgorithmException
@throws CertificateException
@throws KeyManagementException | [
"Returns",
"an",
"SSLSocketFactory",
"needed",
"to",
"connect",
"to",
"an",
"SSL",
"mongo",
"server",
".",
"The",
"socket",
"factory",
"is",
"created",
"using",
"the",
"testTruststore",
".",
"jks",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.mongo_fat/fat/src/com/ibm/ws/mongo/fat/MongoServerSelector.java#L255-L277 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/LocaleUtils.java | LocaleUtils.converterTagLocaleFromString | public static Locale converterTagLocaleFromString(String name)
{
try
{
Locale locale;
StringTokenizer st = new StringTokenizer(name, "_");
String language = st.nextToken();
if(st.hasMoreTokens())
{
String country = st.nextT... | java | public static Locale converterTagLocaleFromString(String name)
{
try
{
Locale locale;
StringTokenizer st = new StringTokenizer(name, "_");
String language = st.nextToken();
if(st.hasMoreTokens())
{
String country = st.nextT... | [
"public",
"static",
"Locale",
"converterTagLocaleFromString",
"(",
"String",
"name",
")",
"{",
"try",
"{",
"Locale",
"locale",
";",
"StringTokenizer",
"st",
"=",
"new",
"StringTokenizer",
"(",
"name",
",",
"\"_\"",
")",
";",
"String",
"language",
"=",
"st",
... | Convert locale string used by converter tags to locale.
@param name name of the locale
@return locale specified by the given String
@see org.apache.myfaces.taglib.core.ConvertDateTimeTag#setConverterLocale
@see org.apache.myfaces.taglib.core.ConvertNumberTag#setConverterLocale | [
"Convert",
"locale",
"string",
"used",
"by",
"converter",
"tags",
"to",
"locale",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/util/LocaleUtils.java#L109-L144 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentLinkedList.java | ConcurrentLinkedList.incrementHeadSequenceNumber | public void incrementHeadSequenceNumber(ConcurrentSubList.Link link)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"incrementheadSequenceNumber",
... | java | public void incrementHeadSequenceNumber(ConcurrentSubList.Link link)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"incrementheadSequenceNumber",
... | [
"public",
"void",
"incrementHeadSequenceNumber",
"(",
"ConcurrentSubList",
".",
"Link",
"link",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
... | Increment the headSequenceNumber, after removal of a link in a subList.
Caller must already be synchronized on headSequenceNumberLock.
@param link causing the increment.
@throws ObjectManagerException | [
"Increment",
"the",
"headSequenceNumber",
"after",
"removal",
"of",
"a",
"link",
"in",
"a",
"subList",
".",
"Caller",
"must",
"already",
"be",
"synchronized",
"on",
"headSequenceNumberLock",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentLinkedList.java#L139-L163 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentLinkedList.java | ConcurrentLinkedList.resetTailSequenceNumber | private void resetTailSequenceNumber()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "resetTailSequenceNumber"
);
for (int i = 0; i < subList... | java | private void resetTailSequenceNumber()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "resetTailSequenceNumber"
);
for (int i = 0; i < subList... | [
"private",
"void",
"resetTailSequenceNumber",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"cclass",... | Reset the tailSequenceNumber.
Caller must be synchronized on tailSequenceNumberLock.
@throws ObjectManagerException | [
"Reset",
"the",
"tailSequenceNumber",
".",
"Caller",
"must",
"be",
"synchronized",
"on",
"tailSequenceNumberLock",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentLinkedList.java#L230-L256 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentLinkedList.java | ConcurrentLinkedList.insert | protected ConcurrentSubList.Link insert(Token token,
ConcurrentSubList.Link insertPoint,
Transaction transaction)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnab... | java | protected ConcurrentSubList.Link insert(Token token,
ConcurrentSubList.Link insertPoint,
Transaction transaction)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnab... | [
"protected",
"ConcurrentSubList",
".",
"Link",
"insert",
"(",
"Token",
"token",
",",
"ConcurrentSubList",
".",
"Link",
"insertPoint",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"... | Insert before the given link.
@param token to insert.
@param insertPoint which the new link will be before.
@param transaction controling the insertion.
@return ConcurrentSubList.Link the inserted Link.
@throws ObjectManagerException | [
"Insert",
"before",
"the",
"given",
"link",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/ConcurrentLinkedList.java#L554-L592 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java | WebContainer.activate | public void activate(ComponentContext compcontext, Map<String, Object> properties) {
String methodName = "activate";
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Activating the WebContainer bundle");
}
WebContainer.instanc... | java | public void activate(ComponentContext compcontext, Map<String, Object> properties) {
String methodName = "activate";
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Activating the WebContainer bundle");
}
WebContainer.instanc... | [
"public",
"void",
"activate",
"(",
"ComponentContext",
"compcontext",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
")",
"{",
"String",
"methodName",
"=",
"\"activate\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&... | Activate the web container as a DS component.
Activate all child services. Set the web container singleton.
Post a started event.
@param componentContext The component context of the activation.
@param properties Properties for the activation. | [
"Activate",
"the",
"web",
"container",
"as",
"a",
"DS",
"component",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java#L273-L321 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java | WebContainer.deactivate | @FFDCIgnore(Exception.class)
public void deactivate(ComponentContext componentContext) {
String methodName = "deactivate";
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Deactivating the WebContainer bundle");
}
if (TraceCompone... | java | @FFDCIgnore(Exception.class)
public void deactivate(ComponentContext componentContext) {
String methodName = "deactivate";
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Deactivating the WebContainer bundle");
}
if (TraceCompone... | [
"@",
"FFDCIgnore",
"(",
"Exception",
".",
"class",
")",
"public",
"void",
"deactivate",
"(",
"ComponentContext",
"componentContext",
")",
"{",
"String",
"methodName",
"=",
"\"deactivate\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
... | Deactivate the web container as a DS component.
Post a stopped event. Deactivate all child services. Clear the
web container singleton.
@param componentContext The component context of the deactivation. | [
"Deactivate",
"the",
"web",
"container",
"as",
"a",
"DS",
"component",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java#L382-L417 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java | WebContainer.setClassLoadingService | @Reference(service=ClassLoadingService.class, name="classLoadingService")
protected void setClassLoadingService(ServiceReference<ClassLoadingService> ref) {
classLoadingSRRef.setReference(ref);
} | java | @Reference(service=ClassLoadingService.class, name="classLoadingService")
protected void setClassLoadingService(ServiceReference<ClassLoadingService> ref) {
classLoadingSRRef.setReference(ref);
} | [
"@",
"Reference",
"(",
"service",
"=",
"ClassLoadingService",
".",
"class",
",",
"name",
"=",
"\"classLoadingService\"",
")",
"protected",
"void",
"setClassLoadingService",
"(",
"ServiceReference",
"<",
"ClassLoadingService",
">",
"ref",
")",
"{",
"classLoadingSRRef",... | DS method for setting the class loading service reference.
@param service | [
"DS",
"method",
"for",
"setting",
"the",
"class",
"loading",
"service",
"reference",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java#L444-L447 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java | WebContainer.setEncodingService | @Reference(policy=ReferencePolicy.DYNAMIC)
protected void setEncodingService(EncodingUtils encUtils) {
encodingServiceRef.set(encUtils);
} | java | @Reference(policy=ReferencePolicy.DYNAMIC)
protected void setEncodingService(EncodingUtils encUtils) {
encodingServiceRef.set(encUtils);
} | [
"@",
"Reference",
"(",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
")",
"protected",
"void",
"setEncodingService",
"(",
"EncodingUtils",
"encUtils",
")",
"{",
"encodingServiceRef",
".",
"set",
"(",
"encUtils",
")",
";",
"}"
] | DS method for setting the Encoding service.
@param service | [
"DS",
"method",
"for",
"setting",
"the",
"Encoding",
"service",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java#L545-L548 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java | WebContainer.setSessionHelper | @Reference(service=SessionHelper.class, name="sessionHelper")
protected void setSessionHelper(ServiceReference<SessionHelper> ref) {
sessionHelperSRRef.setReference(ref);
} | java | @Reference(service=SessionHelper.class, name="sessionHelper")
protected void setSessionHelper(ServiceReference<SessionHelper> ref) {
sessionHelperSRRef.setReference(ref);
} | [
"@",
"Reference",
"(",
"service",
"=",
"SessionHelper",
".",
"class",
",",
"name",
"=",
"\"sessionHelper\"",
")",
"protected",
"void",
"setSessionHelper",
"(",
"ServiceReference",
"<",
"SessionHelper",
">",
"ref",
")",
"{",
"sessionHelperSRRef",
".",
"setReference... | Set the reference to the session helper service.
@param ref | [
"Set",
"the",
"reference",
"to",
"the",
"session",
"helper",
"service",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java#L597-L600 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java | WebContainer.createModuleMetaData | @Override
public ModuleMetaData createModuleMetaData(ExtendedModuleInfo moduleInfo) throws MetaDataException {
WebModuleInfo webModule = (WebModuleInfo) moduleInfo;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "createModuleMetaData: " + webModule.getNam... | java | @Override
public ModuleMetaData createModuleMetaData(ExtendedModuleInfo moduleInfo) throws MetaDataException {
WebModuleInfo webModule = (WebModuleInfo) moduleInfo;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "createModuleMetaData: " + webModule.getNam... | [
"@",
"Override",
"public",
"ModuleMetaData",
"createModuleMetaData",
"(",
"ExtendedModuleInfo",
"moduleInfo",
")",
"throws",
"MetaDataException",
"{",
"WebModuleInfo",
"webModule",
"=",
"(",
"WebModuleInfo",
")",
"moduleInfo",
";",
"if",
"(",
"TraceComponent",
".",
"i... | This will create the metadata for a web module in the web container | [
"This",
"will",
"create",
"the",
"metadata",
"for",
"a",
"web",
"module",
"in",
"the",
"web",
"container"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java#L827-L858 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java | WebContainer.registerMBeans | protected void registerMBeans(WebModuleMetaDataImpl webModule, com.ibm.wsspi.adaptable.module.Container container) {
String methodName = "registerMBeans";
String appName = webModule.getApplicationMetaData().getName();
String webAppName = webModule.getName();
String debugName;
i... | java | protected void registerMBeans(WebModuleMetaDataImpl webModule, com.ibm.wsspi.adaptable.module.Container container) {
String methodName = "registerMBeans";
String appName = webModule.getApplicationMetaData().getName();
String webAppName = webModule.getName();
String debugName;
i... | [
"protected",
"void",
"registerMBeans",
"(",
"WebModuleMetaDataImpl",
"webModule",
",",
"com",
".",
"ibm",
".",
"wsspi",
".",
"adaptable",
".",
"module",
".",
"Container",
"container",
")",
"{",
"String",
"methodName",
"=",
"\"registerMBeans\"",
";",
"String",
"a... | Check for the JSR77 runtime, and, if available, use it to register module
and servlet mbeans. As a side effect, assign the mbean registration to
the web module metadata and to the servlet metadata.
The web module container is required for access to the web module descriptor.
@param webModule The web module to regist... | [
"Check",
"for",
"the",
"JSR77",
"runtime",
"and",
"if",
"available",
"use",
"it",
"to",
"register",
"module",
"and",
"servlet",
"mbeans",
".",
"As",
"a",
"side",
"effect",
"assign",
"the",
"mbean",
"registration",
"to",
"the",
"web",
"module",
"metadata",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java#L987-L1036 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java | WebContainer.stopModule | public void stopModule(ExtendedModuleInfo moduleInfo) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "stopModule()",((WebModuleInfo)moduleInfo).getName());
}
WebModuleInfo webModule = (WebModuleInfo) moduleInfo;
try {
... | java | public void stopModule(ExtendedModuleInfo moduleInfo) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "stopModule()",((WebModuleInfo)moduleInfo).getName());
}
WebModuleInfo webModule = (WebModuleInfo) moduleInfo;
try {
... | [
"public",
"void",
"stopModule",
"(",
"ExtendedModuleInfo",
"moduleInfo",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"stopModule()\"... | This will stop a web module in the web container | [
"This",
"will",
"stop",
"a",
"web",
"module",
"in",
"the",
"web",
"container"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java#L1154-L1201 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java | WebContainer.setConnContextPool | @Reference(cardinality=ReferenceCardinality.MANDATORY, policy=ReferencePolicy.DYNAMIC, policyOption=ReferencePolicyOption.GREEDY)
protected void setConnContextPool(SRTConnectionContextPool pool) {
this.connContextPool = pool;
} | java | @Reference(cardinality=ReferenceCardinality.MANDATORY, policy=ReferencePolicy.DYNAMIC, policyOption=ReferencePolicyOption.GREEDY)
protected void setConnContextPool(SRTConnectionContextPool pool) {
this.connContextPool = pool;
} | [
"@",
"Reference",
"(",
"cardinality",
"=",
"ReferenceCardinality",
".",
"MANDATORY",
",",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"policyOption",
"=",
"ReferencePolicyOption",
".",
"GREEDY",
")",
"protected",
"void",
"setConnContextPool",
"(",
"SRTCon... | Only DS should invoke this method | [
"Only",
"DS",
"should",
"invoke",
"this",
"method"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/WebContainer.java#L1445-L1448 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/Cache.java | Cache.refreshEntry | public void refreshEntry(com.ibm.wsspi.cache.CacheEntry ce){
cacheInstance.refreshEntry(ce.cacheEntry);
} | java | public void refreshEntry(com.ibm.wsspi.cache.CacheEntry ce){
cacheInstance.refreshEntry(ce.cacheEntry);
} | [
"public",
"void",
"refreshEntry",
"(",
"com",
".",
"ibm",
".",
"wsspi",
".",
"cache",
".",
"CacheEntry",
"ce",
")",
"{",
"cacheInstance",
".",
"refreshEntry",
"(",
"ce",
".",
"cacheEntry",
")",
";",
"}"
] | This method moves the specified entry to the end of the LRU queue.
@param ce The cache entry | [
"This",
"method",
"moves",
"the",
"specified",
"entry",
"to",
"the",
"end",
"of",
"the",
"LRU",
"queue",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/Cache.java#L37-L39 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/Cache.java | Cache.getEntryDisk | public CacheEntry getEntryDisk(Object cacheId) {
CacheEntry cacheEntry = new CacheEntry(cacheInstance.getEntryDisk(cacheId));
return cacheEntry;
} | java | public CacheEntry getEntryDisk(Object cacheId) {
CacheEntry cacheEntry = new CacheEntry(cacheInstance.getEntryDisk(cacheId));
return cacheEntry;
} | [
"public",
"CacheEntry",
"getEntryDisk",
"(",
"Object",
"cacheId",
")",
"{",
"CacheEntry",
"cacheEntry",
"=",
"new",
"CacheEntry",
"(",
"cacheInstance",
".",
"getEntryDisk",
"(",
"cacheId",
")",
")",
";",
"return",
"cacheEntry",
";",
"}"
] | This method returns the cache entry specified by cache ID from the disk cache.
@param cacheId the cache ID
@return The cache entry. NULL if cache ID does not exist. | [
"This",
"method",
"returns",
"the",
"cache",
"entry",
"specified",
"by",
"cache",
"ID",
"from",
"the",
"disk",
"cache",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/Cache.java#L56-L59 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/Cache.java | Cache.getEntry | public com.ibm.wsspi.cache.CacheEntry getEntry(Object cacheId){
CacheEntry cacheEntry = new CacheEntry(cacheInstance.getEntry(cacheId));
return cacheEntry;
} | java | public com.ibm.wsspi.cache.CacheEntry getEntry(Object cacheId){
CacheEntry cacheEntry = new CacheEntry(cacheInstance.getEntry(cacheId));
return cacheEntry;
} | [
"public",
"com",
".",
"ibm",
".",
"wsspi",
".",
"cache",
".",
"CacheEntry",
"getEntry",
"(",
"Object",
"cacheId",
")",
"{",
"CacheEntry",
"cacheEntry",
"=",
"new",
"CacheEntry",
"(",
"cacheInstance",
".",
"getEntry",
"(",
"cacheId",
")",
")",
";",
"return"... | This method returns an instance of CacheEntry specified cache ID.
@param cacheId the cache ID
@return The instance of CacheEntry | [
"This",
"method",
"returns",
"an",
"instance",
"of",
"CacheEntry",
"specified",
"cache",
"ID",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/wsspi/cache/Cache.java#L108-L111 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java | XMLEncodingDetector.getEncoding | public static Object[] getEncoding(JspInputSource inputSource)
throws IOException, JspCoreException
{
InputStream inStream = XMLEncodingDetector.getInputStream(inputSource);
//InputStream inStream = JspUtil.getInputStream(fname, jarFile, ctxt,
// ... | java | public static Object[] getEncoding(JspInputSource inputSource)
throws IOException, JspCoreException
{
InputStream inStream = XMLEncodingDetector.getInputStream(inputSource);
//InputStream inStream = JspUtil.getInputStream(fname, jarFile, ctxt,
// ... | [
"public",
"static",
"Object",
"[",
"]",
"getEncoding",
"(",
"JspInputSource",
"inputSource",
")",
"throws",
"IOException",
",",
"JspCoreException",
"{",
"InputStream",
"inStream",
"=",
"XMLEncodingDetector",
".",
"getInputStream",
"(",
"inputSource",
")",
";",
"//In... | Autodetects the encoding of the XML document supplied by the given
input stream.
Encoding autodetection is done according to the XML 1.0 specification,
Appendix F.1: Detection Without External Encoding Information.
@return Two-element array, where the first element (of type
java.lang.String) contains the name of the ... | [
"Autodetects",
"the",
"encoding",
"of",
"the",
"XML",
"document",
"supplied",
"by",
"the",
"given",
"input",
"stream",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java#L86-L97 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java | XMLEncodingDetector.createReader | private Reader createReader(InputStream inputStream, String encoding,
Boolean isBigEndian)
throws IOException, JspCoreException {
// normalize encoding name
if (encoding == null) {
encoding = "UTF-8";
}
// try to use an optimized reader
String EN... | java | private Reader createReader(InputStream inputStream, String encoding,
Boolean isBigEndian)
throws IOException, JspCoreException {
// normalize encoding name
if (encoding == null) {
encoding = "UTF-8";
}
// try to use an optimized reader
String EN... | [
"private",
"Reader",
"createReader",
"(",
"InputStream",
"inputStream",
",",
"String",
"encoding",
",",
"Boolean",
"isBigEndian",
")",
"throws",
"IOException",
",",
"JspCoreException",
"{",
"// normalize encoding name",
"if",
"(",
"encoding",
"==",
"null",
")",
"{",... | Creates a reader capable of reading the given input stream in
the specified encoding.
@param inputStream The input stream.
@param encoding The encoding name that the input stream is
encoded using. If the user has specified that
Java encoding names are allowed, then the
encoding name may be a Java encoding name;
o... | [
"Creates",
"a",
"reader",
"capable",
"of",
"reading",
"the",
"given",
"input",
"stream",
"in",
"the",
"specified",
"encoding",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java#L178-L255 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java | XMLEncodingDetector.getEncodingName | private Object[] getEncodingName(byte[] b4, int count) {
if (count < 2) {
return new Object[]{"UTF-8", null, Boolean.FALSE};
}
// UTF-16, with BOM
int b0 = b4[0] & 0xFF;
int b1 = b4[1] & 0xFF;
if (b0 == 0xFE && b1 == 0xFF) {
// UTF-16, big-endian... | java | private Object[] getEncodingName(byte[] b4, int count) {
if (count < 2) {
return new Object[]{"UTF-8", null, Boolean.FALSE};
}
// UTF-16, with BOM
int b0 = b4[0] & 0xFF;
int b1 = b4[1] & 0xFF;
if (b0 == 0xFE && b1 == 0xFF) {
// UTF-16, big-endian... | [
"private",
"Object",
"[",
"]",
"getEncodingName",
"(",
"byte",
"[",
"]",
"b4",
",",
"int",
"count",
")",
"{",
"if",
"(",
"count",
"<",
"2",
")",
"{",
"return",
"new",
"Object",
"[",
"]",
"{",
"\"UTF-8\"",
",",
"null",
",",
"Boolean",
".",
"FALSE",
... | Returns the IANA encoding name that is auto-detected from
the bytes specified, with the endian-ness of that encoding where
appropriate.
@param b4 The first four bytes of the input.
@param count The number of bytes actually read.
@return a 2-element array: the first element, an IANA-encoding string,
the second elem... | [
"Returns",
"the",
"IANA",
"encoding",
"name",
"that",
"is",
"auto",
"-",
"detected",
"from",
"the",
"bytes",
"specified",
"with",
"the",
"endian",
"-",
"ness",
"of",
"that",
"encoding",
"where",
"appropriate",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java#L271-L347 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java | XMLEncodingDetector.load | final boolean load(int offset, boolean changeEntity)
throws IOException {
// read characters
int length = fCurrentEntity.mayReadChunks?
(fCurrentEntity.ch.length - offset):
(DEFAULT_XMLDECL_BUFFER_SIZE);
int count = fCurrentEntity.reader.read(fCurrentEntity.ch, offset,
length);
// reset cou... | java | final boolean load(int offset, boolean changeEntity)
throws IOException {
// read characters
int length = fCurrentEntity.mayReadChunks?
(fCurrentEntity.ch.length - offset):
(DEFAULT_XMLDECL_BUFFER_SIZE);
int count = fCurrentEntity.reader.read(fCurrentEntity.ch, offset,
length);
// reset cou... | [
"final",
"boolean",
"load",
"(",
"int",
"offset",
",",
"boolean",
"changeEntity",
")",
"throws",
"IOException",
"{",
"// read characters",
"int",
"length",
"=",
"fCurrentEntity",
".",
"mayReadChunks",
"?",
"(",
"fCurrentEntity",
".",
"ch",
".",
"length",
"-",
... | Loads a chunk of text.
@param offset The offset into the character buffer to
read the next batch of characters.
@param changeEntity True if the load should change entities
at the end of the entity, otherwise leave
the current entity in place and the entity
boundary will be signaled by the return
value.
@returns... | [
"Loads",
"a",
"chunk",
"of",
"text",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java#L986-L1024 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java | XMLEncodingDetector.scanPseudoAttribute | public String scanPseudoAttribute(boolean scanningTextDecl,
XMLString value)
throws IOException, JspCoreException {
String name = scanName();
if (name == null) {
throw new JspCoreException("jsp.error.xml.pseudoAttrNameExpected");
... | java | public String scanPseudoAttribute(boolean scanningTextDecl,
XMLString value)
throws IOException, JspCoreException {
String name = scanName();
if (name == null) {
throw new JspCoreException("jsp.error.xml.pseudoAttrNameExpected");
... | [
"public",
"String",
"scanPseudoAttribute",
"(",
"boolean",
"scanningTextDecl",
",",
"XMLString",
"value",
")",
"throws",
"IOException",
",",
"JspCoreException",
"{",
"String",
"name",
"=",
"scanName",
"(",
")",
";",
"if",
"(",
"name",
"==",
"null",
")",
"{",
... | Scans a pseudo attribute.
@param scanningTextDecl True if scanning this pseudo-attribute for a
TextDecl; false if scanning XMLDecl. This
flag is needed to report the correct type of
error.
@param value The string to fill in with the attribute
value.
@return The name of the attribute
<strong>Note:</strong>... | [
"Scans",
"a",
"pseudo",
"attribute",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java#L1460-L1520 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java | XMLEncodingDetector.reportFatalError | private void reportFatalError(String msgId, String arg)
throws JspCoreException {
throw new JspCoreException(msgId, new Object[] { arg });
//err.jspError(msgId, arg);
} | java | private void reportFatalError(String msgId, String arg)
throws JspCoreException {
throw new JspCoreException(msgId, new Object[] { arg });
//err.jspError(msgId, arg);
} | [
"private",
"void",
"reportFatalError",
"(",
"String",
"msgId",
",",
"String",
"arg",
")",
"throws",
"JspCoreException",
"{",
"throw",
"new",
"JspCoreException",
"(",
"msgId",
",",
"new",
"Object",
"[",
"]",
"{",
"arg",
"}",
")",
";",
"//err.jspError(msgId, arg... | Convenience function used in all XML scanners. | [
"Convenience",
"function",
"used",
"in",
"all",
"XML",
"scanners",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/document/XMLEncodingDetector.java#L1629-L1633 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/ManagedBeanBuilder.java | ManagedBeanBuilder.coerceToType | @SuppressWarnings("unchecked")
public static <T> T coerceToType(FacesContext facesContext, Object value, Class<? extends T> desiredClass)
{
if (value == null)
{
return null;
}
try
{
ExpressionFactory expFactory = facesContext.getApplication().getE... | java | @SuppressWarnings("unchecked")
public static <T> T coerceToType(FacesContext facesContext, Object value, Class<? extends T> desiredClass)
{
if (value == null)
{
return null;
}
try
{
ExpressionFactory expFactory = facesContext.getApplication().getE... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"<",
"T",
">",
"T",
"coerceToType",
"(",
"FacesContext",
"facesContext",
",",
"Object",
"value",
",",
"Class",
"<",
"?",
"extends",
"T",
">",
"desiredClass",
")",
"{",
"if",
"(",
"valu... | to unified EL in JSF 1.2 | [
"to",
"unified",
"EL",
"in",
"JSF",
"1",
".",
"2"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/ManagedBeanBuilder.java#L356-L378 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/ManagedBeanBuilder.java | ManagedBeanBuilder.getNarrowestScope | private String getNarrowestScope(FacesContext facesContext, String valueExpression)
{
List<String> expressions = extractExpressions(valueExpression);
// exclude NONE scope, if there are more than one ValueExpressions (see Spec for details)
String narrowestScope = expressions.size() == 1 ? NO... | java | private String getNarrowestScope(FacesContext facesContext, String valueExpression)
{
List<String> expressions = extractExpressions(valueExpression);
// exclude NONE scope, if there are more than one ValueExpressions (see Spec for details)
String narrowestScope = expressions.size() == 1 ? NO... | [
"private",
"String",
"getNarrowestScope",
"(",
"FacesContext",
"facesContext",
",",
"String",
"valueExpression",
")",
"{",
"List",
"<",
"String",
">",
"expressions",
"=",
"extractExpressions",
"(",
"valueExpression",
")",
";",
"// exclude NONE scope, if there are more tha... | Gets the narrowest scope to which the ValueExpression points.
@param facesContext
@param valueExpression
@return | [
"Gets",
"the",
"narrowest",
"scope",
"to",
"which",
"the",
"ValueExpression",
"points",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/ManagedBeanBuilder.java#L457-L480 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/ManagedBeanBuilder.java | ManagedBeanBuilder.getFirstSegment | private String getFirstSegment(String expression)
{
int indexDot = expression.indexOf('.');
int indexBracket = expression.indexOf('[');
if (indexBracket < 0)
{
return indexDot < 0 ? expression : expression.substring(0, indexDot);
}
if (indexDot < 0)
... | java | private String getFirstSegment(String expression)
{
int indexDot = expression.indexOf('.');
int indexBracket = expression.indexOf('[');
if (indexBracket < 0)
{
return indexDot < 0 ? expression : expression.substring(0, indexDot);
}
if (indexDot < 0)
... | [
"private",
"String",
"getFirstSegment",
"(",
"String",
"expression",
")",
"{",
"int",
"indexDot",
"=",
"expression",
".",
"indexOf",
"(",
"'",
"'",
")",
";",
"int",
"indexBracket",
"=",
"expression",
".",
"indexOf",
"(",
"'",
"'",
")",
";",
"if",
"(",
... | Extract the first expression segment, that is the substring up to the first '.' or '['
@param expression
@return first segment of the expression | [
"Extract",
"the",
"first",
"expression",
"segment",
"that",
"is",
"the",
"substring",
"up",
"to",
"the",
"first",
".",
"or",
"["
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/ManagedBeanBuilder.java#L607-L626 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java | EventImpl.get | @SuppressWarnings("unchecked")
public <T> T get(EventLocal<T> key) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null == map) {
return key.initialValue();
}
return (T) map.get(key);
} | java | @SuppressWarnings("unchecked")
public <T> T get(EventLocal<T> key) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null == map) {
return key.initialValue();
}
return (T) map.get(key);
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
">",
"T",
"get",
"(",
"EventLocal",
"<",
"T",
">",
"key",
")",
"{",
"EventLocalMap",
"<",
"EventLocal",
"<",
"?",
">",
",",
"Object",
">",
"map",
"=",
"getMap",
"(",
"key",
")",
... | Query the possible value for the provided EventLocal.
@param <T>
@param key
@return T | [
"Query",
"the",
"possible",
"value",
"for",
"the",
"provided",
"EventLocal",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java#L322-L329 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java | EventImpl.set | public <T> void set(EventLocal<T> key, Object value) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null == map) {
// the call to getMap would have created the inheritable map
// if appropriate, thus always create a disconnected map here
map = new Event... | java | public <T> void set(EventLocal<T> key, Object value) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null == map) {
// the call to getMap would have created the inheritable map
// if appropriate, thus always create a disconnected map here
map = new Event... | [
"public",
"<",
"T",
">",
"void",
"set",
"(",
"EventLocal",
"<",
"T",
">",
"key",
",",
"Object",
"value",
")",
"{",
"EventLocalMap",
"<",
"EventLocal",
"<",
"?",
">",
",",
"Object",
">",
"map",
"=",
"getMap",
"(",
"key",
")",
";",
"if",
"(",
"null... | Set the value for the provided EventLocal on this event.
@param <T>
@param key
@param value | [
"Set",
"the",
"value",
"for",
"the",
"provided",
"EventLocal",
"on",
"this",
"event",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java#L338-L351 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java | EventImpl.remove | @SuppressWarnings("unchecked")
public <T> T remove(EventLocal<T> key) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null != map) {
return (T) map.remove(key);
}
return null;
} | java | @SuppressWarnings("unchecked")
public <T> T remove(EventLocal<T> key) {
EventLocalMap<EventLocal<?>, Object> map = getMap(key);
if (null != map) {
return (T) map.remove(key);
}
return null;
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
">",
"T",
"remove",
"(",
"EventLocal",
"<",
"T",
">",
"key",
")",
"{",
"EventLocalMap",
"<",
"EventLocal",
"<",
"?",
">",
",",
"Object",
">",
"map",
"=",
"getMap",
"(",
"key",
")... | Remove any existing value for the provided EventLocal.
@param <T>
@param key
@return T, existing object being removed, null if none present | [
"Remove",
"any",
"existing",
"value",
"for",
"the",
"provided",
"EventLocal",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java#L360-L367 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java | EventImpl.getContextData | @SuppressWarnings("unchecked")
public <T> T getContextData(String name) {
T rc = null;
if (null != this.inheritableLocals) {
rc = (T) this.inheritableLocals.get(name);
}
if (null == rc && null != this.locals) {
rc = (T) this.locals.get(name);
}
... | java | @SuppressWarnings("unchecked")
public <T> T getContextData(String name) {
T rc = null;
if (null != this.inheritableLocals) {
rc = (T) this.inheritableLocals.get(name);
}
if (null == rc && null != this.locals) {
rc = (T) this.locals.get(name);
}
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
">",
"T",
"getContextData",
"(",
"String",
"name",
")",
"{",
"T",
"rc",
"=",
"null",
";",
"if",
"(",
"null",
"!=",
"this",
".",
"inheritableLocals",
")",
"{",
"rc",
"=",
"(",
"T"... | Look for the EventLocal of the given name in this particular Event
instance.
@param <T>
@param name
@return T | [
"Look",
"for",
"the",
"EventLocal",
"of",
"the",
"given",
"name",
"in",
"this",
"particular",
"Event",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/EventImpl.java#L377-L387 | train |
OpenLiberty/open-liberty | dev/wlp.lib.extract/src/wlp/lib/extract/agent/BootstrapAgent.java | BootstrapAgent.setSystemProperties | private static void setSystemProperties() {
// KernelBootstrap also sets these properties in case the bootstrap
// agent wasn't used for some reason.
String loggingManager = System.getProperty("java.util.logging.manager");
//if (loggingManager == null)
// System.setProperty("... | java | private static void setSystemProperties() {
// KernelBootstrap also sets these properties in case the bootstrap
// agent wasn't used for some reason.
String loggingManager = System.getProperty("java.util.logging.manager");
//if (loggingManager == null)
// System.setProperty("... | [
"private",
"static",
"void",
"setSystemProperties",
"(",
")",
"{",
"// KernelBootstrap also sets these properties in case the bootstrap",
"// agent wasn't used for some reason.",
"String",
"loggingManager",
"=",
"System",
".",
"getProperty",
"(",
"\"java.util.logging.manager\"",
")... | Set system properties for JVM singletons. | [
"Set",
"system",
"properties",
"for",
"JVM",
"singletons",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp.lib.extract/src/wlp/lib/extract/agent/BootstrapAgent.java#L138-L149 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageImpl.java | JsJmsMessageImpl.setBodyType | final void setBodyType(JmsBodyType value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setBodyType", value);
setSubtype(value.toByte());
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(this, tc, "set... | java | final void setBodyType(JmsBodyType value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setBodyType", value);
setSubtype(value.toByte());
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(this, tc, "set... | [
"final",
"void",
"setBodyType",
"(",
"JmsBodyType",
"value",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setBodyType\"... | Set the type of the message body.
This method is only used by message constructors.
@param value The JmsBodyType instance indicating the type of the body
i.e. Null, Bytes, Map, etc. | [
"Set",
"the",
"type",
"of",
"the",
"message",
"body",
".",
"This",
"method",
"is",
"only",
"used",
"by",
"message",
"constructors",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageImpl.java#L443-L449 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageImpl.java | JsJmsMessageImpl.getNonSmokeAndMirrorsPropertyNameSet | private final Set<String> getNonSmokeAndMirrorsPropertyNameSet() {
/* Get the names of all the properties in the JMS Property Maps */
/* We need a copy so that we can add extra items, and so can the caller */
Set<String> names = new HashSet<String>();
// Add the names for the two flavo... | java | private final Set<String> getNonSmokeAndMirrorsPropertyNameSet() {
/* Get the names of all the properties in the JMS Property Maps */
/* We need a copy so that we can add extra items, and so can the caller */
Set<String> names = new HashSet<String>();
// Add the names for the two flavo... | [
"private",
"final",
"Set",
"<",
"String",
">",
"getNonSmokeAndMirrorsPropertyNameSet",
"(",
")",
"{",
"/* Get the names of all the properties in the JMS Property Maps */",
"/* We need a copy so that we can add extra items, and so can the caller */",
"Set",
"<",
"String",
">",
"names"... | Return a Set of just the non-smoke-and-mirrors property names
@return A set containing the names of all the non-smoke-and-mirrors properties | [
"Return",
"a",
"Set",
"of",
"just",
"the",
"non",
"-",
"smoke",
"-",
"and",
"-",
"mirrors",
"property",
"names"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageImpl.java#L872-L893 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageImpl.java | JsJmsMessageImpl.getJMSXGroupSeq | @Override
public Object getJMSXGroupSeq() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getJMSXGroupSeq");
Object result = null;
if (mayHaveMappedJmsSystemProperties()) {
result = getObjectProperty(SIProperties.JMSXGroupSeq... | java | @Override
public Object getJMSXGroupSeq() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getJMSXGroupSeq");
Object result = null;
if (mayHaveMappedJmsSystemProperties()) {
result = getObjectProperty(SIProperties.JMSXGroupSeq... | [
"@",
"Override",
"public",
"Object",
"getJMSXGroupSeq",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getJMSXGroupS... | getJMSXGroupSeq
Return the value of the JMSXGroupSeq property if it exists.
We can return it as object, as that is all JMS API wants. Actually it only
really cares whether it exists, but we'll return Object rather than
changing the callng code unnecessarily.
Javadoc description supplied by JsJmsMessage interface. | [
"getJMSXGroupSeq",
"Return",
"the",
"value",
"of",
"the",
"JMSXGroupSeq",
"property",
"if",
"it",
"exists",
".",
"We",
"can",
"return",
"it",
"as",
"object",
"as",
"that",
"is",
"all",
"JMS",
"API",
"wants",
".",
"Actually",
"it",
"only",
"really",
"cares"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsJmsMessageImpl.java#L1162-L1175 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/SecurityRoleImpl.java | SecurityRoleImpl.processSpecialSubjects | private void processSpecialSubjects(ConfigurationAdmin configAdmin,
String roleName,
Dictionary<String, Object> roleProps, Set<String> pids) {
String[] specialSubjectPids = (String[]) roleProps.get(CFG_KEY_SPECIAL_SUBJECT);
... | java | private void processSpecialSubjects(ConfigurationAdmin configAdmin,
String roleName,
Dictionary<String, Object> roleProps, Set<String> pids) {
String[] specialSubjectPids = (String[]) roleProps.get(CFG_KEY_SPECIAL_SUBJECT);
... | [
"private",
"void",
"processSpecialSubjects",
"(",
"ConfigurationAdmin",
"configAdmin",
",",
"String",
"roleName",
",",
"Dictionary",
"<",
"String",
",",
"Object",
">",
"roleProps",
",",
"Set",
"<",
"String",
">",
"pids",
")",
"{",
"String",
"[",
"]",
"specialS... | Read and process all the specialSubject elements
@param configAdmin
@param roleName
@param roleProps
@param pids TODO | [
"Read",
"and",
"process",
"all",
"the",
"specialSubject",
"elements"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.builtin/src/com/ibm/ws/security/authorization/builtin/SecurityRoleImpl.java#L265-L321 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/WebAppTransactionCollaboratorImpl.java | WebAppTransactionCollaboratorImpl.preInvoke | @Override
public TxCollaboratorConfig preInvoke(final HttpServletRequest request, final boolean isServlet23)
throws ServletException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Calling preInvoke. Request=" + request + " | isServlet23=" +... | java | @Override
public TxCollaboratorConfig preInvoke(final HttpServletRequest request, final boolean isServlet23)
throws ServletException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Calling preInvoke. Request=" + request + " | isServlet23=" +... | [
"@",
"Override",
"public",
"TxCollaboratorConfig",
"preInvoke",
"(",
"final",
"HttpServletRequest",
"request",
",",
"final",
"boolean",
"isServlet23",
")",
"throws",
"ServletException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"t... | Collaborator preInvoke.
Called before the webapp is invoked, to ensure that a LTC is started
in the absence of a global transaction. A global tran may be active
on entry if the webapp that caused this dispatch left a global tran
active. The WebAppRequestDispatcher ensures that any global tran started
during a dispatch... | [
"Collaborator",
"preInvoke",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/WebAppTransactionCollaboratorImpl.java#L198-L280 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/WebAppTransactionCollaboratorImpl.java | WebAppTransactionCollaboratorImpl.resumeSuspendedLTC | private void resumeSuspendedLTC(LocalTransactionCurrent ltCurrent, Object txConfig) throws ServletException {
//Check for any suspended LTC that needs to be resumed
if (txConfig instanceof TxCollaboratorConfig) {
Object suspended = ((TxCollaboratorConfig) txConfig).getSuspendTx();
... | java | private void resumeSuspendedLTC(LocalTransactionCurrent ltCurrent, Object txConfig) throws ServletException {
//Check for any suspended LTC that needs to be resumed
if (txConfig instanceof TxCollaboratorConfig) {
Object suspended = ((TxCollaboratorConfig) txConfig).getSuspendTx();
... | [
"private",
"void",
"resumeSuspendedLTC",
"(",
"LocalTransactionCurrent",
"ltCurrent",
",",
"Object",
"txConfig",
")",
"throws",
"ServletException",
"{",
"//Check for any suspended LTC that needs to be resumed",
"if",
"(",
"txConfig",
"instanceof",
"TxCollaboratorConfig",
")",
... | Resumes the LTC that was suspended during preInvoke, if one was suspended. | [
"Resumes",
"the",
"LTC",
"that",
"was",
"suspended",
"during",
"preInvoke",
"if",
"one",
"was",
"suspended",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transaction/src/com/ibm/ws/transaction/services/WebAppTransactionCollaboratorImpl.java#L391-L429 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/SerializationObjectPool.java | SerializationObjectPool.getSerializationObject | public SerializationObject getSerializationObject() {
SerializationObject object;
synchronized (ivListOfObjects) {
if (ivListOfObjects.isEmpty()) {
object = createNewObject();
} else {
object = ivListOfObjects.remove(ivListOfObjects.size() - 1);
}
}
return object;
} | java | public SerializationObject getSerializationObject() {
SerializationObject object;
synchronized (ivListOfObjects) {
if (ivListOfObjects.isEmpty()) {
object = createNewObject();
} else {
object = ivListOfObjects.remove(ivListOfObjects.size() - 1);
}
}
return object;
} | [
"public",
"SerializationObject",
"getSerializationObject",
"(",
")",
"{",
"SerializationObject",
"object",
";",
"synchronized",
"(",
"ivListOfObjects",
")",
"{",
"if",
"(",
"ivListOfObjects",
".",
"isEmpty",
"(",
")",
")",
"{",
"object",
"=",
"createNewObject",
"(... | Gets the next avaialable serialization object.
@return ISerializationObject instance to do the conversation with. | [
"Gets",
"the",
"next",
"avaialable",
"serialization",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/SerializationObjectPool.java#L43-L53 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/SerializationObjectPool.java | SerializationObjectPool.returnSerializationObject | public void returnSerializationObject(SerializationObject object) {
synchronized (ivListOfObjects) {
if (ivListOfObjects.size() < MAXIMUM_NUM_OF_OBJECTS) {
ivListOfObjects.add(object);
}
}
} | java | public void returnSerializationObject(SerializationObject object) {
synchronized (ivListOfObjects) {
if (ivListOfObjects.size() < MAXIMUM_NUM_OF_OBJECTS) {
ivListOfObjects.add(object);
}
}
} | [
"public",
"void",
"returnSerializationObject",
"(",
"SerializationObject",
"object",
")",
"{",
"synchronized",
"(",
"ivListOfObjects",
")",
"{",
"if",
"(",
"ivListOfObjects",
".",
"size",
"(",
")",
"<",
"MAXIMUM_NUM_OF_OBJECTS",
")",
"{",
"ivListOfObjects",
".",
"... | Returns a serialization object back into the pool.
@param object an instance previously allocated with {@link #getSerializationObject()}. | [
"Returns",
"a",
"serialization",
"object",
"back",
"into",
"the",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ws/logging/hpel/impl/SerializationObjectPool.java#L60-L66 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DependencyTable.java | DependencyTable.add | public void add(Object dependency, ValueSet valueSet) {
if (dependency == null) {
throw new IllegalArgumentException("dependency cannot be null");
}
if (valueSet != null) {
dependencyToEntryTable.put(dependency, valueSet);
}
} | java | public void add(Object dependency, ValueSet valueSet) {
if (dependency == null) {
throw new IllegalArgumentException("dependency cannot be null");
}
if (valueSet != null) {
dependencyToEntryTable.put(dependency, valueSet);
}
} | [
"public",
"void",
"add",
"(",
"Object",
"dependency",
",",
"ValueSet",
"valueSet",
")",
"{",
"if",
"(",
"dependency",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"dependency cannot be null\"",
")",
";",
"}",
"if",
"(",
"valueSet"... | This adds a valueSet for the specified dependency.
@param dependency The dependency.
@param valueSet The valueSet to add. | [
"This",
"adds",
"a",
"valueSet",
"for",
"the",
"specified",
"dependency",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DependencyTable.java#L105-L112 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DependencyTable.java | DependencyTable.removeEntry | public boolean removeEntry(Object dependency, Object entry) { //SKS-O
boolean found = false;
ValueSet valueSet = (ValueSet) dependencyToEntryTable.get(dependency);
if (valueSet == null) {
return found;
}
found = valueSet.remove(entry);
if (valueSet.size()==0)
re... | java | public boolean removeEntry(Object dependency, Object entry) { //SKS-O
boolean found = false;
ValueSet valueSet = (ValueSet) dependencyToEntryTable.get(dependency);
if (valueSet == null) {
return found;
}
found = valueSet.remove(entry);
if (valueSet.size()==0)
re... | [
"public",
"boolean",
"removeEntry",
"(",
"Object",
"dependency",
",",
"Object",
"entry",
")",
"{",
"//SKS-O",
"boolean",
"found",
"=",
"false",
";",
"ValueSet",
"valueSet",
"=",
"(",
"ValueSet",
")",
"dependencyToEntryTable",
".",
"get",
"(",
"dependency",
")"... | SKS-O | [
"SKS",
"-",
"O"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/DependencyTable.java#L136-L147 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/GenericSSLConfigService.java | GenericSSLConfigService.modified | protected void modified(String id, Map<String, Object> properties) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "modified " + id, properties);
}
config = properties;
myProps = null;
} | java | protected void modified(String id, Map<String, Object> properties) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "modified " + id, properties);
}
config = properties;
myProps = null;
} | [
"protected",
"void",
"modified",
"(",
"String",
"id",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"properties",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
... | DS method to modify this component.
@param properties | [
"DS",
"method",
"to",
"modify",
"this",
"component",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/GenericSSLConfigService.java#L47-L54 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.getReadableLogRecord | protected ReadableLogRecord getReadableLogRecord(long expectedSequenceNumber)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getReadableLogRecord", new java.lang.Object[] { this, new Long(expectedSequenceNumber) });
if (tc.isDebugEnabled())
Tr.debug(tc, "Creating readable log reco... | java | protected ReadableLogRecord getReadableLogRecord(long expectedSequenceNumber)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getReadableLogRecord", new java.lang.Object[] { this, new Long(expectedSequenceNumber) });
if (tc.isDebugEnabled())
Tr.debug(tc, "Creating readable log reco... | [
"protected",
"ReadableLogRecord",
"getReadableLogRecord",
"(",
"long",
"expectedSequenceNumber",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getReadableLogRecord\"",
",",
"new",
"java",
".",
"lang",
"... | Read a composite record from the disk. The caller supplies the expected sequence
number of the record and this method confirms that this matches the next record
recovered.
@param sequenceNumber The expected sequence number
@return ReadableLogRecord The composite record | [
"Read",
"a",
"composite",
"record",
"from",
"the",
"disk",
".",
"The",
"caller",
"supplies",
"the",
"expected",
"sequence",
"number",
"of",
"the",
"record",
"and",
"this",
"method",
"confirms",
"that",
"this",
"matches",
"the",
"next",
"record",
"recovered",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L232-L246 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.fileClose | void fileClose() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "fileClose", this);
if (_fileChannel != null)
{
try
{
// Don't close channel as it will free a lock - wait until file close
if (_outstand... | java | void fileClose() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "fileClose", this);
if (_fileChannel != null)
{
try
{
// Don't close channel as it will free a lock - wait until file close
if (_outstand... | [
"void",
"fileClose",
"(",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"fileClose\"",
",",
"this",
")",
";",
"if",
"(",
"_fileChannel",
"!=",
"null",
")",
"{",
... | Close the file managed by this LogFileHandle instance.
@exception InternalLogException An unexpected error has occured. | [
"Close",
"the",
"file",
"managed",
"by",
"this",
"LogFileHandle",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L585-L623 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.getWriteableLogRecord | public WriteableLogRecord getWriteableLogRecord(int recordLength, long sequenceNumber) throws InternalLogException
{
if (!_headerFlushedFollowingRestart)
{
// ensure header is updated now we start to write records for the first time
// synchronization is assured through lock... | java | public WriteableLogRecord getWriteableLogRecord(int recordLength, long sequenceNumber) throws InternalLogException
{
if (!_headerFlushedFollowingRestart)
{
// ensure header is updated now we start to write records for the first time
// synchronization is assured through lock... | [
"public",
"WriteableLogRecord",
"getWriteableLogRecord",
"(",
"int",
"recordLength",
",",
"long",
"sequenceNumber",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"!",
"_headerFlushedFollowingRestart",
")",
"{",
"// ensure header is updated now we start to write records... | Get a new WritableLogRecord for the log file managed by this LogFileHandleInstance.
The size of the record must be specified along with the record's sequence number.
It is the caller's responsbility to ensure that both the sequence number is correct
and that the record written using the returned WritableLogRecord is of... | [
"Get",
"a",
"new",
"WritableLogRecord",
"for",
"the",
"log",
"file",
"managed",
"by",
"this",
"LogFileHandleInstance",
".",
"The",
"size",
"of",
"the",
"record",
"must",
"be",
"specified",
"along",
"with",
"the",
"record",
"s",
"sequence",
"number",
".",
"It... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L639-L666 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.writeFileHeader | private void writeFileHeader(boolean maintainPosition) throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "writeFileHeader", new java.lang.Object[] { this, new Boolean(maintainPosition) });
// Build the buffer that forms the major part of the file header and
// ... | java | private void writeFileHeader(boolean maintainPosition) throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "writeFileHeader", new java.lang.Object[] { this, new Boolean(maintainPosition) });
// Build the buffer that forms the major part of the file header and
// ... | [
"private",
"void",
"writeFileHeader",
"(",
"boolean",
"maintainPosition",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"writeFileHeader\"",
",",
"new",
"java",
".",
"... | Writes the file header stored in '_logFileHeader' to the file managed by this
LogFileHandle instance.
@param maintainPosition Flag to indicate if file pointer before the header write
needs to be restored after the header write (ie retain
the file pointer position)
@exception InternalLogException An unexpected error h... | [
"Writes",
"the",
"file",
"header",
"stored",
"in",
"_logFileHeader",
"to",
"the",
"file",
"managed",
"by",
"this",
"LogFileHandle",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L681-L710 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.writeFileStatus | private void writeFileStatus(boolean maintainPosition) throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "writeFileStatus", new java.lang.Object[] { this, new Boolean(maintainPosition) });
if (_logFileHeader.status() == LogFileHeader.STATUS_INVALID)
{
... | java | private void writeFileStatus(boolean maintainPosition) throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "writeFileStatus", new java.lang.Object[] { this, new Boolean(maintainPosition) });
if (_logFileHeader.status() == LogFileHeader.STATUS_INVALID)
{
... | [
"private",
"void",
"writeFileStatus",
"(",
"boolean",
"maintainPosition",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"writeFileStatus\"",
",",
"new",
"java",
".",
"... | Updates the status field of the file managed by this LogFileHandle instance.
The status field is stored in '_logFileHeader'.
@param maintainPosition Flag to indicate if file pointer before the header write
needs to be restored after the header write (ie retain
the file pointer position)
@exception InternalLogExceptio... | [
"Updates",
"the",
"status",
"field",
"of",
"the",
"file",
"managed",
"by",
"this",
"LogFileHandle",
"instance",
".",
"The",
"status",
"field",
"is",
"stored",
"in",
"_logFileHeader",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L725-L771 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.logFileHeader | protected LogFileHeader logFileHeader()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "logFileHeader", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "logFileHeader", _logFileHeader);
return _logFileHeader;
} | java | protected LogFileHeader logFileHeader()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "logFileHeader", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "logFileHeader", _logFileHeader);
return _logFileHeader;
} | [
"protected",
"LogFileHeader",
"logFileHeader",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"logFileHeader\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
... | Accessor for the log file header object assoicated with this LogFileHandle
instance.
@return LogFileHeader The log file header object associated with this LogFileHandle
instance. | [
"Accessor",
"for",
"the",
"log",
"file",
"header",
"object",
"assoicated",
"with",
"this",
"LogFileHandle",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L879-L886 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.getServiceData | public byte[] getServiceData()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getServiceData", this);
byte[] serviceData = null;
if (_logFileHeader != null)
{
serviceData = _logFileHeader.getServiceData();
}
if (tc.isEntryEnabled())
Tr... | java | public byte[] getServiceData()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getServiceData", this);
byte[] serviceData = null;
if (_logFileHeader != null)
{
serviceData = _logFileHeader.getServiceData();
}
if (tc.isEntryEnabled())
Tr... | [
"public",
"byte",
"[",
"]",
"getServiceData",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getServiceData\"",
",",
"this",
")",
";",
"byte",
"[",
"]",
"serviceData",
"=",
"null",
";",
... | Accessor for the service data assoicated with this LogFileHandle instance.
@return byte[] The service data associated with this LogFileHandle instance or
null if none exists. | [
"Accessor",
"for",
"the",
"service",
"data",
"assoicated",
"with",
"this",
"LogFileHandle",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L897-L912 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.freeBytes | public int freeBytes()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "freeBytes", this);
int freeBytes = 0;
try
{
int currentCursorPosition = _fileBuffer.position();
int fileLength = _fileBuffer.capacity();
freeBytes = fileLength - current... | java | public int freeBytes()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "freeBytes", this);
int freeBytes = 0;
try
{
int currentCursorPosition = _fileBuffer.position();
int fileLength = _fileBuffer.capacity();
freeBytes = fileLength - current... | [
"public",
"int",
"freeBytes",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"freeBytes\"",
",",
"this",
")",
";",
"int",
"freeBytes",
"=",
"0",
";",
"try",
"{",
"int",
"currentCursorPositi... | Returns the number of free bytes remaining in the file associated with this
LogFileHandle instance.
@return long The number of free bytes remaining. | [
"Returns",
"the",
"number",
"of",
"free",
"bytes",
"remaining",
"in",
"the",
"file",
"associated",
"with",
"this",
"LogFileHandle",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L923-L951 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.fileName | public String fileName()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "fileName", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "fileName", _fileName);
return _fileName;
} | java | public String fileName()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "fileName", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "fileName", _fileName);
return _fileName;
} | [
"public",
"String",
"fileName",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"fileName\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"ex... | Returns the name of the file associated with this LogFileHandle instance
@return String The name of the file associated with this LogFileHandle instance | [
"Returns",
"the",
"name",
"of",
"the",
"file",
"associated",
"with",
"this",
"LogFileHandle",
"instance"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L984-L991 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.keypointStarting | void keypointStarting(long nextRecordSequenceNumber) throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "keypointStarting", new Object[] { new Long(nextRecordSequenceNumber), this });
// Set the header to indicate a keypoint operation. This also marks the header
... | java | void keypointStarting(long nextRecordSequenceNumber) throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "keypointStarting", new Object[] { new Long(nextRecordSequenceNumber), this });
// Set the header to indicate a keypoint operation. This also marks the header
... | [
"void",
"keypointStarting",
"(",
"long",
"nextRecordSequenceNumber",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"keypointStarting\"",
",",
"new",
"Object",
"[",
"]",
... | Informs the LogFileHandle instance that a keypoint operation is about
begin into the file associated with this LogFileHandle instance. The status of the
log file is updated to KEYPOINTING and written to disk.
@param nextRecordSequenceNumber The sequence number to be used for the first
record in the file.
@exception I... | [
"Informs",
"the",
"LogFileHandle",
"instance",
"that",
"a",
"keypoint",
"operation",
"is",
"about",
"begin",
"into",
"the",
"file",
"associated",
"with",
"this",
"LogFileHandle",
"instance",
".",
"The",
"status",
"of",
"the",
"log",
"file",
"is",
"updated",
"t... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L1006-L1033 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.keypointComplete | void keypointComplete() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "keypointComplete", this);
_logFileHeader.keypointComplete();
try
{
writeFileStatus(true);
} catch (InternalLogException exc)
{
FFDCFilter.... | java | void keypointComplete() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "keypointComplete", this);
_logFileHeader.keypointComplete();
try
{
writeFileStatus(true);
} catch (InternalLogException exc)
{
FFDCFilter.... | [
"void",
"keypointComplete",
"(",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"keypointComplete\"",
",",
"this",
")",
";",
"_logFileHeader",
".",
"keypointComplete",
... | Informs the LogFileHandle instance that a keypoint operation into the file
has completed. The status of the log file is updated to ACTIVE and written
to disk.
@exception InternalLogException An unexpected error has occured. | [
"Informs",
"the",
"LogFileHandle",
"instance",
"that",
"a",
"keypoint",
"operation",
"into",
"the",
"file",
"has",
"completed",
".",
"The",
"status",
"of",
"the",
"log",
"file",
"is",
"updated",
"to",
"ACTIVE",
"and",
"written",
"to",
"disk",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L1045-L1070 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.becomeInactive | void becomeInactive() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "becomeInactive", this);
_logFileHeader.changeStatus(LogFileHeader.STATUS_INACTIVE);
try
{
writeFileStatus(false);
} catch (InternalLogException exc)
{
... | java | void becomeInactive() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "becomeInactive", this);
_logFileHeader.changeStatus(LogFileHeader.STATUS_INACTIVE);
try
{
writeFileStatus(false);
} catch (InternalLogException exc)
{
... | [
"void",
"becomeInactive",
"(",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"becomeInactive\"",
",",
"this",
")",
";",
"_logFileHeader",
".",
"changeStatus",
"(",
"... | This method is invoked to inform the LogFileHandle instance that the file
it manages is no longer required by the recovery log serivce. The status
field stored in the header is updated to INACTIVE.
@exception InternalLogException An unexpected error has occured. | [
"This",
"method",
"is",
"invoked",
"to",
"inform",
"the",
"LogFileHandle",
"instance",
"that",
"the",
"file",
"it",
"manages",
"is",
"no",
"longer",
"required",
"by",
"the",
"recovery",
"log",
"serivce",
".",
"The",
"status",
"field",
"stored",
"in",
"the",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L1082-L1107 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.fileExtend | public void fileExtend(int newFileSize) throws LogAllocationException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "fileExtend", new Object[] { new Integer(newFileSize), this });
final int fileLength = _fileBuffer.capacity();
if (fileLength < newFileSize)
{
try
... | java | public void fileExtend(int newFileSize) throws LogAllocationException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "fileExtend", new Object[] { new Integer(newFileSize), this });
final int fileLength = _fileBuffer.capacity();
if (fileLength < newFileSize)
{
try
... | [
"public",
"void",
"fileExtend",
"(",
"int",
"newFileSize",
")",
"throws",
"LogAllocationException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"fileExtend\"",
",",
"new",
"Object",
"[",
"]",
"{",
"ne... | Extend the physical log file. If 'newFileSize' is larger than the current file
size, the log file will extended so that it is 'newFileSize' kilobytes long.
If 'newFileSize' is equal to or less than the current file size, the current
log file will be unchanged.
@param newFileSize The new file size for the physical log ... | [
"Extend",
"the",
"physical",
"log",
"file",
".",
"If",
"newFileSize",
"is",
"larger",
"than",
"the",
"current",
"file",
"size",
"the",
"log",
"file",
"will",
"extended",
"so",
"that",
"it",
"is",
"newFileSize",
"kilobytes",
"long",
".",
"If",
"newFileSize",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L1143-L1199 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java | LogFileHandle.force | protected void force() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "force", this);
try
{
if (_isMapped)
{
// Note: on Win2K we can get an IOException from this even though it is not declared
((Mapped... | java | protected void force() throws InternalLogException
{
if (tc.isEntryEnabled())
Tr.entry(tc, "force", this);
try
{
if (_isMapped)
{
// Note: on Win2K we can get an IOException from this even though it is not declared
((Mapped... | [
"protected",
"void",
"force",
"(",
")",
"throws",
"InternalLogException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"force\"",
",",
"this",
")",
";",
"try",
"{",
"if",
"(",
"_isMapped",
")",
"{"... | Forces the contents of the memory-mapped view of the log file to disk.
Having invoked this method the caller can be certain that any data added
to the log as part of a prior log write is now stored persistently on disk. | [
"Forces",
"the",
"contents",
"of",
"the",
"memory",
"-",
"mapped",
"view",
"of",
"the",
"log",
"file",
"to",
"disk",
".",
"Having",
"invoked",
"this",
"method",
"the",
"caller",
"can",
"be",
"certain",
"that",
"any",
"data",
"added",
"to",
"the",
"log",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHandle.java#L1209-L1261 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/VirtualHostMapper.java | VirtualHostMapper.normalize | private String normalize(String alias) {
// replace all the '.'s to '\.'s
String regExp = alias.replaceAll("[\\.]", "\\\\\\.");
// replace all the '*'s to '.*'s
regExp = regExp.replaceAll("[*]", "\\.\\*");
// System.out.println("Normalized "+alias+" to "+regExp);
retur... | java | private String normalize(String alias) {
// replace all the '.'s to '\.'s
String regExp = alias.replaceAll("[\\.]", "\\\\\\.");
// replace all the '*'s to '.*'s
regExp = regExp.replaceAll("[*]", "\\.\\*");
// System.out.println("Normalized "+alias+" to "+regExp);
retur... | [
"private",
"String",
"normalize",
"(",
"String",
"alias",
")",
"{",
"// replace all the '.'s to '\\.'s",
"String",
"regExp",
"=",
"alias",
".",
"replaceAll",
"(",
"\"[\\\\.]\"",
",",
"\"\\\\\\\\\\\\.\"",
")",
";",
"// replace all the '*'s to '.*'s",
"regExp",
"=",
"re... | This method normalizes the alias into a valid regular expression | [
"This",
"method",
"normalizes",
"the",
"alias",
"into",
"a",
"valid",
"regular",
"expression"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/VirtualHostMapper.java#L56-L66 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/VirtualHostMapper.java | VirtualHostMapper.targetMappings | public Iterator targetMappings() {
// System.out.println("TargetMappings called");
// return vHostTable.values().iterator(); 316624
Collection vHosts = vHostTable.values(); // 316624
List l = new ArrayList(); // 316624
l.addAll(vHosts); // 316624
return l.listIterator(); ... | java | public Iterator targetMappings() {
// System.out.println("TargetMappings called");
// return vHostTable.values().iterator(); 316624
Collection vHosts = vHostTable.values(); // 316624
List l = new ArrayList(); // 316624
l.addAll(vHosts); // 316624
return l.listIterator(); ... | [
"public",
"Iterator",
"targetMappings",
"(",
")",
"{",
"// System.out.println(\"TargetMappings called\");",
"// return vHostTable.values().iterator(); 316624",
"Collection",
"vHosts",
"=",
"vHostTable",
".",
"values",
"(",
")",
";",
"// 316624",
"List",
"l",
"=",
"new",
"... | Returns an enumeration of all the target mappings added
to this mapper | [
"Returns",
"an",
"enumeration",
"of",
"all",
"the",
"target",
"mappings",
"added",
"to",
"this",
"mapper"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ws/util/VirtualHostMapper.java#L79-L86 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/BehindRefList.java | BehindRefList.insert | public final BehindRef insert(final AbstractItemLink insertAil)
{
final long insertPosition = insertAil.getPosition();
boolean inserted = false;
BehindRef addref = null;
// Loop backwards through the list in order of decreasing sequence number
// (addition usually near the e... | java | public final BehindRef insert(final AbstractItemLink insertAil)
{
final long insertPosition = insertAil.getPosition();
boolean inserted = false;
BehindRef addref = null;
// Loop backwards through the list in order of decreasing sequence number
// (addition usually near the e... | [
"public",
"final",
"BehindRef",
"insert",
"(",
"final",
"AbstractItemLink",
"insertAil",
")",
"{",
"final",
"long",
"insertPosition",
"=",
"insertAil",
".",
"getPosition",
"(",
")",
";",
"boolean",
"inserted",
"=",
"false",
";",
"BehindRef",
"addref",
"=",
"nu... | Inserts a reference to an AIL in the list of AILs behind the curent position of the
cursor. The insertion is performed in position order. The list is composed
of weak references and any which are discovered to refer to objects no longer on the
heap are removed as we go.
@param insertAil | [
"Inserts",
"a",
"reference",
"to",
"an",
"AIL",
"in",
"the",
"list",
"of",
"AILs",
"behind",
"the",
"curent",
"position",
"of",
"the",
"cursor",
".",
"The",
"insertion",
"is",
"performed",
"in",
"position",
"order",
".",
"The",
"list",
"is",
"composed",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/BehindRefList.java#L85-L157 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/BehindRefList.java | BehindRefList._remove | private final void _remove(final BehindRef removeref)
{
if (_firstLinkBehind != null)
{
if (removeref == _firstLinkBehind)
{
// It's the first in the list ...
if (removeref == _lastLinkBehind)
{
// ... and th... | java | private final void _remove(final BehindRef removeref)
{
if (_firstLinkBehind != null)
{
if (removeref == _firstLinkBehind)
{
// It's the first in the list ...
if (removeref == _lastLinkBehind)
{
// ... and th... | [
"private",
"final",
"void",
"_remove",
"(",
"final",
"BehindRef",
"removeref",
")",
"{",
"if",
"(",
"_firstLinkBehind",
"!=",
"null",
")",
"{",
"if",
"(",
"removeref",
"==",
"_firstLinkBehind",
")",
"{",
"// It's the first in the list ...",
"if",
"(",
"removeref... | Removes the first AIL in the list of AILs behind the current position of the cursor.
The list may empty completely as a result. | [
"Removes",
"the",
"first",
"AIL",
"in",
"the",
"list",
"of",
"AILs",
"behind",
"the",
"current",
"position",
"of",
"the",
"cursor",
".",
"The",
"list",
"may",
"empty",
"completely",
"as",
"a",
"result",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/BehindRefList.java#L165-L206 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java | BaseTraceService.invokeTraceRouters | protected boolean invokeTraceRouters(RoutedMessage routedTrace) {
boolean retMe = true;
LogRecord logRecord = routedTrace.getLogRecord();
/*
* Avoid any feedback traces that are emitted after this point.
* The first time the counter increments is the first pass-through.
... | java | protected boolean invokeTraceRouters(RoutedMessage routedTrace) {
boolean retMe = true;
LogRecord logRecord = routedTrace.getLogRecord();
/*
* Avoid any feedback traces that are emitted after this point.
* The first time the counter increments is the first pass-through.
... | [
"protected",
"boolean",
"invokeTraceRouters",
"(",
"RoutedMessage",
"routedTrace",
")",
"{",
"boolean",
"retMe",
"=",
"true",
";",
"LogRecord",
"logRecord",
"=",
"routedTrace",
".",
"getLogRecord",
"(",
")",
";",
"/*\n * Avoid any feedback traces that are emitted ... | Route only trace log records.Messages including Systemout,err will not be routed to trace source to avoid duplicate entries | [
"Route",
"only",
"trace",
"log",
"records",
".",
"Messages",
"including",
"Systemout",
"err",
"will",
"not",
"be",
"routed",
"to",
"trace",
"source",
"to",
"avoid",
"duplicate",
"entries"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java#L730-L766 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java | BaseTraceService.publishTraceLogRecord | protected void publishTraceLogRecord(TraceWriter detailLog, LogRecord logRecord, Object id, String formattedMsg, String formattedVerboseMsg) {
//check if tracefilename is stdout
if (formattedVerboseMsg == null) {
formattedVerboseMsg = formatter.formatVerboseMessage(logRecord, formattedMsg, f... | java | protected void publishTraceLogRecord(TraceWriter detailLog, LogRecord logRecord, Object id, String formattedMsg, String formattedVerboseMsg) {
//check if tracefilename is stdout
if (formattedVerboseMsg == null) {
formattedVerboseMsg = formatter.formatVerboseMessage(logRecord, formattedMsg, f... | [
"protected",
"void",
"publishTraceLogRecord",
"(",
"TraceWriter",
"detailLog",
",",
"LogRecord",
"logRecord",
",",
"Object",
"id",
",",
"String",
"formattedMsg",
",",
"String",
"formattedVerboseMsg",
")",
"{",
"//check if tracefilename is stdout",
"if",
"(",
"formattedV... | Publish a trace log record.
@param detailLog the trace writer
@param logRecord
@param id the trace object id
@param formattedMsg the result of {@link BaseTraceFormatter#formatMessage}
@param formattedVerboseMsg the result of {@link BaseTraceFormatter#formatVerboseMessage} | [
"Publish",
"a",
"trace",
"log",
"record",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java#L856-L901 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java | BaseTraceService.setMessageRouter | @Override
public void setMessageRouter(MessageRouter msgRouter) {
externalMessageRouter.set(msgRouter);
if (msgRouter instanceof WsMessageRouter) {
setWsMessageRouter((WsMessageRouter) msgRouter);
}
} | java | @Override
public void setMessageRouter(MessageRouter msgRouter) {
externalMessageRouter.set(msgRouter);
if (msgRouter instanceof WsMessageRouter) {
setWsMessageRouter((WsMessageRouter) msgRouter);
}
} | [
"@",
"Override",
"public",
"void",
"setMessageRouter",
"(",
"MessageRouter",
"msgRouter",
")",
"{",
"externalMessageRouter",
".",
"set",
"(",
"msgRouter",
")",
";",
"if",
"(",
"msgRouter",
"instanceof",
"WsMessageRouter",
")",
"{",
"setWsMessageRouter",
"(",
"(",
... | Inject the SPI MessageRouter.
This is injected by TrConfigurator, which is also SPI. So it's possible for
third-party code to implement and inject their own MessageRouter. | [
"Inject",
"the",
"SPI",
"MessageRouter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java#L909-L917 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java | BaseTraceService.unsetMessageRouter | @Override
public void unsetMessageRouter(MessageRouter msgRouter) {
externalMessageRouter.compareAndSet(msgRouter, null);
if (msgRouter instanceof WsMessageRouter) {
unsetWsMessageRouter((WsMessageRouter) msgRouter);
}
} | java | @Override
public void unsetMessageRouter(MessageRouter msgRouter) {
externalMessageRouter.compareAndSet(msgRouter, null);
if (msgRouter instanceof WsMessageRouter) {
unsetWsMessageRouter((WsMessageRouter) msgRouter);
}
} | [
"@",
"Override",
"public",
"void",
"unsetMessageRouter",
"(",
"MessageRouter",
"msgRouter",
")",
"{",
"externalMessageRouter",
".",
"compareAndSet",
"(",
"msgRouter",
",",
"null",
")",
";",
"if",
"(",
"msgRouter",
"instanceof",
"WsMessageRouter",
")",
"{",
"unsetW... | Un-inject. | [
"Un",
"-",
"inject",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java#L922-L929 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java | BaseTraceService.initializeWriters | protected void initializeWriters(LogProviderConfigImpl config) {
// createFileLog may or may not return the original log holder..
messagesLog = FileLogHolder.createFileLogHolder(messagesLog,
newFileLogHeader(false, config),
... | java | protected void initializeWriters(LogProviderConfigImpl config) {
// createFileLog may or may not return the original log holder..
messagesLog = FileLogHolder.createFileLogHolder(messagesLog,
newFileLogHeader(false, config),
... | [
"protected",
"void",
"initializeWriters",
"(",
"LogProviderConfigImpl",
"config",
")",
"{",
"// createFileLog may or may not return the original log holder..",
"messagesLog",
"=",
"FileLogHolder",
".",
"createFileLogHolder",
"(",
"messagesLog",
",",
"newFileLogHeader",
"(",
"fa... | Initialize the log holders for messages and trace. If the TrService is configured
at bootstrap time to use JSR-47 logging, the traceLog will not be created here,
as the LogRecord should be routed to logger rather than being formatted for
the trace file.
@param config a {@link LogProviderConfigImpl} containing TrServic... | [
"Initialize",
"the",
"log",
"holders",
"for",
"messages",
"and",
"trace",
".",
"If",
"the",
"TrService",
"is",
"configured",
"at",
"bootstrap",
"time",
"to",
"use",
"JSR",
"-",
"47",
"logging",
"the",
"traceLog",
"will",
"not",
"be",
"created",
"here",
"as... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceService.java#L1002-L1032 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java | CDIBatchArtifactFactoryImpl.load | @Override
public Object load(String batchId) {
Object loadedArtifact;
loadedArtifact = getArtifactById(batchId);
if (loadedArtifact != null) {
if (logger.isLoggable(Level.FINEST)) {
logger.finest("load: batchId: " + batchId
+ ", ar... | java | @Override
public Object load(String batchId) {
Object loadedArtifact;
loadedArtifact = getArtifactById(batchId);
if (loadedArtifact != null) {
if (logger.isLoggable(Level.FINEST)) {
logger.finest("load: batchId: " + batchId
+ ", ar... | [
"@",
"Override",
"public",
"Object",
"load",
"(",
"String",
"batchId",
")",
"{",
"Object",
"loadedArtifact",
";",
"loadedArtifact",
"=",
"getArtifactById",
"(",
"batchId",
")",
";",
"if",
"(",
"loadedArtifact",
"!=",
"null",
")",
"{",
"if",
"(",
"logger",
... | Use CDI to load the artifact with the given ID.
@return the loaded artifact; or null if CDI is not enabled for the app. | [
"Use",
"CDI",
"to",
"load",
"the",
"artifact",
"with",
"the",
"given",
"ID",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java#L59-L75 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java | CDIBatchArtifactFactoryImpl.getUniqueBeanByBeanName | protected Bean<?> getUniqueBeanByBeanName(BeanManager bm, String batchId) {
Bean<?> match = null;
// Get all beans with the given EL name (id). EL names are applied via @Named.
// If the bean is not annotated with @Named, then it does not have an EL name
// and therefore can't be looke... | java | protected Bean<?> getUniqueBeanByBeanName(BeanManager bm, String batchId) {
Bean<?> match = null;
// Get all beans with the given EL name (id). EL names are applied via @Named.
// If the bean is not annotated with @Named, then it does not have an EL name
// and therefore can't be looke... | [
"protected",
"Bean",
"<",
"?",
">",
"getUniqueBeanByBeanName",
"(",
"BeanManager",
"bm",
",",
"String",
"batchId",
")",
"{",
"Bean",
"<",
"?",
">",
"match",
"=",
"null",
";",
"// Get all beans with the given EL name (id). EL names are applied via @Named.",
"// If the b... | Use the given BeanManager to lookup a unique CDI-registered bean
with bean name equal to 'batchId', using EL matching rules.
@return the bean with the given bean name, or 'null' if there is an ambiguous resolution | [
"Use",
"the",
"given",
"BeanManager",
"to",
"lookup",
"a",
"unique",
"CDI",
"-",
"registered",
"bean",
"with",
"bean",
"name",
"equal",
"to",
"batchId",
"using",
"EL",
"matching",
"rules",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java#L132-L146 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java | CDIBatchArtifactFactoryImpl.getUniqueBeanForBatchXMLEntry | @FFDCIgnore(BatchCDIAmbiguousResolutionCheckedException.class)
protected Bean<?> getUniqueBeanForBatchXMLEntry(BeanManager bm, String batchId) {
ClassLoader loader = getContextClassLoader();
BatchXMLMapper batchXMLMapper = new BatchXMLMapper(loader);
Class<?> clazz = batchXMLMapper.getArtifa... | java | @FFDCIgnore(BatchCDIAmbiguousResolutionCheckedException.class)
protected Bean<?> getUniqueBeanForBatchXMLEntry(BeanManager bm, String batchId) {
ClassLoader loader = getContextClassLoader();
BatchXMLMapper batchXMLMapper = new BatchXMLMapper(loader);
Class<?> clazz = batchXMLMapper.getArtifa... | [
"@",
"FFDCIgnore",
"(",
"BatchCDIAmbiguousResolutionCheckedException",
".",
"class",
")",
"protected",
"Bean",
"<",
"?",
">",
"getUniqueBeanForBatchXMLEntry",
"(",
"BeanManager",
"bm",
",",
"String",
"batchId",
")",
"{",
"ClassLoader",
"loader",
"=",
"getContextClassL... | Use the given BeanManager to lookup a unique CDI-registered bean
with bean class equal to the batch.xml entry mapped to be the batchId parameter
@return the bean with the given className. It returns null if there are zero matches or if there is no umabiguous resolution (i.e. more than 1 match) | [
"Use",
"the",
"given",
"BeanManager",
"to",
"lookup",
"a",
"unique",
"CDI",
"-",
"registered",
"bean",
"with",
"bean",
"class",
"equal",
"to",
"the",
"batch",
".",
"xml",
"entry",
"mapped",
"to",
"be",
"the",
"batchId",
"parameter"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java#L154-L171 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java | CDIBatchArtifactFactoryImpl.getUniqueBeanForClassName | @FFDCIgnore({ ClassNotFoundException.class, BatchCDIAmbiguousResolutionCheckedException.class })
protected Bean<?> getUniqueBeanForClassName(BeanManager bm, String className) {
// Ignore exceptions since will just failover to another loading mechanism
try {
Class<?> clazz = getContextCla... | java | @FFDCIgnore({ ClassNotFoundException.class, BatchCDIAmbiguousResolutionCheckedException.class })
protected Bean<?> getUniqueBeanForClassName(BeanManager bm, String className) {
// Ignore exceptions since will just failover to another loading mechanism
try {
Class<?> clazz = getContextCla... | [
"@",
"FFDCIgnore",
"(",
"{",
"ClassNotFoundException",
".",
"class",
",",
"BatchCDIAmbiguousResolutionCheckedException",
".",
"class",
"}",
")",
"protected",
"Bean",
"<",
"?",
">",
"getUniqueBeanForClassName",
"(",
"BeanManager",
"bm",
",",
"String",
"className",
")... | Use the given BeanManager to lookup the set of CDI-registered beans with
the given class name.
@return the bean with the given className. It returns null if there are zero matches or if there is no umabiguous resolution (i.e. more than 1 match) | [
"Use",
"the",
"given",
"BeanManager",
"to",
"lookup",
"the",
"set",
"of",
"CDI",
"-",
"registered",
"beans",
"with",
"the",
"given",
"class",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jbatch.cdi/src/com/ibm/ws/jbatch/cdi/internal/CDIBatchArtifactFactoryImpl.java#L179-L196 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ExecutorServiceImpl.java | ExecutorServiceImpl.createExecutor | private synchronized void createExecutor() {
if (componentConfig == null) {
// this is a completely normal occurrence and can happen if a ThreadFactory is bound prior to
// component activation... the proper thing to do is to do nothing and wait for activation
return;
... | java | private synchronized void createExecutor() {
if (componentConfig == null) {
// this is a completely normal occurrence and can happen if a ThreadFactory is bound prior to
// component activation... the proper thing to do is to do nothing and wait for activation
return;
... | [
"private",
"synchronized",
"void",
"createExecutor",
"(",
")",
"{",
"if",
"(",
"componentConfig",
"==",
"null",
")",
"{",
"// this is a completely normal occurrence and can happen if a ThreadFactory is bound prior to",
"// component activation... the proper thing to do is to do nothin... | Create a thread pool executor with the configured attributes from this
component config. | [
"Create",
"a",
"thread",
"pool",
"executor",
"with",
"the",
"configured",
"attributes",
"from",
"this",
"component",
"config",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ExecutorServiceImpl.java#L177-L219 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ExecutorServiceImpl.java | ExecutorServiceImpl.wrap | private <T> Collection<? extends Callable<T>> wrap(Collection<? extends Callable<T>> tasks) {
List<Callable<T>> wrappedTasks = new ArrayList<Callable<T>>();
Iterator<? extends Callable<T>> i = tasks.iterator();
while (i.hasNext()) {
Callable<T> c = wrap(i.next());
if (ser... | java | private <T> Collection<? extends Callable<T>> wrap(Collection<? extends Callable<T>> tasks) {
List<Callable<T>> wrappedTasks = new ArrayList<Callable<T>>();
Iterator<? extends Callable<T>> i = tasks.iterator();
while (i.hasNext()) {
Callable<T> c = wrap(i.next());
if (ser... | [
"private",
"<",
"T",
">",
"Collection",
"<",
"?",
"extends",
"Callable",
"<",
"T",
">",
">",
"wrap",
"(",
"Collection",
"<",
"?",
"extends",
"Callable",
"<",
"T",
">",
">",
"tasks",
")",
"{",
"List",
"<",
"Callable",
"<",
"T",
">>",
"wrappedTasks",
... | This is private, so handling both interceptors and wrapping in this method for simplicity | [
"This",
"is",
"private",
"so",
"handling",
"both",
"interceptors",
"and",
"wrapping",
"in",
"this",
"method",
"for",
"simplicity"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ExecutorServiceImpl.java#L489-L500 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java | BrowserProxyQueueImpl.next | public JsMessage next()
throws MessageDecodeFailedException,
SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException,
SIErrorException,
... | java | public JsMessage next()
throws MessageDecodeFailedException,
SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException,
SIErrorException,
... | [
"public",
"JsMessage",
"next",
"(",
")",
"throws",
"MessageDecodeFailedException",
",",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionDroppedException",
",",
"SIResourceException",
",",
"SIConnectionL... | Returns the next message for a browse.
@see com.ibm.ws.sib.comms.client.proxyqueue.BrowserProxyQueue#next() | [
"Returns",
"the",
"next",
"message",
"for",
"a",
"browse",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java#L126-L150 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java | BrowserProxyQueueImpl.close | public void close()
throws SIResourceException, SIConnectionLostException,
SIErrorException, SIConnectionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "close");
if (!closed)
{
// begin D249096
convHelper.clo... | java | public void close()
throws SIResourceException, SIConnectionLostException,
SIErrorException, SIConnectionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "close");
if (!closed)
{
// begin D249096
convHelper.clo... | [
"public",
"void",
"close",
"(",
")",
"throws",
"SIResourceException",
",",
"SIConnectionLostException",
",",
"SIErrorException",
",",
"SIConnectionDroppedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabl... | Closes the proxy queue.
@see com.ibm.ws.sib.comms.client.proxyqueue.BrowserProxyQueue#close() | [
"Closes",
"the",
"proxy",
"queue",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java#L157-L174 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java | BrowserProxyQueueImpl.put | public void put(CommsByteBuffer msgBuffer, short msgBatch, boolean lastInBatch, boolean chunk)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", new Object[]{msgBuffer, msgBatch, lastInBatch, chunk});
QueueData queueData = null;
// If this data r... | java | public void put(CommsByteBuffer msgBuffer, short msgBatch, boolean lastInBatch, boolean chunk)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", new Object[]{msgBuffer, msgBatch, lastInBatch, chunk});
QueueData queueData = null;
// If this data r... | [
"public",
"void",
"put",
"(",
"CommsByteBuffer",
"msgBuffer",
",",
"short",
"msgBatch",
",",
"boolean",
"lastInBatch",
",",
"boolean",
"chunk",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",... | Places a browse message on the queue.
@see com.ibm.ws.sib.comms.client.proxyqueue.ProxyQueue#put(com.ibm.ws.sib.comms.common.CommsByteBuffer, short, boolean, boolean) | [
"Places",
"a",
"browse",
"message",
"on",
"the",
"queue",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java#L189-L241 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java | BrowserProxyQueueImpl.setBrowserSession | public void setBrowserSession(BrowserSessionProxy browserSession)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setBrowserSession", browserSession);
if (this.browserSession != null)
{
// We are flagging this here as we should never call setBrows... | java | public void setBrowserSession(BrowserSessionProxy browserSession)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setBrowserSession", browserSession);
if (this.browserSession != null)
{
// We are flagging this here as we should never call setBrows... | [
"public",
"void",
"setBrowserSession",
"(",
"BrowserSessionProxy",
"browserSession",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"setBro... | Sets the browser session this proxy queue is being used in
conjunction with.
@see com.ibm.ws.sib.comms.client.proxyqueue.BrowserProxyQueue#setBrowserSession(BrowserSessionProxy) | [
"Sets",
"the",
"browser",
"session",
"this",
"proxy",
"queue",
"is",
"being",
"used",
"in",
"conjunction",
"with",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/BrowserProxyQueueImpl.java#L248-L284 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt/src/com/ibm/ws/security/mp/jwt/impl/DefaultJsonWebTokenImpl.java | DefaultJsonWebTokenImpl.readObject | private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
GetField fields = in.readFields();
principal = (String) fields.get(PRINCIPAL, null);
jwt = (String) fields.get(JWT, null);
type = (String) fields.get(TYPE, null);
handleClaims(jwt);
} | java | private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
GetField fields = in.readFields();
principal = (String) fields.get(PRINCIPAL, null);
jwt = (String) fields.get(JWT, null);
type = (String) fields.get(TYPE, null);
handleClaims(jwt);
} | [
"private",
"void",
"readObject",
"(",
"ObjectInputStream",
"in",
")",
"throws",
"IOException",
",",
"ClassNotFoundException",
"{",
"GetField",
"fields",
"=",
"in",
".",
"readFields",
"(",
")",
";",
"principal",
"=",
"(",
"String",
")",
"fields",
".",
"get",
... | Deserialize json web token.
@param in
The stream from which this object is read.
@throws IOException
@throws ClassNotFoundException | [
"Deserialize",
"json",
"web",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt/src/com/ibm/ws/security/mp/jwt/impl/DefaultJsonWebTokenImpl.java#L216-L222 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt/src/com/ibm/ws/security/mp/jwt/impl/DefaultJsonWebTokenImpl.java | DefaultJsonWebTokenImpl.writeObject | private void writeObject(ObjectOutputStream out) throws IOException {
PutField fields = out.putFields();
fields.put(PRINCIPAL, principal);
fields.put(JWT, jwt);
fields.put(TYPE, type);
out.writeFields();
} | java | private void writeObject(ObjectOutputStream out) throws IOException {
PutField fields = out.putFields();
fields.put(PRINCIPAL, principal);
fields.put(JWT, jwt);
fields.put(TYPE, type);
out.writeFields();
} | [
"private",
"void",
"writeObject",
"(",
"ObjectOutputStream",
"out",
")",
"throws",
"IOException",
"{",
"PutField",
"fields",
"=",
"out",
".",
"putFields",
"(",
")",
";",
"fields",
".",
"put",
"(",
"PRINCIPAL",
",",
"principal",
")",
";",
"fields",
".",
"pu... | Serialize json web token.
@param out
The stream to which this object is serialized.
@throws IOException | [
"Serialize",
"json",
"web",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt/src/com/ibm/ws/security/mp/jwt/impl/DefaultJsonWebTokenImpl.java#L232-L238 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/annotation/DefaultAnnotationProvider.java | DefaultAnnotationProvider._getAlternativeJarFile | private static JarFile _getAlternativeJarFile(URL url) throws IOException
{
String urlFile = url.getFile();
// Trim off any suffix - which is prefixed by "!/" on Weblogic
int separatorIndex = urlFile.indexOf("!/");
// OK, didn't find that. Try the less safe "!", used on OC4J
... | java | private static JarFile _getAlternativeJarFile(URL url) throws IOException
{
String urlFile = url.getFile();
// Trim off any suffix - which is prefixed by "!/" on Weblogic
int separatorIndex = urlFile.indexOf("!/");
// OK, didn't find that. Try the less safe "!", used on OC4J
... | [
"private",
"static",
"JarFile",
"_getAlternativeJarFile",
"(",
"URL",
"url",
")",
"throws",
"IOException",
"{",
"String",
"urlFile",
"=",
"url",
".",
"getFile",
"(",
")",
";",
"// Trim off any suffix - which is prefixed by \"!/\" on Weblogic",
"int",
"separatorIndex",
"... | taken from org.apache.myfaces.view.facelets.util.Classpath
For URLs to JARs that do not use JarURLConnection - allowed by the servlet spec - attempt to produce a JarFile
object all the same. Known servlet engines that function like this include Weblogic and OC4J. This is not a full
solution, since an unpacked WAR or E... | [
"taken",
"from",
"org",
".",
"apache",
".",
"myfaces",
".",
"view",
".",
"facelets",
".",
"util",
".",
"Classpath"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/annotation/DefaultAnnotationProvider.java#L698-L724 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/lifecycle/LifecycleImpl.java | LifecycleImpl.requestProcessed | private void requestProcessed(FacesContext facesContext)
{
if(!_firstRequestProcessed)
{
// The order here is important. First it is necessary to put
// the value on application map before change the value here.
// If multiple threads reach this point concurrently... | java | private void requestProcessed(FacesContext facesContext)
{
if(!_firstRequestProcessed)
{
// The order here is important. First it is necessary to put
// the value on application map before change the value here.
// If multiple threads reach this point concurrently... | [
"private",
"void",
"requestProcessed",
"(",
"FacesContext",
"facesContext",
")",
"{",
"if",
"(",
"!",
"_firstRequestProcessed",
")",
"{",
"// The order here is important. First it is necessary to put",
"// the value on application map before change the value here.",
"// If multiple t... | This method places an attribute on the application map to
indicate that the first request has been processed. This
attribute is used by several methods in ApplicationImpl
to determine whether or not to throw an IllegalStateException
@param facesContext | [
"This",
"method",
"places",
"an",
"attribute",
"on",
"the",
"application",
"map",
"to",
"indicate",
"that",
"the",
"first",
"request",
"has",
"been",
"processed",
".",
"This",
"attribute",
"is",
"used",
"by",
"several",
"methods",
"in",
"ApplicationImpl",
"to"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/lifecycle/LifecycleImpl.java#L396-L410 | train |
OpenLiberty/open-liberty | dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/JSLProperties.java | JSLProperties.getPropertyList | @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<Property> getPropertyList() {
if (propertyList == null) {
propertyList = new ArrayList<Property>();
}
return this.prop... | java | @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<Property> getPropertyList() {
if (propertyList == null) {
propertyList = new ArrayList<Property>();
}
return this.prop... | [
"@",
"Generated",
"(",
"value",
"=",
"\"com.ibm.jtc.jax.tools.xjc.Driver\"",
",",
"date",
"=",
"\"2014-06-11T05:49:00-04:00\"",
",",
"comments",
"=",
"\"JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-\"",
")",
"public",
"List",
"<",
"Property",
">",
"getPropertyList",
"(",
"... | Gets the value of the propertyList property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the propertyList property.
<p>
For example... | [
"Gets",
"the",
"value",
"of",
"the",
"propertyList",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/JSLProperties.java#L77-L83 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java | Token.current | protected Token current()
{
final String methodName = "current";
Token currentToken;
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, methodName
+ toString()
);
... | java | protected Token current()
{
final String methodName = "current";
Token currentToken;
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, methodName
+ toString()
);
... | [
"protected",
"Token",
"current",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"current\"",
";",
"Token",
"currentToken",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
... | Give back the current token if there is already one known to the
Object Store for the same ManagedObject.
@return Token already known to the ObjectStore. | [
"Give",
"back",
"the",
"current",
"token",
"if",
"there",
"is",
"already",
"one",
"known",
"to",
"the",
"Object",
"Store",
"for",
"the",
"same",
"ManagedObject",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java#L113-L130 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java | Token.getManagedObject | public final ManagedObject getManagedObject()
throws ObjectManagerException {
// final String methodName = "getManagedObject";
// if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
// trace.entry(this,
// cclass,
// methodName);
// Get ... | java | public final ManagedObject getManagedObject()
throws ObjectManagerException {
// final String methodName = "getManagedObject";
// if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
// trace.entry(this,
// cclass,
// methodName);
// Get ... | [
"public",
"final",
"ManagedObject",
"getManagedObject",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"// final String methodName = \"getManagedObject\";",
"// if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())",
"// trace.entry(this,",
"// cclass,"... | Find the ManagedObject handled by this token.
@return ManagedObject the underlying ManagedObject represented by the token.
@throws ObjectManagerException | [
"Find",
"the",
"ManagedObject",
"handled",
"by",
"this",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java#L138-L171 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java | Token.setManagedObject | protected synchronized ManagedObject setManagedObject(ManagedObject managedObject)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "setManagedObject"
+ "m... | java | protected synchronized ManagedObject setManagedObject(ManagedObject managedObject)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "setManagedObject"
+ "m... | [
"protected",
"synchronized",
"ManagedObject",
"setManagedObject",
"(",
"ManagedObject",
"managedObject",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"t... | Associate a new ManagedObject with this token. If there is already
a managedObject associated with the Token it is replaced by making it a clone of the
new ManagedObject so that existing references to the old ManagedObject becone
refrences to the new one.
@param ManagedObject to be associated with this Token.
@return ... | [
"Associate",
"a",
"new",
"ManagedObject",
"with",
"this",
"token",
".",
"If",
"there",
"is",
"already",
"a",
"managedObject",
"associated",
"with",
"the",
"Token",
"it",
"is",
"replaced",
"by",
"making",
"it",
"a",
"clone",
"of",
"the",
"new",
"ManagedObject... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java#L183-L220 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java | Token.invalidate | void invalidate()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "invalidate"
);
// Prevent any attempt to load the object.
objectStore = null;
// If the ManagedObject is alre... | java | void invalidate()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "invalidate"
);
// Prevent any attempt to load the object.
objectStore = null;
// If the ManagedObject is alre... | [
"void",
"invalidate",
"(",
")",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"cclass",
",",
"\"invalidate\"",
")",
";",
"// Prevent any attemp... | Make the token and any ManagedObject it refers to invalid.
Used at shutdown to prevent accidental use of a ManagedObject in the ObjectManager that
instantiated it or any other Object Manager. | [
"Make",
"the",
"token",
"and",
"any",
"ManagedObject",
"it",
"refers",
"to",
"invalid",
".",
"Used",
"at",
"shutdown",
"to",
"prevent",
"accidental",
"use",
"of",
"a",
"ManagedObject",
"in",
"the",
"ObjectManager",
"that",
"instantiated",
"it",
"or",
"any",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java#L227-L249 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java | Token.restore | public static final Token restore(java.io.DataInputStream dataInputStream,
ObjectManagerState objectManagerState)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(cclass
... | java | public static final Token restore(java.io.DataInputStream dataInputStream,
ObjectManagerState objectManagerState)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(cclass
... | [
"public",
"static",
"final",
"Token",
"restore",
"(",
"java",
".",
"io",
".",
"DataInputStream",
"dataInputStream",
",",
"ObjectManagerState",
"objectManagerState",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
... | Recover the token described by a dataInputStream and resolve it ot the definitive token.
@param dataInputStream containing the serialized Token.
@param objectManagerState of the objectManager reconstructing the Token.
@return Token matching the next bytes in the dataInputStream.
@throws ObjectManagerException | [
"Recover",
"the",
"token",
"described",
"by",
"a",
"dataInputStream",
"and",
"resolve",
"it",
"ot",
"the",
"definitive",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/Token.java#L377-L424 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointList.java | HttpEndpointList.findEndpoint | public static HttpEndpointImpl findEndpoint(String endpointId) {
for (HttpEndpointImpl i : instance.get()) {
if (i.getName().equals(endpointId))
return i;
}
return null;
} | java | public static HttpEndpointImpl findEndpoint(String endpointId) {
for (HttpEndpointImpl i : instance.get()) {
if (i.getName().equals(endpointId))
return i;
}
return null;
} | [
"public",
"static",
"HttpEndpointImpl",
"findEndpoint",
"(",
"String",
"endpointId",
")",
"{",
"for",
"(",
"HttpEndpointImpl",
"i",
":",
"instance",
".",
"get",
"(",
")",
")",
"{",
"if",
"(",
"i",
".",
"getName",
"(",
")",
".",
"equals",
"(",
"endpointId... | Return the endpoint for the given id.
@param endpointId
@return The endpoint associated with the id, or null. | [
"Return",
"the",
"endpoint",
"for",
"the",
"given",
"id",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointList.java#L55-L61 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/ControllableStream.java | ControllableStream.getTicksOnStream | public synchronized List<Long> getTicksOnStream()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getTicksOnStream");
List<Long> msgs = new ArrayList<Long>();
StateStream stateStream = getStateStream();
// Initial range in stream is always comp... | java | public synchronized List<Long> getTicksOnStream()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getTicksOnStream");
List<Long> msgs = new ArrayList<Long>();
StateStream stateStream = getStateStream();
// Initial range in stream is always comp... | [
"public",
"synchronized",
"List",
"<",
"Long",
">",
"getTicksOnStream",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getTicksOn... | Gets a list of all tick values on the state stream
@param stream
@return | [
"Gets",
"a",
"list",
"of",
"all",
"tick",
"values",
"on",
"the",
"state",
"stream"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/ControllableStream.java#L38-L68 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.