id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
70,100 | OpenLiberty/open-liberty | dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java | ExtendedJTATransactionImpl.garbageCollectUnusedLevels | private static void garbageCollectUnusedLevels() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "garbageCollectUnusedLevels");
final int numLevels = _syncLevels.size();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.d... | java | private static void garbageCollectUnusedLevels() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "garbageCollectUnusedLevels");
final int numLevels = _syncLevels.size();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.d... | [
"private",
"static",
"void",
"garbageCollectUnusedLevels",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"garbageCollectUnusedLevels\"",
... | Null out levels that will never be referenced again.
Null entries are candidates to be the next current level. | [
"Null",
"out",
"levels",
"that",
"will",
"never",
"be",
"referenced",
"again",
".",
"Null",
"entries",
"are",
"candidates",
"to",
"be",
"the",
"next",
"current",
"level",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java#L404-L454 |
70,101 | OpenLiberty/open-liberty | dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java | ExtendedJTATransactionImpl.setLevel | private static void setLevel(ArrayList level) {
_syncLevel = nextLevel();
if (_syncLevel == _syncLevels.size()) {
_syncLevels.add(level);
} else {
_syncLevels.set(_syncLevel, level);
}
} | java | private static void setLevel(ArrayList level) {
_syncLevel = nextLevel();
if (_syncLevel == _syncLevels.size()) {
_syncLevels.add(level);
} else {
_syncLevels.set(_syncLevel, level);
}
} | [
"private",
"static",
"void",
"setLevel",
"(",
"ArrayList",
"level",
")",
"{",
"_syncLevel",
"=",
"nextLevel",
"(",
")",
";",
"if",
"(",
"_syncLevel",
"==",
"_syncLevels",
".",
"size",
"(",
")",
")",
"{",
"_syncLevels",
".",
"add",
"(",
"level",
")",
";... | Utility method to make a list into the new current level
@param level | [
"Utility",
"method",
"to",
"make",
"a",
"list",
"into",
"the",
"new",
"current",
"level"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.tx.jta.extensions/src/com/ibm/ws/jtaextensions/ExtendedJTATransactionImpl.java#L461-L469 |
70,102 | OpenLiberty/open-liberty | dev/com.ibm.ws.crypto.certificateutil/src/com/ibm/ws/crypto/certificateutil/keytool/KeytoolSSLCertificateCreator.java | KeytoolSSLCertificateCreator.validateParameters | private void validateParameters(String filePath, String password, int validity, String subjectDN, int keySize, String sigAlg) {
if (!validateFilePath(filePath)) {
throw new IllegalArgumentException("filePath must be a valid filePath within the file system.");
}
if (password == null |... | java | private void validateParameters(String filePath, String password, int validity, String subjectDN, int keySize, String sigAlg) {
if (!validateFilePath(filePath)) {
throw new IllegalArgumentException("filePath must be a valid filePath within the file system.");
}
if (password == null |... | [
"private",
"void",
"validateParameters",
"(",
"String",
"filePath",
",",
"String",
"password",
",",
"int",
"validity",
",",
"String",
"subjectDN",
",",
"int",
"keySize",
",",
"String",
"sigAlg",
")",
"{",
"if",
"(",
"!",
"validateFilePath",
"(",
"filePath",
... | Validate the parameters.
@param filePath
@param password
@param validity
@param subjectDN | [
"Validate",
"the",
"parameters",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.certificateutil/src/com/ibm/ws/crypto/certificateutil/keytool/KeytoolSSLCertificateCreator.java#L65-L98 |
70,103 | OpenLiberty/open-liberty | dev/com.ibm.ws.crypto.certificateutil/src/com/ibm/ws/crypto/certificateutil/keytool/KeytoolSSLCertificateCreator.java | KeytoolSSLCertificateCreator.validateFilePath | private boolean validateFilePath(String filePath) {
if (filePath == null || filePath.isEmpty()) {
throw new IllegalArgumentException("filePath must be a valid filePath within the file system.");
}
// Check if the filename exists as a File -- use an absolute file to ensure we have
... | java | private boolean validateFilePath(String filePath) {
if (filePath == null || filePath.isEmpty()) {
throw new IllegalArgumentException("filePath must be a valid filePath within the file system.");
}
// Check if the filename exists as a File -- use an absolute file to ensure we have
... | [
"private",
"boolean",
"validateFilePath",
"(",
"String",
"filePath",
")",
"{",
"if",
"(",
"filePath",
"==",
"null",
"||",
"filePath",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"filePath must be a valid filePath within the... | The specified filePath must either exist, or in the case the file
should be created, its parent directory.
@param loc
@return | [
"The",
"specified",
"filePath",
"must",
"either",
"exist",
"or",
"in",
"the",
"case",
"the",
"file",
"should",
"be",
"created",
"its",
"parent",
"directory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.certificateutil/src/com/ibm/ws/crypto/certificateutil/keytool/KeytoolSSLCertificateCreator.java#L107-L117 |
70,104 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingListMaker.java | BlockingListMaker.make | public <K2 extends K, E2 extends E> BlockingList<K2, E2> make() {
@SuppressWarnings("unchecked")
BlockingListMaker<K2, E2> stricterThis = (BlockingListMaker<K2, E2>) this;
return stricterThis.internalCreateBlockingList();
} | java | public <K2 extends K, E2 extends E> BlockingList<K2, E2> make() {
@SuppressWarnings("unchecked")
BlockingListMaker<K2, E2> stricterThis = (BlockingListMaker<K2, E2>) this;
return stricterThis.internalCreateBlockingList();
} | [
"public",
"<",
"K2",
"extends",
"K",
",",
"E2",
"extends",
"E",
">",
"BlockingList",
"<",
"K2",
",",
"E2",
">",
"make",
"(",
")",
"{",
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"BlockingListMaker",
"<",
"K2",
",",
"E2",
">",
"stricterThis",
"... | Construct a list | [
"Construct",
"a",
"list"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingListMaker.java#L81-L85 |
70,105 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingListMaker.java | BlockingListMaker.log | public BlockingListMaker<K, E> log(Logger logger) {
this.logger = logger == null ? NULL_LOGGER : logger;
return this;
} | java | public BlockingListMaker<K, E> log(Logger logger) {
this.logger = logger == null ? NULL_LOGGER : logger;
return this;
} | [
"public",
"BlockingListMaker",
"<",
"K",
",",
"E",
">",
"log",
"(",
"Logger",
"logger",
")",
"{",
"this",
".",
"logger",
"=",
"logger",
"==",
"null",
"?",
"NULL_LOGGER",
":",
"logger",
";",
"return",
"this",
";",
"}"
] | Define the logger to use to log interesting events within the list | [
"Define",
"the",
"logger",
"to",
"use",
"to",
"log",
"interesting",
"events",
"within",
"the",
"list"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingListMaker.java#L108-L111 |
70,106 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingListMaker.java | BlockingListMaker.waitFor | public BlockingListMaker<K, E> waitFor(long time, TimeUnit unit) {
this.nanoTimeout = time == 0 ? 1 : NANOSECONDS.convert(time, unit);
return this;
} | java | public BlockingListMaker<K, E> waitFor(long time, TimeUnit unit) {
this.nanoTimeout = time == 0 ? 1 : NANOSECONDS.convert(time, unit);
return this;
} | [
"public",
"BlockingListMaker",
"<",
"K",
",",
"E",
">",
"waitFor",
"(",
"long",
"time",
",",
"TimeUnit",
"unit",
")",
"{",
"this",
".",
"nanoTimeout",
"=",
"time",
"==",
"0",
"?",
"1",
":",
"NANOSECONDS",
".",
"convert",
"(",
"time",
",",
"unit",
")"... | Specify the total time to wait for the elements of the list to become available | [
"Specify",
"the",
"total",
"time",
"to",
"wait",
"for",
"the",
"elements",
"of",
"the",
"list",
"to",
"become",
"available"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/util/BlockingListMaker.java#L114-L117 |
70,107 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageHandleImpl.java | JsMessageHandleImpl.getSystemMessageId | public String getSystemMessageId() {
//based on com.ibm.ws.sib.mfp.impl.JsHdrsImpl
if (uuid != null) {
StringBuilder buff = new StringBuilder(uuid.toString());
buff.append(MfpConstants.MESSAGE_HANDLE_SEPARATOR);
buff.append(value);
return new String(buff);
}
else {
return n... | java | public String getSystemMessageId() {
//based on com.ibm.ws.sib.mfp.impl.JsHdrsImpl
if (uuid != null) {
StringBuilder buff = new StringBuilder(uuid.toString());
buff.append(MfpConstants.MESSAGE_HANDLE_SEPARATOR);
buff.append(value);
return new String(buff);
}
else {
return n... | [
"public",
"String",
"getSystemMessageId",
"(",
")",
"{",
"//based on com.ibm.ws.sib.mfp.impl.JsHdrsImpl",
"if",
"(",
"uuid",
"!=",
"null",
")",
"{",
"StringBuilder",
"buff",
"=",
"new",
"StringBuilder",
"(",
"uuid",
".",
"toString",
"(",
")",
")",
";",
"buff",
... | Returns the SIMessageHandles System Message ID.
@return String The SystemMessageID of the SIMessageHandle. | [
"Returns",
"the",
"SIMessageHandles",
"System",
"Message",
"ID",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMessageHandleImpl.java#L261-L272 |
70,108 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/injection/WebServiceRefBinding.java | WebServiceRefBinding.processExistingWSDL | private void processExistingWSDL(String wsdlLocation, Member newMember) throws InjectionException {
// if the wsdlLocation for this service reference is specified in the DD, log a debug statement and continue
if (wsrInfo.getWsdlLocation() != null && !"".equals(wsrInfo.getWsdlLocation())) {
i... | java | private void processExistingWSDL(String wsdlLocation, Member newMember) throws InjectionException {
// if the wsdlLocation for this service reference is specified in the DD, log a debug statement and continue
if (wsrInfo.getWsdlLocation() != null && !"".equals(wsrInfo.getWsdlLocation())) {
i... | [
"private",
"void",
"processExistingWSDL",
"(",
"String",
"wsdlLocation",
",",
"Member",
"newMember",
")",
"throws",
"InjectionException",
"{",
"// if the wsdlLocation for this service reference is specified in the DD, log a debug statement and continue",
"if",
"(",
"wsrInfo",
".",
... | This will compare the wsdlLocation attribute of the various annotations that have refer to the same service
reference. If they differ we will throw an exception as the runtime will not be able to determine which WSDL to
use. We will only do this checking if there was not a WSDL location specified in the deployment desc... | [
"This",
"will",
"compare",
"the",
"wsdlLocation",
"attribute",
"of",
"the",
"various",
"annotations",
"that",
"have",
"refer",
"to",
"the",
"same",
"service",
"reference",
".",
"If",
"they",
"differ",
"we",
"will",
"throw",
"an",
"exception",
"as",
"the",
"r... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/injection/WebServiceRefBinding.java#L343-L357 |
70,109 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/trm/status/ConnectionStatusComparator.java | ConnectionStatusComparator.compare | public int compare (Object o1, Object o2) {
String re1 = ((ConnectionStatus)o1).getRemoteEngineName();
String re2 = ((ConnectionStatus)o2).getRemoteEngineName();
return re1.compareTo(re2);
} | java | public int compare (Object o1, Object o2) {
String re1 = ((ConnectionStatus)o1).getRemoteEngineName();
String re2 = ((ConnectionStatus)o2).getRemoteEngineName();
return re1.compareTo(re2);
} | [
"public",
"int",
"compare",
"(",
"Object",
"o1",
",",
"Object",
"o2",
")",
"{",
"String",
"re1",
"=",
"(",
"(",
"ConnectionStatus",
")",
"o1",
")",
".",
"getRemoteEngineName",
"(",
")",
";",
"String",
"re2",
"=",
"(",
"(",
"ConnectionStatus",
")",
"o2"... | If o1 comes after o2 return 1 | [
"If",
"o1",
"comes",
"after",
"o2",
"return",
"1"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/trm/status/ConnectionStatusComparator.java#L24-L30 |
70,110 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java | JFapByteBuffer.put | public synchronized void put(byte item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", Byte.valueOf(item));
checkValid();
getCurrentByteBuffer(1).put(item);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc,... | java | public synchronized void put(byte item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", Byte.valueOf(item));
checkValid();
getCurrentByteBuffer(1).put(item);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc,... | [
"public",
"synchronized",
"void",
"put",
"(",
"byte",
"item",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"put\"",
... | Puts a single byte into the byte buffer.
@param item | [
"Puts",
"a",
"single",
"byte",
"into",
"the",
"byte",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L211-L219 |
70,111 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java | JFapByteBuffer.putShort | public synchronized void putShort(short item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putShort", Short.valueOf(item));
checkValid();
getCurrentByteBuffer(2).putShort(item);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Sib... | java | public synchronized void putShort(short item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putShort", Short.valueOf(item));
checkValid();
getCurrentByteBuffer(2).putShort(item);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Sib... | [
"public",
"synchronized",
"void",
"putShort",
"(",
"short",
"item",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"putS... | Puts a short into the byte buffer.
@param item | [
"Puts",
"a",
"short",
"into",
"the",
"byte",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L226-L234 |
70,112 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java | JFapByteBuffer.putInt | public synchronized void putInt(int item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putInt", Integer.valueOf(item));
checkValid();
getCurrentByteBuffer(4).putInt(item);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exi... | java | public synchronized void putInt(int item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putInt", Integer.valueOf(item));
checkValid();
getCurrentByteBuffer(4).putInt(item);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exi... | [
"public",
"synchronized",
"void",
"putInt",
"(",
"int",
"item",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"putInt\"... | Puts an int into the byte buffer.
@param item | [
"Puts",
"an",
"int",
"into",
"the",
"byte",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L241-L249 |
70,113 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java | JFapByteBuffer.putLong | public synchronized void putLong(long item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putLong", Long.valueOf(item));
checkValid();
getCurrentByteBuffer(4).putLong(item);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.ex... | java | public synchronized void putLong(long item)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "putLong", Long.valueOf(item));
checkValid();
getCurrentByteBuffer(4).putLong(item);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.ex... | [
"public",
"synchronized",
"void",
"putLong",
"(",
"long",
"item",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"putLon... | Puts a long into the byte buffer.
@param item | [
"Puts",
"a",
"long",
"into",
"the",
"byte",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L256-L264 |
70,114 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java | JFapByteBuffer.setReadOnly | public synchronized void setReadOnly()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setReadOnly");
// And actually mark the real buffers as read-only too
for (int x = 0; x < dataList.size(); x++)
{
WsByteBuffer buff = dataList.get(x);
... | java | public synchronized void setReadOnly()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setReadOnly");
// And actually mark the real buffers as read-only too
for (int x = 0; x < dataList.size(); x++)
{
WsByteBuffer buff = dataList.get(x);
... | [
"public",
"synchronized",
"void",
"setReadOnly",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setReadOnly\"",
")",... | This method sets all the byte buffers that we have in the list as read only. | [
"This",
"method",
"sets",
"all",
"the",
"byte",
"buffers",
"that",
"we",
"have",
"in",
"the",
"list",
"as",
"read",
"only",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L354-L366 |
70,115 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java | JFapByteBuffer.prepareForTransmission | public synchronized long prepareForTransmission()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "prepareForTransmission");
checkValid();
valid = false;
// Get the last buffer and flip it. Then we can simply return the list of buffers
if (data... | java | public synchronized long prepareForTransmission()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "prepareForTransmission");
checkValid();
valid = false;
// Get the last buffer and flip it. Then we can simply return the list of buffers
if (data... | [
"public",
"synchronized",
"long",
"prepareForTransmission",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"prepareForT... | This method prepares the byte buffers wrapped by this class for transmission. In practise
this means that all the buffers are flipped and the number of bytes that will be transmitted
is returned.
@return Returns the amount of data that is ready to be sent. | [
"This",
"method",
"prepares",
"the",
"byte",
"buffers",
"wrapped",
"by",
"this",
"class",
"for",
"transmission",
".",
"In",
"practise",
"this",
"means",
"that",
"all",
"the",
"buffers",
"are",
"flipped",
"and",
"the",
"number",
"of",
"bytes",
"that",
"will",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L375-L398 |
70,116 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java | JFapByteBuffer.getBuffersForTransmission | public synchronized WsByteBuffer[] getBuffersForTransmission()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getBufferForTransmission");
// Ensure the buffer has been prepared
checkNotValid();
WsByteBuffer[] bufferArray = new WsByteBuffer[dataList... | java | public synchronized WsByteBuffer[] getBuffersForTransmission()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getBufferForTransmission");
// Ensure the buffer has been prepared
checkNotValid();
WsByteBuffer[] bufferArray = new WsByteBuffer[dataList... | [
"public",
"synchronized",
"WsByteBuffer",
"[",
"]",
"getBuffersForTransmission",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc"... | This method is called just before this buffer is due to be transmitted by the JFap channel.
When calling this method the underlying byte buffer is prepared by setting the correct limits
and the buffer is added to a List that is returned. Once this method is called the buffer
may not be used again and any attempt to mod... | [
"This",
"method",
"is",
"called",
"just",
"before",
"this",
"buffer",
"is",
"due",
"to",
"be",
"transmitted",
"by",
"the",
"JFap",
"channel",
".",
"When",
"calling",
"this",
"method",
"the",
"underlying",
"byte",
"buffer",
"is",
"prepared",
"by",
"setting",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L409-L424 |
70,117 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java | JFapByteBuffer.getCurrentByteBuffer | protected WsByteBuffer getCurrentByteBuffer(int sizeNeeded)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCurrentByteBuffer", Integer.valueOf(sizeNeeded));
WsByteBuffer byteBuffer = null;
// First have a look in the dataList for a buffer.
if (d... | java | protected WsByteBuffer getCurrentByteBuffer(int sizeNeeded)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCurrentByteBuffer", Integer.valueOf(sizeNeeded));
WsByteBuffer byteBuffer = null;
// First have a look in the dataList for a buffer.
if (d... | [
"protected",
"WsByteBuffer",
"getCurrentByteBuffer",
"(",
"int",
"sizeNeeded",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
... | This method will return a byte buffer that can be written to for the amount of data that
needs to be written. If there is no room left in the current byte buffer, a new one will be
created and added to the list.
@param sizeNeeded The amount of data that needs to be written
@return Returns a WsByteBuffer that can be u... | [
"This",
"method",
"will",
"return",
"a",
"byte",
"buffer",
"that",
"can",
"be",
"written",
"to",
"for",
"the",
"amount",
"of",
"data",
"that",
"needs",
"to",
"be",
"written",
".",
"If",
"there",
"is",
"no",
"room",
"left",
"in",
"the",
"current",
"byte... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L606-L649 |
70,118 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java | JFapByteBuffer.createNewWsByteBuffer | private WsByteBuffer createNewWsByteBuffer(int sizeNeeded)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createNewWsByteBuffer", Integer.valueOf(sizeNeeded));
if (sizeNeeded < DEFAULT_BUFFER_SIZE)
{
sizeNeeded = DEFAULT_BUFFER_SIZE;
}
... | java | private WsByteBuffer createNewWsByteBuffer(int sizeNeeded)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createNewWsByteBuffer", Integer.valueOf(sizeNeeded));
if (sizeNeeded < DEFAULT_BUFFER_SIZE)
{
sizeNeeded = DEFAULT_BUFFER_SIZE;
}
... | [
"private",
"WsByteBuffer",
"createNewWsByteBuffer",
"(",
"int",
"sizeNeeded",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
... | This method will create a new WsByteBuffer. By default it will be created to hold 200 bytes
but if the size needed is larger than this then the buffer will simply be allocated to hold
the exact number of bytes requested.
@param sizeNeeded The amount of data waiting to be put into a buffer.
@return Returns a new WsByt... | [
"This",
"method",
"will",
"create",
"a",
"new",
"WsByteBuffer",
".",
"By",
"default",
"it",
"will",
"be",
"created",
"to",
"hold",
"200",
"bytes",
"but",
"if",
"the",
"size",
"needed",
"is",
"larger",
"than",
"this",
"then",
"the",
"buffer",
"will",
"sim... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L660-L675 |
70,119 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java | JFapByteBuffer.getDumpReceivedBytes | public synchronized String getDumpReceivedBytes(int bytesToDump)
{
String dump = null;
if (receivedBuffer != null)
{
dump = getDumpBytes(receivedBuffer, bytesToDump, false);
}
return dump;
} | java | public synchronized String getDumpReceivedBytes(int bytesToDump)
{
String dump = null;
if (receivedBuffer != null)
{
dump = getDumpBytes(receivedBuffer, bytesToDump, false);
}
return dump;
} | [
"public",
"synchronized",
"String",
"getDumpReceivedBytes",
"(",
"int",
"bytesToDump",
")",
"{",
"String",
"dump",
"=",
"null",
";",
"if",
"(",
"receivedBuffer",
"!=",
"null",
")",
"{",
"dump",
"=",
"getDumpBytes",
"(",
"receivedBuffer",
",",
"bytesToDump",
",... | Returns the String that represents a dump of the bytes received in this comms byte buffer.
This method is not intended to be used for buffers that are being contructed for outbound use.
@param bytesToDump
@return | [
"Returns",
"the",
"String",
"that",
"represents",
"a",
"dump",
"of",
"the",
"bytes",
"received",
"in",
"this",
"comms",
"byte",
"buffer",
".",
"This",
"method",
"is",
"not",
"intended",
"to",
"be",
"used",
"for",
"buffers",
"that",
"are",
"being",
"contruc... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L784-L794 |
70,120 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java | JFapByteBuffer.getDumpBytes | private static String getDumpBytes(WsByteBuffer buffer, int bytesToDump, boolean rewind)
{
// Save the current position
int pos = buffer.position();
if (rewind)
{
buffer.rewind();
}
byte[] data = null;
int start;
int count = bytesToDump;
if (count > buf... | java | private static String getDumpBytes(WsByteBuffer buffer, int bytesToDump, boolean rewind)
{
// Save the current position
int pos = buffer.position();
if (rewind)
{
buffer.rewind();
}
byte[] data = null;
int start;
int count = bytesToDump;
if (count > buf... | [
"private",
"static",
"String",
"getDumpBytes",
"(",
"WsByteBuffer",
"buffer",
",",
"int",
"bytesToDump",
",",
"boolean",
"rewind",
")",
"{",
"// Save the current position",
"int",
"pos",
"=",
"buffer",
".",
"position",
"(",
")",
";",
"if",
"(",
"rewind",
")",
... | Returns a dump of the specified number of bytes of the specified buffer.
@param buffer
@param bytesToDump
@return Returns a String containing a dump of the buffer. | [
"Returns",
"a",
"dump",
"of",
"the",
"specified",
"number",
"of",
"bytes",
"of",
"the",
"specified",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/JFapByteBuffer.java#L830-L863 |
70,121 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SubscriptionMessageImpl.java | SubscriptionMessageImpl.getIntKeyForString | private int getIntKeyForString(ArrayList<String> uniqueStrings, Object value) {
String stringValue = String.valueOf(value);
int retval = uniqueStrings.indexOf(stringValue);
if (retval < 0) {
retval = uniqueStrings.size();
uniqueStrings.add(stringValue);
}
return retval;
} | java | private int getIntKeyForString(ArrayList<String> uniqueStrings, Object value) {
String stringValue = String.valueOf(value);
int retval = uniqueStrings.indexOf(stringValue);
if (retval < 0) {
retval = uniqueStrings.size();
uniqueStrings.add(stringValue);
}
return retval;
} | [
"private",
"int",
"getIntKeyForString",
"(",
"ArrayList",
"<",
"String",
">",
"uniqueStrings",
",",
"Object",
"value",
")",
"{",
"String",
"stringValue",
"=",
"String",
".",
"valueOf",
"(",
"value",
")",
";",
"int",
"retval",
"=",
"uniqueStrings",
".",
"inde... | Helper method to get, or assign, a unique key to a string,
from an ArrayList containing the unique keys.
@param uniqueStrings Current set of unique strings
@param value Object to convert to a string, and find/assign an number for
@return number associated with the unique string | [
"Helper",
"method",
"to",
"get",
"or",
"assign",
"a",
"unique",
"key",
"to",
"a",
"string",
"from",
"an",
"ArrayList",
"containing",
"the",
"unique",
"keys",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SubscriptionMessageImpl.java#L185-L193 |
70,122 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/OutputHelper.java | OutputHelper.writeObjectInstanceOutput | public static void writeObjectInstanceOutput(final RESTResponse response, final ObjectInstanceWrapper value, final JSONConverter converter) {
response.setContentType(APIConstants.MEDIA_TYPE_APPLICATION_JSON);
OutputStream outStream = null;
try {
outStream = response.getOutputStream(... | java | public static void writeObjectInstanceOutput(final RESTResponse response, final ObjectInstanceWrapper value, final JSONConverter converter) {
response.setContentType(APIConstants.MEDIA_TYPE_APPLICATION_JSON);
OutputStream outStream = null;
try {
outStream = response.getOutputStream(... | [
"public",
"static",
"void",
"writeObjectInstanceOutput",
"(",
"final",
"RESTResponse",
"response",
",",
"final",
"ObjectInstanceWrapper",
"value",
",",
"final",
"JSONConverter",
"converter",
")",
"{",
"response",
".",
"setContentType",
"(",
"APIConstants",
".",
"MEDIA... | Write ObjectInstanceWrapper to the response | [
"Write",
"ObjectInstanceWrapper",
"to",
"the",
"response"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/OutputHelper.java#L279-L298 |
70,123 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/wsspi/pmi/factory/StatsFactory.java | StatsFactory.createStatsGroup | public static StatsGroup createStatsGroup(String groupName, String statsTemplate, StatsGroup parentGroup, ObjectName mBean, StatisticActions actionLsnr)
throws StatsFactoryException {
if (tc.isEntryEnabled())
Tr.entry(tc, new StringBuffer("createStatsGroup:name=").append(groupNam... | java | public static StatsGroup createStatsGroup(String groupName, String statsTemplate, StatsGroup parentGroup, ObjectName mBean, StatisticActions actionLsnr)
throws StatsFactoryException {
if (tc.isEntryEnabled())
Tr.entry(tc, new StringBuffer("createStatsGroup:name=").append(groupNam... | [
"public",
"static",
"StatsGroup",
"createStatsGroup",
"(",
"String",
"groupName",
",",
"String",
"statsTemplate",
",",
"StatsGroup",
"parentGroup",
",",
"ObjectName",
"mBean",
",",
"StatisticActions",
"actionLsnr",
")",
"throws",
"StatsFactoryException",
"{",
"if",
"(... | Create a StatsGroup using the Stats template and add to the PMI tree under the specified parent group.
This method will associate the MBean provided by the caller to the Stats group.
@param groupName name of the group
@param statsTemplate location of the Stats template XML file
@param parentGroup parent Stats group
@p... | [
"Create",
"a",
"StatsGroup",
"using",
"the",
"Stats",
"template",
"and",
"add",
"to",
"the",
"PMI",
"tree",
"under",
"the",
"specified",
"parent",
"group",
".",
"This",
"method",
"will",
"associate",
"the",
"MBean",
"provided",
"by",
"the",
"caller",
"to",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/wsspi/pmi/factory/StatsFactory.java#L147-L172 |
70,124 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/wsspi/pmi/factory/StatsFactory.java | StatsFactory.removeStatsInstance | public static void removeStatsInstance(StatsInstance instance)
throws StatsFactoryException {
if (tc.isEntryEnabled())
Tr.entry(tc, new StringBuffer("removeStatsInstance:name=").append(instance.getName()).toString());
StatsFactoryUtil.unRegisterStats((PmiModule) instance... | java | public static void removeStatsInstance(StatsInstance instance)
throws StatsFactoryException {
if (tc.isEntryEnabled())
Tr.entry(tc, new StringBuffer("removeStatsInstance:name=").append(instance.getName()).toString());
StatsFactoryUtil.unRegisterStats((PmiModule) instance... | [
"public",
"static",
"void",
"removeStatsInstance",
"(",
"StatsInstance",
"instance",
")",
"throws",
"StatsFactoryException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"new",
"StringBuffer",
"(",
"\"removeSt... | Removes a StatsInstance from the PMI tree. Note that any children under the instance will also be removed.
If the instance is associated with a default CustomStats MBean, the MBean will be de-activated.
@param instance StatsInstance to be removed
@exception StatsFactoryException if error while removing Stats instance | [
"Removes",
"a",
"StatsInstance",
"from",
"the",
"PMI",
"tree",
".",
"Note",
"that",
"any",
"children",
"under",
"the",
"instance",
"will",
"also",
"be",
"removed",
".",
"If",
"the",
"instance",
"is",
"associated",
"with",
"a",
"default",
"CustomStats",
"MBea... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/wsspi/pmi/factory/StatsFactory.java#L440-L449 |
70,125 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/wsspi/pmi/factory/StatsFactory.java | StatsFactory.removeStatsGroup | public static void removeStatsGroup(StatsGroup group)
throws StatsFactoryException {
if (tc.isEntryEnabled())
Tr.entry(tc, new StringBuffer("removeStatsGroup:name=").append(group.getName()).toString());
StatsFactoryUtil.unRegisterStats((PmiModule) group, group.getMBean()... | java | public static void removeStatsGroup(StatsGroup group)
throws StatsFactoryException {
if (tc.isEntryEnabled())
Tr.entry(tc, new StringBuffer("removeStatsGroup:name=").append(group.getName()).toString());
StatsFactoryUtil.unRegisterStats((PmiModule) group, group.getMBean()... | [
"public",
"static",
"void",
"removeStatsGroup",
"(",
"StatsGroup",
"group",
")",
"throws",
"StatsFactoryException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"new",
"StringBuffer",
"(",
"\"removeStatsGroup:... | Removes a StatsGroup from the PMI tree. Note that any children under the group will also be removed.
If the group is associated with a default CustomStats MBean, the MBean will be de-activated.
@param group StatsGroup to be removed
@exception StatsFactoryException if error while removing Stats group | [
"Removes",
"a",
"StatsGroup",
"from",
"the",
"PMI",
"tree",
".",
"Note",
"that",
"any",
"children",
"under",
"the",
"group",
"will",
"also",
"be",
"removed",
".",
"If",
"the",
"group",
"is",
"associated",
"with",
"a",
"default",
"CustomStats",
"MBean",
"th... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/wsspi/pmi/factory/StatsFactory.java#L458-L467 |
70,126 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/taglib/core/GenericMinMaxValidatorTag.java | GenericMinMaxValidatorTag.createValidator | @Override
protected Validator createValidator() throws JspException
{
if (null == _minimum && null == _maximum)
{
throw new JspException("a minimum and / or a maximum have to be specified");
}
ELContext elContext = FacesContext.getCurrentInstance().getELContext();
... | java | @Override
protected Validator createValidator() throws JspException
{
if (null == _minimum && null == _maximum)
{
throw new JspException("a minimum and / or a maximum have to be specified");
}
ELContext elContext = FacesContext.getCurrentInstance().getELContext();
... | [
"@",
"Override",
"protected",
"Validator",
"createValidator",
"(",
")",
"throws",
"JspException",
"{",
"if",
"(",
"null",
"==",
"_minimum",
"&&",
"null",
"==",
"_maximum",
")",
"{",
"throw",
"new",
"JspException",
"(",
"\"a minimum and / or a maximum have to be spec... | This method returns the Validator, you have to cast it to the correct type and apply the min and max values.
@return
@throws JspException | [
"This",
"method",
"returns",
"the",
"Validator",
"you",
"have",
"to",
"cast",
"it",
"to",
"the",
"correct",
"type",
"and",
"apply",
"the",
"min",
"and",
"max",
"values",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/taglib/core/GenericMinMaxValidatorTag.java#L66-L90 |
70,127 | OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/WSX509TrustManager.java | WSX509TrustManager.incrementAlias | private String incrementAlias(KeyStore jKeyStore, String alias) throws KeyStoreException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "incrementAlias: " + alias);
int num = 0;
String base;
int index = alias.lastIndexOf('_');
if (-1 ... | java | private String incrementAlias(KeyStore jKeyStore, String alias) throws KeyStoreException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "incrementAlias: " + alias);
int num = 0;
String base;
int index = alias.lastIndexOf('_');
if (-1 ... | [
"private",
"String",
"incrementAlias",
"(",
"KeyStore",
"jKeyStore",
",",
"String",
"alias",
")",
"throws",
"KeyStoreException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
"."... | Increment the trailing number on the alias value until one is found that
does not currently exist in the input store.
@param jKeyStore
@param alias
@return String
@throws KeyStoreException | [
"Increment",
"the",
"trailing",
"number",
"on",
"the",
"alias",
"value",
"until",
"one",
"is",
"found",
"that",
"does",
"not",
"currently",
"exist",
"in",
"the",
"input",
"store",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/core/WSX509TrustManager.java#L470-L502 |
70,128 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SecurityContext.java | SecurityContext.getUserName | public String getUserName(boolean notAlternateUser)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getUserName",
new Object[]{new Boolean(notAlternateUser)});
String userName = null;
if(!notAlternateUser // this catches the case where we want the
... | java | public String getUserName(boolean notAlternateUser)
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getUserName",
new Object[]{new Boolean(notAlternateUser)});
String userName = null;
if(!notAlternateUser // this catches the case where we want the
... | [
"public",
"String",
"getUserName",
"(",
"boolean",
"notAlternateUser",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getUserName\"",
",",
"new",
"Object",
"[",
"]",
"{",
"new",
"Boolean",
"(",
... | Extract the appropriate username from this security context
@return | [
"Extract",
"the",
"appropriate",
"username",
"from",
"this",
"security",
"context"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SecurityContext.java#L228-L261 |
70,129 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SecurityContext.java | SecurityContext.isSIBServerSubject | public boolean isSIBServerSubject()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "isSIBServerSubject");
boolean ispriv = false;
// If the context is userid or alternate user based then it cannot be the
// privileged SIBServerSubject, so we only need to check the Subject and
... | java | public boolean isSIBServerSubject()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "isSIBServerSubject");
boolean ispriv = false;
// If the context is userid or alternate user based then it cannot be the
// privileged SIBServerSubject, so we only need to check the Subject and
... | [
"public",
"boolean",
"isSIBServerSubject",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"isSIBServerSubject\"",
")",
";",
"boolean",
"ispriv",
"=",
"false",
";",
"// If the context is userid or ... | Check whether this security context belongs to the privileged SIBServerSubject
or not.
@param subject
@param destinationUuid
@param discriminatorName
@param operation
@return | [
"Check",
"whether",
"this",
"security",
"context",
"belongs",
"to",
"the",
"privileged",
"SIBServerSubject",
"or",
"not",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/SecurityContext.java#L273-L302 |
70,130 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpISCWriteCallback.java | HttpISCWriteCallback.complete | @Override
public void complete(VirtualConnection vc, TCPWriteRequestContext wsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc);
}
HttpInboundServiceContextImpl mySC = (HttpInboundServiceContextImpl) vc.getStateMa... | java | @Override
public void complete(VirtualConnection vc, TCPWriteRequestContext wsc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "complete() called: vc=" + vc);
}
HttpInboundServiceContextImpl mySC = (HttpInboundServiceContextImpl) vc.getStateMa... | [
"@",
"Override",
"public",
"void",
"complete",
"(",
"VirtualConnection",
"vc",
",",
"TCPWriteRequestContext",
"wsc",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
"."... | Called by the channel below us when a write has finished.
@param vc
@param wsc | [
"Called",
"by",
"the",
"channel",
"below",
"us",
"when",
"a",
"write",
"has",
"finished",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpISCWriteCallback.java#L59-L108 |
70,131 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpISCWriteCallback.java | HttpISCWriteCallback.error | @Override
public void error(VirtualConnection vc, TCPWriteRequestContext wsc, IOException ioe) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "error called: vc=" + vc + " ioe=" + ioe);
}
HttpInboundServiceContextImpl mySC = (HttpInboundServiceCo... | java | @Override
public void error(VirtualConnection vc, TCPWriteRequestContext wsc, IOException ioe) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "error called: vc=" + vc + " ioe=" + ioe);
}
HttpInboundServiceContextImpl mySC = (HttpInboundServiceCo... | [
"@",
"Override",
"public",
"void",
"error",
"(",
"VirtualConnection",
"vc",
",",
"TCPWriteRequestContext",
"wsc",
",",
"IOException",
"ioe",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")... | Called by the channel below us when an error occurs during a write.
@param vc
- VirtualConnection
@param wsc
- TCPWriteRequestConext
@param ioe | [
"Called",
"by",
"the",
"channel",
"below",
"us",
"when",
"an",
"error",
"occurs",
"during",
"a",
"write",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/inbound/HttpISCWriteCallback.java#L119-L137 |
70,132 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/EncodingUtilsImpl.java | EncodingUtilsImpl.deactivate | @Deactivate
protected void deactivate(int reason) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Deactivating " + this, "reason=" + reason);
}
// purge cached data from config
this.cachedEncoding = null;
this.cachedLocale = null... | java | @Deactivate
protected void deactivate(int reason) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Deactivating " + this, "reason=" + reason);
}
// purge cached data from config
this.cachedEncoding = null;
this.cachedLocale = null... | [
"@",
"Deactivate",
"protected",
"void",
"deactivate",
"(",
"int",
"reason",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"event",
"(",
"tc",
",",
"\"Deactiv... | DS deactivation method for this component.
@param context | [
"DS",
"deactivation",
"method",
"for",
"this",
"component",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/EncodingUtilsImpl.java#L85-L97 |
70,133 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/EncodingUtilsImpl.java | EncodingUtilsImpl.processAcceptLanguage | private List<List<String>> processAcceptLanguage(String acceptLanguage) {
StringTokenizer languageTokenizer = new StringTokenizer(acceptLanguage, ",");
TreeMap<Double, List<String>> map = new TreeMap<Double, List<String>>(Collections.reverseOrder());
List<String> list;
while (languageTo... | java | private List<List<String>> processAcceptLanguage(String acceptLanguage) {
StringTokenizer languageTokenizer = new StringTokenizer(acceptLanguage, ",");
TreeMap<Double, List<String>> map = new TreeMap<Double, List<String>>(Collections.reverseOrder());
List<String> list;
while (languageTo... | [
"private",
"List",
"<",
"List",
"<",
"String",
">",
">",
"processAcceptLanguage",
"(",
"String",
"acceptLanguage",
")",
"{",
"StringTokenizer",
"languageTokenizer",
"=",
"new",
"StringTokenizer",
"(",
"acceptLanguage",
",",
"\",\"",
")",
";",
"TreeMap",
"<",
"Do... | Processes the accept language header into a sublists based on the
qvalue. Each sublist is a list of string values for a given qvalue
and the overall list is ordered with preferred languages first.
@param acceptLanguage to process.
@return List<List<String>> | [
"Processes",
"the",
"accept",
"language",
"header",
"into",
"a",
"sublists",
"based",
"on",
"the",
"qvalue",
".",
"Each",
"sublist",
"is",
"a",
"list",
"of",
"string",
"values",
"for",
"a",
"given",
"qvalue",
"and",
"the",
"overall",
"list",
"is",
"ordered... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/EncodingUtilsImpl.java#L214-L256 |
70,134 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/EncodingUtilsImpl.java | EncodingUtilsImpl.extractLocales | private List<Locale> extractLocales(List<List<String>> allLangs) {
List<Locale> rc = new ArrayList<Locale>();
for (List<String> langList : allLangs) {
for (String language : langList) {
String country = "";
String variant = "";
int countryIndex... | java | private List<Locale> extractLocales(List<List<String>> allLangs) {
List<Locale> rc = new ArrayList<Locale>();
for (List<String> langList : allLangs) {
for (String language : langList) {
String country = "";
String variant = "";
int countryIndex... | [
"private",
"List",
"<",
"Locale",
">",
"extractLocales",
"(",
"List",
"<",
"List",
"<",
"String",
">",
">",
"allLangs",
")",
"{",
"List",
"<",
"Locale",
">",
"rc",
"=",
"new",
"ArrayList",
"<",
"Locale",
">",
"(",
")",
";",
"for",
"(",
"List",
"<",... | Extract the locales from a passed in language list.
@param allLangs
@return List<Locale> | [
"Extract",
"the",
"locales",
"from",
"a",
"passed",
"in",
"language",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/EncodingUtilsImpl.java#L264-L287 |
70,135 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java | PersistableImpl.getMetaDataToken | public Token getMetaDataToken()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "getMetaDataToken");
SibTr.exit(this, tc, "getMetaDataToken", "return=" + _metaDataToken);
}
return _metaDataToken;
} | java | public Token getMetaDataToken()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(this, tc, "getMetaDataToken");
SibTr.exit(this, tc, "getMetaDataToken", "return=" + _metaDataToken);
}
return _metaDataToken;
} | [
"public",
"Token",
"getMetaDataToken",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getMetaDataToken\"",
")",... | startup of the message store | [
"startup",
"of",
"the",
"message",
"store"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java#L294-L302 |
70,136 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java | PersistableImpl.updateMetaDataOnly | public void updateMetaDataOnly(Transaction tran, Persistable persistable) throws PersistenceException, ObjectManagerException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "updateMetaDataOnly", new Object[] { "Tran=" + tran, "Persistable=" + persistable... | java | public void updateMetaDataOnly(Transaction tran, Persistable persistable) throws PersistenceException, ObjectManagerException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "updateMetaDataOnly", new Object[] { "Tran=" + tran, "Persistable=" + persistable... | [
"public",
"void",
"updateMetaDataOnly",
"(",
"Transaction",
"tran",
",",
"Persistable",
"persistable",
")",
"throws",
"PersistenceException",
",",
"ObjectManagerException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isE... | Only update the persistent copy of the meta data associated with this Persistable.
This variant is for a cached persistable in which the lock ID has been cached by the task.
@param tran The ObjectManager transaction under which the update of the data is carried out.
@exception ObjectManagerException | [
"Only",
"update",
"the",
"persistent",
"copy",
"of",
"the",
"meta",
"data",
"associated",
"with",
"this",
"Persistable",
".",
"This",
"variant",
"is",
"for",
"a",
"cached",
"persistable",
"in",
"which",
"the",
"lock",
"ID",
"has",
"been",
"cached",
"by",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java#L679-L702 |
70,137 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java | PersistableImpl.getData | @Override
public java.util.List<DataSlice> getData() throws PersistentDataEncodingException, SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getData");
java.util.List<DataSlice> retval = null;
synchronize... | java | @Override
public java.util.List<DataSlice> getData() throws PersistentDataEncodingException, SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getData");
java.util.List<DataSlice> retval = null;
synchronize... | [
"@",
"Override",
"public",
"java",
".",
"util",
".",
"List",
"<",
"DataSlice",
">",
"getData",
"(",
")",
"throws",
"PersistentDataEncodingException",
",",
"SevereMessageStoreException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
... | This method is used by the task layer to get hold of data from the
cache layer before it is hardened to disk. It should therefore return
the data from the Item and not that from the ManagedObject.
@return
@throws SevereMessageStoreException | [
"This",
"method",
"is",
"used",
"by",
"the",
"task",
"layer",
"to",
"get",
"hold",
"of",
"data",
"from",
"the",
"cache",
"layer",
"before",
"it",
"is",
"hardened",
"to",
"disk",
".",
"It",
"should",
"therefore",
"return",
"the",
"data",
"from",
"the",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java#L868-L887 |
70,138 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java | PersistableImpl.setWasSpillingAtAddition | @Override
public void setWasSpillingAtAddition(boolean wasSpillingAtAddition)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setWasSpillingAtAddition", Boolean.valueOf(wasSpillingAtAddition));
_wasSpillingAtAddition = wasSpillingAtAddition;... | java | @Override
public void setWasSpillingAtAddition(boolean wasSpillingAtAddition)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setWasSpillingAtAddition", Boolean.valueOf(wasSpillingAtAddition));
_wasSpillingAtAddition = wasSpillingAtAddition;... | [
"@",
"Override",
"public",
"void",
"setWasSpillingAtAddition",
"(",
"boolean",
"wasSpillingAtAddition",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"... | we need to correctly track the value of this flag. | [
"we",
"need",
"to",
"correctly",
"track",
"the",
"value",
"of",
"this",
"flag",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/PersistableImpl.java#L1135-L1145 |
70,139 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/ConsoleLogHandler.java | ConsoleLogHandler.setWriter | public void setWriter(Object sysLogHolder, Object sysErrHolder) {
this.sysOutHolder = (SystemLogHolder) sysLogHolder;
this.sysErrHolder = (SystemLogHolder) sysErrHolder;
} | java | public void setWriter(Object sysLogHolder, Object sysErrHolder) {
this.sysOutHolder = (SystemLogHolder) sysLogHolder;
this.sysErrHolder = (SystemLogHolder) sysErrHolder;
} | [
"public",
"void",
"setWriter",
"(",
"Object",
"sysLogHolder",
",",
"Object",
"sysErrHolder",
")",
"{",
"this",
".",
"sysOutHolder",
"=",
"(",
"SystemLogHolder",
")",
"sysLogHolder",
";",
"this",
".",
"sysErrHolder",
"=",
"(",
"SystemLogHolder",
")",
"sysErrHolde... | Set the writers for SystemOut and SystemErr respectfully
@param sysLogHolder SystemLogHolder object for SystemOut
@param sysErrHolder SystemLogHolder object for SystemErr | [
"Set",
"the",
"writers",
"for",
"SystemOut",
"and",
"SystemErr",
"respectfully"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/ConsoleLogHandler.java#L189-L192 |
70,140 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/util/WebConfigUtils.java | WebConfigUtils.getSecurityMetadata | public static SecurityMetadata getSecurityMetadata() {
SecurityMetadata secMetadata = null;
ModuleMetaData mmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData().getModuleMetaData();
if (mmd instanceof WebModuleMetaData) {
secMetadata = (SecurityMet... | java | public static SecurityMetadata getSecurityMetadata() {
SecurityMetadata secMetadata = null;
ModuleMetaData mmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData().getModuleMetaData();
if (mmd instanceof WebModuleMetaData) {
secMetadata = (SecurityMet... | [
"public",
"static",
"SecurityMetadata",
"getSecurityMetadata",
"(",
")",
"{",
"SecurityMetadata",
"secMetadata",
"=",
"null",
";",
"ModuleMetaData",
"mmd",
"=",
"ComponentMetaDataAccessorImpl",
".",
"getComponentMetaDataAccessor",
"(",
")",
".",
"getComponentMetaData",
"(... | Get the security metadata
@return the security metadata | [
"Get",
"the",
"security",
"metadata"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/util/WebConfigUtils.java#L63-L76 |
70,141 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AliasChainValidator.java | AliasChainValidator.getFirstInChain | public CompoundName getFirstInChain()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getFirstInChain");
CompoundName firstInChain = collector.getFirst();
if (tc.isEntryEnabled())
SibTr.exit(tc, "getFirstInChain", firstInChain);
return firstInChain;
} | java | public CompoundName getFirstInChain()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "getFirstInChain");
CompoundName firstInChain = collector.getFirst();
if (tc.isEntryEnabled())
SibTr.exit(tc, "getFirstInChain", firstInChain);
return firstInChain;
} | [
"public",
"CompoundName",
"getFirstInChain",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getFirstInChain\"",
")",
";",
"CompoundName",
"firstInChain",
"=",
"collector",
".",
"getFirst",
"(",... | Get the first compound name in any alias chain we're validating.
@return Will return null if no chain has yet been built up. | [
"Get",
"the",
"first",
"compound",
"name",
"in",
"any",
"alias",
"chain",
"we",
"re",
"validating",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AliasChainValidator.java#L53-L64 |
70,142 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AliasChainValidator.java | AliasChainValidator.validate | public void validate(String destName, String busName) throws SINotPossibleInCurrentConfigurationException
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "validate", new Object[] { destName, busName });
if (collector.contains(destName, busName))
{
// Throw out exception detailing loop ... | java | public void validate(String destName, String busName) throws SINotPossibleInCurrentConfigurationException
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "validate", new Object[] { destName, busName });
if (collector.contains(destName, busName))
{
// Throw out exception detailing loop ... | [
"public",
"void",
"validate",
"(",
"String",
"destName",
",",
"String",
"busName",
")",
"throws",
"SINotPossibleInCurrentConfigurationException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"validate\"",
... | Check that the given destination, busname combination has not been seen
before when resolving an alias. If it has not been seen, we add it to the
map for checking next time.
@param destName
@param busName
@throws SINotPossibleInCurrentConfigurationException Thrown if a loop has
been detected. | [
"Check",
"that",
"the",
"given",
"destination",
"busname",
"combination",
"has",
"not",
"been",
"seen",
"before",
"when",
"resolving",
"an",
"alias",
".",
"If",
"it",
"has",
"not",
"been",
"seen",
"we",
"add",
"it",
"to",
"the",
"map",
"for",
"checking",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AliasChainValidator.java#L76-L110 |
70,143 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AliasChainValidator.java | AliasChainValidator.toStringPlus | public String toStringPlus(String destName, String busName)
{
StringBuffer sb = new StringBuffer(toString());
// Add the destination name which has triggered the exception to the end
// of the list, making the problem obvious.
String compoundName = new CompoundName(destName, busName).toString();
... | java | public String toStringPlus(String destName, String busName)
{
StringBuffer sb = new StringBuffer(toString());
// Add the destination name which has triggered the exception to the end
// of the list, making the problem obvious.
String compoundName = new CompoundName(destName, busName).toString();
... | [
"public",
"String",
"toStringPlus",
"(",
"String",
"destName",
",",
"String",
"busName",
")",
"{",
"StringBuffer",
"sb",
"=",
"new",
"StringBuffer",
"(",
"toString",
"(",
")",
")",
";",
"// Add the destination name which has triggered the exception to the end",
"// of t... | Return a string representation of the alias chain appended with the
destination name given.
@param destName
@param busName
@return | [
"Return",
"a",
"string",
"representation",
"of",
"the",
"alias",
"chain",
"appended",
"with",
"the",
"destination",
"name",
"given",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/AliasChainValidator.java#L148-L159 |
70,144 | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/CapturingClassTransformer.java | CapturingClassTransformer.initialize | private void initialize(final File logDirectory, final String aaplName) {
if (logDirectory == null) {
captureEnabled = false;
return;
}
AccessController.doPrivileged(new PrivilegedAction<Void>() {
@Override
public Void run() {
// C... | java | private void initialize(final File logDirectory, final String aaplName) {
if (logDirectory == null) {
captureEnabled = false;
return;
}
AccessController.doPrivileged(new PrivilegedAction<Void>() {
@Override
public Void run() {
// C... | [
"private",
"void",
"initialize",
"(",
"final",
"File",
"logDirectory",
",",
"final",
"String",
"aaplName",
")",
"{",
"if",
"(",
"logDirectory",
"==",
"null",
")",
"{",
"captureEnabled",
"=",
"false",
";",
"return",
";",
"}",
"AccessController",
".",
"doPrivi... | Determines the existence of the server log directory, and attempts to create a capture
directory within the log directory. If this can be accomplished, the field captureEnabled
is set to true. Otherwise, it is left to its default value false if the capture directory
cannot be used.
@param logDirectory | [
"Determines",
"the",
"existence",
"of",
"the",
"server",
"log",
"directory",
"and",
"attempts",
"to",
"create",
"a",
"capture",
"directory",
"within",
"the",
"log",
"directory",
".",
"If",
"this",
"can",
"be",
"accomplished",
"the",
"field",
"captureEnabled",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/CapturingClassTransformer.java#L128-L155 |
70,145 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/util/Resource.java | Resource.resourceExist | private static boolean resourceExist(ExternalContext externalContext, String path)
{
if ("/".equals(path))
{
// The root context exists always
return true;
}
Object ctx = externalContext.getContext();
if (ctx instanceof ServletContext)
{
... | java | private static boolean resourceExist(ExternalContext externalContext, String path)
{
if ("/".equals(path))
{
// The root context exists always
return true;
}
Object ctx = externalContext.getContext();
if (ctx instanceof ServletContext)
{
... | [
"private",
"static",
"boolean",
"resourceExist",
"(",
"ExternalContext",
"externalContext",
",",
"String",
"path",
")",
"{",
"if",
"(",
"\"/\"",
".",
"equals",
"(",
"path",
")",
")",
"{",
"// The root context exists always",
"return",
"true",
";",
"}",
"Object",... | doesnt exist. Otherwise, the URL will fail on the first access. | [
"doesnt",
"exist",
".",
"Otherwise",
"the",
"URL",
"will",
"fail",
"on",
"the",
"first",
"access",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/util/Resource.java#L89-L116 |
70,146 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/QueueData.java | QueueData.addSlice | public synchronized void addSlice(CommsByteBuffer bufferContainingSlice, boolean last)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "addSlice", new Object[]{bufferContainingSlice, last});
slices.add(bufferContainingSlice.getDataSlice());
// ... | java | public synchronized void addSlice(CommsByteBuffer bufferContainingSlice, boolean last)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "addSlice", new Object[]{bufferContainingSlice, last});
slices.add(bufferContainingSlice.getDataSlice());
// ... | [
"public",
"synchronized",
"void",
"addSlice",
"(",
"CommsByteBuffer",
"bufferContainingSlice",
",",
"boolean",
"last",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
... | This method will add a data slice to the list of slices for this message.
@param bufferContainingSlice
@param last | [
"This",
"method",
"will",
"add",
"a",
"data",
"slice",
"to",
"the",
"list",
"of",
"slices",
"for",
"this",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/QueueData.java#L161-L180 |
70,147 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/QueueData.java | QueueData.updateArrivalTime | public void updateArrivalTime(long messageArrivalTime)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "updateMessageArrivalTime", messageArrivalTime);
this.arrivalTime = messageArrivalTime;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Si... | java | public void updateArrivalTime(long messageArrivalTime)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "updateMessageArrivalTime", messageArrivalTime);
this.arrivalTime = messageArrivalTime;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Si... | [
"public",
"void",
"updateArrivalTime",
"(",
"long",
"messageArrivalTime",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"... | Used to update the message arrival time for this data.
@param messageArrivalTime | [
"Used",
"to",
"update",
"the",
"message",
"arrival",
"time",
"for",
"this",
"data",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/queue/QueueData.java#L206-L211 |
70,148 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATSessSynchConsumer.java | CATSessSynchConsumer.stop | public void stop(int requestNumber, SendListener sendListener)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "stop", requestNumber);
logicallyStarted = false;
super.stop(requestNumber, sendListener);
if (TraceComponent.isAnyTracingEnabled() && tc.i... | java | public void stop(int requestNumber, SendListener sendListener)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "stop", requestNumber);
logicallyStarted = false;
super.stop(requestNumber, sendListener);
if (TraceComponent.isAnyTracingEnabled() && tc.i... | [
"public",
"void",
"stop",
"(",
"int",
"requestNumber",
",",
"SendListener",
"sendListener",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
"... | Stops the session and marks it as stopped.
@param requestNumber
@param sendListener | [
"Stops",
"the",
"session",
"and",
"marks",
"it",
"as",
"stopped",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATSessSynchConsumer.java#L450-L458 |
70,149 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATSessSynchConsumer.java | CATSessSynchConsumer.close | public void close(int requestNumber)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close", requestNumber);
// Deregister any error callback created for this connection.
if (asynchReader != null)
{
try
{
... | java | public void close(int requestNumber)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close", requestNumber);
// Deregister any error callback created for this connection.
if (asynchReader != null)
{
try
{
... | [
"public",
"void",
"close",
"(",
"int",
"requestNumber",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"close\"",
",",
... | Closes the session. If we are currently doing a receiveWithWait then
that will be interrupted and a response will be sent to the client.
@param requestNumber | [
"Closes",
"the",
"session",
".",
"If",
"we",
"are",
"currently",
"doing",
"a",
"receiveWithWait",
"then",
"that",
"will",
"be",
"interrupted",
"and",
"a",
"response",
"will",
"be",
"sent",
"to",
"the",
"client",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATSessSynchConsumer.java#L466-L495 |
70,150 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATSessSynchConsumer.java | CATSessSynchConsumer.setAsynchConsumerCallback | public void setAsynchConsumerCallback(int requestNumber,
int maxActiveMessages,
long messageLockExpiry,
int batchsize,
OrderingContext orderContext)
{
... | java | public void setAsynchConsumerCallback(int requestNumber,
int maxActiveMessages,
long messageLockExpiry,
int batchsize,
OrderingContext orderContext)
{
... | [
"public",
"void",
"setAsynchConsumerCallback",
"(",
"int",
"requestNumber",
",",
"int",
"maxActiveMessages",
",",
"long",
"messageLockExpiry",
",",
"int",
"batchsize",
",",
"OrderingContext",
"orderContext",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEna... | This will cause the synchronous session to become asynchrnous.
As such, this class will not handle the session anymore, so we
inform the main consumer and that will then switch over the
delegated class to handle the consumer.
@param requestNumber
@param maxActiveMessages
@param messageLockExpiry
@param batchsize
@para... | [
"This",
"will",
"cause",
"the",
"synchronous",
"session",
"to",
"become",
"asynchrnous",
".",
"As",
"such",
"this",
"class",
"will",
"not",
"handle",
"the",
"session",
"anymore",
"so",
"we",
"inform",
"the",
"main",
"consumer",
"and",
"that",
"will",
"then",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATSessSynchConsumer.java#L509-L532 |
70,151 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/spi/impl/NoInjectionAnnotationInjectionProvider.java | NoInjectionAnnotationInjectionProvider.postConstruct | @Override
public void postConstruct(Object instance, Object creationMetaData) throws InjectionProviderException
{
// TODO the servlet spec is not clear about searching in superclass??
Class clazz = instance.getClass();
Method[] methods = getDeclaredMethods(clazz);
if (methods == ... | java | @Override
public void postConstruct(Object instance, Object creationMetaData) throws InjectionProviderException
{
// TODO the servlet spec is not clear about searching in superclass??
Class clazz = instance.getClass();
Method[] methods = getDeclaredMethods(clazz);
if (methods == ... | [
"@",
"Override",
"public",
"void",
"postConstruct",
"(",
"Object",
"instance",
",",
"Object",
"creationMetaData",
")",
"throws",
"InjectionProviderException",
"{",
"// TODO the servlet spec is not clear about searching in superclass??",
"Class",
"clazz",
"=",
"instance",
".",... | Call postConstruct method on the specified instance. | [
"Call",
"postConstruct",
"method",
"on",
"the",
"specified",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/spi/impl/NoInjectionAnnotationInjectionProvider.java#L128-L178 |
70,152 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java | CDIContainerImpl.createWebSphereCDIDeployment | private WebSphereCDIDeployment createWebSphereCDIDeployment(Application application,
Set<ExtensionArchive> extensionArchives) throws CDIException {
WebSphereCDIDeployment webSphereCDIDeployment = new WebSphereCDIDeploymentImpl(application, cdiRunti... | java | private WebSphereCDIDeployment createWebSphereCDIDeployment(Application application,
Set<ExtensionArchive> extensionArchives) throws CDIException {
WebSphereCDIDeployment webSphereCDIDeployment = new WebSphereCDIDeploymentImpl(application, cdiRunti... | [
"private",
"WebSphereCDIDeployment",
"createWebSphereCDIDeployment",
"(",
"Application",
"application",
",",
"Set",
"<",
"ExtensionArchive",
">",
"extensionArchives",
")",
"throws",
"CDIException",
"{",
"WebSphereCDIDeployment",
"webSphereCDIDeployment",
"=",
"new",
"WebSpher... | This method creates the Deployment structure with all it's BDAs.
@param application
@param extensionArchives
@return
@throws CDIException | [
"This",
"method",
"creates",
"the",
"Deployment",
"structure",
"with",
"all",
"it",
"s",
"BDAs",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java#L200-L231 |
70,153 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java | CDIContainerImpl.addRuntimeExtensions | private void addRuntimeExtensions(WebSphereCDIDeployment webSphereCDIDeployment,
DiscoveredBdas discoveredBdas) throws CDIException {
//add the normal runtime extension using the bundle classloader to load the bda classes
Set<WebSphereBeanDeploymentArchive> extensio... | java | private void addRuntimeExtensions(WebSphereCDIDeployment webSphereCDIDeployment,
DiscoveredBdas discoveredBdas) throws CDIException {
//add the normal runtime extension using the bundle classloader to load the bda classes
Set<WebSphereBeanDeploymentArchive> extensio... | [
"private",
"void",
"addRuntimeExtensions",
"(",
"WebSphereCDIDeployment",
"webSphereCDIDeployment",
",",
"DiscoveredBdas",
"discoveredBdas",
")",
"throws",
"CDIException",
"{",
"//add the normal runtime extension using the bundle classloader to load the bda classes",
"Set",
"<",
"Web... | Create a BDA for each runtime extension and add it to the deployment.
@param webSphereCDIDeployment
@param excludedBdas a set of application BDAs which should not be visible to runtime extensions
@throws CDIException | [
"Create",
"a",
"BDA",
"for",
"each",
"runtime",
"extension",
"and",
"add",
"it",
"to",
"the",
"deployment",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java#L240-L257 |
70,154 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java | CDIContainerImpl.createExtensionBDAs | private Set<WebSphereBeanDeploymentArchive> createExtensionBDAs(WebSphereCDIDeployment applicationContext) throws CDIException {
Set<WebSphereBeanDeploymentArchive> extensionBdas = new HashSet<WebSphereBeanDeploymentArchive>();
Set<ExtensionArchive> extensions = getExtensionArchives();
if (ex... | java | private Set<WebSphereBeanDeploymentArchive> createExtensionBDAs(WebSphereCDIDeployment applicationContext) throws CDIException {
Set<WebSphereBeanDeploymentArchive> extensionBdas = new HashSet<WebSphereBeanDeploymentArchive>();
Set<ExtensionArchive> extensions = getExtensionArchives();
if (ex... | [
"private",
"Set",
"<",
"WebSphereBeanDeploymentArchive",
">",
"createExtensionBDAs",
"(",
"WebSphereCDIDeployment",
"applicationContext",
")",
"throws",
"CDIException",
"{",
"Set",
"<",
"WebSphereBeanDeploymentArchive",
">",
"extensionBdas",
"=",
"new",
"HashSet",
"<",
"W... | Create BDAs for all runtime extensions that cannot see application bdas
@param applicationContext
@return
@throws CDIException | [
"Create",
"BDAs",
"for",
"all",
"runtime",
"extensions",
"that",
"cannot",
"see",
"application",
"bdas"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java#L266-L283 |
70,155 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java | CDIContainerImpl.processModules | private void processModules(WebSphereCDIDeployment applicationContext,
DiscoveredBdas discoveredBdas,
Collection<CDIArchive> moduleArchives) throws CDIException {
List<WebSphereBeanDeploymentArchive> moduleBDAs = new ArrayList<WebSphereBeanDeploym... | java | private void processModules(WebSphereCDIDeployment applicationContext,
DiscoveredBdas discoveredBdas,
Collection<CDIArchive> moduleArchives) throws CDIException {
List<WebSphereBeanDeploymentArchive> moduleBDAs = new ArrayList<WebSphereBeanDeploym... | [
"private",
"void",
"processModules",
"(",
"WebSphereCDIDeployment",
"applicationContext",
",",
"DiscoveredBdas",
"discoveredBdas",
",",
"Collection",
"<",
"CDIArchive",
">",
"moduleArchives",
")",
"throws",
"CDIException",
"{",
"List",
"<",
"WebSphereBeanDeploymentArchive",... | Create BDAs for either the EJB, Web or Client modules and any libraries they reference on their classpath. | [
"Create",
"BDAs",
"for",
"either",
"the",
"EJB",
"Web",
"or",
"Client",
"modules",
"and",
"any",
"libraries",
"they",
"reference",
"on",
"their",
"classpath",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java#L309-L355 |
70,156 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java | CDIContainerImpl.getExtensionArchives | private synchronized Set<ExtensionArchive> getExtensionArchives() throws CDIException {
if (runtimeExtensionSet == null) {
runtimeExtensionSet = new HashSet<ExtensionArchive>();
// get hold of the container for extension bundle
//add create the bean deployment archive from t... | java | private synchronized Set<ExtensionArchive> getExtensionArchives() throws CDIException {
if (runtimeExtensionSet == null) {
runtimeExtensionSet = new HashSet<ExtensionArchive>();
// get hold of the container for extension bundle
//add create the bean deployment archive from t... | [
"private",
"synchronized",
"Set",
"<",
"ExtensionArchive",
">",
"getExtensionArchives",
"(",
")",
"throws",
"CDIException",
"{",
"if",
"(",
"runtimeExtensionSet",
"==",
"null",
")",
"{",
"runtimeExtensionSet",
"=",
"new",
"HashSet",
"<",
"ExtensionArchive",
">",
"... | Returns the extension container info with ContainerInfo, classloader and container name
@return
@throws CDIException | [
"Returns",
"the",
"extension",
"container",
"info",
"with",
"ContainerInfo",
"classloader",
"and",
"container",
"name"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/CDIContainerImpl.java#L550-L608 |
70,157 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/SortHandler.java | SortHandler.compareEntitysWithRespectToProperties | public int compareEntitysWithRespectToProperties(Entity entity1, Entity entity2) {
List<SortKeyType> sortKeys = sortControl.getSortKeys();
int temp = 0;
for (int i = 0; i < sortKeys.size() && temp == 0; i++) {
SortKeyType sortKey = (SortKeyType) sortKeys.get(i);
String p... | java | public int compareEntitysWithRespectToProperties(Entity entity1, Entity entity2) {
List<SortKeyType> sortKeys = sortControl.getSortKeys();
int temp = 0;
for (int i = 0; i < sortKeys.size() && temp == 0; i++) {
SortKeyType sortKey = (SortKeyType) sortKeys.get(i);
String p... | [
"public",
"int",
"compareEntitysWithRespectToProperties",
"(",
"Entity",
"entity1",
",",
"Entity",
"entity2",
")",
"{",
"List",
"<",
"SortKeyType",
">",
"sortKeys",
"=",
"sortControl",
".",
"getSortKeys",
"(",
")",
";",
"int",
"temp",
"=",
"0",
";",
"for",
"... | Compares the two entity data objects.
@param member1 the first member object to be compared
@param member2 the second member object to be compared
@return a negative integer, zero, or a positive integer as the first member object is less than,
equal to, or greater than the second. | [
"Compares",
"the",
"two",
"entity",
"data",
"objects",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/SortHandler.java#L59-L75 |
70,158 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/SortHandler.java | SortHandler.sortEntities | public List<Entity> sortEntities(List<Entity> entities) {
if (entities != null && entities.size() > 0) {
Entity[] ents = (Entity[]) entities.toArray(new Entity[entities.size()]);
WIMSortCompare<Entity> wimSortComparator = new WIMSortCompare<Entity>(sortControl);
Arrays.sort(e... | java | public List<Entity> sortEntities(List<Entity> entities) {
if (entities != null && entities.size() > 0) {
Entity[] ents = (Entity[]) entities.toArray(new Entity[entities.size()]);
WIMSortCompare<Entity> wimSortComparator = new WIMSortCompare<Entity>(sortControl);
Arrays.sort(e... | [
"public",
"List",
"<",
"Entity",
">",
"sortEntities",
"(",
"List",
"<",
"Entity",
">",
"entities",
")",
"{",
"if",
"(",
"entities",
"!=",
"null",
"&&",
"entities",
".",
"size",
"(",
")",
">",
"0",
")",
"{",
"Entity",
"[",
"]",
"ents",
"=",
"(",
"... | Sorts the set of Member Objects
@param members a set of Member objects to be sorted
@return a list of sorted Member objects | [
"Sorts",
"the",
"set",
"of",
"Member",
"Objects"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/util/SortHandler.java#L103-L114 |
70,159 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java | UIData.encodeBegin | @Override
public void encodeBegin(FacesContext context) throws IOException
{
_initialDescendantComponentState = null;
if (_isValidChilds && !hasErrorMessages(context))
{
// Clear the data model so that when rendering code calls
// getDataModel a fresh model is fet... | java | @Override
public void encodeBegin(FacesContext context) throws IOException
{
_initialDescendantComponentState = null;
if (_isValidChilds && !hasErrorMessages(context))
{
// Clear the data model so that when rendering code calls
// getDataModel a fresh model is fet... | [
"@",
"Override",
"public",
"void",
"encodeBegin",
"(",
"FacesContext",
"context",
")",
"throws",
"IOException",
"{",
"_initialDescendantComponentState",
"=",
"null",
";",
"if",
"(",
"_isValidChilds",
"&&",
"!",
"hasErrorMessages",
"(",
"context",
")",
")",
"{",
... | Perform necessary actions when rendering of this component starts, before delegating to the inherited
implementation which calls the associated renderer's encodeBegin method. | [
"Perform",
"necessary",
"actions",
"when",
"rendering",
"of",
"this",
"component",
"starts",
"before",
"delegating",
"to",
"the",
"inherited",
"implementation",
"which",
"calls",
"the",
"associated",
"renderer",
"s",
"encodeBegin",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java#L1741-L1762 |
70,160 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java | UIData.processColumnFacets | private void processColumnFacets(FacesContext context, int processAction)
{
for (int i = 0, childCount = getChildCount(); i < childCount; i++)
{
UIComponent child = getChildren().get(i);
if (child instanceof UIColumn)
{
if (! _ComponentUtils.isRend... | java | private void processColumnFacets(FacesContext context, int processAction)
{
for (int i = 0, childCount = getChildCount(); i < childCount; i++)
{
UIComponent child = getChildren().get(i);
if (child instanceof UIColumn)
{
if (! _ComponentUtils.isRend... | [
"private",
"void",
"processColumnFacets",
"(",
"FacesContext",
"context",
",",
"int",
"processAction",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
",",
"childCount",
"=",
"getChildCount",
"(",
")",
";",
"i",
"<",
"childCount",
";",
"i",
"++",
")",
"{",
... | Invoke the specified phase on all facets of all UIColumn children of this component. Note that no methods are
called on the UIColumn child objects themselves.
@param context
is the current faces context.
@param processAction
specifies a JSF phase: decode, validate or update. | [
"Invoke",
"the",
"specified",
"phase",
"on",
"all",
"facets",
"of",
"all",
"UIColumn",
"children",
"of",
"this",
"component",
".",
"Note",
"that",
"no",
"methods",
"are",
"called",
"on",
"the",
"UIColumn",
"child",
"objects",
"themselves",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java#L1934-L1956 |
70,161 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java | UIData.processColumnChildren | private void processColumnChildren(FacesContext context, int processAction)
{
int first = getFirst();
int rows = getRows();
int last;
if (rows == 0)
{
last = getRowCount();
}
else
{
last = first + rows;
}
for (in... | java | private void processColumnChildren(FacesContext context, int processAction)
{
int first = getFirst();
int rows = getRows();
int last;
if (rows == 0)
{
last = getRowCount();
}
else
{
last = first + rows;
}
for (in... | [
"private",
"void",
"processColumnChildren",
"(",
"FacesContext",
"context",
",",
"int",
"processAction",
")",
"{",
"int",
"first",
"=",
"getFirst",
"(",
")",
";",
"int",
"rows",
"=",
"getRows",
"(",
")",
";",
"int",
"last",
";",
"if",
"(",
"rows",
"==",
... | Invoke the specified phase on all non-facet children of all UIColumn children of this component. Note that no
methods are called on the UIColumn child objects themselves.
@param context
is the current faces context.
@param processAction
specifies a JSF phase: decode, validate or update. | [
"Invoke",
"the",
"specified",
"phase",
"on",
"all",
"non",
"-",
"facet",
"children",
"of",
"all",
"UIColumn",
"children",
"of",
"this",
"component",
".",
"Note",
"that",
"no",
"methods",
"are",
"called",
"on",
"the",
"UIColumn",
"child",
"objects",
"themselv... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java#L1967-L2008 |
70,162 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java | UIData.setRows | public void setRows(int rows)
{
if (rows < 0)
{
throw new IllegalArgumentException("rows: " + rows);
}
getStateHelper().put(PropertyKeys.rows, rows );
} | java | public void setRows(int rows)
{
if (rows < 0)
{
throw new IllegalArgumentException("rows: " + rows);
}
getStateHelper().put(PropertyKeys.rows, rows );
} | [
"public",
"void",
"setRows",
"(",
"int",
"rows",
")",
"{",
"if",
"(",
"rows",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"rows: \"",
"+",
"rows",
")",
";",
"}",
"getStateHelper",
"(",
")",
".",
"put",
"(",
"PropertyKeys",
".... | Set the maximum number of rows displayed in the table. | [
"Set",
"the",
"maximum",
"number",
"of",
"rows",
"displayed",
"in",
"the",
"table",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java#L2189-L2196 |
70,163 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java | UIData.isRowStatePreserved | @JSFProperty(literalOnly=true, faceletsOnly=true)
public boolean isRowStatePreserved()
{
Boolean b = (Boolean) getStateHelper().get(PropertyKeys.rowStatePreserved);
return b == null ? false : b.booleanValue();
} | java | @JSFProperty(literalOnly=true, faceletsOnly=true)
public boolean isRowStatePreserved()
{
Boolean b = (Boolean) getStateHelper().get(PropertyKeys.rowStatePreserved);
return b == null ? false : b.booleanValue();
} | [
"@",
"JSFProperty",
"(",
"literalOnly",
"=",
"true",
",",
"faceletsOnly",
"=",
"true",
")",
"public",
"boolean",
"isRowStatePreserved",
"(",
")",
"{",
"Boolean",
"b",
"=",
"(",
"Boolean",
")",
"getStateHelper",
"(",
")",
".",
"get",
"(",
"PropertyKeys",
".... | Indicates whether the state for a component in each row should not be
discarded before the datatable is rendered again.
This property is similar to tomahawk t:dataTable preserveRowStates
This will only work reliable if the datamodel of the
datatable did not change either by sorting, removing or
adding rows. Default: ... | [
"Indicates",
"whether",
"the",
"state",
"for",
"a",
"component",
"in",
"each",
"row",
"should",
"not",
"be",
"discarded",
"before",
"the",
"datatable",
"is",
"rendered",
"again",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/UIData.java#L2387-L2392 |
70,164 | OpenLiberty/open-liberty | dev/com.ibm.ws.javaee.ddmodel/src/com/ibm/ws/javaee/ddmodel/jsf/FacesConfigType.java | FacesConfigType.getManagedObjects | @Override
public List<String> getManagedObjects() {
ArrayList<String> managedObjects = new ArrayList<String>();
if (this.application != null) {
managedObjects.addAll(application.getManagedObjects());
}
if (this.factory != null) {
managedObjects.addAll(factory.... | java | @Override
public List<String> getManagedObjects() {
ArrayList<String> managedObjects = new ArrayList<String>();
if (this.application != null) {
managedObjects.addAll(application.getManagedObjects());
}
if (this.factory != null) {
managedObjects.addAll(factory.... | [
"@",
"Override",
"public",
"List",
"<",
"String",
">",
"getManagedObjects",
"(",
")",
"{",
"ArrayList",
"<",
"String",
">",
"managedObjects",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"if",
"(",
"this",
".",
"application",
"!=",
"null",... | This method is only called from jsf 2.2 | [
"This",
"method",
"is",
"only",
"called",
"from",
"jsf",
"2",
".",
"2"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmodel/src/com/ibm/ws/javaee/ddmodel/jsf/FacesConfigType.java#L145-L158 |
70,165 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/DocumentRootUtils.java | DocumentRootUtils.getLastModified | public long getLastModified() {
if(matchedEntry != null){
return matchedEntry.getLastModified();
} else if (matchedZipFile != null){
return matchedZipFile.getLastModified();
} else if (matchedFile != null){
return matchedFile.lastModified();
} else {
... | java | public long getLastModified() {
if(matchedEntry != null){
return matchedEntry.getLastModified();
} else if (matchedZipFile != null){
return matchedZipFile.getLastModified();
} else if (matchedFile != null){
return matchedFile.lastModified();
} else {
... | [
"public",
"long",
"getLastModified",
"(",
")",
"{",
"if",
"(",
"matchedEntry",
"!=",
"null",
")",
"{",
"return",
"matchedEntry",
".",
"getLastModified",
"(",
")",
";",
"}",
"else",
"if",
"(",
"matchedZipFile",
"!=",
"null",
")",
"{",
"return",
"matchedZipF... | Get the last modified date of the appropriate matched item | [
"Get",
"the",
"last",
"modified",
"date",
"of",
"the",
"appropriate",
"matched",
"item"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/util/DocumentRootUtils.java#L587-L597 |
70,166 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSRemoteConsumerPoint.java | JSRemoteConsumerPoint.expiryAlarm | public void expiryAlarm(AORequestedTick requestedTick)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "expiryAlarm", requestedTick);
boolean transitionOccured = false;
ArrayList<AORequestedTick> satisfiedTicks = null;
try
{
this.lock();
try
... | java | public void expiryAlarm(AORequestedTick requestedTick)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "expiryAlarm", requestedTick);
boolean transitionOccured = false;
ArrayList<AORequestedTick> satisfiedTicks = null;
try
{
this.lock();
try
... | [
"public",
"void",
"expiryAlarm",
"(",
"AORequestedTick",
"requestedTick",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"expiryAlarm\"",
... | Callback from the AORequestedTick when the expiry alarm occurs.
@param requestedTick | [
"Callback",
"from",
"the",
"AORequestedTick",
"when",
"the",
"expiry",
"alarm",
"occurs",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSRemoteConsumerPoint.java#L315-L376 |
70,167 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSRemoteConsumerPoint.java | JSRemoteConsumerPoint.alarm | public void alarm(Object thandle)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "alarm", thandle);
boolean doClose = false;
// We're probably about to close this consumer, which needs us to remove it from the AOStream's
// consciousness first (so that it do... | java | public void alarm(Object thandle)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "alarm", thandle);
boolean doClose = false;
// We're probably about to close this consumer, which needs us to remove it from the AOStream's
// consciousness first (so that it do... | [
"public",
"void",
"alarm",
"(",
"Object",
"thandle",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"alarm\"",
",",
"thandle",
")",
... | The idle timeout has expired | [
"The",
"idle",
"timeout",
"has",
"expired"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/JSRemoteConsumerPoint.java#L1057-L1121 |
70,168 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java | SSLConnectionLink.cleanup | public void cleanup() {
cleanupLock.lock();
try {
// Clean up the write interface.
if (null != writeInterface) {
this.writeInterface.close();
this.writeInterface = null;
}
// Clean up the read interface.
if (null... | java | public void cleanup() {
cleanupLock.lock();
try {
// Clean up the write interface.
if (null != writeInterface) {
this.writeInterface.close();
this.writeInterface = null;
}
// Clean up the read interface.
if (null... | [
"public",
"void",
"cleanup",
"(",
")",
"{",
"cleanupLock",
".",
"lock",
"(",
")",
";",
"try",
"{",
"// Clean up the write interface.",
"if",
"(",
"null",
"!=",
"writeInterface",
")",
"{",
"this",
".",
"writeInterface",
".",
"close",
"(",
")",
";",
"this",
... | This method is called from both close and destroy to clean up local resources.
Avoid object synchronization, but ensure only one thread does cleanup at a time. | [
"This",
"method",
"is",
"called",
"from",
"both",
"close",
"and",
"destroy",
"to",
"clean",
"up",
"local",
"resources",
".",
"Avoid",
"object",
"synchronization",
"but",
"ensure",
"only",
"one",
"thread",
"does",
"cleanup",
"at",
"a",
"time",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java#L221-L250 |
70,169 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java | SSLConnectionLink.ready | @Override
public void ready(VirtualConnection inVC) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "ready, vc=" + getVCHash());
}
// Double check for error condition where close already happened. Protective measure.
if (!closed && Framew... | java | @Override
public void ready(VirtualConnection inVC) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "ready, vc=" + getVCHash());
}
// Double check for error condition where close already happened. Protective measure.
if (!closed && Framew... | [
"@",
"Override",
"public",
"void",
"ready",
"(",
"VirtualConnection",
"inVC",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"ready... | This method will be called at one of two times. If this connection link
is part of an inbound chain, then this will be called when the device side
channel has accepted a new connection and determined that this is the next
channel in the chain. Note, that the Discriminator may have already been
run. The second case wher... | [
"This",
"method",
"will",
"be",
"called",
"at",
"one",
"of",
"two",
"times",
".",
"If",
"this",
"connection",
"link",
"is",
"part",
"of",
"an",
"inbound",
"chain",
"then",
"this",
"will",
"be",
"called",
"when",
"the",
"device",
"side",
"channel",
"has",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java#L282-L359 |
70,170 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java | SSLConnectionLink.readyInboundPostHandshake | protected void readyInboundPostHandshake(
WsByteBuffer netBuffer,
WsByteBuffer decryptedNetBuffer,
WsByteBuffer encryptedAppBuffer,
Handshak... | java | protected void readyInboundPostHandshake(
WsByteBuffer netBuffer,
WsByteBuffer decryptedNetBuffer,
WsByteBuffer encryptedAppBuffer,
Handshak... | [
"protected",
"void",
"readyInboundPostHandshake",
"(",
"WsByteBuffer",
"netBuffer",
",",
"WsByteBuffer",
"decryptedNetBuffer",
",",
"WsByteBuffer",
"encryptedAppBuffer",
",",
"HandshakeStatus",
"hsStatus",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
... | This method is called after the SSL handshake has taken place.
@param netBuffer
@param decryptedNetBuffer
@param encryptedAppBuffer
@param hsStatus | [
"This",
"method",
"is",
"called",
"after",
"the",
"SSL",
"handshake",
"has",
"taken",
"place",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java#L683-L742 |
70,171 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java | SSLConnectionLink.readyOutbound | private void readyOutbound(VirtualConnection inVC, boolean async) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "readyOutbound, vc=" + getVCHash());
}
final SSLChannelData config = this.sslChannel.getConfig();
// Encrypt... | java | private void readyOutbound(VirtualConnection inVC, boolean async) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "readyOutbound, vc=" + getVCHash());
}
final SSLChannelData config = this.sslChannel.getConfig();
// Encrypt... | [
"private",
"void",
"readyOutbound",
"(",
"VirtualConnection",
"inVC",
",",
"boolean",
"async",
")",
"throws",
"IOException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
... | Handle work required by the ready method for outbound connections. When called, the
outbound socket has been established. Establish the SSL connection before reporting
to the next channel. Note, this method is called in both sync and async flows.
@param inVC virtual connection associated with this request
@param async... | [
"Handle",
"work",
"required",
"by",
"the",
"ready",
"method",
"for",
"outbound",
"connections",
".",
"When",
"called",
"the",
"outbound",
"socket",
"has",
"been",
"established",
".",
"Establish",
"the",
"SSL",
"connection",
"before",
"reporting",
"to",
"the",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java#L753-L825 |
70,172 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java | SSLConnectionLink.readyOutboundPostHandshake | protected void readyOutboundPostHandshake(
WsByteBuffer netBuffer,
WsByteBuffer decryptedNetBuffer,
WsByteBuffer encryptedAppBuffer,
Han... | java | protected void readyOutboundPostHandshake(
WsByteBuffer netBuffer,
WsByteBuffer decryptedNetBuffer,
WsByteBuffer encryptedAppBuffer,
Han... | [
"protected",
"void",
"readyOutboundPostHandshake",
"(",
"WsByteBuffer",
"netBuffer",
",",
"WsByteBuffer",
"decryptedNetBuffer",
",",
"WsByteBuffer",
"encryptedAppBuffer",
",",
"HandshakeStatus",
"hsStatus",
",",
"boolean",
"async",
")",
"throws",
"IOException",
"{",
"if",... | This method is called to handle the results of an SSL handshake. This may be called
by a callback or in the same thread as the connect request.
@param netBuffer buffer for data flowing in fron the net
@param decryptedNetBuffer buffer for decrypted data from the net
@param encryptedAppBuffer buffer for encrypted data f... | [
"This",
"method",
"is",
"called",
"to",
"handle",
"the",
"results",
"of",
"an",
"SSL",
"handshake",
".",
"This",
"may",
"be",
"called",
"by",
"a",
"callback",
"or",
"in",
"the",
"same",
"thread",
"as",
"the",
"connect",
"request",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java#L838-L910 |
70,173 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java | SSLConnectionLink.handleRedundantConnect | private void handleRedundantConnect() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "handleRedundantConnect, vc=" + getVCHash());
}
// This conn link has already been connected.
// Need to shut get a new SSL engine.
cleanup();
... | java | private void handleRedundantConnect() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "handleRedundantConnect, vc=" + getVCHash());
}
// This conn link has already been connected.
// Need to shut get a new SSL engine.
cleanup();
... | [
"private",
"void",
"handleRedundantConnect",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"handleRedundantConnect, vc=\"",
"+",
... | This method is called if connect or connectAsync are called redundantly, after
the connection is already established. It cleans up the SSL engine. The connect
methods will then pass the connect on down the chain where, eventually, a new
socket will be established with this virtual connection. | [
"This",
"method",
"is",
"called",
"if",
"connect",
"or",
"connectAsync",
"are",
"called",
"redundantly",
"after",
"the",
"connection",
"is",
"already",
"established",
".",
"It",
"cleans",
"up",
"the",
"SSL",
"engine",
".",
"The",
"connect",
"methods",
"will",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java#L918-L937 |
70,174 | OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java | SSLConnectionLink.setAlpnProtocol | public void setAlpnProtocol(String protocol) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setAlpnProtocol: " + protocol + " " + this);
}
this.alpnProtocol = protocol;
this.sslConnectionContext.setAlpnProtocol(protocol);
} | java | public void setAlpnProtocol(String protocol) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setAlpnProtocol: " + protocol + " " + this);
}
this.alpnProtocol = protocol;
this.sslConnectionContext.setAlpnProtocol(protocol);
} | [
"public",
"void",
"setAlpnProtocol",
"(",
"String",
"protocol",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"setAlpnProtocol: \"",
... | Set the ALPN protocol negotiated for this link
@param String protocol | [
"Set",
"the",
"ALPN",
"protocol",
"negotiated",
"for",
"this",
"link"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLConnectionLink.java#L1255-L1261 |
70,175 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/UDPChannel.java | UDPChannel.destroyConnLinks | private void destroyConnLinks() {
synchronized (inUse) {
int numlinks = inUse.size();
for (int i = 0; i < numlinks; i++) {
inUse.removeFirst().destroy(null);
}
}
} | java | private void destroyConnLinks() {
synchronized (inUse) {
int numlinks = inUse.size();
for (int i = 0; i < numlinks; i++) {
inUse.removeFirst().destroy(null);
}
}
} | [
"private",
"void",
"destroyConnLinks",
"(",
")",
"{",
"synchronized",
"(",
"inUse",
")",
"{",
"int",
"numlinks",
"=",
"inUse",
".",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"numlinks",
";",
"i",
"++",
")",
"{",
"inU... | call the destroy on all the UDPConnLink objects related to this
UDPChannel which are currently "in use". | [
"call",
"the",
"destroy",
"on",
"all",
"the",
"UDPConnLink",
"objects",
"related",
"to",
"this",
"UDPChannel",
"which",
"are",
"currently",
"in",
"use",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/UDPChannel.java#L304-L311 |
70,176 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/UDPChannel.java | UDPChannel.verifySender | public boolean verifySender(InetAddress remoteAddr) {
boolean returnValue = true;
if (alists != null) {
returnValue = !alists.accessDenied(remoteAddr);
}
return returnValue;
} | java | public boolean verifySender(InetAddress remoteAddr) {
boolean returnValue = true;
if (alists != null) {
returnValue = !alists.accessDenied(remoteAddr);
}
return returnValue;
} | [
"public",
"boolean",
"verifySender",
"(",
"InetAddress",
"remoteAddr",
")",
"{",
"boolean",
"returnValue",
"=",
"true",
";",
"if",
"(",
"alists",
"!=",
"null",
")",
"{",
"returnValue",
"=",
"!",
"alists",
".",
"accessDenied",
"(",
"remoteAddr",
")",
";",
"... | Verify whether the remote address is allowed to communicated with the
channel.
@param remoteAddr
@return boolean - false means it is denied | [
"Verify",
"whether",
"the",
"remote",
"address",
"is",
"allowed",
"to",
"communicated",
"with",
"the",
"channel",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/udpchannel/internal/UDPChannel.java#L324-L331 |
70,177 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authentication.filter/src/com/ibm/ws/security/authentication/filter/internal/IPAddressRange.java | IPAddressRange.aboveRange | public boolean aboveRange(InetAddress ip) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "aboveRange, ip is " + ip);
Tr.debug(tc, "aboveRange, ip is " + ip);
}
return greaterThan(ip, ipHigher);
} | java | public boolean aboveRange(InetAddress ip) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "aboveRange, ip is " + ip);
Tr.debug(tc, "aboveRange, ip is " + ip);
}
return greaterThan(ip, ipHigher);
} | [
"public",
"boolean",
"aboveRange",
"(",
"InetAddress",
"ip",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"aboveRange, ip is \"",
"... | Is the given ip address numericaly above the address range?
Is it above ipHigher? | [
"Is",
"the",
"given",
"ip",
"address",
"numericaly",
"above",
"the",
"address",
"range?",
"Is",
"it",
"above",
"ipHigher?"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.filter/src/com/ibm/ws/security/authentication/filter/internal/IPAddressRange.java#L233-L239 |
70,178 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authentication.filter/src/com/ibm/ws/security/authentication/filter/internal/IPAddressRange.java | IPAddressRange.belowRange | public boolean belowRange(InetAddress ip) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "belowRange, ip is " + ip);
Tr.debug(tc, "belowRange, ipLower is " + ipLower);
}
return lessThan(ip, ipLower);
} | java | public boolean belowRange(InetAddress ip) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "belowRange, ip is " + ip);
Tr.debug(tc, "belowRange, ipLower is " + ipLower);
}
return lessThan(ip, ipLower);
} | [
"public",
"boolean",
"belowRange",
"(",
"InetAddress",
"ip",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"belowRange, ip is \"",
"... | Is the given ip address numerically below the address range?
Is it below ipLower?
@param ip
@return | [
"Is",
"the",
"given",
"ip",
"address",
"numerically",
"below",
"the",
"address",
"range?",
"Is",
"it",
"below",
"ipLower?"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.filter/src/com/ibm/ws/security/authentication/filter/internal/IPAddressRange.java#L248-L254 |
70,179 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.metrics.cdi/src/io/astefanutti/metrics/cdi/SeMetricName.java | SeMetricName.metadataValueOf | private String metadataValueOf(String value) {
if (value == null || value.trim().isEmpty())
return null;
return value;
} | java | private String metadataValueOf(String value) {
if (value == null || value.trim().isEmpty())
return null;
return value;
} | [
"private",
"String",
"metadataValueOf",
"(",
"String",
"value",
")",
"{",
"if",
"(",
"value",
"==",
"null",
"||",
"value",
".",
"trim",
"(",
")",
".",
"isEmpty",
"(",
")",
")",
"return",
"null",
";",
"return",
"value",
";",
"}"
] | Since annotations have the default value of "", convert it to null.
@param value
@return The value of the metadata field if present, null otherwise | [
"Since",
"annotations",
"have",
"the",
"default",
"value",
"of",
"convert",
"it",
"to",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.metrics.cdi/src/io/astefanutti/metrics/cdi/SeMetricName.java#L167-L171 |
70,180 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/PoolImplThreadSafe.java | PoolImplThreadSafe.get | @Override
public final Object get() {
Object o = buffer.pop();
if (beanPerf != null) { // Update PMI data
beanPerf.objectRetrieve(buffer.size(), (o != null));
}
return o;
} | java | @Override
public final Object get() {
Object o = buffer.pop();
if (beanPerf != null) { // Update PMI data
beanPerf.objectRetrieve(buffer.size(), (o != null));
}
return o;
} | [
"@",
"Override",
"public",
"final",
"Object",
"get",
"(",
")",
"{",
"Object",
"o",
"=",
"buffer",
".",
"pop",
"(",
")",
";",
"if",
"(",
"beanPerf",
"!=",
"null",
")",
"{",
"// Update PMI data",
"beanPerf",
".",
"objectRetrieve",
"(",
"buffer",
".",
"si... | Retrieve an object from this pool.
@return This method will return null if this pool is empty. | [
"Retrieve",
"an",
"object",
"from",
"this",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/PoolImplThreadSafe.java#L149-L158 |
70,181 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/PoolImplThreadSafe.java | PoolImplThreadSafe.put | @Override
public final void put(Object o) {
boolean discarded = false;
if (inactive) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "setting active: " + this);
// If the pool was marked inactive by the pool manager alarm, the... | java | @Override
public final void put(Object o) {
boolean discarded = false;
if (inactive) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "setting active: " + this);
// If the pool was marked inactive by the pool manager alarm, the... | [
"@",
"Override",
"public",
"final",
"void",
"put",
"(",
"Object",
"o",
")",
"{",
"boolean",
"discarded",
"=",
"false",
";",
"if",
"(",
"inactive",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabl... | Return an object instance to this pool.
<p>
If there is no room left in the pool the instance will be discarded; in
that case if the PooledObject or DiscardStrategy interfaces are being
used, the appropriate callback method will be called. | [
"Return",
"an",
"object",
"instance",
"to",
"this",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/PoolImplThreadSafe.java#L169-L204 |
70,182 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/PoolImplThreadSafe.java | PoolImplThreadSafe.periodicDrain | @Override
final void periodicDrain() {
// Drain to the minimum size but only by the maxDrainAmount.
// This slows the drain process, allowing for the pool to become
// active before becoming fully drained (to minimum level).
SizeData size = poolSize;
int numDiscarded = drainT... | java | @Override
final void periodicDrain() {
// Drain to the minimum size but only by the maxDrainAmount.
// This slows the drain process, allowing for the pool to become
// active before becoming fully drained (to minimum level).
SizeData size = poolSize;
int numDiscarded = drainT... | [
"@",
"Override",
"final",
"void",
"periodicDrain",
"(",
")",
"{",
"// Drain to the minimum size but only by the maxDrainAmount.",
"// This slows the drain process, allowing for the pool to become",
"// active before becoming fully drained (to minimum level).",
"SizeData",
"size",
"=",
"p... | Remove a percentage of the elements from this pool down to its minimum
value. If the pool becomes active while draining discontinue. | [
"Remove",
"a",
"percentage",
"of",
"the",
"elements",
"from",
"this",
"pool",
"down",
"to",
"its",
"minimum",
"value",
".",
"If",
"the",
"pool",
"becomes",
"active",
"while",
"draining",
"discontinue",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/PoolImplThreadSafe.java#L210-L243 |
70,183 | OpenLiberty/open-liberty | dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/servlet/internal/ResponseMessage.java | ResponseMessage.init | public void init(HttpInboundConnection conn, RequestMessage req) {
this.request = req;
this.response = conn.getResponse();
this.connection = conn;
this.outStream = new ResponseBody(this.response.getBody());
this.locale = Locale.getDefault();
} | java | public void init(HttpInboundConnection conn, RequestMessage req) {
this.request = req;
this.response = conn.getResponse();
this.connection = conn;
this.outStream = new ResponseBody(this.response.getBody());
this.locale = Locale.getDefault();
} | [
"public",
"void",
"init",
"(",
"HttpInboundConnection",
"conn",
",",
"RequestMessage",
"req",
")",
"{",
"this",
".",
"request",
"=",
"req",
";",
"this",
".",
"response",
"=",
"conn",
".",
"getResponse",
"(",
")",
";",
"this",
".",
"connection",
"=",
"con... | Initialize this response message with the input connection.
@param conn
@param req | [
"Initialize",
"this",
"response",
"message",
"with",
"the",
"input",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/servlet/internal/ResponseMessage.java#L76-L82 |
70,184 | OpenLiberty/open-liberty | dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/servlet/internal/ResponseMessage.java | ResponseMessage.clear | public void clear() {
this.contentType = null;
this.encoding = null;
this.locale = null;
this.outStream = null;
this.outWriter = null;
this.streamActive = false;
} | java | public void clear() {
this.contentType = null;
this.encoding = null;
this.locale = null;
this.outStream = null;
this.outWriter = null;
this.streamActive = false;
} | [
"public",
"void",
"clear",
"(",
")",
"{",
"this",
".",
"contentType",
"=",
"null",
";",
"this",
".",
"encoding",
"=",
"null",
";",
"this",
".",
"locale",
"=",
"null",
";",
"this",
".",
"outStream",
"=",
"null",
";",
"this",
".",
"outWriter",
"=",
"... | Clear all the temporary variables of this response. | [
"Clear",
"all",
"the",
"temporary",
"variables",
"of",
"this",
"response",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/servlet/internal/ResponseMessage.java#L87-L94 |
70,185 | OpenLiberty/open-liberty | dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/servlet/internal/ResponseMessage.java | ResponseMessage.convertURItoURL | private String convertURItoURL(String uri) {
int indexScheme = uri.indexOf("://");
if (-1 != indexScheme) {
int indexQuery = uri.indexOf('?');
if (-1 == indexQuery || indexScheme < indexQuery) {
// already a full url
return uri;
}
... | java | private String convertURItoURL(String uri) {
int indexScheme = uri.indexOf("://");
if (-1 != indexScheme) {
int indexQuery = uri.indexOf('?');
if (-1 == indexQuery || indexScheme < indexQuery) {
// already a full url
return uri;
}
... | [
"private",
"String",
"convertURItoURL",
"(",
"String",
"uri",
")",
"{",
"int",
"indexScheme",
"=",
"uri",
".",
"indexOf",
"(",
"\"://\"",
")",
";",
"if",
"(",
"-",
"1",
"!=",
"indexScheme",
")",
"{",
"int",
"indexQuery",
"=",
"uri",
".",
"indexOf",
"("... | Convert a possible URI to a full URL.
@param uri
@return String | [
"Convert",
"a",
"possible",
"URI",
"to",
"a",
"full",
"URL",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/servlet/internal/ResponseMessage.java#L240-L284 |
70,186 | OpenLiberty/open-liberty | dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/servlet/internal/ResponseMessage.java | ResponseMessage.commit | public void commit() {
if (isCommitted()) {
return;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Committing: " + this);
}
if (null == this.response.getHeader("Content-Language")) {
// content-language not y... | java | public void commit() {
if (isCommitted()) {
return;
}
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Committing: " + this);
}
if (null == this.response.getHeader("Content-Language")) {
// content-language not y... | [
"public",
"void",
"commit",
"(",
")",
"{",
"if",
"(",
"isCommitted",
"(",
")",
")",
"{",
"return",
";",
"}",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",... | When headers are being marshalled out, this message moves to committed
state which will disallow most further changes. | [
"When",
"headers",
"are",
"being",
"marshalled",
"out",
"this",
"message",
"moves",
"to",
"committed",
"state",
"which",
"will",
"disallow",
"most",
"further",
"changes",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/servlet/internal/ResponseMessage.java#L452-L492 |
70,187 | OpenLiberty/open-liberty | dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/buildtasks/InstrumentForTrace.java | InstrumentForTrace.setApi | public void setApi(String api) {
api = api.trim();
if ("liberty".equalsIgnoreCase(api)) {
this.api = "liberty";
} else if ("websphere".equalsIgnoreCase(api)) {
this.api = "tr";
} else if ("tr".equalsIgnoreCase(api)) {
this.api = "tr";
} else if... | java | public void setApi(String api) {
api = api.trim();
if ("liberty".equalsIgnoreCase(api)) {
this.api = "liberty";
} else if ("websphere".equalsIgnoreCase(api)) {
this.api = "tr";
} else if ("tr".equalsIgnoreCase(api)) {
this.api = "tr";
} else if... | [
"public",
"void",
"setApi",
"(",
"String",
"api",
")",
"{",
"api",
"=",
"api",
".",
"trim",
"(",
")",
";",
"if",
"(",
"\"liberty\"",
".",
"equalsIgnoreCase",
"(",
"api",
")",
")",
"{",
"this",
".",
"api",
"=",
"\"liberty\"",
";",
"}",
"else",
"if",... | Set the type of trace API to use.
@param api
the type of trace interface to use | [
"Set",
"the",
"type",
"of",
"trace",
"API",
"to",
"use",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/buildtasks/InstrumentForTrace.java#L59-L78 |
70,188 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.web/src/com/ibm/ws/jaxws/web/WebJaxWsModuleInfoBuilder.java | WebJaxWsModuleInfoBuilder.getServletNameClassPairsInWebXML | private Map<String, String> getServletNameClassPairsInWebXML(Container containerToAdapt) throws UnableToAdaptException {
Map<String, String> nameClassPairs = new HashMap<String, String>();
WebAppConfig webAppConfig = containerToAdapt.adapt(WebAppConfig.class);
Iterator<IServletConfig> cfgIter =... | java | private Map<String, String> getServletNameClassPairsInWebXML(Container containerToAdapt) throws UnableToAdaptException {
Map<String, String> nameClassPairs = new HashMap<String, String>();
WebAppConfig webAppConfig = containerToAdapt.adapt(WebAppConfig.class);
Iterator<IServletConfig> cfgIter =... | [
"private",
"Map",
"<",
"String",
",",
"String",
">",
"getServletNameClassPairsInWebXML",
"(",
"Container",
"containerToAdapt",
")",
"throws",
"UnableToAdaptException",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"nameClassPairs",
"=",
"new",
"HashMap",
"<",
"St... | Get all the Servlet name and className pairs from web.xml
@param webAppConfig
@return
@throws UnableToAdaptException | [
"Get",
"all",
"the",
"Servlet",
"name",
"and",
"className",
"pairs",
"from",
"web",
".",
"xml"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.web/src/com/ibm/ws/jaxws/web/WebJaxWsModuleInfoBuilder.java#L204-L217 |
70,189 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.web/src/com/ibm/ws/jaxws/web/WebJaxWsModuleInfoBuilder.java | WebJaxWsModuleInfoBuilder.processClassesInWebXML | private void processClassesInWebXML(EndpointInfoBuilder endpointInfoBuilder, EndpointInfoBuilderContext ctx, WebAppConfig webAppConfig,
JaxWsModuleInfo jaxWsModuleInfo, Set<String> presentedServices) throws UnableToAdaptException {
Iterator<IServletConfig> cfgIter = webA... | java | private void processClassesInWebXML(EndpointInfoBuilder endpointInfoBuilder, EndpointInfoBuilderContext ctx, WebAppConfig webAppConfig,
JaxWsModuleInfo jaxWsModuleInfo, Set<String> presentedServices) throws UnableToAdaptException {
Iterator<IServletConfig> cfgIter = webA... | [
"private",
"void",
"processClassesInWebXML",
"(",
"EndpointInfoBuilder",
"endpointInfoBuilder",
",",
"EndpointInfoBuilderContext",
"ctx",
",",
"WebAppConfig",
"webAppConfig",
",",
"JaxWsModuleInfo",
"jaxWsModuleInfo",
",",
"Set",
"<",
"String",
">",
"presentedServices",
")"... | Process the serviceImplBean classes in web.xml file.
@param ctx
@param webAppConfig
@param jaxWsModuleInfo
@throws Exception | [
"Process",
"the",
"serviceImplBean",
"classes",
"in",
"web",
".",
"xml",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.web/src/com/ibm/ws/jaxws/web/WebJaxWsModuleInfoBuilder.java#L227-L248 |
70,190 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/trm/TrmMessageFactory.java | TrmMessageFactory.getInstance | public static TrmMessageFactory getInstance() {
if (_instance == null) {
synchronized(TrmMessageFactory.class) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createFactoryInstance");
try {
Class cls = Class.forName(TRM_MESSAGE_FACTORY_CLASS);
_i... | java | public static TrmMessageFactory getInstance() {
if (_instance == null) {
synchronized(TrmMessageFactory.class) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createFactoryInstance");
try {
Class cls = Class.forName(TRM_MESSAGE_FACTORY_CLASS);
_i... | [
"public",
"static",
"TrmMessageFactory",
"getInstance",
"(",
")",
"{",
"if",
"(",
"_instance",
"==",
"null",
")",
"{",
"synchronized",
"(",
"TrmMessageFactory",
".",
"class",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
... | Get the singleton TrmMessageFactory which is to be used for
creating TRM Message instances.
@return The TrmMessageFactory | [
"Get",
"the",
"singleton",
"TrmMessageFactory",
"which",
"is",
"to",
"be",
"used",
"for",
"creating",
"TRM",
"Message",
"instances",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/trm/TrmMessageFactory.java#L44-L61 |
70,191 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/NamedEventManager.java | NamedEventManager.addNamedEvent | public void addNamedEvent (String shortName, Class<? extends ComponentSystemEvent> cls)
{
String key = shortName;
Collection<Class<? extends ComponentSystemEvent>> eventList;
// Per the spec, if the short name is missing, generate one.
if (shortName == null)
... | java | public void addNamedEvent (String shortName, Class<? extends ComponentSystemEvent> cls)
{
String key = shortName;
Collection<Class<? extends ComponentSystemEvent>> eventList;
// Per the spec, if the short name is missing, generate one.
if (shortName == null)
... | [
"public",
"void",
"addNamedEvent",
"(",
"String",
"shortName",
",",
"Class",
"<",
"?",
"extends",
"ComponentSystemEvent",
">",
"cls",
")",
"{",
"String",
"key",
"=",
"shortName",
";",
"Collection",
"<",
"Class",
"<",
"?",
"extends",
"ComponentSystemEvent",
">"... | Registers a named event.
@param shortName a String containing the short name for the event, from the @NamedEvent.shortName()
attribute.
@param cls the event class to register. | [
"Registers",
"a",
"named",
"event",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/NamedEventManager.java#L69-L93 |
70,192 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/NamedEventManager.java | NamedEventManager.getFixedName | private String getFixedName (Class<? extends ComponentSystemEvent> cls)
{
StringBuilder result = new StringBuilder();
String className;
// Get the unqualified class name.
className = cls.getSimpleName();
// Strip the trailing "event" off the class n... | java | private String getFixedName (Class<? extends ComponentSystemEvent> cls)
{
StringBuilder result = new StringBuilder();
String className;
// Get the unqualified class name.
className = cls.getSimpleName();
// Strip the trailing "event" off the class n... | [
"private",
"String",
"getFixedName",
"(",
"Class",
"<",
"?",
"extends",
"ComponentSystemEvent",
">",
"cls",
")",
"{",
"StringBuilder",
"result",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"String",
"className",
";",
"// Get the unqualified class name.",
"className"... | Retrieves the short name for an event class, according to spec rules.
@param cls the class to find the short name for.
@return a String containing the short name for the given class. | [
"Retrieves",
"the",
"short",
"name",
"for",
"an",
"event",
"class",
"according",
"to",
"spec",
"rules",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/NamedEventManager.java#L115-L142 |
70,193 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/collector/CollectorJsonUtils1_1.java | CollectorJsonUtils1_1.jsonifyEvent | public static String jsonifyEvent(Object event, String eventType, String serverName, String wlpUserDir, String serverHostName, String[] tags,
int maxFieldLength) {
if (eventType.equals(CollectorConstants.GC_EVENT_TYPE)) {
if (event instanceof GCData) {
... | java | public static String jsonifyEvent(Object event, String eventType, String serverName, String wlpUserDir, String serverHostName, String[] tags,
int maxFieldLength) {
if (eventType.equals(CollectorConstants.GC_EVENT_TYPE)) {
if (event instanceof GCData) {
... | [
"public",
"static",
"String",
"jsonifyEvent",
"(",
"Object",
"event",
",",
"String",
"eventType",
",",
"String",
"serverName",
",",
"String",
"wlpUserDir",
",",
"String",
"serverHostName",
",",
"String",
"[",
"]",
"tags",
",",
"int",
"maxFieldLength",
")",
"{"... | Method to return log event data in json format. This method is for collector version greater than 1.0
@param event The object originating from logging source which contains necessary fields
@param eventType The type of event
@param servername The name of the server
@param wlpUserDir The name of wlp user directory
@par... | [
"Method",
"to",
"return",
"log",
"event",
"data",
"in",
"json",
"format",
".",
"This",
"method",
"is",
"for",
"collector",
"version",
"greater",
"than",
"1",
".",
"0"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/collector/CollectorJsonUtils1_1.java#L49-L87 |
70,194 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/TimeLimitDaemon.java | TimeLimitDaemon.valueHasChanged | public void valueHasChanged(DCache cache, Object id, long expirationTime, int inactivity) { // CPF-Inactivity
//final String methodName = "valueHasChanged()";
if (expirationTime <= 0 && inactivity <=0 ) { // CPF-Inactivity
throw new IllegalArgumentException("expirationTime or inactivity mus... | java | public void valueHasChanged(DCache cache, Object id, long expirationTime, int inactivity) { // CPF-Inactivity
//final String methodName = "valueHasChanged()";
if (expirationTime <= 0 && inactivity <=0 ) { // CPF-Inactivity
throw new IllegalArgumentException("expirationTime or inactivity mus... | [
"public",
"void",
"valueHasChanged",
"(",
"DCache",
"cache",
",",
"Object",
"id",
",",
"long",
"expirationTime",
",",
"int",
"inactivity",
")",
"{",
"// CPF-Inactivity",
"//final String methodName = \"valueHasChanged()\";",
"if",
"(",
"expirationTime",
"<=",
"0",
"&&"... | This notifies this daemon that a value has changed,
so the expiration time should be updated.
It updates internal tables and indexes accordingly.
@param cache The cache instance.
@param id The cache id.
@param expirationTime The new expiration time. | [
"This",
"notifies",
"this",
"daemon",
"that",
"a",
"value",
"has",
"changed",
"so",
"the",
"expiration",
"time",
"should",
"be",
"updated",
".",
"It",
"updates",
"internal",
"tables",
"and",
"indexes",
"accordingly",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/TimeLimitDaemon.java#L224-L268 |
70,195 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/TimeLimitDaemon.java | TimeLimitDaemon.valueWasRemoved | public void valueWasRemoved(DCache cache, Object id) {
//final String methodName = "valueWasRemoved()";
if ( UNIT_TEST_INACTIVITY ) {
System.out.println("valueWasRemoved() - entry");
}
ExpirationMetaData expirationMetaData = (ExpirationMetaData)cacheInstancesTable.get(cache);... | java | public void valueWasRemoved(DCache cache, Object id) {
//final String methodName = "valueWasRemoved()";
if ( UNIT_TEST_INACTIVITY ) {
System.out.println("valueWasRemoved() - entry");
}
ExpirationMetaData expirationMetaData = (ExpirationMetaData)cacheInstancesTable.get(cache);... | [
"public",
"void",
"valueWasRemoved",
"(",
"DCache",
"cache",
",",
"Object",
"id",
")",
"{",
"//final String methodName = \"valueWasRemoved()\";",
"if",
"(",
"UNIT_TEST_INACTIVITY",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"valueWasRemoved() - entry\"",
"... | This notifies this daemon that an entry has removed,
It removes the entry from the internal tables.
@param cache The cache instance.
@param id The cache id. | [
"This",
"notifies",
"this",
"daemon",
"that",
"an",
"entry",
"has",
"removed",
"It",
"removes",
"the",
"entry",
"from",
"the",
"internal",
"tables",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/TimeLimitDaemon.java#L277-L295 |
70,196 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/TimeLimitDaemon.java | TimeLimitDaemon.valueWasAccessed | public void valueWasAccessed(DCache cache, Object id, long expirationTime, int inactivity) {
valueHasChanged(cache, id, expirationTime, inactivity);
} | java | public void valueWasAccessed(DCache cache, Object id, long expirationTime, int inactivity) {
valueHasChanged(cache, id, expirationTime, inactivity);
} | [
"public",
"void",
"valueWasAccessed",
"(",
"DCache",
"cache",
",",
"Object",
"id",
",",
"long",
"expirationTime",
",",
"int",
"inactivity",
")",
"{",
"valueHasChanged",
"(",
"cache",
",",
"id",
",",
"expirationTime",
",",
"inactivity",
")",
";",
"}"
] | CPF-Inactivity - cache check inactivity > 0 before calling this method. | [
"CPF",
"-",
"Inactivity",
"-",
"cache",
"check",
"inactivity",
">",
"0",
"before",
"calling",
"this",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/TimeLimitDaemon.java#L298-L300 |
70,197 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/TimeLimitDaemon.java | TimeLimitDaemon.createExpirationMetaData | public void createExpirationMetaData(DCache cache) {
//final String methodName = "createExpirationMetaData()";
ExpirationMetaData expirationMetaData = (ExpirationMetaData)cacheInstancesTable.get(cache);
if (expirationMetaData == null) {
int initialTableSize = DEFAULT_SIZE_FOR_MEM;
... | java | public void createExpirationMetaData(DCache cache) {
//final String methodName = "createExpirationMetaData()";
ExpirationMetaData expirationMetaData = (ExpirationMetaData)cacheInstancesTable.get(cache);
if (expirationMetaData == null) {
int initialTableSize = DEFAULT_SIZE_FOR_MEM;
... | [
"public",
"void",
"createExpirationMetaData",
"(",
"DCache",
"cache",
")",
"{",
"//final String methodName = \"createExpirationMetaData()\";",
"ExpirationMetaData",
"expirationMetaData",
"=",
"(",
"ExpirationMetaData",
")",
"cacheInstancesTable",
".",
"get",
"(",
"cache",
")"... | This method is called when the cache is created. This will initialize ExpirationMetaData for specified cache
@param cache The cache instance. | [
"This",
"method",
"is",
"called",
"when",
"the",
"cache",
"is",
"created",
".",
"This",
"will",
"initialize",
"ExpirationMetaData",
"for",
"specified",
"cache"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/TimeLimitDaemon.java#L307-L318 |
70,198 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/matching/MatchingApplicationSignature.java | MatchingApplicationSignature.getApplicationSignature | public ApplicationSignature getApplicationSignature()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getApplicationSignature");
SibTr.exit(tc, "getApplicationSignature", applicationSig);
}
return applicationSig;
} | java | public ApplicationSignature getApplicationSignature()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getApplicationSignature");
SibTr.exit(tc, "getApplicationSignature", applicationSig);
}
return applicationSig;
} | [
"public",
"ApplicationSignature",
"getApplicationSignature",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getApplicationSignatur... | Returns the ApplicationSignature.
@return ApplicationSignature | [
"Returns",
"the",
"ApplicationSignature",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/matching/MatchingApplicationSignature.java#L68-L76 |
70,199 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OidcUtil.java | OidcUtil.getUserNameFromSubject | public static String getUserNameFromSubject(Subject subject) {
Iterator<Principal> it = subject.getPrincipals().iterator();
String username = it.next().getName();
return username;
} | java | public static String getUserNameFromSubject(Subject subject) {
Iterator<Principal> it = subject.getPrincipals().iterator();
String username = it.next().getName();
return username;
} | [
"public",
"static",
"String",
"getUserNameFromSubject",
"(",
"Subject",
"subject",
")",
"{",
"Iterator",
"<",
"Principal",
">",
"it",
"=",
"subject",
".",
"getPrincipals",
"(",
")",
".",
"iterator",
"(",
")",
";",
"String",
"username",
"=",
"it",
".",
"nex... | The sujbect has to be non-null | [
"The",
"sujbect",
"has",
"to",
"be",
"non",
"-",
"null"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OidcUtil.java#L136-L140 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.