repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ProcessorUtils.java | ProcessorUtils.convertToLooseConfig | public static LooseConfig convertToLooseConfig(File looseFile) throws Exception {
//make sure the file exists, can be read and is an xml
if (looseFile.exists() && looseFile.isFile() && looseFile.canRead() && looseFile.getName().toLowerCase().endsWith(".xml")) {
LooseConfig root = new LooseCo... | java | public static LooseConfig convertToLooseConfig(File looseFile) throws Exception {
//make sure the file exists, can be read and is an xml
if (looseFile.exists() && looseFile.isFile() && looseFile.canRead() && looseFile.getName().toLowerCase().endsWith(".xml")) {
LooseConfig root = new LooseCo... | [
"public",
"static",
"LooseConfig",
"convertToLooseConfig",
"(",
"File",
"looseFile",
")",
"throws",
"Exception",
"{",
"//make sure the file exists, can be read and is an xml",
"if",
"(",
"looseFile",
".",
"exists",
"(",
")",
"&&",
"looseFile",
".",
"isFile",
"(",
")",... | Refer to the com.ibm.ws.artifact.api.loose.internal.LooseContainerFactoryHelper.createContainer.
Parse the loose config file and create the looseConfig object which contains the file's content.
@param looseFile
@return
@throws Exception | [
"Refer",
"to",
"the",
"com",
".",
"ibm",
".",
"ws",
".",
"artifact",
".",
"api",
".",
"loose",
".",
"internal",
".",
"LooseContainerFactoryHelper",
".",
"createContainer",
".",
"Parse",
"the",
"loose",
"config",
"file",
"and",
"create",
"the",
"looseConfig",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ProcessorUtils.java#L88-L161 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ProcessorUtils.java | ProcessorUtils.createLooseArchiveEntryConfig | public static ArchiveEntryConfig createLooseArchiveEntryConfig(LooseConfig looseConfig, File looseFile, BootstrapConfig bootProps,
String archiveEntryPrefix, boolean isUsr) throws IOException {
File usrRoot = bootProps.getUserRoot();
int... | java | public static ArchiveEntryConfig createLooseArchiveEntryConfig(LooseConfig looseConfig, File looseFile, BootstrapConfig bootProps,
String archiveEntryPrefix, boolean isUsr) throws IOException {
File usrRoot = bootProps.getUserRoot();
int... | [
"public",
"static",
"ArchiveEntryConfig",
"createLooseArchiveEntryConfig",
"(",
"LooseConfig",
"looseConfig",
",",
"File",
"looseFile",
",",
"BootstrapConfig",
"bootProps",
",",
"String",
"archiveEntryPrefix",
",",
"boolean",
"isUsr",
")",
"throws",
"IOException",
"{",
... | Using the method to create Loose config's Archive entry config
@param looseConfig
@param looseFile
@param bootProps
@return
@throws IOException | [
"Using",
"the",
"method",
"to",
"create",
"Loose",
"config",
"s",
"Archive",
"entry",
"config"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ProcessorUtils.java#L188-L206 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ProcessorUtils.java | ProcessorUtils.convertToRegex | public static Pattern convertToRegex(String excludeStr) {
// make all "." safe decimles then convert ** to .* and /* to /.* to make it regex
if (excludeStr.contains(".")) {
// regex for "." is \. - but we are converting the string to a regex string so need to escape the escape slash...
... | java | public static Pattern convertToRegex(String excludeStr) {
// make all "." safe decimles then convert ** to .* and /* to /.* to make it regex
if (excludeStr.contains(".")) {
// regex for "." is \. - but we are converting the string to a regex string so need to escape the escape slash...
... | [
"public",
"static",
"Pattern",
"convertToRegex",
"(",
"String",
"excludeStr",
")",
"{",
"// make all \".\" safe decimles then convert ** to .* and /* to /.* to make it regex",
"if",
"(",
"excludeStr",
".",
"contains",
"(",
"\".\"",
")",
")",
"{",
"// regex for \".\" is \\. - ... | Copy from com.ibm.ws.artifact.api.loose.internal.LooseArchive
@param excludeStr
@return | [
"Copy",
"from",
"com",
".",
"ibm",
".",
"ws",
".",
"artifact",
".",
"api",
".",
"loose",
".",
"internal",
".",
"LooseArchive"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/internal/commands/ProcessorUtils.java#L273-L311 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBufferPool.java | CommsByteBufferPool.allocate | public synchronized CommsByteBuffer allocate()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "allocate");
// Remove a CommsByteBuffer from the pool
CommsByteBuffer buff = (CommsByteBuffer) pool.remove();
// If the buffer is null then there was none available in the pool
// So... | java | public synchronized CommsByteBuffer allocate()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "allocate");
// Remove a CommsByteBuffer from the pool
CommsByteBuffer buff = (CommsByteBuffer) pool.remove();
// If the buffer is null then there was none available in the pool
// So... | [
"public",
"synchronized",
"CommsByteBuffer",
"allocate",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"allocate\"",
")",
";",
"// Remove a CommsByteBuffer from the pool",
"CommsByteBu... | Gets a CommsByteBuffer from the pool.
@return CommsString | [
"Gets",
"a",
"CommsByteBuffer",
"from",
"the",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBufferPool.java#L64-L82 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBufferPool.java | CommsByteBufferPool.release | synchronized void release(CommsByteBuffer buff)
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "release", buff);
buff.reset();
pool.add(buff);
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "release");
} | java | synchronized void release(CommsByteBuffer buff)
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "release", buff);
buff.reset();
pool.add(buff);
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "release");
} | [
"synchronized",
"void",
"release",
"(",
"CommsByteBuffer",
"buff",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"release\"",
",",
"buff",
")",
";",
"buff",
".",
"reset",
"(",
"... | Returns a buffer back to the pool so that it can be re-used.
@param buff | [
"Returns",
"a",
"buffer",
"back",
"to",
"the",
"pool",
"so",
"that",
"it",
"can",
"be",
"re",
"-",
"used",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/CommsByteBufferPool.java#L107-L113 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java | JsMsgObject.setMessage | void setMessage(MessageImpl msg) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setMessage", msg);
theMessage = msg;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setMessage");
} | java | void setMessage(MessageImpl msg) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setMessage", msg);
theMessage = msg;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setMessage");
} | [
"void",
"setMessage",
"(",
"MessageImpl",
"msg",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"setMessage\"",
",",
"ms... | Set the back-pointer to the MFP message that contains this JMO instance.
@param msg The MessageImpl of this JMO's container | [
"Set",
"the",
"back",
"-",
"pointer",
"to",
"the",
"MFP",
"message",
"that",
"contains",
"this",
"JMO",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java#L686-L690 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java | JsMsgObject.encodeSinglePartMessage | DataSlice encodeSinglePartMessage(Object conn) throws MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodeSinglePartMessage");
// We must only use this method if the message does not have a payload part
if (payloadPart != null) {
... | java | DataSlice encodeSinglePartMessage(Object conn) throws MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodeSinglePartMessage");
// We must only use this method if the message does not have a payload part
if (payloadPart != null) {
... | [
"DataSlice",
"encodeSinglePartMessage",
"(",
"Object",
"conn",
")",
"throws",
"MessageEncodeFailedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"t... | Encode the message into a single DataSlice.
The DataSlice will be used by the Comms component to transmit the message
over the wire.
This method may only be used for a single-part message.
@param conn - the CommsConnection over which this encoded message will be sent.
This may be null if the message is not really bein... | [
"Encode",
"the",
"message",
"into",
"a",
"single",
"DataSlice",
".",
"The",
"DataSlice",
"will",
"be",
"used",
"by",
"the",
"Comms",
"component",
"to",
"transmit",
"the",
"message",
"over",
"the",
"wire",
".",
"This",
"method",
"may",
"only",
"be",
"used",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java#L706-L793 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java | JsMsgObject.encodeFast | List<DataSlice> encodeFast(Object conn) throws MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodeFast");
// The 'conn' parameter (if supplied) is passed as an Object (for no good reason except the
// daft build system), but it has t... | java | List<DataSlice> encodeFast(Object conn) throws MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodeFast");
// The 'conn' parameter (if supplied) is passed as an Object (for no good reason except the
// daft build system), but it has t... | [
"List",
"<",
"DataSlice",
">",
"encodeFast",
"(",
"Object",
"conn",
")",
"throws",
"MessageEncodeFailedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
... | Encode the message into a List of DataSlices.
The DataSlices will be used by the Comms component to transmit the message
over the wire.
This method has been substantially reworked. d348294
@param conn - the CommsConnection over which this encoded message will be sent.
This may be null if the message is not really bein... | [
"Encode",
"the",
"message",
"into",
"a",
"List",
"of",
"DataSlices",
".",
"The",
"DataSlices",
"will",
"be",
"used",
"by",
"the",
"Comms",
"component",
"to",
"transmit",
"the",
"message",
"over",
"the",
"wire",
".",
"This",
"method",
"has",
"been",
"substa... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java#L808-L896 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java | JsMsgObject.encodeIds | private final int encodeIds(byte[] buffer, int offset) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodeIds");
int idOffset = offset;
// Write the JMF version number and Schema id for the header
ArrayUtil.writeShort(buffer, idOffset, ((JMFMessage)headerPa... | java | private final int encodeIds(byte[] buffer, int offset) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodeIds");
int idOffset = offset;
// Write the JMF version number and Schema id for the header
ArrayUtil.writeShort(buffer, idOffset, ((JMFMessage)headerPa... | [
"private",
"final",
"int",
"encodeIds",
"(",
"byte",
"[",
"]",
"buffer",
",",
"int",
"offset",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"t... | Encode the JMF version and schema ids into a byte array buffer.
The buffer will be used when transmitting over the wire, hardening
into a database and for any other need for 'serialization'
@param buffer The buffer to write the Ids into.
@param offset The offset in the buffer at which to start writing the Ids.
@ret... | [
"Encode",
"the",
"JMF",
"version",
"and",
"schema",
"ids",
"into",
"a",
"byte",
"array",
"buffer",
".",
"The",
"buffer",
"will",
"be",
"used",
"when",
"transmitting",
"over",
"the",
"wire",
"hardening",
"into",
"a",
"database",
"and",
"for",
"any",
"other"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java#L1039-L1070 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java | JsMsgObject.encodeHeaderPartToSlice | private final DataSlice encodeHeaderPartToSlice(JsMsgPart jsPart) throws MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodeHeaderPartToSlice", jsPart);
// We hope that it is already encoded so we can just get it from JMF.....
DataSl... | java | private final DataSlice encodeHeaderPartToSlice(JsMsgPart jsPart) throws MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodeHeaderPartToSlice", jsPart);
// We hope that it is already encoded so we can just get it from JMF.....
DataSl... | [
"private",
"final",
"DataSlice",
"encodeHeaderPartToSlice",
"(",
"JsMsgPart",
"jsPart",
")",
"throws",
"MessageEncodeFailedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
... | Encode the header, or only, a message part into a DataSlice for transmitting
over the wire, or flattening for persistence.
If the message part is already 'assembled' the contents are simply be
wrapped in a DataSlice by the JMFMessage & returned.
If the message part is not already assembled, the part is encoded into a
n... | [
"Encode",
"the",
"header",
"or",
"only",
"a",
"message",
"part",
"into",
"a",
"DataSlice",
"for",
"transmitting",
"over",
"the",
"wire",
"or",
"flattening",
"for",
"persistence",
".",
"If",
"the",
"message",
"part",
"is",
"already",
"assembled",
"the",
"cont... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java#L1146-L1166 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java | JsMsgObject.encodePayloadPartToSlice | private final DataSlice encodePayloadPartToSlice(JsMsgPart jsPart, CommsConnection conn) throws MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodePayloadPartToSlice", new Object[]{jsPart, conn});
boolean beans = false;
DataSlice sli... | java | private final DataSlice encodePayloadPartToSlice(JsMsgPart jsPart, CommsConnection conn) throws MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "encodePayloadPartToSlice", new Object[]{jsPart, conn});
boolean beans = false;
DataSlice sli... | [
"private",
"final",
"DataSlice",
"encodePayloadPartToSlice",
"(",
"JsMsgPart",
"jsPart",
",",
"CommsConnection",
"conn",
")",
"throws",
"MessageEncodeFailedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEna... | Encode a payload part into a DataSlice for transmitting over the wire, or
flattening for persistence.
If the message part is already 'assembled' the contents are simply be
wrapped in a DataSlice by the JMFMessage & returned, unless the message
part contains a Beans Payload.
If the message part is not already assembled,... | [
"Encode",
"a",
"payload",
"part",
"into",
"a",
"DataSlice",
"for",
"transmitting",
"over",
"the",
"wire",
"or",
"flattening",
"for",
"persistence",
".",
"If",
"the",
"message",
"part",
"is",
"already",
"assembled",
"the",
"contents",
"are",
"simply",
"be",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java#L1185-L1267 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java | JsMsgObject.getEncodingSchemas | JMFSchema[] getEncodingSchemas() throws MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getEncodingSchemas");
JMFSchema[] result;
try {
JMFSchema[] result1 = ((JMFMessage)headerPart.jmfPart).getSchemata();
JMFSchema[] result2... | java | JMFSchema[] getEncodingSchemas() throws MessageEncodeFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getEncodingSchemas");
JMFSchema[] result;
try {
JMFSchema[] result1 = ((JMFMessage)headerPart.jmfPart).getSchemata();
JMFSchema[] result2... | [
"JMFSchema",
"[",
"]",
"getEncodingSchemas",
"(",
")",
"throws",
"MessageEncodeFailedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
... | Get a list of the JMF schemas needed to decode this message
@return A list of JMFSchemas | [
"Get",
"a",
"list",
"of",
"the",
"JMF",
"schemas",
"needed",
"to",
"decode",
"this",
"message"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java#L1315-L1344 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java | JsMsgObject.getCopy | JsMsgObject getCopy() throws MessageCopyFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCopy");
JsMsgObject newJmo = null;
try {
// We need to lock the whole of the copy with the getHdr2, getApi & getPayload
// methods on the ownin... | java | JsMsgObject getCopy() throws MessageCopyFailedException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getCopy");
JsMsgObject newJmo = null;
try {
// We need to lock the whole of the copy with the getHdr2, getApi & getPayload
// methods on the ownin... | [
"JsMsgObject",
"getCopy",
"(",
")",
"throws",
"MessageCopyFailedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getCo... | Return a copy of this JsMsgObject.
The copy can be considered a true and independant copy of the original, but for
performance reasons it may start by sharing data with the original and only
copying if (or when) updates are made.
@return JsMsgObject A JMO which is a copy of this.
@exception MessageCopyFailedExceptio... | [
"Return",
"a",
"copy",
"of",
"this",
"JsMsgObject",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java#L1358-L1397 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java | JsMsgObject.ensureReceiverHasSchemata | private final void ensureReceiverHasSchemata(CommsConnection conn) throws Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "ensureReceiverHasSchemata", conn);
// We need to check if the receiver has all the necessary schema definitions to be able
// to deco... | java | private final void ensureReceiverHasSchemata(CommsConnection conn) throws Exception {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "ensureReceiverHasSchemata", conn);
// We need to check if the receiver has all the necessary schema definitions to be able
// to deco... | [
"private",
"final",
"void",
"ensureReceiverHasSchemata",
"(",
"CommsConnection",
"conn",
")",
"throws",
"Exception",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
... | We need to check if the receiver has all the necessary schema definitions to be able
to decode this message and pre-send any that are missing.
@param conn The Comms Connection object which represents the Receiver
@exception Any Exception needs to be thrown on to the caller who will wrap it appropriately | [
"We",
"need",
"to",
"check",
"if",
"the",
"receiver",
"has",
"all",
"the",
"necessary",
"schema",
"definitions",
"to",
"be",
"able",
"to",
"decode",
"this",
"message",
"and",
"pre",
"-",
"send",
"any",
"that",
"are",
"missing",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java#L1598-L1610 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java | JsMsgObject.debugMsg | final String debugMsg() {
StringBuffer result;
result = new StringBuffer(JSFormatter.format((JMFMessage)headerPart.jmfPart));
if (payloadPart != null) {
result.append(JSFormatter.formatWithoutPayloadData((JMFMessage)payloadPart.jmfPart));
}
return result.toString();
} | java | final String debugMsg() {
StringBuffer result;
result = new StringBuffer(JSFormatter.format((JMFMessage)headerPart.jmfPart));
if (payloadPart != null) {
result.append(JSFormatter.formatWithoutPayloadData((JMFMessage)payloadPart.jmfPart));
}
return result.toString();
} | [
"final",
"String",
"debugMsg",
"(",
")",
"{",
"StringBuffer",
"result",
";",
"result",
"=",
"new",
"StringBuffer",
"(",
"JSFormatter",
".",
"format",
"(",
"(",
"JMFMessage",
")",
"headerPart",
".",
"jmfPart",
")",
")",
";",
"if",
"(",
"payloadPart",
"!=",
... | in the payload. | [
"in",
"the",
"payload",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java#L1678-L1685 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java | JsMsgObject.debugId | final String debugId(long id) {
byte[] buf = new byte[8];
ArrayUtil.writeLong(buf, 0, id);
return HexUtil.toString(buf);
} | java | final String debugId(long id) {
byte[] buf = new byte[8];
ArrayUtil.writeLong(buf, 0, id);
return HexUtil.toString(buf);
} | [
"final",
"String",
"debugId",
"(",
"long",
"id",
")",
"{",
"byte",
"[",
"]",
"buf",
"=",
"new",
"byte",
"[",
"8",
"]",
";",
"ArrayUtil",
".",
"writeLong",
"(",
"buf",
",",
"0",
",",
"id",
")",
";",
"return",
"HexUtil",
".",
"toString",
"(",
"buf"... | For debug only ... Write a schema ID in hex | [
"For",
"debug",
"only",
"...",
"Write",
"a",
"schema",
"ID",
"in",
"hex"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsMsgObject.java#L1701-L1705 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogData.java | PartnerLogData.clearIfNotInUse | public synchronized boolean clearIfNotInUse()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "clearIfNotInUse",new Object[]{_recoveryId, _recoveredInUseCount});
boolean cleared = false;
if (_loggedToDisk && _recoveredInUseCount == 0)
{
try
{
if (tc.... | java | public synchronized boolean clearIfNotInUse()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "clearIfNotInUse",new Object[]{_recoveryId, _recoveredInUseCount});
boolean cleared = false;
if (_loggedToDisk && _recoveredInUseCount == 0)
{
try
{
if (tc.... | [
"public",
"synchronized",
"boolean",
"clearIfNotInUse",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"clearIfNotInUse\"",
",",
"new",
"Object",
"[",
"]",
"{",
"_recoveryId",
",",
"_recoveredInU... | Clears the recovery log record associated with this partner from the partner log, if this partner is not
associated with current transactions. If this partner is re-used, the logData call will allocate a new
recoverable unit and re-log the information back to the partner log.
@return boolean true if the partner data w... | [
"Clears",
"the",
"recovery",
"log",
"record",
"associated",
"with",
"this",
"partner",
"from",
"the",
"partner",
"log",
"if",
"this",
"partner",
"is",
"not",
"associated",
"with",
"current",
"transactions",
".",
"If",
"this",
"partner",
"is",
"re",
"-",
"use... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogData.java#L317-L351 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogData.java | PartnerLogData.recover | public boolean recover(ClassLoader cl, Xid[] xids, byte[] failedStoken, byte[] cruuid, int restartEpoch)
{
if (tc.isDebugEnabled()) Tr.debug(tc, "recover", new Object[] {this, cl, xids, failedStoken, cruuid, restartEpoch});
decrementCount();
return true;
} | java | public boolean recover(ClassLoader cl, Xid[] xids, byte[] failedStoken, byte[] cruuid, int restartEpoch)
{
if (tc.isDebugEnabled()) Tr.debug(tc, "recover", new Object[] {this, cl, xids, failedStoken, cruuid, restartEpoch});
decrementCount();
return true;
} | [
"public",
"boolean",
"recover",
"(",
"ClassLoader",
"cl",
",",
"Xid",
"[",
"]",
"xids",
",",
"byte",
"[",
"]",
"failedStoken",
",",
"byte",
"[",
"]",
"cruuid",
",",
"int",
"restartEpoch",
")",
"{",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")... | Default implementation for non-XA recovery data items | [
"Default",
"implementation",
"for",
"non",
"-",
"XA",
"recovery",
"data",
"items"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/PartnerLogData.java#L360-L366 | train |
OpenLiberty/open-liberty | dev/wlp-generateRepositoryContent/src/com/ibm/ws/wlp/repository/esa/GenerateEsas.java | GenerateEsas.getFilesForFeature | private void getFilesForFeature(File installRoot,
final Set<String> absPathsForLibertyContent,
final Set<String> absPathsForLibertyBundles,
final Set<String> absPathsForLibertyLocalizations,
... | java | private void getFilesForFeature(File installRoot,
final Set<String> absPathsForLibertyContent,
final Set<String> absPathsForLibertyBundles,
final Set<String> absPathsForLibertyLocalizations,
... | [
"private",
"void",
"getFilesForFeature",
"(",
"File",
"installRoot",
",",
"final",
"Set",
"<",
"String",
">",
"absPathsForLibertyContent",
",",
"final",
"Set",
"<",
"String",
">",
"absPathsForLibertyBundles",
",",
"final",
"Set",
"<",
"String",
">",
"absPathsForLi... | as we have a complete build we don't need | [
"as",
"we",
"have",
"a",
"complete",
"build",
"we",
"don",
"t",
"need"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-generateRepositoryContent/src/com/ibm/ws/wlp/repository/esa/GenerateEsas.java#L585-L662 | train |
OpenLiberty/open-liberty | dev/wlp-generateRepositoryContent/src/com/ibm/ws/wlp/repository/esa/GenerateEsas.java | GenerateEsas.addFileResource | public void addFileResource(File installRoot, final Set<String> content,
String locString) {
String[] locs;
if (locString.contains(",")) {
locs = locString.split(",");
} else {
locs = new String[] { locString };
}
for (Stri... | java | public void addFileResource(File installRoot, final Set<String> content,
String locString) {
String[] locs;
if (locString.contains(",")) {
locs = locString.split(",");
} else {
locs = new String[] { locString };
}
for (Stri... | [
"public",
"void",
"addFileResource",
"(",
"File",
"installRoot",
",",
"final",
"Set",
"<",
"String",
">",
"content",
",",
"String",
"locString",
")",
"{",
"String",
"[",
"]",
"locs",
";",
"if",
"(",
"locString",
".",
"contains",
"(",
"\",\"",
")",
")",
... | Adds a file resource to the set of file paths.
@param installRoot The install root where we are getting files from
@param content The content to add the file paths to
@param locString The location string from the feature resource | [
"Adds",
"a",
"file",
"resource",
"to",
"the",
"set",
"of",
"file",
"paths",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-generateRepositoryContent/src/com/ibm/ws/wlp/repository/esa/GenerateEsas.java#L671-L688 | train |
OpenLiberty/open-liberty | dev/wlp-generateRepositoryContent/src/com/ibm/ws/wlp/repository/esa/GenerateEsas.java | GenerateEsas.copy | private void copy(OutputStream out, File in) throws IOException {
FileInputStream inStream = null;
try {
inStream = new FileInputStream(in);
byte[] buffer = new byte[4096];
int len;
while ((len = inStream.read(buffer)) != -1) {
out.write(b... | java | private void copy(OutputStream out, File in) throws IOException {
FileInputStream inStream = null;
try {
inStream = new FileInputStream(in);
byte[] buffer = new byte[4096];
int len;
while ((len = inStream.read(buffer)) != -1) {
out.write(b... | [
"private",
"void",
"copy",
"(",
"OutputStream",
"out",
",",
"File",
"in",
")",
"throws",
"IOException",
"{",
"FileInputStream",
"inStream",
"=",
"null",
";",
"try",
"{",
"inStream",
"=",
"new",
"FileInputStream",
"(",
"in",
")",
";",
"byte",
"[",
"]",
"b... | Copies the file to the output stream
@param out The stream to write to
@param in The file to write
@throws IOException If something goes wrong | [
"Copies",
"the",
"file",
"to",
"the",
"output",
"stream"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/wlp-generateRepositoryContent/src/com/ibm/ws/wlp/repository/esa/GenerateEsas.java#L733-L748 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcUtil.java | WSJdbcUtil.getDataSourceIdentifier | public static String getDataSourceIdentifier(WSJdbcWrapper jdbcWrapper) {
DSConfig config = jdbcWrapper.dsConfig.get();
return config.jndiName == null ? config.id : config.jndiName;
} | java | public static String getDataSourceIdentifier(WSJdbcWrapper jdbcWrapper) {
DSConfig config = jdbcWrapper.dsConfig.get();
return config.jndiName == null ? config.id : config.jndiName;
} | [
"public",
"static",
"String",
"getDataSourceIdentifier",
"(",
"WSJdbcWrapper",
"jdbcWrapper",
")",
"{",
"DSConfig",
"config",
"=",
"jdbcWrapper",
".",
"dsConfig",
".",
"get",
"(",
")",
";",
"return",
"config",
".",
"jndiName",
"==",
"null",
"?",
"config",
".",... | Utility method to obtain the unique identifier of the data source associated with a JDBC wrapper.
@param jdbcWrapper proxy for a JDBC resource.
@return JNDI name of the data source if it has one, otherwise the config.displayId of the data source. | [
"Utility",
"method",
"to",
"obtain",
"the",
"unique",
"identifier",
"of",
"the",
"data",
"source",
"associated",
"with",
"a",
"JDBC",
"wrapper",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcUtil.java#L34-L37 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcUtil.java | WSJdbcUtil.getSql | public static String getSql(Object jdbcWrapper) {
if (jdbcWrapper instanceof WSJdbcPreparedStatement) // also includes WSJdbcCallableStatement
return ((WSJdbcPreparedStatement) jdbcWrapper).sql;
else if (jdbcWrapper instanceof WSJdbcResultSet)
return ((WSJdbcResultSet) jdbcWrappe... | java | public static String getSql(Object jdbcWrapper) {
if (jdbcWrapper instanceof WSJdbcPreparedStatement) // also includes WSJdbcCallableStatement
return ((WSJdbcPreparedStatement) jdbcWrapper).sql;
else if (jdbcWrapper instanceof WSJdbcResultSet)
return ((WSJdbcResultSet) jdbcWrappe... | [
"public",
"static",
"String",
"getSql",
"(",
"Object",
"jdbcWrapper",
")",
"{",
"if",
"(",
"jdbcWrapper",
"instanceof",
"WSJdbcPreparedStatement",
")",
"// also includes WSJdbcCallableStatement",
"return",
"(",
"(",
"WSJdbcPreparedStatement",
")",
"jdbcWrapper",
")",
".... | Utility method to obtain the SQL command associated with a JDBC resource.
@param jdbcWrapper proxy for a JDBC resource.
@return SQL command associated with the JDBC resource. Null if not a PreparedStatement, CallableStatement, or ResultSet. | [
"Utility",
"method",
"to",
"obtain",
"the",
"SQL",
"command",
"associated",
"with",
"a",
"JDBC",
"resource",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcUtil.java#L45-L52 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcUtil.java | WSJdbcUtil.handleStaleStatement | public static void handleStaleStatement(WSJdbcWrapper jdbcWrapper) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled())
Tr.event(tc, "Encountered a Stale Statement: " + jdbcWrapper);
if (jdbcWrapper instanceof WSJdbcObject)
try {
WSJdbcConnection co... | java | public static void handleStaleStatement(WSJdbcWrapper jdbcWrapper) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled())
Tr.event(tc, "Encountered a Stale Statement: " + jdbcWrapper);
if (jdbcWrapper instanceof WSJdbcObject)
try {
WSJdbcConnection co... | [
"public",
"static",
"void",
"handleStaleStatement",
"(",
"WSJdbcWrapper",
"jdbcWrapper",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEventEnabled",
"(",
")",
")",
"Tr",
".",
"event",
"(",
"tc",
",",
"\"Enc... | Performs special handling for stale statements, such as clearing the statement cache
and marking existing statements non-poolable.
@param jdbcWrapper the JDBC wrapper on which the error occurred. | [
"Performs",
"special",
"handling",
"for",
"stale",
"statements",
"such",
"as",
"clearing",
"the",
"statement",
"cache",
"and",
"marking",
"existing",
"statements",
"non",
"-",
"poolable",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcUtil.java#L60-L83 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcUtil.java | WSJdbcUtil.mapException | public static SQLException mapException(WSJdbcWrapper jdbcWrapper, SQLException sqlX) {
Object mapper = null;
WSJdbcConnection connWrapper = null;
if (jdbcWrapper instanceof WSJdbcObject) {
// Use the connection and managed connection.
connWrapper = (WSJdbcConnection) ((... | java | public static SQLException mapException(WSJdbcWrapper jdbcWrapper, SQLException sqlX) {
Object mapper = null;
WSJdbcConnection connWrapper = null;
if (jdbcWrapper instanceof WSJdbcObject) {
// Use the connection and managed connection.
connWrapper = (WSJdbcConnection) ((... | [
"public",
"static",
"SQLException",
"mapException",
"(",
"WSJdbcWrapper",
"jdbcWrapper",
",",
"SQLException",
"sqlX",
")",
"{",
"Object",
"mapper",
"=",
"null",
";",
"WSJdbcConnection",
"connWrapper",
"=",
"null",
";",
"if",
"(",
"jdbcWrapper",
"instanceof",
"WSJd... | Map a SQLException. And, if it's a connection error, send a CONNECTION_ERROR_OCCURRED
ConnectionEvent to all listeners of the Managed Connection.
@param jdbcWrapper the WebSphere JDBC wrapper object throwing the exception.
@param sqlX the SQLException to map.
@return A mapped SQLException subclass, if the SQLExceptio... | [
"Map",
"a",
"SQLException",
".",
"And",
"if",
"it",
"s",
"a",
"connection",
"error",
"send",
"a",
"CONNECTION_ERROR_OCCURRED",
"ConnectionEvent",
"to",
"all",
"listeners",
"of",
"the",
"Managed",
"Connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/jdbc/WSJdbcUtil.java#L95-L109 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/utils/HostNameUtils.java | HostNameUtils.validLocalHostName | @Trivial
public static boolean validLocalHostName(String hostName) {
InetAddress addr = findLocalHostAddress(hostName, PREFER_IPV6);
return addr != null;
} | java | @Trivial
public static boolean validLocalHostName(String hostName) {
InetAddress addr = findLocalHostAddress(hostName, PREFER_IPV6);
return addr != null;
} | [
"@",
"Trivial",
"public",
"static",
"boolean",
"validLocalHostName",
"(",
"String",
"hostName",
")",
"{",
"InetAddress",
"addr",
"=",
"findLocalHostAddress",
"(",
"hostName",
",",
"PREFER_IPV6",
")",
";",
"return",
"addr",
"!=",
"null",
";",
"}"
] | Verifies whether or not the provided hostname references
an interface on this machine. The provided name is unchanged by
this operation.
@param hostName
@return true if the hostname refers to a method on this interface
false if not. | [
"Verifies",
"whether",
"or",
"not",
"the",
"provided",
"hostname",
"references",
"an",
"interface",
"on",
"this",
"machine",
".",
"The",
"provided",
"name",
"is",
"unchanged",
"by",
"this",
"operation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/wsspi/channelfw/utils/HostNameUtils.java#L232-L236 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/internal/ManifestInfo.java | ManifestInfo.parseManifest | public static ManifestInfo parseManifest(JarFile jar) throws RepositoryArchiveException, RepositoryArchiveIOException {
String prov = null;
// Create the WLPInformation and populate it
Manifest mf = null;
try {
mf = jar.getManifest();
} catch (IOException e) {
... | java | public static ManifestInfo parseManifest(JarFile jar) throws RepositoryArchiveException, RepositoryArchiveIOException {
String prov = null;
// Create the WLPInformation and populate it
Manifest mf = null;
try {
mf = jar.getManifest();
} catch (IOException e) {
... | [
"public",
"static",
"ManifestInfo",
"parseManifest",
"(",
"JarFile",
"jar",
")",
"throws",
"RepositoryArchiveException",
",",
"RepositoryArchiveIOException",
"{",
"String",
"prov",
"=",
"null",
";",
"// Create the WLPInformation and populate it",
"Manifest",
"mf",
"=",
"n... | Extracts information from the manifest in the supplied jar file and
populates a newly created WlpInformation object with the extracted
information as well as putting information into the asset itself.
@param jar
The jar file to parse
@param ass
The asset associated with the jar file, the provider field is
set by readi... | [
"Extracts",
"information",
"from",
"the",
"manifest",
"in",
"the",
"supplied",
"jar",
"file",
"and",
"populates",
"a",
"newly",
"created",
"WlpInformation",
"object",
"with",
"the",
"extracted",
"information",
"as",
"well",
"as",
"putting",
"information",
"into",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/internal/ManifestInfo.java#L131-L202 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java | SibRaCommonEndpointActivation.timerLoop | void timerLoop() throws ResourceException
{
final String methodName = "timerLoop";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName);
}
checkMEs(getMEsToCheck());
if (TraceComponent.isAnyTracingEna... | java | void timerLoop() throws ResourceException
{
final String methodName = "timerLoop";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName);
}
checkMEs(getMEsToCheck());
if (TraceComponent.isAnyTracingEna... | [
"void",
"timerLoop",
"(",
")",
"throws",
"ResourceException",
"{",
"final",
"String",
"methodName",
"=",
"\"timerLoop\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",... | This method will be driven by a timer pop or by the MDB starting up. This is the "entry point" | [
"This",
"method",
"will",
"be",
"driven",
"by",
"a",
"timer",
"pop",
"or",
"by",
"the",
"MDB",
"starting",
"up",
".",
"This",
"is",
"the",
"entry",
"point"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L270-L284 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java | SibRaCommonEndpointActivation.checkMEs | void checkMEs(JsMessagingEngine[] MEList) throws ResourceException
{
final String methodName = "checkMEs";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName, new Object[] { MEList });
}
// Filter out any non... | java | void checkMEs(JsMessagingEngine[] MEList) throws ResourceException
{
final String methodName = "checkMEs";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName, new Object[] { MEList });
}
// Filter out any non... | [
"void",
"checkMEs",
"(",
"JsMessagingEngine",
"[",
"]",
"MEList",
")",
"throws",
"ResourceException",
"{",
"final",
"String",
"methodName",
"=",
"\"checkMEs\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryE... | This method will check the supplied MEs to see if they are suitable for connecting to.
@param MEList A list of local MEs which are on the desired bus and may be suitable for connecting to
@throws ResourceException | [
"This",
"method",
"will",
"check",
"the",
"supplied",
"MEs",
"to",
"see",
"if",
"they",
"are",
"suitable",
"for",
"connecting",
"to",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L303-L359 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java | SibRaCommonEndpointActivation.kickOffTimer | void kickOffTimer() throws UnavailableException
{
final String methodName = "kickOffTimer";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName);
}
synchronized (_timerLock)
{
// Another ti... | java | void kickOffTimer() throws UnavailableException
{
final String methodName = "kickOffTimer";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName);
}
synchronized (_timerLock)
{
// Another ti... | [
"void",
"kickOffTimer",
"(",
")",
"throws",
"UnavailableException",
"{",
"final",
"String",
"methodName",
"=",
"\"kickOffTimer\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
... | Kicks of a timer to attempt to create connections after a user specified interval.
@throws UnavailableException | [
"Kicks",
"of",
"a",
"timer",
"to",
"attempt",
"to",
"create",
"connections",
"after",
"a",
"user",
"specified",
"interval",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L366-L418 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java | SibRaCommonEndpointActivation.createSingleListener | private void createSingleListener(final SibRaMessagingEngineConnection connection) throws ResourceException
{
final String methodName = "createSingleListener";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName, connection);
... | java | private void createSingleListener(final SibRaMessagingEngineConnection connection) throws ResourceException
{
final String methodName = "createSingleListener";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName, connection);
... | [
"private",
"void",
"createSingleListener",
"(",
"final",
"SibRaMessagingEngineConnection",
"connection",
")",
"throws",
"ResourceException",
"{",
"final",
"String",
"methodName",
"=",
"\"createSingleListener\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
... | This method will create a listener to the specified destination
@param connection The connection to an ME | [
"This",
"method",
"will",
"create",
"a",
"listener",
"to",
"the",
"specified",
"destination"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L617-L676 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java | SibRaCommonEndpointActivation.createMultipleListeners | private void createMultipleListeners(final SibRaMessagingEngineConnection connection) throws ResourceException
{
final String methodName = "createMultipleListeners";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName, connect... | java | private void createMultipleListeners(final SibRaMessagingEngineConnection connection) throws ResourceException
{
final String methodName = "createMultipleListeners";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName, connect... | [
"private",
"void",
"createMultipleListeners",
"(",
"final",
"SibRaMessagingEngineConnection",
"connection",
")",
"throws",
"ResourceException",
"{",
"final",
"String",
"methodName",
"=",
"\"createMultipleListeners\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnab... | This method will create a listener to each destination that matches the wildcarded destination
@param connection The connection to an ME | [
"This",
"method",
"will",
"create",
"a",
"listener",
"to",
"each",
"destination",
"that",
"matches",
"the",
"wildcarded",
"destination"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L683-L770 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java | SibRaCommonEndpointActivation.checkIfRemote | boolean checkIfRemote(SibRaMessagingEngineConnection conn)
{
final String methodName = "checkIfRemote";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName, new Object[] { conn });
}
String meName = conn.getCo... | java | boolean checkIfRemote(SibRaMessagingEngineConnection conn)
{
final String methodName = "checkIfRemote";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName, new Object[] { conn });
}
String meName = conn.getCo... | [
"boolean",
"checkIfRemote",
"(",
"SibRaMessagingEngineConnection",
"conn",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"checkIfRemote\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
... | This method checks to see if the specified connection is to a remote ME.
It will check the name of the ME the connection is connected to againgst the
list of local MEs that are on the locla server.
@param conn The connection to check.
@return True if the connection passed is a connection to a remote ME | [
"This",
"method",
"checks",
"to",
"see",
"if",
"the",
"specified",
"connection",
"is",
"to",
"a",
"remote",
"ME",
".",
"It",
"will",
"check",
"the",
"name",
"of",
"the",
"ME",
"the",
"connection",
"is",
"connected",
"to",
"againgst",
"the",
"list",
"of",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L813-L855 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java | SibRaCommonEndpointActivation.dropNonPreferredConnections | void dropNonPreferredConnections()
{
final String methodName = "dropNonPreferredConnections";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName);
}
// If we are connected to a non preferred then we will NEVE... | java | void dropNonPreferredConnections()
{
final String methodName = "dropNonPreferredConnections";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName);
}
// If we are connected to a non preferred then we will NEVE... | [
"void",
"dropNonPreferredConnections",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"dropNonPreferredConnections\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr"... | This method will close any connections that are considered "non preferred". Non
preferred connections are only created when target significane is set to preferred
and the system was not able to create a connection that match the target data. | [
"This",
"method",
"will",
"close",
"any",
"connections",
"that",
"are",
"considered",
"non",
"preferred",
".",
"Non",
"preferred",
"connections",
"are",
"only",
"created",
"when",
"target",
"significane",
"is",
"set",
"to",
"preferred",
"and",
"the",
"system",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L862-L881 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java | SibRaCommonEndpointActivation.dropRemoteConnections | void dropRemoteConnections()
{
final String methodName = "dropRemoteConnections";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName);
}
if (_connectedRemotely)
{
closeConnections();
... | java | void dropRemoteConnections()
{
final String methodName = "dropRemoteConnections";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName);
}
if (_connectedRemotely)
{
closeConnections();
... | [
"void",
"dropRemoteConnections",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"dropRemoteConnections\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"... | If we are connected remotely then drop the connection. | [
"If",
"we",
"are",
"connected",
"remotely",
"then",
"drop",
"the",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L886-L903 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java | SibRaCommonEndpointActivation.closeConnections | void closeConnections()
{
final String methodName = "closeConnections";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName);
}
synchronized (_connections)
{
Collection<SibRaMessagingEngine... | java | void closeConnections()
{
final String methodName = "closeConnections";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName);
}
synchronized (_connections)
{
Collection<SibRaMessagingEngine... | [
"void",
"closeConnections",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"closeConnections\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
... | Close all the connections we currently have open. | [
"Close",
"all",
"the",
"connections",
"we",
"currently",
"have",
"open",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L908-L932 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java | SibRaCommonEndpointActivation.messagingEngineStopping | @Override
public synchronized void messagingEngineStopping(
final JsMessagingEngine messagingEngine, final int mode)
{
final String methodName = "messagingEngineStopping";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
... | java | @Override
public synchronized void messagingEngineStopping(
final JsMessagingEngine messagingEngine, final int mode)
{
final String methodName = "messagingEngineStopping";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
... | [
"@",
"Override",
"public",
"synchronized",
"void",
"messagingEngineStopping",
"(",
"final",
"JsMessagingEngine",
"messagingEngine",
",",
"final",
"int",
"mode",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"messagingEngineStopping\"",
";",
"if",
"(",
"TraceCompon... | Overrides the parent method so that if there are no connections left it will
check to see if a new connection can be made
@param messagingEngine
the messaging engine that is stopping
@param mode
the mode with which the engine is stopping | [
"Overrides",
"the",
"parent",
"method",
"so",
"that",
"if",
"there",
"are",
"no",
"connections",
"left",
"it",
"will",
"check",
"to",
"see",
"if",
"a",
"new",
"connection",
"can",
"be",
"made"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L1221-L1242 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java | SibRaCommonEndpointActivation.dropConnection | void dropConnection(SibRaMessagingEngineConnection connection, boolean isSessionError, boolean retryImmediately, boolean alreadyClosed)
{
String methodName = "dropConnection";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodNam... | java | void dropConnection(SibRaMessagingEngineConnection connection, boolean isSessionError, boolean retryImmediately, boolean alreadyClosed)
{
String methodName = "dropConnection";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodNam... | [
"void",
"dropConnection",
"(",
"SibRaMessagingEngineConnection",
"connection",
",",
"boolean",
"isSessionError",
",",
"boolean",
"retryImmediately",
",",
"boolean",
"alreadyClosed",
")",
"{",
"String",
"methodName",
"=",
"\"dropConnection\"",
";",
"if",
"(",
"TraceCompo... | Drop the connection to the specified ME. If we have no connections left
then try to create a new connection.
@param meUuid The Uuid of the ME we should drop our connection to. | [
"Drop",
"the",
"connection",
"to",
"the",
"specified",
"ME",
".",
"If",
"we",
"have",
"no",
"connections",
"left",
"then",
"try",
"to",
"create",
"a",
"new",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L1250-L1330 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java | SibRaCommonEndpointActivation.messagingEngineDestroyed | @Override
public void messagingEngineDestroyed(JsMessagingEngine messagingEngine)
{
final String methodName = "messagingEngineDestroyed";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName, messagingEngine);
}
... | java | @Override
public void messagingEngineDestroyed(JsMessagingEngine messagingEngine)
{
final String methodName = "messagingEngineDestroyed";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled())
{
SibTr.entry(this, TRACE, methodName, messagingEngine);
}
... | [
"@",
"Override",
"public",
"void",
"messagingEngineDestroyed",
"(",
"JsMessagingEngine",
"messagingEngine",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"messagingEngineDestroyed\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"T... | The messaging engine has been destroyed, nothing to do here. | [
"The",
"messaging",
"engine",
"has",
"been",
"destroyed",
"nothing",
"to",
"do",
"here",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaCommonEndpointActivation.java#L1335-L1348 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.validMagicNumber | private boolean validMagicNumber(byte[] magicNumberBuffer)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "validMagicNumber", new java.lang.Object[] { RLSUtils.toHexString(magicNumberBuffer, RLSUtils.MAX_DISPLAY_BYTES), this });
boolean incorrectByteDetected = false;
int currentByte = ... | java | private boolean validMagicNumber(byte[] magicNumberBuffer)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "validMagicNumber", new java.lang.Object[] { RLSUtils.toHexString(magicNumberBuffer, RLSUtils.MAX_DISPLAY_BYTES), this });
boolean incorrectByteDetected = false;
int currentByte = ... | [
"private",
"boolean",
"validMagicNumber",
"(",
"byte",
"[",
"]",
"magicNumberBuffer",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"validMagicNumber\"",
",",
"new",
"java",
".",
"lang",
".",
"Obje... | Determines if the supplied magic number is a valid log file header magic number
as stored in MAGIC_NUMBER
@param magicNumberBuffer The buffer containing the magic number tio compare
@return boolean true if the headers match, otherwise false | [
"Determines",
"if",
"the",
"supplied",
"magic",
"number",
"is",
"a",
"valid",
"log",
"file",
"header",
"magic",
"number",
"as",
"stored",
"in",
"MAGIC_NUMBER"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L846-L866 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.date | public long date()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "date", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "date", new Long(_date));
return _date;
} | java | public long date()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "date", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "date", new Long(_date));
return _date;
} | [
"public",
"long",
"date",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"date\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"exit",
"("... | Return the date field stored in the target header
@return long The date field. | [
"Return",
"the",
"date",
"field",
"stored",
"in",
"the",
"target",
"header"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L876-L883 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.firstRecordSequenceNumber | public long firstRecordSequenceNumber()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "firstRecordSequenceNumber", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "firstRecordSequenceNumber", new Long(_firstRecordSequenceNumber));
return _firstRecordSequenceNumber;
} | java | public long firstRecordSequenceNumber()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "firstRecordSequenceNumber", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "firstRecordSequenceNumber", new Long(_firstRecordSequenceNumber));
return _firstRecordSequenceNumber;
} | [
"public",
"long",
"firstRecordSequenceNumber",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"firstRecordSequenceNumber\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
... | Return the firstRecordSequenceNumber field stored in the target header
@return long The firstRecordSequenceNumber field. | [
"Return",
"the",
"firstRecordSequenceNumber",
"field",
"stored",
"in",
"the",
"target",
"header"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L893-L900 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.serviceName | public String serviceName()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "serviceName", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "serviceName", _serviceName);
return _serviceName;
} | java | public String serviceName()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "serviceName", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "serviceName", _serviceName);
return _serviceName;
} | [
"public",
"String",
"serviceName",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"serviceName\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",... | Return the serviceName field stored in the target header
@return String The serviceName field. | [
"Return",
"the",
"serviceName",
"field",
"stored",
"in",
"the",
"target",
"header"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L927-L934 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.serviceVersion | public int serviceVersion()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "serviceVersion", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "serviceVersion", new Integer(_serviceVersion));
return _serviceVersion;
} | java | public int serviceVersion()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "serviceVersion", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "serviceVersion", new Integer(_serviceVersion));
return _serviceVersion;
} | [
"public",
"int",
"serviceVersion",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"serviceVersion\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
"... | Return the serviceVersion field stored in the target header
@return int The serviceVersion field. | [
"Return",
"the",
"serviceVersion",
"field",
"stored",
"in",
"the",
"target",
"header"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L944-L951 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.logName | public String logName()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "logName", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "logName", _logName);
return _logName;
} | java | public String logName()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "logName", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "logName", _logName);
return _logName;
} | [
"public",
"String",
"logName",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"logName\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"exit... | Return the logName field stored in the target header
@return long The logName field. | [
"Return",
"the",
"logName",
"field",
"stored",
"in",
"the",
"target",
"header"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L961-L968 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.getServiceData | public byte[] getServiceData()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getServiceData", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "getServiceData", RLSUtils.toHexString(_serviceData, RLSUtils.MAX_DISPLAY_BYTES));
return _serviceData;
} | java | public byte[] getServiceData()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getServiceData", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "getServiceData", RLSUtils.toHexString(_serviceData, RLSUtils.MAX_DISPLAY_BYTES));
return _serviceData;
} | [
"public",
"byte",
"[",
"]",
"getServiceData",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getServiceData\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
"... | Return the service data stored in the target header.
@return The service data refernece. | [
"Return",
"the",
"service",
"data",
"stored",
"in",
"the",
"target",
"header",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L978-L985 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.setServiceData | public void setServiceData(byte[] serviceData)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "setServiceData", new java.lang.Object[] { RLSUtils.toHexString(serviceData, RLSUtils.MAX_DISPLAY_BYTES), this });
_serviceData = serviceData;
if (tc.isEntryEnabled())
Tr.exit(tc,... | java | public void setServiceData(byte[] serviceData)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "setServiceData", new java.lang.Object[] { RLSUtils.toHexString(serviceData, RLSUtils.MAX_DISPLAY_BYTES), this });
_serviceData = serviceData;
if (tc.isEntryEnabled())
Tr.exit(tc,... | [
"public",
"void",
"setServiceData",
"(",
"byte",
"[",
"]",
"serviceData",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"setServiceData\"",
",",
"new",
"java",
".",
"lang",
".",
"Object",
"[",
... | Change the service data associated with the target log file header.
@param serviceData The new service data reference. | [
"Change",
"the",
"service",
"data",
"associated",
"with",
"the",
"target",
"log",
"file",
"header",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L995-L1004 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.compatible | public boolean compatible()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "compatible", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "compatible", new Boolean(_compatible));
return _compatible;
} | java | public boolean compatible()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "compatible", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "compatible", new Boolean(_compatible));
return _compatible;
} | [
"public",
"boolean",
"compatible",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"compatible\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
... | Test to determine if the target log file header belongs to a compatible RLS
file.
@return boolean true if the log file header is compatible, otherwise false. | [
"Test",
"to",
"determine",
"if",
"the",
"target",
"log",
"file",
"header",
"belongs",
"to",
"a",
"compatible",
"RLS",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1015-L1022 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.valid | public boolean valid()
{
boolean valid = true;
if (tc.isEntryEnabled())
Tr.entry(tc, "valid", this);
if (_status == STATUS_INVALID)
valid = false;
if (tc.isEntryEnabled())
Tr.exit(tc, "valid", new Boolean(valid));
return valid;
} | java | public boolean valid()
{
boolean valid = true;
if (tc.isEntryEnabled())
Tr.entry(tc, "valid", this);
if (_status == STATUS_INVALID)
valid = false;
if (tc.isEntryEnabled())
Tr.exit(tc, "valid", new Boolean(valid));
return valid;
} | [
"public",
"boolean",
"valid",
"(",
")",
"{",
"boolean",
"valid",
"=",
"true",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"valid\"",
",",
"this",
")",
";",
"if",
"(",
"_status",
"==",
"STATUS_IN... | Test to determine if the target log file header belongs to a valid RLS
file.
@return boolean true if the log file header is valid, otherwise false. | [
"Test",
"to",
"determine",
"if",
"the",
"target",
"log",
"file",
"header",
"belongs",
"to",
"a",
"valid",
"RLS",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1033-L1043 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.status | public int status()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "status", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "status", new Integer(_status));
return _status;
} | java | public int status()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "status", this);
if (tc.isEntryEnabled())
Tr.exit(tc, "status", new Integer(_status));
return _status;
} | [
"public",
"int",
"status",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"status\"",
",",
"this",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"exit",
... | Return the status field stored in the target header
@return int The status field. | [
"Return",
"the",
"status",
"field",
"stored",
"in",
"the",
"target",
"header"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1053-L1060 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.reset | public void reset()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "reset", this);
_status = STATUS_ACTIVE;
_date = 0;
_firstRecordSequenceNumber = 0;
_serverName = null;
_serviceName = null;
_serviceVersion = 0;
_logName = null;
_variabl... | java | public void reset()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "reset", this);
_status = STATUS_ACTIVE;
_date = 0;
_firstRecordSequenceNumber = 0;
_serverName = null;
_serviceName = null;
_serviceVersion = 0;
_logName = null;
_variabl... | [
"public",
"void",
"reset",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"reset\"",
",",
"this",
")",
";",
"_status",
"=",
"STATUS_ACTIVE",
";",
"_date",
"=",
"0",
";",
"_firstRecordSequen... | Destroy the internal state of this header object. Note that we don't reset
the _compatible flag as we call this method from points in the code wher
its both true and false and we want to ensure that it is represented in
the exceptions that get thrown when other calls are made. | [
"Destroy",
"the",
"internal",
"state",
"of",
"this",
"header",
"object",
".",
"Note",
"that",
"we",
"don",
"t",
"reset",
"the",
"_compatible",
"flag",
"as",
"we",
"call",
"this",
"method",
"from",
"points",
"in",
"the",
"code",
"wher",
"its",
"both",
"tr... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1071-L1088 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.changeStatus | public void changeStatus(int newStatus)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "changeStatus", new java.lang.Object[] { this, new Integer(newStatus) });
_status = newStatus;
if (tc.isEntryEnabled())
Tr.exit(tc, "changeStatus");
} | java | public void changeStatus(int newStatus)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "changeStatus", new java.lang.Object[] { this, new Integer(newStatus) });
_status = newStatus;
if (tc.isEntryEnabled())
Tr.exit(tc, "changeStatus");
} | [
"public",
"void",
"changeStatus",
"(",
"int",
"newStatus",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"changeStatus\"",
",",
"new",
"java",
".",
"lang",
".",
"Object",
"[",
"]",
"{",
"this",... | Update the status field stored in the target header.
@param newStatus The new status field value. | [
"Update",
"the",
"status",
"field",
"stored",
"in",
"the",
"target",
"header",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1121-L1130 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.keypointStarting | public void keypointStarting(long nextRecordSequenceNumber)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "keypointStarting", new Object[] { this, new Long(nextRecordSequenceNumber) });
GregorianCalendar currentCal = new GregorianCalendar();
Date currentDate = currentCal.getTime();
... | java | public void keypointStarting(long nextRecordSequenceNumber)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "keypointStarting", new Object[] { this, new Long(nextRecordSequenceNumber) });
GregorianCalendar currentCal = new GregorianCalendar();
Date currentDate = currentCal.getTime();
... | [
"public",
"void",
"keypointStarting",
"(",
"long",
"nextRecordSequenceNumber",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"keypointStarting\"",
",",
"new",
"Object",
"[",
"]",
"{",
"this",
",",
... | Informs the LogFileHeader instance that a keypoint operation is about
begin into file associated with this LogFileHeader instance. The status of the
header is updated to KEYPOINTING.
@param nextRecordSequenceNumber The sequence number to be used for the first
record in the file. | [
"Informs",
"the",
"LogFileHeader",
"instance",
"that",
"a",
"keypoint",
"operation",
"is",
"about",
"begin",
"into",
"file",
"associated",
"with",
"this",
"LogFileHeader",
"instance",
".",
"The",
"status",
"of",
"the",
"header",
"is",
"updated",
"to",
"KEYPOINTI... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1143-L1159 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.keypointComplete | public void keypointComplete()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "keypointComplete", this);
_status = STATUS_ACTIVE;
if (tc.isEntryEnabled())
Tr.exit(tc, "keypointComplete");
} | java | public void keypointComplete()
{
if (tc.isEntryEnabled())
Tr.entry(tc, "keypointComplete", this);
_status = STATUS_ACTIVE;
if (tc.isEntryEnabled())
Tr.exit(tc, "keypointComplete");
} | [
"public",
"void",
"keypointComplete",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"keypointComplete\"",
",",
"this",
")",
";",
"_status",
"=",
"STATUS_ACTIVE",
";",
"if",
"(",
"tc",
".",
... | Informs the LogFileHeader instance that the keypoint operation has completed.
The status of the header is updated to ACTIVE. | [
"Informs",
"the",
"LogFileHeader",
"instance",
"that",
"the",
"keypoint",
"operation",
"has",
"completed",
".",
"The",
"status",
"of",
"the",
"header",
"is",
"updated",
"to",
"ACTIVE",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1168-L1177 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java | LogFileHeader.statusToString | static String statusToString(int status)
{
String result = null;
if (status == STATUS_INACTIVE)
{
result = "INACTIVE";
}
else if (status == STATUS_ACTIVE)
{
result = "ACTIVE";
}
else if (status == STATUS_KEYPOINTING)
{
... | java | static String statusToString(int status)
{
String result = null;
if (status == STATUS_INACTIVE)
{
result = "INACTIVE";
}
else if (status == STATUS_ACTIVE)
{
result = "ACTIVE";
}
else if (status == STATUS_KEYPOINTING)
{
... | [
"static",
"String",
"statusToString",
"(",
"int",
"status",
")",
"{",
"String",
"result",
"=",
"null",
";",
"if",
"(",
"status",
"==",
"STATUS_INACTIVE",
")",
"{",
"result",
"=",
"\"INACTIVE\"",
";",
"}",
"else",
"if",
"(",
"status",
"==",
"STATUS_ACTIVE",... | Utility method to convert a numerical status into a printable string form.
@param status The status to convert
@return String A printable form of the status ("ACTIVE","INACTIVE","KEYPOINTING", "INVALID" or "UNKNOWN") | [
"Utility",
"method",
"to",
"convert",
"a",
"numerical",
"status",
"into",
"a",
"printable",
"string",
"form",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/LogFileHeader.java#L1263-L1289 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java | BatchHandler.registerInBatch | public TransactionCommon registerInBatch()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "registerInBatch");
_readWriteLock.lock(); // Register as a reader
synchronized(this) // lock the state against other readers
{
if(_currentTran == null)
... | java | public TransactionCommon registerInBatch()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "registerInBatch");
_readWriteLock.lock(); // Register as a reader
synchronized(this) // lock the state against other readers
{
if(_currentTran == null)
... | [
"public",
"TransactionCommon",
"registerInBatch",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"registerInBatch\"",
"... | Register an interest in the current batch. The batch can not be
completed until messagesAdded is called.
@return The transaction being used for this batch.
@throws SIStoreException | [
"Register",
"an",
"interest",
"in",
"the",
"current",
"batch",
".",
"The",
"batch",
"can",
"not",
"be",
"completed",
"until",
"messagesAdded",
"is",
"called",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java#L91-L107 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java | BatchHandler.messagesAdded | public void messagesAdded(int msgCount, BatchListener listener) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "messagesAdded","msgCount="+msgCount+",listener="+listener);
boolean completeBatch = false;
try
{
synchroniz... | java | public void messagesAdded(int msgCount, BatchListener listener) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "messagesAdded","msgCount="+msgCount+",listener="+listener);
boolean completeBatch = false;
try
{
synchroniz... | [
"public",
"void",
"messagesAdded",
"(",
"int",
"msgCount",
",",
"BatchListener",
"listener",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
... | Tell the BatchHandler how many messages were added under the current
transaction.
registerInBatch must have been called first to register
the users interest in the current batch and to get hold of the current
transaction. After this method returns, if there are no remaining interested
users, the BatchHandler is free t... | [
"Tell",
"the",
"BatchHandler",
"how",
"many",
"messages",
"were",
"added",
"under",
"the",
"current",
"transaction",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java#L141-L184 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java | BatchHandler.completeBatch | public void completeBatch(boolean force, BatchListener finalListener) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "completeBatch","force="+force+",finalListener="+finalListener);
_readWriteLock.lockExclusive(); // Lock the batchHan... | java | public void completeBatch(boolean force, BatchListener finalListener) throws SIResourceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "completeBatch","force="+force+",finalListener="+finalListener);
_readWriteLock.lockExclusive(); // Lock the batchHan... | [
"public",
"void",
"completeBatch",
"(",
"boolean",
"force",
",",
"BatchListener",
"finalListener",
")",
"throws",
"SIResourceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Si... | Complete the current batch. If timer is false then the batch is only completed
if the batch is full. If timer is true then the batch is completed so long as there
are one or more messages in the batch.
@param force true if the batch should commit even when not full
@param finalListener an optional extra batch listener | [
"Complete",
"the",
"current",
"batch",
".",
"If",
"timer",
"is",
"false",
"then",
"the",
"batch",
"is",
"only",
"completed",
"if",
"the",
"batch",
"is",
"full",
".",
"If",
"timer",
"is",
"true",
"then",
"the",
"batch",
"is",
"completed",
"so",
"long",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java#L199-L294 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java | BatchHandler.alarm | public void alarm (Object alarmContext)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "alarm", alarmContext);
synchronized(this) {
_alarm = null;
}
try {
completeBatch(true);
} catch(SIException e) {
//No FFDC code needed
SibTr.e... | java | public void alarm (Object alarmContext)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "alarm", alarmContext);
synchronized(this) {
_alarm = null;
}
try {
completeBatch(true);
} catch(SIException e) {
//No FFDC code needed
SibTr.e... | [
"public",
"void",
"alarm",
"(",
"Object",
"alarmContext",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"alarm\"",
",",... | Method called when an alarm pops | [
"Method",
"called",
"when",
"an",
"alarm",
"pops"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/BatchHandler.java#L324-L341 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java | SessionInfo.parseIDFromURL | private void parseIDFromURL(RequestMessage request) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Looking for ID in URL");
}
String url = request.getRawRequestURI();
String target = getSessionConfig().getURLRewritingMarker();
URLPa... | java | private void parseIDFromURL(RequestMessage request) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Looking for ID in URL");
}
String url = request.getRawRequestURI();
String target = getSessionConfig().getURLRewritingMarker();
URLPa... | [
"private",
"void",
"parseIDFromURL",
"(",
"RequestMessage",
"request",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"Looking for ID i... | Look for the possible session ID in the URL of the input request
message.
@param request | [
"Look",
"for",
"the",
"possible",
"session",
"ID",
"in",
"the",
"URL",
"of",
"the",
"input",
"request",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java#L88-L107 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java | SessionInfo.encodeURL | public static String encodeURL(String url, SessionInfo info) {
// could be /path/page#fragment?query
// could be /page/page;session=existing#fragment?query
// where fragment and query are both optional
HttpSession session = info.getSession();
if (null == session) {
r... | java | public static String encodeURL(String url, SessionInfo info) {
// could be /path/page#fragment?query
// could be /page/page;session=existing#fragment?query
// where fragment and query are both optional
HttpSession session = info.getSession();
if (null == session) {
r... | [
"public",
"static",
"String",
"encodeURL",
"(",
"String",
"url",
",",
"SessionInfo",
"info",
")",
"{",
"// could be /path/page#fragment?query",
"// could be /page/page;session=existing#fragment?query",
"// where fragment and query are both optional",
"HttpSession",
"session",
"=",
... | Encode session information into the provided URL. This will replace
any existing session in that URL.
@param url
@param info
@return String | [
"Encode",
"session",
"information",
"into",
"the",
"provided",
"URL",
".",
"This",
"will",
"replace",
"any",
"existing",
"session",
"in",
"that",
"URL",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java#L117-L162 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java | SessionInfo.stripURL | public static String stripURL(String url, SessionInfo info) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Removing any session id from [" + url + "]");
}
String target = info.getSessionConfig().getURLRewritingMarker();
URLParser parser = n... | java | public static String stripURL(String url, SessionInfo info) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Removing any session id from [" + url + "]");
}
String target = info.getSessionConfig().getURLRewritingMarker();
URLParser parser = n... | [
"public",
"static",
"String",
"stripURL",
"(",
"String",
"url",
",",
"SessionInfo",
"info",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",... | Strip out any session id information from the input URL.
@param url
@param info
@return String | [
"Strip",
"out",
"any",
"session",
"id",
"information",
"from",
"the",
"input",
"URL",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java#L171-L189 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java | SessionInfo.parseIDFromCookies | private void parseIDFromCookies(RequestMessage request) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Looking for ID in cookies");
}
Enumeration<String> list = request.getHeaders("Cookie");
while (list.hasMoreElements()) {
Stri... | java | private void parseIDFromCookies(RequestMessage request) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Looking for ID in cookies");
}
Enumeration<String> list = request.getHeaders("Cookie");
while (list.hasMoreElements()) {
Stri... | [
"private",
"void",
"parseIDFromCookies",
"(",
"RequestMessage",
"request",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"Looking for ... | Look for a possible session id in the cookies of the request message.
@param request | [
"Look",
"for",
"a",
"possible",
"session",
"id",
"in",
"the",
"cookies",
"of",
"the",
"request",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java#L225-L247 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java | SessionInfo.encodeCookie | public static Cookie encodeCookie(SessionInfo info) {
// create a cookie using the configuration information
HttpSession session = info.getSession();
SessionConfig config = info.getSessionConfig();
Cookie cookie = new Cookie(
config.getIDName(),
... | java | public static Cookie encodeCookie(SessionInfo info) {
// create a cookie using the configuration information
HttpSession session = info.getSession();
SessionConfig config = info.getSessionConfig();
Cookie cookie = new Cookie(
config.getIDName(),
... | [
"public",
"static",
"Cookie",
"encodeCookie",
"(",
"SessionInfo",
"info",
")",
"{",
"// create a cookie using the configuration information",
"HttpSession",
"session",
"=",
"info",
".",
"getSession",
"(",
")",
";",
"SessionConfig",
"config",
"=",
"info",
".",
"getSess... | Create a proper Cookie for the given session object.
@param info
@return Cookie | [
"Create",
"a",
"proper",
"Cookie",
"for",
"the",
"given",
"session",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java#L255-L268 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java | SessionInfo.getSession | public HttpSession getSession(boolean create) {
if (null != this.mySession) {
if (this.mySession.isInvalid()) {
this.mySession = null;
} else {
return this.mySession;
}
}
this.mySession = mgr.getSession(this, create);
re... | java | public HttpSession getSession(boolean create) {
if (null != this.mySession) {
if (this.mySession.isInvalid()) {
this.mySession = null;
} else {
return this.mySession;
}
}
this.mySession = mgr.getSession(this, create);
re... | [
"public",
"HttpSession",
"getSession",
"(",
"boolean",
"create",
")",
"{",
"if",
"(",
"null",
"!=",
"this",
".",
"mySession",
")",
"{",
"if",
"(",
"this",
".",
"mySession",
".",
"isInvalid",
"(",
")",
")",
"{",
"this",
".",
"mySession",
"=",
"null",
... | Access the current session for this connection. This may return null
if one was not found and the create flag was false. If a cached session
is found but it reports as invalid, then this will look for a new
session if the create flag is true.
@param create
@return HttpSession | [
"Access",
"the",
"current",
"session",
"for",
"this",
"connection",
".",
"This",
"may",
"return",
"null",
"if",
"one",
"was",
"not",
"found",
"and",
"the",
"create",
"flag",
"was",
"false",
".",
"If",
"a",
"cached",
"session",
"is",
"found",
"but",
"it",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java#L349-L359 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapURL.java | LdapURL.get_searchScope | public int get_searchScope() {
int searchScope = SearchControls.OBJECT_SCOPE;
String scopeBuf = get_scope();
if (scopeBuf != null) {
if (scopeBuf.compareToIgnoreCase("base") == 0) {
searchScope = SearchControls.OBJECT_SCOPE;
} else if (scopeBuf.compareToIg... | java | public int get_searchScope() {
int searchScope = SearchControls.OBJECT_SCOPE;
String scopeBuf = get_scope();
if (scopeBuf != null) {
if (scopeBuf.compareToIgnoreCase("base") == 0) {
searchScope = SearchControls.OBJECT_SCOPE;
} else if (scopeBuf.compareToIg... | [
"public",
"int",
"get_searchScope",
"(",
")",
"{",
"int",
"searchScope",
"=",
"SearchControls",
".",
"OBJECT_SCOPE",
";",
"String",
"scopeBuf",
"=",
"get_scope",
"(",
")",
";",
"if",
"(",
"scopeBuf",
"!=",
"null",
")",
"{",
"if",
"(",
"scopeBuf",
".",
"c... | Returns the search scope used in LDAP search | [
"Returns",
"the",
"search",
"scope",
"used",
"in",
"LDAP",
"search"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.adapter.ldap/src/com/ibm/ws/security/wim/adapter/ldap/LdapURL.java#L368-L381 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JaxbPUnit21.java | JaxbPUnit21.getTransactionType | public PersistenceUnitTransactionType getTransactionType() {
// Convert this TransactionType from the class defined in JAXB
// (com.ibm.ws.jpa.pxml21.PersistenceUnitTransactionType) to JPA
// (javax.persistence.spi.PersistenceUnitTransactionType).
PersistenceUnitTransactionType ... | java | public PersistenceUnitTransactionType getTransactionType() {
// Convert this TransactionType from the class defined in JAXB
// (com.ibm.ws.jpa.pxml21.PersistenceUnitTransactionType) to JPA
// (javax.persistence.spi.PersistenceUnitTransactionType).
PersistenceUnitTransactionType ... | [
"public",
"PersistenceUnitTransactionType",
"getTransactionType",
"(",
")",
"{",
"// Convert this TransactionType from the class defined in JAXB",
"// (com.ibm.ws.jpa.pxml21.PersistenceUnitTransactionType) to JPA",
"// (javax.persistence.spi.PersistenceUnitTransactionType).",
"PersistenceUnitTrans... | Gets the value of the transactionType property.
@return value of the transactionType property. | [
"Gets",
"the",
"value",
"of",
"the",
"transactionType",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JaxbPUnit21.java#L299-L314 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.container.service/src/com/ibm/ws/container/service/metadata/MetaDataUtils.java | MetaDataUtils.copyModuleMetaDataSlot | public static boolean copyModuleMetaDataSlot(MetaDataEvent<ModuleMetaData> event, MetaDataSlot slot) {
Container container = event.getContainer();
MetaData metaData = event.getMetaData();
try {
// For now, we just need to copy from WebModuleInfo, and ClientModuleInfo
// ... | java | public static boolean copyModuleMetaDataSlot(MetaDataEvent<ModuleMetaData> event, MetaDataSlot slot) {
Container container = event.getContainer();
MetaData metaData = event.getMetaData();
try {
// For now, we just need to copy from WebModuleInfo, and ClientModuleInfo
// ... | [
"public",
"static",
"boolean",
"copyModuleMetaDataSlot",
"(",
"MetaDataEvent",
"<",
"ModuleMetaData",
">",
"event",
",",
"MetaDataSlot",
"slot",
")",
"{",
"Container",
"container",
"=",
"event",
".",
"getContainer",
"(",
")",
";",
"MetaData",
"metaData",
"=",
"e... | Copy slot data from a primary module metadata to a nested module
metadata. This is necessary for containers that want to share
module-level data for all components in a module, because nested modules
have their own distinct metadata.
@param event event from {@link ModuleMetaDataListener#moduleMetaDataCreated}
@param s... | [
"Copy",
"slot",
"data",
"from",
"a",
"primary",
"module",
"metadata",
"to",
"a",
"nested",
"module",
"metadata",
".",
"This",
"is",
"necessary",
"for",
"containers",
"that",
"want",
"to",
"share",
"module",
"-",
"level",
"data",
"for",
"all",
"components",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service/src/com/ibm/ws/container/service/metadata/MetaDataUtils.java#L36-L66 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/FactoryFinder.java | FactoryFinder.injectAndPostConstruct | private static Object injectAndPostConstruct(Object injectionProvider, Class Klass, List injectedBeanStorage)
{
Object instance = null;
if (injectionProvider != null)
{
try
{
Object managedObject = _FactoryFinderProviderFactory.INJECTION_PROVIDER_INJE... | java | private static Object injectAndPostConstruct(Object injectionProvider, Class Klass, List injectedBeanStorage)
{
Object instance = null;
if (injectionProvider != null)
{
try
{
Object managedObject = _FactoryFinderProviderFactory.INJECTION_PROVIDER_INJE... | [
"private",
"static",
"Object",
"injectAndPostConstruct",
"(",
"Object",
"injectionProvider",
",",
"Class",
"Klass",
",",
"List",
"injectedBeanStorage",
")",
"{",
"Object",
"instance",
"=",
"null",
";",
"if",
"(",
"injectionProvider",
"!=",
"null",
")",
"{",
"try... | injectANDPostConstruct based on a class added for CDI 1.2 support. | [
"injectANDPostConstruct",
"based",
"on",
"a",
"class",
"added",
"for",
"CDI",
"1",
".",
"2",
"support",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/FactoryFinder.java#L427-L455 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/behavior/AjaxBehavior.java | AjaxBehavior.getCollectionFromSpaceSplitString | private Collection<String> getCollectionFromSpaceSplitString(String stringValue)
{
//@special handling for @all, @none, @form and @this
if (stringValue.equals(VAL_FORM))
{
return VAL_FORM_LIST;
}
else if (stringValue.equals(VAL_ALL))
{
retur... | java | private Collection<String> getCollectionFromSpaceSplitString(String stringValue)
{
//@special handling for @all, @none, @form and @this
if (stringValue.equals(VAL_FORM))
{
return VAL_FORM_LIST;
}
else if (stringValue.equals(VAL_ALL))
{
retur... | [
"private",
"Collection",
"<",
"String",
">",
"getCollectionFromSpaceSplitString",
"(",
"String",
"stringValue",
")",
"{",
"//@special handling for @all, @none, @form and @this",
"if",
"(",
"stringValue",
".",
"equals",
"(",
"VAL_FORM",
")",
")",
"{",
"return",
"VAL_FORM... | Splits the String based on spaces and returns the
resulting Strings as Collection.
@param stringValue
@return | [
"Splits",
"the",
"String",
"based",
"on",
"spaces",
"and",
"returns",
"the",
"resulting",
"Strings",
"as",
"Collection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/behavior/AjaxBehavior.java#L384-L407 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TETxLifeCycleInfo.java | TETxLifeCycleInfo.traceSetTxCommon | public static void traceSetTxCommon(int opType, String txId, String desc)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
{
StringBuffer sbuf = new StringBuffer();
sbuf
.append(TxLifeCycle_Set_Tx_Type_Str).append(DataDelimiter)
... | java | public static void traceSetTxCommon(int opType, String txId, String desc)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
{
StringBuffer sbuf = new StringBuffer();
sbuf
.append(TxLifeCycle_Set_Tx_Type_Str).append(DataDelimiter)
... | [
"public",
"static",
"void",
"traceSetTxCommon",
"(",
"int",
"opType",
",",
"String",
"txId",
",",
"String",
"desc",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"StringB... | This is called by the EJB container server code to write a
set transaction record to the trace log, if enabled. | [
"This",
"is",
"called",
"by",
"the",
"EJB",
"container",
"server",
"code",
"to",
"write",
"a",
"set",
"transaction",
"record",
"to",
"the",
"trace",
"log",
"if",
"enabled",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TETxLifeCycleInfo.java#L29-L43 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TETxLifeCycleInfo.java | TETxLifeCycleInfo.traceCommon | public static void traceCommon(int opType, String txId, String desc)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
{
StringBuffer sbuf = new StringBuffer();
sbuf
.append(TxLifeCycle_State_Type_Str).append(DataDelimiter)
... | java | public static void traceCommon(int opType, String txId, String desc)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
{
StringBuffer sbuf = new StringBuffer();
sbuf
.append(TxLifeCycle_State_Type_Str).append(DataDelimiter)
... | [
"public",
"static",
"void",
"traceCommon",
"(",
"int",
"opType",
",",
"String",
"txId",
",",
"String",
"desc",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"StringBuffer... | This is called by the EJB container server code to write a
common record to the trace log, if enabled. | [
"This",
"is",
"called",
"by",
"the",
"EJB",
"container",
"server",
"code",
"to",
"write",
"a",
"common",
"record",
"to",
"the",
"trace",
"log",
"if",
"enabled",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/traceinfo/ejbcontainer/TETxLifeCycleInfo.java#L76-L91 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/XMLJaspiConfiguration.java | XMLJaspiConfiguration.readConfigFile | synchronized private JaspiConfig readConfigFile(final File configFile) throws PrivilegedActionException {
if (tc.isEntryEnabled())
Tr.entry(tc, "readConfigFile", new Object[] { configFile });
if (configFile == null) {
// TODO handle persistence
// String msg = Message... | java | synchronized private JaspiConfig readConfigFile(final File configFile) throws PrivilegedActionException {
if (tc.isEntryEnabled())
Tr.entry(tc, "readConfigFile", new Object[] { configFile });
if (configFile == null) {
// TODO handle persistence
// String msg = Message... | [
"synchronized",
"private",
"JaspiConfig",
"readConfigFile",
"(",
"final",
"File",
"configFile",
")",
"throws",
"PrivilegedActionException",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"readConfigFile\"",
",",... | Return a Java representation of the JASPI persistent providers that are defined in the given configuration file or null
if the object returned by JAXB is not an JaspiConfig instance or an exception is thrown by method AccessController.doPrivileged.
@param configFile
@return
@throws PrivilegedActionException | [
"Return",
"a",
"Java",
"representation",
"of",
"the",
"JASPI",
"persistent",
"providers",
"that",
"are",
"defined",
"in",
"the",
"given",
"configuration",
"file",
"or",
"null",
"if",
"the",
"object",
"returned",
"by",
"JAXB",
"is",
"not",
"an",
"JaspiConfig",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/XMLJaspiConfiguration.java#L256-L282 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/XMLJaspiConfiguration.java | XMLJaspiConfiguration.writeConfigFile | synchronized private void writeConfigFile(final JaspiConfig jaspiConfig) {
if (tc.isEntryEnabled())
Tr.entry(tc, "writeConfigFile", new Object[] { jaspiConfig });
if (configFile == null) {
// TODO handle persistence
//String msg = MessageFormatHelper.getFormattedMessa... | java | synchronized private void writeConfigFile(final JaspiConfig jaspiConfig) {
if (tc.isEntryEnabled())
Tr.entry(tc, "writeConfigFile", new Object[] { jaspiConfig });
if (configFile == null) {
// TODO handle persistence
//String msg = MessageFormatHelper.getFormattedMessa... | [
"synchronized",
"private",
"void",
"writeConfigFile",
"(",
"final",
"JaspiConfig",
"jaspiConfig",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"writeConfigFile\"",
",",
"new",
"Object",
"[",
"]",
"{... | Store the in-memory Java representation of the JASPI persistent providers into the given configuration file.
@param jaspiConfig
@throws RuntimeException if an exception occurs in method AccessController.doPrivileged. | [
"Store",
"the",
"in",
"-",
"memory",
"Java",
"representation",
"of",
"the",
"JASPI",
"persistent",
"providers",
"into",
"the",
"given",
"configuration",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/XMLJaspiConfiguration.java#L290-L317 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OIDCClientAuthenticatorUtil.java | OIDCClientAuthenticatorUtil.authenticate | public ProviderAuthenticationResult authenticate(HttpServletRequest req,
HttpServletResponse res,
ConvergedClientConfig clientConfig) {
ProviderAuthenticationResult oidcResult = null;
if (!isEndpointValid(clientConfig)) {
return new ProviderAuthenticationResult(AuthR... | java | public ProviderAuthenticationResult authenticate(HttpServletRequest req,
HttpServletResponse res,
ConvergedClientConfig clientConfig) {
ProviderAuthenticationResult oidcResult = null;
if (!isEndpointValid(clientConfig)) {
return new ProviderAuthenticationResult(AuthR... | [
"public",
"ProviderAuthenticationResult",
"authenticate",
"(",
"HttpServletRequest",
"req",
",",
"HttpServletResponse",
"res",
",",
"ConvergedClientConfig",
"clientConfig",
")",
"{",
"ProviderAuthenticationResult",
"oidcResult",
"=",
"null",
";",
"if",
"(",
"!",
"isEndpoi... | Perform OpenID Connect client authenticate for the given web request.
Return an OidcAuthenticationResult which contains the status and subject
A routine flow can come through here twice. First there's no state and it goes to handleRedirectToServer
second time, oidcclientimpl.authenticate sends us here after the brows... | [
"Perform",
"OpenID",
"Connect",
"client",
"authenticate",
"for",
"the",
"given",
"web",
"request",
".",
"Return",
"an",
"OidcAuthenticationResult",
"which",
"contains",
"the",
"status",
"and",
"subject"
] | 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/OIDCClientAuthenticatorUtil.java#L162-L238 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OIDCClientAuthenticatorUtil.java | OIDCClientAuthenticatorUtil.getRedirectUrlFromServerToClient | public String getRedirectUrlFromServerToClient(String clientId, String contextPath, String redirectToRPHostAndPort) {
String redirectURL = null;
if (redirectToRPHostAndPort != null && redirectToRPHostAndPort.length() > 0) {
try {
final String fHostPort = redirectToRPHostAndPo... | java | public String getRedirectUrlFromServerToClient(String clientId, String contextPath, String redirectToRPHostAndPort) {
String redirectURL = null;
if (redirectToRPHostAndPort != null && redirectToRPHostAndPort.length() > 0) {
try {
final String fHostPort = redirectToRPHostAndPo... | [
"public",
"String",
"getRedirectUrlFromServerToClient",
"(",
"String",
"clientId",
",",
"String",
"contextPath",
",",
"String",
"redirectToRPHostAndPort",
")",
"{",
"String",
"redirectURL",
"=",
"null",
";",
"if",
"(",
"redirectToRPHostAndPort",
"!=",
"null",
"&&",
... | moved from oidcconfigimpl so social can use it. | [
"moved",
"from",
"oidcconfigimpl",
"so",
"social",
"can",
"use",
"it",
"."
] | 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/OIDCClientAuthenticatorUtil.java#L305-L336 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OIDCClientAuthenticatorUtil.java | OIDCClientAuthenticatorUtil.validateReqParameters | @FFDCIgnore({ IndexOutOfBoundsException.class })
public boolean validateReqParameters(ConvergedClientConfig clientConfig, Hashtable<String, String> reqParameters, String cookieValue) {
boolean validCookie = true;
String encoded = null;
String cookieName = "WASOidcCode";
String reques... | java | @FFDCIgnore({ IndexOutOfBoundsException.class })
public boolean validateReqParameters(ConvergedClientConfig clientConfig, Hashtable<String, String> reqParameters, String cookieValue) {
boolean validCookie = true;
String encoded = null;
String cookieName = "WASOidcCode";
String reques... | [
"@",
"FFDCIgnore",
"(",
"{",
"IndexOutOfBoundsException",
".",
"class",
"}",
")",
"public",
"boolean",
"validateReqParameters",
"(",
"ConvergedClientConfig",
"clientConfig",
",",
"Hashtable",
"<",
"String",
",",
"String",
">",
"reqParameters",
",",
"String",
"cookie... | This gets called after an auth code or implicit token might have been received.
This method examines the encodedReqParameters extracted from the WASOidcCode cookie along
with the client config and request params, to determine if the params in the cookie are valid.
@param clientConfig
@param reqParameters
@param encode... | [
"This",
"gets",
"called",
"after",
"an",
"auth",
"code",
"or",
"implicit",
"token",
"might",
"have",
"been",
"received",
".",
"This",
"method",
"examines",
"the",
"encodedReqParameters",
"extracted",
"from",
"the",
"WASOidcCode",
"cookie",
"along",
"with",
"the"... | 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/OIDCClientAuthenticatorUtil.java#L611-L675 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OIDCClientAuthenticatorUtil.java | OIDCClientAuthenticatorUtil.verifyState | public Boolean verifyState(HttpServletRequest req, HttpServletResponse res,
String responseState, ConvergedClientConfig clientConfig) {
if (responseState.length() < OidcUtil.STATEVALUE_LENGTH) {
return false; // the state does not even match the length, the verification failed
}
... | java | public Boolean verifyState(HttpServletRequest req, HttpServletResponse res,
String responseState, ConvergedClientConfig clientConfig) {
if (responseState.length() < OidcUtil.STATEVALUE_LENGTH) {
return false; // the state does not even match the length, the verification failed
}
... | [
"public",
"Boolean",
"verifyState",
"(",
"HttpServletRequest",
"req",
",",
"HttpServletResponse",
"res",
",",
"String",
"responseState",
",",
"ConvergedClientConfig",
"clientConfig",
")",
"{",
"if",
"(",
"responseState",
".",
"length",
"(",
")",
"<",
"OidcUtil",
"... | Determine the name of the state cookie based on the state name key + hashcode of response state.
Retrieve that cookie value, then create a check value by hashing the clinet config and resonseState again.
If the hash result equals the cookie value, request is valid, proceed to check the clock skew.
@param req
@param re... | [
"Determine",
"the",
"name",
"of",
"the",
"state",
"cookie",
"based",
"on",
"the",
"state",
"name",
"key",
"+",
"hashcode",
"of",
"response",
"state",
".",
"Retrieve",
"that",
"cookie",
"value",
"then",
"create",
"a",
"check",
"value",
"by",
"hashing",
"the... | 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/OIDCClientAuthenticatorUtil.java#L708-L752 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/library/internal/SharedLibraryImpl.java | SharedLibraryImpl.update | void update(Dictionary<String, Object> props) {
if (deleted) {
return;
}
final String instancePid = (String) props.get("service.pid");
final String instanceId = (String) props.get("id");
if (instanceId == null) {
Tr.error(tc, "cls.library.id.missing");
... | java | void update(Dictionary<String, Object> props) {
if (deleted) {
return;
}
final String instancePid = (String) props.get("service.pid");
final String instanceId = (String) props.get("id");
if (instanceId == null) {
Tr.error(tc, "cls.library.id.missing");
... | [
"void",
"update",
"(",
"Dictionary",
"<",
"String",
",",
"Object",
">",
"props",
")",
"{",
"if",
"(",
"deleted",
")",
"{",
"return",
";",
"}",
"final",
"String",
"instancePid",
"=",
"(",
"String",
")",
"props",
".",
"get",
"(",
"\"service.pid\"",
")",
... | called from SharedLibraryFactory inside a synchronized block over this instance | [
"called",
"from",
"SharedLibraryFactory",
"inside",
"a",
"synchronized",
"block",
"over",
"this",
"instance"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/library/internal/SharedLibraryImpl.java#L94-L136 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/ProtectedFunctionMapper.java | ProtectedFunctionMapper.mapFunction | public void mapFunction( String prefix, String fnName,
final Class c, final String methodName, final Class[] args )
{
//192474 start
//We can get in to this method with null parameters if a JSP was compiled against the jsp-2.3 feature but running in a jsp-2.2 server.
//This check is needed f... | java | public void mapFunction( String prefix, String fnName,
final Class c, final String methodName, final Class[] args )
{
//192474 start
//We can get in to this method with null parameters if a JSP was compiled against the jsp-2.3 feature but running in a jsp-2.2 server.
//This check is needed f... | [
"public",
"void",
"mapFunction",
"(",
"String",
"prefix",
",",
"String",
"fnName",
",",
"final",
"Class",
"c",
",",
"final",
"String",
"methodName",
",",
"final",
"Class",
"[",
"]",
"args",
")",
"{",
"//192474 start",
"//We can get in to this method with null para... | Stores a mapping from the given EL function prefix and name to
the given Java method.
@param prefix The EL function prefix
@param fnName The EL function name
@param c The class containing the Java method
@param methodName The name of the Java method
@param args The arguments of the Java method
@throws RuntimeException... | [
"Stores",
"a",
"mapping",
"from",
"the",
"given",
"EL",
"function",
"prefix",
"and",
"name",
"to",
"the",
"given",
"Java",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/ProtectedFunctionMapper.java#L130-L164 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/PollingManager.java | PollingManager.add | void add(int event) {
int b = bits.addAndGet(event);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "add " + event + ", polling state: " + b);
} | java | void add(int event) {
int b = bits.addAndGet(event);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "add " + event + ", polling state: " + b);
} | [
"void",
"add",
"(",
"int",
"event",
")",
"{",
"int",
"b",
"=",
"bits",
".",
"addAndGet",
"(",
"event",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
... | Add an event without checking if we are ready to start polling.
@param event an event such as SERVER_STARTED or SIGNAL_RECEIVED | [
"Add",
"an",
"event",
"without",
"checking",
"if",
"we",
"are",
"ready",
"to",
"start",
"polling",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/PollingManager.java#L57-L61 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/PollingManager.java | PollingManager.addAndCheckIfReady | boolean addAndCheckIfReady(int event) {
int b = bits.addAndGet(event);
boolean isReady = b == READY_WITHOUT_SIGNAL || b == READY_WITH_UNNECESSARY_SIGNAL || b == READY_WITH_SIGNAL;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "addAndCheckIfReady ... | java | boolean addAndCheckIfReady(int event) {
int b = bits.addAndGet(event);
boolean isReady = b == READY_WITHOUT_SIGNAL || b == READY_WITH_UNNECESSARY_SIGNAL || b == READY_WITH_SIGNAL;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "addAndCheckIfReady ... | [
"boolean",
"addAndCheckIfReady",
"(",
"int",
"event",
")",
"{",
"int",
"b",
"=",
"bits",
".",
"addAndGet",
"(",
"event",
")",
";",
"boolean",
"isReady",
"=",
"b",
"==",
"READY_WITHOUT_SIGNAL",
"||",
"b",
"==",
"READY_WITH_UNNECESSARY_SIGNAL",
"||",
"b",
"=="... | Add an event and then check if we are ready for polling.
@param event an event such as SERVER_STARTED or SIGNAL_RECEIVED
@return true if ready for polling. Otherwise false. | [
"Add",
"an",
"event",
"and",
"then",
"check",
"if",
"we",
"are",
"ready",
"for",
"polling",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/PollingManager.java#L69-L75 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/SIXAResourceProxy.java | SIXAResourceProxy.getTransactionTimeout | public int getTransactionTimeout() throws XAException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getTransactionTimeout");
int timeout = 0;
try
{
CommsByteBuffer request = getCommsByteBuffer();
request.putInt(... | java | public int getTransactionTimeout() throws XAException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getTransactionTimeout");
int timeout = 0;
try
{
CommsByteBuffer request = getCommsByteBuffer();
request.putInt(... | [
"public",
"int",
"getTransactionTimeout",
"(",
")",
"throws",
"XAException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"ge... | Returns the transaction timeout for this XAResource instance.
@return int
@throws XAException if an exception is thrown at the ME. In the
event of a comms failure, an XAException with XAER_RMFAIL will
be thrown. | [
"Returns",
"the",
"transaction",
"timeout",
"for",
"this",
"XAResource",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/SIXAResourceProxy.java#L253-L297 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/SIXAResourceProxy.java | SIXAResourceProxy.getLinkLevelXAResourceMap | private HashMap<Xid, SIXAResourceProxy> getLinkLevelXAResourceMap()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getLinkLevelXAResourceMap");
HashMap<Xid, SIXAResourceProxy> map = ((ClientLinkLevelState)getConversation().getLinkLevelAttachment()).getXidToXARes... | java | private HashMap<Xid, SIXAResourceProxy> getLinkLevelXAResourceMap()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getLinkLevelXAResourceMap");
HashMap<Xid, SIXAResourceProxy> map = ((ClientLinkLevelState)getConversation().getLinkLevelAttachment()).getXidToXARes... | [
"private",
"HashMap",
"<",
"Xid",
",",
"SIXAResourceProxy",
">",
"getLinkLevelXAResourceMap",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"thi... | Helper method to retrieve the map in the link level state that contains the XAResources and
the XId they are currently enlisted with.
@return Returns the map. | [
"Helper",
"method",
"to",
"retrieve",
"the",
"map",
"in",
"the",
"link",
"level",
"state",
"that",
"contains",
"the",
"XAResources",
"and",
"the",
"XId",
"they",
"are",
"currently",
"enlisted",
"with",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/SIXAResourceProxy.java#L575-L581 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/generator/BaseTagGenerator.java | BaseTagGenerator.replaceCharacters | private String replaceCharacters(String name) {
name = name.replaceAll(">", ">");
name = name.replaceAll("<", "<");
name = name.replaceAll("&", "&");
name = name.replaceAll("<\\%", "<%");
name = name.replaceAll("%\\>", "%>");
return name;
} | java | private String replaceCharacters(String name) {
name = name.replaceAll(">", ">");
name = name.replaceAll("<", "<");
name = name.replaceAll("&", "&");
name = name.replaceAll("<\\%", "<%");
name = name.replaceAll("%\\>", "%>");
return name;
} | [
"private",
"String",
"replaceCharacters",
"(",
"String",
"name",
")",
"{",
"name",
"=",
"name",
".",
"replaceAll",
"(",
"\">\"",
",",
"\">\"",
")",
";",
"name",
"=",
"name",
".",
"replaceAll",
"(",
"\"<\"",
",",
"\"<\"",
")",
";",
"name",
"=",
"n... | PK40417 Method to replace translated characters to their original form. This prevents compilation errors when escaped characters are used in tags. | [
"PK40417",
"Method",
"to",
"replace",
"translated",
"characters",
"to",
"their",
"original",
"form",
".",
"This",
"prevents",
"compilation",
"errors",
"when",
"escaped",
"characters",
"are",
"used",
"in",
"tags",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/generator/BaseTagGenerator.java#L1157-L1164 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/webcontainerext/AbstractJSPExtensionProcessor.java | AbstractJSPExtensionProcessor.handleCaseSensitivityCheck | private boolean handleCaseSensitivityCheck(String path, boolean checkWEBINF) throws IOException {
if (System.getSecurityManager() != null) {
final String tmpPath = path;
final boolean tmpCheckWEBINF = checkWEBINF; //PK81387
try {
return ((Boolean) AccessContro... | java | private boolean handleCaseSensitivityCheck(String path, boolean checkWEBINF) throws IOException {
if (System.getSecurityManager() != null) {
final String tmpPath = path;
final boolean tmpCheckWEBINF = checkWEBINF; //PK81387
try {
return ((Boolean) AccessContro... | [
"private",
"boolean",
"handleCaseSensitivityCheck",
"(",
"String",
"path",
",",
"boolean",
"checkWEBINF",
")",
"throws",
"IOException",
"{",
"if",
"(",
"System",
".",
"getSecurityManager",
"(",
")",
"!=",
"null",
")",
"{",
"final",
"String",
"tmpPath",
"=",
"p... | PK81387 - added checkWEBINF param | [
"PK81387",
"-",
"added",
"checkWEBINF",
"param"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/webcontainerext/AbstractJSPExtensionProcessor.java#L632-L648 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ras/FormattedWriter.java | FormattedWriter.nameSpace | public final void nameSpace (String namespace) {
if (namespace == null || namespace.equals("")) {
_namespace = "";
} else {
_namespace = namespace + ":";
}
} | java | public final void nameSpace (String namespace) {
if (namespace == null || namespace.equals("")) {
_namespace = "";
} else {
_namespace = namespace + ":";
}
} | [
"public",
"final",
"void",
"nameSpace",
"(",
"String",
"namespace",
")",
"{",
"if",
"(",
"namespace",
"==",
"null",
"||",
"namespace",
".",
"equals",
"(",
"\"\"",
")",
")",
"{",
"_namespace",
"=",
"\"\"",
";",
"}",
"else",
"{",
"_namespace",
"=",
"name... | Set the namespace prefix to be prefixed to subseqyent tags. The namespace prefix
allow different components to use the same tag without risk of confusion.
@param namespace The name of the namespace prefix to be set | [
"Set",
"the",
"namespace",
"prefix",
"to",
"be",
"prefixed",
"to",
"subseqyent",
"tags",
".",
"The",
"namespace",
"prefix",
"allow",
"different",
"components",
"to",
"use",
"the",
"same",
"tag",
"without",
"risk",
"of",
"confusion",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ras/FormattedWriter.java#L151-L157 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ras/FormattedWriter.java | FormattedWriter.write | public final void write(Throwable e) throws IOException {
indent();
newLine();
write(e.toString());
StackTraceElement[] elements = e.getStackTrace();
for (int i = 0; i < elements.length; i++) {
newLine();
write(elements[i].toString());
}
Throwable cause = e.getCause();
if ... | java | public final void write(Throwable e) throws IOException {
indent();
newLine();
write(e.toString());
StackTraceElement[] elements = e.getStackTrace();
for (int i = 0; i < elements.length; i++) {
newLine();
write(elements[i].toString());
}
Throwable cause = e.getCause();
if ... | [
"public",
"final",
"void",
"write",
"(",
"Throwable",
"e",
")",
"throws",
"IOException",
"{",
"indent",
"(",
")",
";",
"newLine",
"(",
")",
";",
"write",
"(",
"e",
".",
"toString",
"(",
")",
")",
";",
"StackTraceElement",
"[",
"]",
"elements",
"=",
"... | Write a throwable, used to indicate a problem during data collection, not formatted.
@param e The throwable object
@throws IOException If an I/O error occurs while attempting to write the characters | [
"Write",
"a",
"throwable",
"used",
"to",
"indicate",
"a",
"problem",
"during",
"data",
"collection",
"not",
"formatted",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ras/FormattedWriter.java#L246-L265 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java | JwKRetriever.getPublicKeyFromJwk | public PublicKey getPublicKeyFromJwk(String kid, String x5t, boolean useSystemPropertiesForHttpClientConnections)
throws PrivilegedActionException, IOException, KeyStoreException, InterruptedException {
return getPublicKeyFromJwk(kid, x5t, null, useSystemPropertiesForHttpClientConnections);
} | java | public PublicKey getPublicKeyFromJwk(String kid, String x5t, boolean useSystemPropertiesForHttpClientConnections)
throws PrivilegedActionException, IOException, KeyStoreException, InterruptedException {
return getPublicKeyFromJwk(kid, x5t, null, useSystemPropertiesForHttpClientConnections);
} | [
"public",
"PublicKey",
"getPublicKeyFromJwk",
"(",
"String",
"kid",
",",
"String",
"x5t",
",",
"boolean",
"useSystemPropertiesForHttpClientConnections",
")",
"throws",
"PrivilegedActionException",
",",
"IOException",
",",
"KeyStoreException",
",",
"InterruptedException",
"{... | Either kid or x5t will work. But not both | [
"Either",
"kid",
"or",
"x5t",
"will",
"work",
".",
"But",
"not",
"both"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java#L134-L137 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java | JwKRetriever.getPublicKeyFromJwk | @FFDCIgnore({ KeyStoreException.class })
public PublicKey getPublicKeyFromJwk(String kid, String x5t, String use, boolean useSystemPropertiesForHttpClientConnections)
throws PrivilegedActionException, IOException, KeyStoreException, InterruptedException {
PublicKey key = null;
KeyStoreEx... | java | @FFDCIgnore({ KeyStoreException.class })
public PublicKey getPublicKeyFromJwk(String kid, String x5t, String use, boolean useSystemPropertiesForHttpClientConnections)
throws PrivilegedActionException, IOException, KeyStoreException, InterruptedException {
PublicKey key = null;
KeyStoreEx... | [
"@",
"FFDCIgnore",
"(",
"{",
"KeyStoreException",
".",
"class",
"}",
")",
"public",
"PublicKey",
"getPublicKeyFromJwk",
"(",
"String",
"kid",
",",
"String",
"x5t",
",",
"String",
"use",
",",
"boolean",
"useSystemPropertiesForHttpClientConnections",
")",
"throws",
... | Either kid, x5t, or use will work, but not all | [
"Either",
"kid",
"x5t",
"or",
"use",
"will",
"work",
"but",
"not",
"all"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java#L142-L171 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java | JwKRetriever.getInputStream | @FFDCIgnore({ PrivilegedActionException.class })
protected InputStream getInputStream(final File f, String fileSystemSelector, String location, String classLoadingSelector ) throws IOException {
// check file system first like we used to do
if (f != null) {
InputStream is = null;
... | java | @FFDCIgnore({ PrivilegedActionException.class })
protected InputStream getInputStream(final File f, String fileSystemSelector, String location, String classLoadingSelector ) throws IOException {
// check file system first like we used to do
if (f != null) {
InputStream is = null;
... | [
"@",
"FFDCIgnore",
"(",
"{",
"PrivilegedActionException",
".",
"class",
"}",
")",
"protected",
"InputStream",
"getInputStream",
"(",
"final",
"File",
"f",
",",
"String",
"fileSystemSelector",
",",
"String",
"location",
",",
"String",
"classLoadingSelector",
")",
"... | open an input stream to either a file on the file system or a url on the classpath.
Update the locationUsed class variable to note where we got the stream from so results of reading it can be cached properly | [
"open",
"an",
"input",
"stream",
"to",
"either",
"a",
"file",
"on",
"the",
"file",
"system",
"or",
"a",
"url",
"on",
"the",
"classpath",
".",
"Update",
"the",
"locationUsed",
"class",
"variable",
"to",
"note",
"where",
"we",
"got",
"the",
"stream",
"from... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java#L254-L292 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java | JwKRetriever.parseJwk | public boolean parseJwk(String keyText, FileInputStream inputStream, JWKSet jwkset, String signatureAlgorithm) {
boolean bJwk = false;
if (keyText != null) {
bJwk = parseKeyText(keyText, locationUsed, jwkset, signatureAlgorithm);
} else if (inputStream != null) {
String ... | java | public boolean parseJwk(String keyText, FileInputStream inputStream, JWKSet jwkset, String signatureAlgorithm) {
boolean bJwk = false;
if (keyText != null) {
bJwk = parseKeyText(keyText, locationUsed, jwkset, signatureAlgorithm);
} else if (inputStream != null) {
String ... | [
"public",
"boolean",
"parseJwk",
"(",
"String",
"keyText",
",",
"FileInputStream",
"inputStream",
",",
"JWKSet",
"jwkset",
",",
"String",
"signatureAlgorithm",
")",
"{",
"boolean",
"bJwk",
"=",
"false",
";",
"if",
"(",
"keyText",
"!=",
"null",
")",
"{",
"bJw... | separate to be an independent method for unit tests | [
"separate",
"to",
"be",
"an",
"independent",
"method",
"for",
"unit",
"tests"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.common.jsonwebkey/src/com/ibm/ws/security/common/jwk/impl/JwKRetriever.java#L401-L412 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletionStage.java | ManagedCompletionStage.newIncompleteFuture | @Override
public CompletableFuture<T> newIncompleteFuture() {
if (JAVA8)
return new ManagedCompletionStage<T>(new CompletableFuture<T>(), defaultExecutor, null);
else
return new ManagedCompletionStage<T>(defaultExecutor);
} | java | @Override
public CompletableFuture<T> newIncompleteFuture() {
if (JAVA8)
return new ManagedCompletionStage<T>(new CompletableFuture<T>(), defaultExecutor, null);
else
return new ManagedCompletionStage<T>(defaultExecutor);
} | [
"@",
"Override",
"public",
"CompletableFuture",
"<",
"T",
">",
"newIncompleteFuture",
"(",
")",
"{",
"if",
"(",
"JAVA8",
")",
"return",
"new",
"ManagedCompletionStage",
"<",
"T",
">",
"(",
"new",
"CompletableFuture",
"<",
"T",
">",
"(",
")",
",",
"defaultE... | minimalCompletionStage is allowed because java.util.concurrent.CompletableFuture's minimalCompletionStage allows it | [
"minimalCompletionStage",
"is",
"allowed",
"because",
"java",
".",
"util",
".",
"concurrent",
".",
"CompletableFuture",
"s",
"minimalCompletionStage",
"allows",
"it"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletionStage.java#L132-L138 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletionStage.java | ManagedCompletionStage.newInstance | @Override
@SuppressWarnings("hiding")
@Trivial
<T> CompletableFuture<T> newInstance(CompletableFuture<T> completableFuture, Executor managedExecutor, FutureRefExecutor futureRef) {
return new ManagedCompletionStage<T>(completableFuture, managedExecutor, futureRef);
} | java | @Override
@SuppressWarnings("hiding")
@Trivial
<T> CompletableFuture<T> newInstance(CompletableFuture<T> completableFuture, Executor managedExecutor, FutureRefExecutor futureRef) {
return new ManagedCompletionStage<T>(completableFuture, managedExecutor, futureRef);
} | [
"@",
"Override",
"@",
"SuppressWarnings",
"(",
"\"hiding\"",
")",
"@",
"Trivial",
"<",
"T",
">",
"CompletableFuture",
"<",
"T",
">",
"newInstance",
"(",
"CompletableFuture",
"<",
"T",
">",
"completableFuture",
",",
"Executor",
"managedExecutor",
",",
"FutureRefE... | This method is only for Java SE 8.
It is used to override the newInstance method of ManagedCompletableFuture to ensure that
newly created instances are ManagedCompletionStage.
@param completableFuture underlying completable future upon which this instance is backed.
@param managedExecutor managed executor service
@par... | [
"This",
"method",
"is",
"only",
"for",
"Java",
"SE",
"8",
".",
"It",
"is",
"used",
"to",
"override",
"the",
"newInstance",
"method",
"of",
"ManagedCompletableFuture",
"to",
"ensure",
"that",
"newly",
"created",
"instances",
"are",
"ManagedCompletionStage",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.mp.1.0/src/com/ibm/ws/concurrent/mp/ManagedCompletionStage.java#L150-L155 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/DummyManagedObject.java | DummyManagedObject.becomeCloneOf | public void becomeCloneOf(ManagedObject other)
{
final String methodName = "becomeCloneOf";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName,
other);
//!! See... | java | public void becomeCloneOf(ManagedObject other)
{
final String methodName = "becomeCloneOf";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName,
other);
//!! See... | [
"public",
"void",
"becomeCloneOf",
"(",
"ManagedObject",
"other",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"becomeCloneOf\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace"... | Replace the state of this object with the same object in some other state. Used for to restore the before immage if
a transaction rolls back or is read from the log during restart.
@param other the object this object is to become a clone of. | [
"Replace",
"the",
"state",
"of",
"this",
"object",
"with",
"the",
"same",
"object",
"in",
"some",
"other",
"state",
".",
"Used",
"for",
"to",
"restore",
"the",
"before",
"immage",
"if",
"a",
"transaction",
"rolls",
"back",
"or",
"is",
"read",
"from",
"th... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/DummyManagedObject.java#L62-L82 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java | WAB.setState | private boolean setState(State newState) {
switch (newState) {
case DEPLOYED:
return changeState(State.DEPLOYING, State.DEPLOYED);
case DEPLOYING:
//can move from either UNDEPLOYED or FAILED into DEPLOYING state
return (changeState(State.UN... | java | private boolean setState(State newState) {
switch (newState) {
case DEPLOYED:
return changeState(State.DEPLOYING, State.DEPLOYED);
case DEPLOYING:
//can move from either UNDEPLOYED or FAILED into DEPLOYING state
return (changeState(State.UN... | [
"private",
"boolean",
"setState",
"(",
"State",
"newState",
")",
"{",
"switch",
"(",
"newState",
")",
"{",
"case",
"DEPLOYED",
":",
"return",
"changeState",
"(",
"State",
".",
"DEPLOYING",
",",
"State",
".",
"DEPLOYED",
")",
";",
"case",
"DEPLOYING",
":",
... | state should only transition while the terminated lock is held.
@param newState
@return | [
"state",
"should",
"only",
"transition",
"while",
"the",
"terminated",
"lock",
"is",
"held",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java#L262-L278 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java | WAB.createFailedEvent | Event createFailedEvent(Throwable t) {
synchronized (terminated) {
if (terminated.get()) {
return null;
}
if (setState(State.FAILED)) {
installer.removeWabFromEligibleForCollisionResolution(this);
installer.attemptRedeployOfPrev... | java | Event createFailedEvent(Throwable t) {
synchronized (terminated) {
if (terminated.get()) {
return null;
}
if (setState(State.FAILED)) {
installer.removeWabFromEligibleForCollisionResolution(this);
installer.attemptRedeployOfPrev... | [
"Event",
"createFailedEvent",
"(",
"Throwable",
"t",
")",
"{",
"synchronized",
"(",
"terminated",
")",
"{",
"if",
"(",
"terminated",
".",
"get",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"setState",
"(",
"State",
".",
"FAILED",
")",
... | and kicks off the collision resolution process | [
"and",
"kicks",
"off",
"the",
"collision",
"resolution",
"process"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java#L360-L372 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java | WAB.createFailedEvent | Event createFailedEvent(String collisionContext, long[] cIds) {
synchronized (terminated) {
if (terminated.get()) {
return null;
}
if (setState(State.FAILED))
return createEvent(State.FAILED, null, collisionContext, cIds);
}
ret... | java | Event createFailedEvent(String collisionContext, long[] cIds) {
synchronized (terminated) {
if (terminated.get()) {
return null;
}
if (setState(State.FAILED))
return createEvent(State.FAILED, null, collisionContext, cIds);
}
ret... | [
"Event",
"createFailedEvent",
"(",
"String",
"collisionContext",
",",
"long",
"[",
"]",
"cIds",
")",
"{",
"synchronized",
"(",
"terminated",
")",
"{",
"if",
"(",
"terminated",
".",
"get",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"if",
"(",
"setS... | as it's used only to report collision failures =) | [
"as",
"it",
"s",
"used",
"only",
"to",
"report",
"collision",
"failures",
"=",
")"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java#L376-L385 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java | WAB.addingBundle | @Override
@Trivial
public WAB addingBundle(Bundle bundle, BundleEvent event) {
//the bundle is in STARTING | ACTIVE state because of our state mask
//only action work for the bundle represented by this WAB.
if (bundle.getBundleId() == wabBundleId) {
//sync lock inside bundle... | java | @Override
@Trivial
public WAB addingBundle(Bundle bundle, BundleEvent event) {
//the bundle is in STARTING | ACTIVE state because of our state mask
//only action work for the bundle represented by this WAB.
if (bundle.getBundleId() == wabBundleId) {
//sync lock inside bundle... | [
"@",
"Override",
"@",
"Trivial",
"public",
"WAB",
"addingBundle",
"(",
"Bundle",
"bundle",
",",
"BundleEvent",
"event",
")",
"{",
"//the bundle is in STARTING | ACTIVE state because of our state mask",
"//only action work for the bundle represented by this WAB.",
"if",
"(",
"bu... | so we don't want that in the trace all the time | [
"so",
"we",
"don",
"t",
"want",
"that",
"in",
"the",
"trace",
"all",
"the",
"time"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.wab/src/com/ibm/ws/app/manager/wab/internal/WAB.java#L515-L547 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java | DataFormatHelper.identityToString | public static String identityToString(Object o) {
return o == null ? null : o.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(o));
} | java | public static String identityToString(Object o) {
return o == null ? null : o.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(o));
} | [
"public",
"static",
"String",
"identityToString",
"(",
"Object",
"o",
")",
"{",
"return",
"o",
"==",
"null",
"?",
"null",
":",
"o",
".",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"'",
"'",
"+",
"Integer",
".",
"toHexString",
"(",
"System",... | Returns a string containing a concise, human-readable description of the
object. The string is the same as the one that would be returned by
Object.toString even if the object's class has overriden the toString
or hashCode methods. The return value for a null object is null.
@param o the object
@return the string repr... | [
"Returns",
"a",
"string",
"containing",
"a",
"concise",
"human",
"-",
"readable",
"description",
"of",
"the",
"object",
".",
"The",
"string",
"is",
"the",
"same",
"as",
"the",
"one",
"that",
"would",
"be",
"returned",
"by",
"Object",
".",
"toString",
"even... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/DataFormatHelper.java#L42-L44 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.