id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
67,900 | OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc.management.j2ee/src/com/ibm/ws/jdbc/management/j2ee/internal/JDBCMBeanRuntime.java | JDBCMBeanRuntime.getBundleContext | private static BundleContext getBundleContext(final Bundle bundle) {
if (System.getSecurityManager() == null)
return bundle.getBundleContext();
else
return AccessController.doPrivileged(new PrivilegedAction<BundleContext>() {
@Override
public Bundl... | java | private static BundleContext getBundleContext(final Bundle bundle) {
if (System.getSecurityManager() == null)
return bundle.getBundleContext();
else
return AccessController.doPrivileged(new PrivilegedAction<BundleContext>() {
@Override
public Bundl... | [
"private",
"static",
"BundleContext",
"getBundleContext",
"(",
"final",
"Bundle",
"bundle",
")",
"{",
"if",
"(",
"System",
".",
"getSecurityManager",
"(",
")",
"==",
"null",
")",
"return",
"bundle",
".",
"getBundleContext",
"(",
")",
";",
"else",
"return",
"... | no need for an updatedJdbcDriver because changes will not impact the mbean | [
"no",
"need",
"for",
"an",
"updatedJdbcDriver",
"because",
"changes",
"will",
"not",
"impact",
"the",
"mbean"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc.management.j2ee/src/com/ibm/ws/jdbc/management/j2ee/internal/JDBCMBeanRuntime.java#L350-L360 |
67,901 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/renderkit/ErrorPageWriter.java | ErrorPageWriter.debugHtml | public static void debugHtml(Writer writer, FacesContext faces, Throwable e) throws IOException
{
debugHtml(writer, faces, faces.getViewRoot(), null, e);
} | java | public static void debugHtml(Writer writer, FacesContext faces, Throwable e) throws IOException
{
debugHtml(writer, faces, faces.getViewRoot(), null, e);
} | [
"public",
"static",
"void",
"debugHtml",
"(",
"Writer",
"writer",
",",
"FacesContext",
"faces",
",",
"Throwable",
"e",
")",
"throws",
"IOException",
"{",
"debugHtml",
"(",
"writer",
",",
"faces",
",",
"faces",
".",
"getViewRoot",
"(",
")",
",",
"null",
","... | Generates the HTML error page for the given Throwable
and writes it to the given writer.
@param writer
@param faces
@param e
@throws IOException | [
"Generates",
"the",
"HTML",
"error",
"page",
"for",
"the",
"given",
"Throwable",
"and",
"writes",
"it",
"to",
"the",
"given",
"writer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/renderkit/ErrorPageWriter.java#L264-L267 |
67,902 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/renderkit/ErrorPageWriter.java | ErrorPageWriter.debugHtml | public static void debugHtml(Writer writer, FacesContext faces) throws IOException
{
_init(faces);
Date now = new Date();
for (int i = 0; i < debugParts.length; i++)
{
if ("message".equals(debugParts[i]))
{
writer.write(faces.getViewRoot().getV... | java | public static void debugHtml(Writer writer, FacesContext faces) throws IOException
{
_init(faces);
Date now = new Date();
for (int i = 0; i < debugParts.length; i++)
{
if ("message".equals(debugParts[i]))
{
writer.write(faces.getViewRoot().getV... | [
"public",
"static",
"void",
"debugHtml",
"(",
"Writer",
"writer",
",",
"FacesContext",
"faces",
")",
"throws",
"IOException",
"{",
"_init",
"(",
"faces",
")",
";",
"Date",
"now",
"=",
"new",
"Date",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";... | Generates the HTML debug page for the current view
and writes it to the given writer.
@param writer
@param faces
@throws IOException | [
"Generates",
"the",
"HTML",
"debug",
"page",
"for",
"the",
"current",
"view",
"and",
"writes",
"it",
"to",
"the",
"given",
"writer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/renderkit/ErrorPageWriter.java#L399-L430 |
67,903 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaSet.java | SchemaSet.hashToTable | private int hashToTable(Long id, Entry[] table) {
int posVal = id.intValue() & Integer.MAX_VALUE;
return (posVal % table.length);
} | java | private int hashToTable(Long id, Entry[] table) {
int posVal = id.intValue() & Integer.MAX_VALUE;
return (posVal % table.length);
} | [
"private",
"int",
"hashToTable",
"(",
"Long",
"id",
",",
"Entry",
"[",
"]",
"table",
")",
"{",
"int",
"posVal",
"=",
"id",
".",
"intValue",
"(",
")",
"&",
"Integer",
".",
"MAX_VALUE",
";",
"return",
"(",
"posVal",
"%",
"table",
".",
"length",
")",
... | The Long Id is already effectively a hashcode for the Schema and should
be unique. All we should need to do is get a positive integer version of it
& divide by the table size. | [
"The",
"Long",
"Id",
"is",
"already",
"effectively",
"a",
"hashcode",
"for",
"the",
"Schema",
"and",
"should",
"be",
"unique",
".",
"All",
"we",
"should",
"need",
"to",
"do",
"is",
"get",
"a",
"positive",
"integer",
"version",
"of",
"it",
"&",
"divide",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaSet.java#L289-L292 |
67,904 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaSet.java | SchemaSet.resize | private void resize() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "resize", table.length);
Entry[] newTable = new Entry[table.length + (table.length / 2)];
/* We have to walk the entire SchemaSet, rehashing each Entry and putting */
/* it in its new home. A... | java | private void resize() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "resize", table.length);
Entry[] newTable = new Entry[table.length + (table.length / 2)];
/* We have to walk the entire SchemaSet, rehashing each Entry and putting */
/* it in its new home. A... | [
"private",
"void",
"resize",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"resize\"",
",",
"table",
".",
"lengt... | Resize the SchemaSet, adding 50% to the size.
This method must only be called from add() which is synchronized. | [
"Resize",
"the",
"SchemaSet",
"adding",
"50%",
"to",
"the",
"size",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaSet.java#L300-L324 |
67,905 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaSet.java | SchemaSet.toVerboseString | public String toVerboseString() {
/* Take a local reference to the table in case a resize happens. */
Entry[] tempTable = table;
StringBuffer buf = new StringBuffer();
/* Include the SchemaSet hashcode just in case we need to distinguish them */
buf.append("SchemaSet ");
buf.append(this.hashC... | java | public String toVerboseString() {
/* Take a local reference to the table in case a resize happens. */
Entry[] tempTable = table;
StringBuffer buf = new StringBuffer();
/* Include the SchemaSet hashcode just in case we need to distinguish them */
buf.append("SchemaSet ");
buf.append(this.hashC... | [
"public",
"String",
"toVerboseString",
"(",
")",
"{",
"/* Take a local reference to the table in case a resize happens. */",
"Entry",
"[",
"]",
"tempTable",
"=",
"table",
";",
"StringBuffer",
"buf",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"/* Include the SchemaSet hash... | Returns a printable view of the SchemaSet and contents for use in
debugging and Unit Tests.
@return String Printable view of the SchemaSet and contents | [
"Returns",
"a",
"printable",
"view",
"of",
"the",
"SchemaSet",
"and",
"contents",
"for",
"use",
"in",
"debugging",
"and",
"Unit",
"Tests",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaSet.java#L333-L363 |
67,906 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaSet.java | SchemaSet.debugId | private static final String debugId(Object o) {
Long id = (Long)o;
byte[] buf = new byte[8];
ArrayUtil.writeLong(buf, 0, id.longValue());
return HexUtil.toString(buf);
} | java | private static final String debugId(Object o) {
Long id = (Long)o;
byte[] buf = new byte[8];
ArrayUtil.writeLong(buf, 0, id.longValue());
return HexUtil.toString(buf);
} | [
"private",
"static",
"final",
"String",
"debugId",
"(",
"Object",
"o",
")",
"{",
"Long",
"id",
"=",
"(",
"Long",
")",
"o",
";",
"byte",
"[",
"]",
"buf",
"=",
"new",
"byte",
"[",
"8",
"]",
";",
"ArrayUtil",
".",
"writeLong",
"(",
"buf",
",",
"0",
... | Write a Schema Id out as a hex string.
@param o The SchemaId
@return String A hex string representaion of the SchemaId's long value. | [
"Write",
"a",
"Schema",
"Id",
"out",
"as",
"a",
"hex",
"string",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/SchemaSet.java#L373-L378 |
67,907 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/xml/ra/RaAuthenticationMechanism.java | RaAuthenticationMechanism.setAuthenticationMechanismType | @XmlElement(name = "authentication-mechanism-type", required = true)
public void setAuthenticationMechanismType(String authMech) {
AuthenticationMechanismType type = AuthenticationMechanismType.valueOf(authMech);
authenticationMechanismType = type.name();
} | java | @XmlElement(name = "authentication-mechanism-type", required = true)
public void setAuthenticationMechanismType(String authMech) {
AuthenticationMechanismType type = AuthenticationMechanismType.valueOf(authMech);
authenticationMechanismType = type.name();
} | [
"@",
"XmlElement",
"(",
"name",
"=",
"\"authentication-mechanism-type\"",
",",
"required",
"=",
"true",
")",
"public",
"void",
"setAuthenticationMechanismType",
"(",
"String",
"authMech",
")",
"{",
"AuthenticationMechanismType",
"type",
"=",
"AuthenticationMechanismType",... | Set the authentication mechanism type
@param the authentication mechanism type | [
"Set",
"the",
"authentication",
"mechanism",
"type"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.utils/src/com/ibm/ws/jca/utils/xml/ra/RaAuthenticationMechanism.java#L85-L89 |
67,908 | OpenLiberty/open-liberty | dev/com.ibm.ws.jndi/src/com/ibm/ws/jndi/internal/ContextNode.java | ContextNode.autoBind | @FFDCIgnore(ClassCastException.class)
void autoBind(WSName subname, Object obj) throws InvalidNameException, NotContextException, NameAlreadyBoundException {
ContextNode target = this, parent = this;
int i = 0;
try {
for (/* int i = 0 */; i < subname.size() - 1; i++) {
... | java | @FFDCIgnore(ClassCastException.class)
void autoBind(WSName subname, Object obj) throws InvalidNameException, NotContextException, NameAlreadyBoundException {
ContextNode target = this, parent = this;
int i = 0;
try {
for (/* int i = 0 */; i < subname.size() - 1; i++) {
... | [
"@",
"FFDCIgnore",
"(",
"ClassCastException",
".",
"class",
")",
"void",
"autoBind",
"(",
"WSName",
"subname",
",",
"Object",
"obj",
")",
"throws",
"InvalidNameException",
",",
"NotContextException",
",",
"NameAlreadyBoundException",
"{",
"ContextNode",
"target",
"=... | Works like bind but automatically creates intermediate contexts if
they do not exist. Any automatically created contexts will be
cleaned up automatically when their last child is unbound. | [
"Works",
"like",
"bind",
"but",
"automatically",
"creates",
"intermediate",
"contexts",
"if",
"they",
"do",
"not",
"exist",
".",
"Any",
"automatically",
"created",
"contexts",
"will",
"be",
"cleaned",
"up",
"automatically",
"when",
"their",
"last",
"child",
"is"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jndi/src/com/ibm/ws/jndi/internal/ContextNode.java#L158-L206 |
67,909 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeAtEntryMethodAdapter.java | ProbeAtEntryMethodAdapter.onMethodEntry | @Override
protected void onMethodEntry() {
if (enabledListeners.isEmpty())
return;
String probeKey = createKey();
ProbeImpl probe = getProbe(probeKey);
long probeId = probe.getIdentifier();
setProbeInProgress(true);
visitLdcInsn(Long.valueOf(probeId)); /... | java | @Override
protected void onMethodEntry() {
if (enabledListeners.isEmpty())
return;
String probeKey = createKey();
ProbeImpl probe = getProbe(probeKey);
long probeId = probe.getIdentifier();
setProbeInProgress(true);
visitLdcInsn(Long.valueOf(probeId)); /... | [
"@",
"Override",
"protected",
"void",
"onMethodEntry",
"(",
")",
"{",
"if",
"(",
"enabledListeners",
".",
"isEmpty",
"(",
")",
")",
"return",
";",
"String",
"probeKey",
"=",
"createKey",
"(",
")",
";",
"ProbeImpl",
"probe",
"=",
"getProbe",
"(",
"probeKey"... | Inject the byte code required to fire a method entry probe. | [
"Inject",
"the",
"byte",
"code",
"required",
"to",
"fire",
"a",
"method",
"entry",
"probe",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/ProbeAtEntryMethodAdapter.java#L57-L79 |
67,910 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AbstractAsyncChannel.java | AbstractAsyncChannel.getBufAddress | static long getBufAddress(ByteBuffer theBuffer) {
/*
* This only works for DIRECT byte buffers. Direct ByteBuffers have a field called "address" which
* holds the physical address of the start of the buffer contents in native memory.
* This method obtains the value of the address fiel... | java | static long getBufAddress(ByteBuffer theBuffer) {
/*
* This only works for DIRECT byte buffers. Direct ByteBuffers have a field called "address" which
* holds the physical address of the start of the buffer contents in native memory.
* This method obtains the value of the address fiel... | [
"static",
"long",
"getBufAddress",
"(",
"ByteBuffer",
"theBuffer",
")",
"{",
"/*\n * This only works for DIRECT byte buffers. Direct ByteBuffers have a field called \"address\" which\n * holds the physical address of the start of the buffer contents in native memory.\n * This... | Returns the address of the start of the given direct byte buffer in
OS memory.
@param theBuffer
the direct byte buffer.
@return the OS address as a <code>long</code>.
@throws IllegalArgumentException
if the buffer is not direct. | [
"Returns",
"the",
"address",
"of",
"the",
"start",
"of",
"the",
"given",
"direct",
"byte",
"buffer",
"in",
"OS",
"memory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AbstractAsyncChannel.java#L137-L156 |
67,911 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AbstractAsyncChannel.java | AbstractAsyncChannel.getFutureFromIndex | public AsyncFuture getFutureFromIndex(int theIndex) {
if (theIndex == READ_FUTURE_INDEX || theIndex == SYNC_READ_FUTURE_INDEX) {
return this.readFuture;
}
if (theIndex == WRITE_FUTURE_INDEX || theIndex == SYNC_WRITE_FUTURE_INDEX) {
return this.writeFuture;
}
... | java | public AsyncFuture getFutureFromIndex(int theIndex) {
if (theIndex == READ_FUTURE_INDEX || theIndex == SYNC_READ_FUTURE_INDEX) {
return this.readFuture;
}
if (theIndex == WRITE_FUTURE_INDEX || theIndex == SYNC_WRITE_FUTURE_INDEX) {
return this.writeFuture;
}
... | [
"public",
"AsyncFuture",
"getFutureFromIndex",
"(",
"int",
"theIndex",
")",
"{",
"if",
"(",
"theIndex",
"==",
"READ_FUTURE_INDEX",
"||",
"theIndex",
"==",
"SYNC_READ_FUTURE_INDEX",
")",
"{",
"return",
"this",
".",
"readFuture",
";",
"}",
"if",
"(",
"theIndex",
... | Gets the Future corresponding to a supplied index value.
@param theIndex the index value of the Future
@return the Future corresponding to the index number. null if there is no Future which
corresponds to the supplied Index | [
"Gets",
"the",
"Future",
"corresponding",
"to",
"a",
"supplied",
"index",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AbstractAsyncChannel.java#L206-L214 |
67,912 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AbstractAsyncChannel.java | AbstractAsyncChannel.cancel | void cancel(AsyncChannelFuture future, Exception reason) throws ClosedChannelException, IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "cancel");
}
if (!isOpen()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnable... | java | void cancel(AsyncChannelFuture future, Exception reason) throws ClosedChannelException, IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "cancel");
}
if (!isOpen()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnable... | [
"void",
"cancel",
"(",
"AsyncChannelFuture",
"future",
",",
"Exception",
"reason",
")",
"throws",
"ClosedChannelException",
",",
"IOException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
"... | Package private version of cancel, which takes an exception as an
additional parameter. The exception is applied to the future on
cancellation.
@param future
@param reason
@throws ClosedChannelException
@throws IOException | [
"Package",
"private",
"version",
"of",
"cancel",
"which",
"takes",
"an",
"exception",
"as",
"an",
"additional",
"parameter",
".",
"The",
"exception",
"is",
"applied",
"to",
"the",
"future",
"on",
"cancellation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AbstractAsyncChannel.java#L226-L276 |
67,913 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/data/SpdDataImpl.java | SpdDataImpl.enable | public void enable(int level) {
if (level >= PmiConstants.LEVEL_HIGH)
sync = true;
else
sync = false;
if (!enabled) {
enabled = true;
reset();
}
} | java | public void enable(int level) {
if (level >= PmiConstants.LEVEL_HIGH)
sync = true;
else
sync = false;
if (!enabled) {
enabled = true;
reset();
}
} | [
"public",
"void",
"enable",
"(",
"int",
"level",
")",
"{",
"if",
"(",
"level",
">=",
"PmiConstants",
".",
"LEVEL_HIGH",
")",
"sync",
"=",
"true",
";",
"else",
"sync",
"=",
"false",
";",
"if",
"(",
"!",
"enabled",
")",
"{",
"enabled",
"=",
"true",
"... | mark the data enabled and reset the value and createTime | [
"mark",
"the",
"data",
"enabled",
"and",
"reset",
"the",
"value",
"and",
"createTime"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/data/SpdDataImpl.java#L57-L67 |
67,914 | OpenLiberty/open-liberty | dev/com.ibm.ws.container.service.compat/src/com/ibm/ejs/util/FastHashtable.java | FastHashtable.getBucketForKey | protected final Bucket<K, V> getBucketForKey(K key) {
int bucket_index = (key.hashCode() & 0x7FFFFFFF) % buckets.length;
Bucket<K, V> thebucket = buckets[bucket_index];
if (thebucket == null) {
synchronized (this) {
thebucket = buckets[bucket_index];
i... | java | protected final Bucket<K, V> getBucketForKey(K key) {
int bucket_index = (key.hashCode() & 0x7FFFFFFF) % buckets.length;
Bucket<K, V> thebucket = buckets[bucket_index];
if (thebucket == null) {
synchronized (this) {
thebucket = buckets[bucket_index];
i... | [
"protected",
"final",
"Bucket",
"<",
"K",
",",
"V",
">",
"getBucketForKey",
"(",
"K",
"key",
")",
"{",
"int",
"bucket_index",
"=",
"(",
"key",
".",
"hashCode",
"(",
")",
"&",
"0x7FFFFFFF",
")",
"%",
"buckets",
".",
"length",
";",
"Bucket",
"<",
"K",
... | Returns the bucket which the specified key hashes to | [
"Returns",
"the",
"bucket",
"which",
"the",
"specified",
"key",
"hashes",
"to"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.container.service.compat/src/com/ibm/ejs/util/FastHashtable.java#L140-L153 |
67,915 | OpenLiberty/open-liberty | dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/AbstractMBeanIntrospector.java | AbstractMBeanIntrospector.introspect | protected void introspect(ObjectName objectName, QueryExp query, PrintWriter writer) {
// Iterate over the mbean servers, query for the beans, introspect
for (MBeanServer mbeanServer : getMBeanServers()) {
for (ObjectName mbean : mbeanServer.queryNames(objectName, query)) {
i... | java | protected void introspect(ObjectName objectName, QueryExp query, PrintWriter writer) {
// Iterate over the mbean servers, query for the beans, introspect
for (MBeanServer mbeanServer : getMBeanServers()) {
for (ObjectName mbean : mbeanServer.queryNames(objectName, query)) {
i... | [
"protected",
"void",
"introspect",
"(",
"ObjectName",
"objectName",
",",
"QueryExp",
"query",
",",
"PrintWriter",
"writer",
")",
"{",
"// Iterate over the mbean servers, query for the beans, introspect",
"for",
"(",
"MBeanServer",
"mbeanServer",
":",
"getMBeanServers",
"(",... | GIven a JMX object name and a filter, introspect all matching
MBeans that are found associated with registered MBean servers.
@param objectName the object name pattern to provide
to {@link javax.management.MBeanServer#queryNames(ObjectName, QueryExp)
queryNames}
@param query the query expression to provide to {@code q... | [
"GIven",
"a",
"JMX",
"object",
"name",
"and",
"a",
"filter",
"introspect",
"all",
"matching",
"MBeans",
"that",
"are",
"found",
"associated",
"with",
"registered",
"MBean",
"servers",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/AbstractMBeanIntrospector.java#L56-L63 |
67,916 | OpenLiberty/open-liberty | dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/AbstractMBeanIntrospector.java | AbstractMBeanIntrospector.getFormattedArray | String getFormattedArray(Object attribute, String indent) {
int arrayLength = Array.getLength(attribute);
if (arrayLength == 0) {
return "[]";
}
Class<?> componentType = attribute.getClass().getComponentType();
// For the 8 primitive types, a cast is necessary when ... | java | String getFormattedArray(Object attribute, String indent) {
int arrayLength = Array.getLength(attribute);
if (arrayLength == 0) {
return "[]";
}
Class<?> componentType = attribute.getClass().getComponentType();
// For the 8 primitive types, a cast is necessary when ... | [
"String",
"getFormattedArray",
"(",
"Object",
"attribute",
",",
"String",
"indent",
")",
"{",
"int",
"arrayLength",
"=",
"Array",
".",
"getLength",
"(",
"attribute",
")",
";",
"if",
"(",
"arrayLength",
"==",
"0",
")",
"{",
"return",
"\"[]\"",
";",
"}",
"... | Format an array.
Note: This doesn't properly format arrays of composite types.
@param attribute the mbean attribute to format
@param the current indent level of the formatted report
@return the formatted array | [
"Format",
"an",
"array",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/AbstractMBeanIntrospector.java#L171-L210 |
67,917 | OpenLiberty/open-liberty | dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/AbstractMBeanIntrospector.java | AbstractMBeanIntrospector.getFormattedCompositeData | String getFormattedCompositeData(CompositeData cd, String indent) {
StringBuilder sb = new StringBuilder();
indent += INDENT;
CompositeType type = cd.getCompositeType();
for (String key : type.keySet()) {
sb.append("\n").append(indent);
sb.append(key).append(": ")... | java | String getFormattedCompositeData(CompositeData cd, String indent) {
StringBuilder sb = new StringBuilder();
indent += INDENT;
CompositeType type = cd.getCompositeType();
for (String key : type.keySet()) {
sb.append("\n").append(indent);
sb.append(key).append(": ")... | [
"String",
"getFormattedCompositeData",
"(",
"CompositeData",
"cd",
",",
"String",
"indent",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"indent",
"+=",
"INDENT",
";",
"CompositeType",
"type",
"=",
"cd",
".",
"getCompositeType",
... | Format an open MBean composite data attribute.
@param cd the composite data attribute
@param indent the current indent level of the formatted report
@return the formatted composite data | [
"Format",
"an",
"open",
"MBean",
"composite",
"data",
"attribute",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/AbstractMBeanIntrospector.java#L242-L261 |
67,918 | OpenLiberty/open-liberty | dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/AbstractMBeanIntrospector.java | AbstractMBeanIntrospector.getFormattedTabularData | @SuppressWarnings("unchecked")
String getFormattedTabularData(TabularData td, String indent) {
StringBuilder sb = new StringBuilder();
indent += INDENT;
sb.append("{");
Collection<CompositeData> values = (Collection<CompositeData>) td.values();
int valuesRemaining = values.s... | java | @SuppressWarnings("unchecked")
String getFormattedTabularData(TabularData td, String indent) {
StringBuilder sb = new StringBuilder();
indent += INDENT;
sb.append("{");
Collection<CompositeData> values = (Collection<CompositeData>) td.values();
int valuesRemaining = values.s... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"String",
"getFormattedTabularData",
"(",
"TabularData",
"td",
",",
"String",
"indent",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"indent",
"+=",
"INDENT",
";",
"sb",
".",
... | Format an open MBean tabular data attribute.
@param td the tabular data attribute
@param indent the current indent level of the formatted report
@return the formatted composite data | [
"Format",
"an",
"open",
"MBean",
"tabular",
"data",
"attribute",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.diagnostics/src/com/ibm/ws/diagnostics/AbstractMBeanIntrospector.java#L271-L288 |
67,919 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityCallbackHandler.java | J2CSecurityCallbackHandler.handle | @Override
public void handle(Callback[] callbacks) throws IOException,
UnsupportedCallbackException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "handle");
}
if (callbacks == null || callbacks.length == 0) {
if ... | java | @Override
public void handle(Callback[] callbacks) throws IOException,
UnsupportedCallbackException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "handle");
}
if (callbacks == null || callbacks.length == 0) {
if ... | [
"@",
"Override",
"public",
"void",
"handle",
"(",
"Callback",
"[",
"]",
"callbacks",
")",
"throws",
"IOException",
",",
"UnsupportedCallbackException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"("... | This method is invoked by the resource adapter after passing the list
of callbacks that it needs the application server to handle. The behaviour
of the handler for each of the callbacks is given below
1) CallerPrincipalCallback: The handler gets the caller principal that
this callback returns and sets it on the subjec... | [
"This",
"method",
"is",
"invoked",
"by",
"the",
"resource",
"adapter",
"after",
"passing",
"the",
"list",
"of",
"callbacks",
"that",
"it",
"needs",
"the",
"application",
"server",
"to",
"handle",
".",
"The",
"behaviour",
"of",
"the",
"handler",
"for",
"each"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityCallbackHandler.java#L107-L165 |
67,920 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityCallbackHandler.java | J2CSecurityCallbackHandler.arrangeCallbacks | private void arrangeCallbacks(Callback[] callbacks) {
if (callbacks[0] instanceof CallerPrincipalCallback)
return;
int length = callbacks.length;
for (int i = 0; i < length; i++) {
if (callbacks[i] instanceof CallerPrincipalCallback) {
Callback callback =... | java | private void arrangeCallbacks(Callback[] callbacks) {
if (callbacks[0] instanceof CallerPrincipalCallback)
return;
int length = callbacks.length;
for (int i = 0; i < length; i++) {
if (callbacks[i] instanceof CallerPrincipalCallback) {
Callback callback =... | [
"private",
"void",
"arrangeCallbacks",
"(",
"Callback",
"[",
"]",
"callbacks",
")",
"{",
"if",
"(",
"callbacks",
"[",
"0",
"]",
"instanceof",
"CallerPrincipalCallback",
")",
"return",
";",
"int",
"length",
"=",
"callbacks",
".",
"length",
";",
"for",
"(",
... | This method is called to ensure that the first callback is always a CallerPrincipalCallback
irrespective of the order in which the callbacks are passed in by the resource adapter.
If we need to return false to the PasswordValidationCallback when the name passed in by the
CallerPrincipalCallback is different from the on... | [
"This",
"method",
"is",
"called",
"to",
"ensure",
"that",
"the",
"first",
"callback",
"is",
"always",
"a",
"CallerPrincipalCallback",
"irrespective",
"of",
"the",
"order",
"in",
"which",
"the",
"callbacks",
"are",
"passed",
"in",
"by",
"the",
"resource",
"adap... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.inbound.security/src/com/ibm/ws/jca/security/internal/J2CSecurityCallbackHandler.java#L188-L201 |
67,921 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/Queue.java | Queue.makeEmptyAndClean | public final void makeEmptyAndClean()
{
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "makeEmptyAndClean");
makeEmpty();
for (int i=0;i<m_array.length;++i) m_array[i]=null;
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "makeEmptyAndClean");
} | java | public final void makeEmptyAndClean()
{
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "makeEmptyAndClean");
makeEmpty();
for (int i=0;i<m_array.length;++i) m_array[i]=null;
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "makeEmptyAndClean");
} | [
"public",
"final",
"void",
"makeEmptyAndClean",
"(",
")",
"{",
"// if (tc.isEntryEnabled())",
"// SibTr.entry(tc, \"makeEmptyAndClean\");",
"makeEmpty",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"m_array",
".",
"length",
";",
"++",
... | Empty the queue, and also set every element of the internal
array to "null" so that the removed elements can be GC'd. | [
"Empty",
"the",
"queue",
"and",
"also",
"set",
"every",
"element",
"of",
"the",
"internal",
"array",
"to",
"null",
"so",
"that",
"the",
"removed",
"elements",
"can",
"be",
"GC",
"d",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/Queue.java#L88-L96 |
67,922 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/Queue.java | Queue.size | public final int size()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "size");
int result = (m_tail >= m_head) ? (m_tail - m_head) : (m_array.length - m_head + m_tail);
if (tc.isEntryEnabled())
SibTr.exit(tc, "size", new Integer(result));
return result;
} | java | public final int size()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "size");
int result = (m_tail >= m_head) ? (m_tail - m_head) : (m_array.length - m_head + m_tail);
if (tc.isEntryEnabled())
SibTr.exit(tc, "size", new Integer(result));
return result;
} | [
"public",
"final",
"int",
"size",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"size\"",
")",
";",
"int",
"result",
"=",
"(",
"m_tail",
">=",
"m_head",
")",
"?",
"(",
"m_tail",
"-"... | Return the number of elements in the queue.
@return the number of elements in the queue. | [
"Return",
"the",
"number",
"of",
"elements",
"in",
"the",
"queue",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/Queue.java#L103-L111 |
67,923 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/Queue.java | Queue.enqueue | public final void enqueue(Object obj)
{
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "enqueue", obj);
// m_array has at least one position in it that is free.
m_array[m_tail++] = obj;
if (m_tail == m_array.length)
m_tail = 0;
if (m_head == m_tail)
expand_array();
// if (tc.isE... | java | public final void enqueue(Object obj)
{
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "enqueue", obj);
// m_array has at least one position in it that is free.
m_array[m_tail++] = obj;
if (m_tail == m_array.length)
m_tail = 0;
if (m_head == m_tail)
expand_array();
// if (tc.isE... | [
"public",
"final",
"void",
"enqueue",
"(",
"Object",
"obj",
")",
"{",
"// if (tc.isEntryEnabled())",
"// SibTr.entry(tc, \"enqueue\", obj);",
"// m_array has at least one position in it that is free.",
"m_array",
"[",
"m_tail",
"++",
"]",
"=",
"obj",
";",
"if",
"(",... | Store an object in the queue.
@param obj the object to be stored. | [
"Store",
"an",
"object",
"in",
"the",
"queue",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/Queue.java#L118-L130 |
67,924 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/Queue.java | Queue.dequeue | public final Object dequeue()
throws NoSuchElementException
{
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "dequeue");
if (m_head == m_tail)
throw new NoSuchElementException();
Object obj = m_array[m_head];
m_array[m_head++] = null;
if (m_head == m_array.length)
m_head = 0;
... | java | public final Object dequeue()
throws NoSuchElementException
{
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "dequeue");
if (m_head == m_tail)
throw new NoSuchElementException();
Object obj = m_array[m_head];
m_array[m_head++] = null;
if (m_head == m_array.length)
m_head = 0;
... | [
"public",
"final",
"Object",
"dequeue",
"(",
")",
"throws",
"NoSuchElementException",
"{",
"// if (tc.isEntryEnabled())",
"// SibTr.entry(tc, \"dequeue\");",
"if",
"(",
"m_head",
"==",
"m_tail",
")",
"throw",
"new",
"NoSuchElementException",
"(",
")",
";",
"Obje... | Return the first element on the queue.
@return the first element on the queue.
@throws NoSuchElementException if the queue is empty. | [
"Return",
"the",
"first",
"element",
"on",
"the",
"queue",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/Queue.java#L138-L154 |
67,925 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/Queue.java | Queue.expand_array | private final void expand_array()
{
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "expand_array");
int length = m_array.length;
Object[] m_new = new Object[length*2];
System.arraycopy(m_array, m_head, m_new, m_head, length-m_head);
System.arraycopy(m_array, 0, m_new, length, m_tail);
m_t... | java | private final void expand_array()
{
// if (tc.isEntryEnabled())
// SibTr.entry(tc, "expand_array");
int length = m_array.length;
Object[] m_new = new Object[length*2];
System.arraycopy(m_array, m_head, m_new, m_head, length-m_head);
System.arraycopy(m_array, 0, m_new, length, m_tail);
m_t... | [
"private",
"final",
"void",
"expand_array",
"(",
")",
"{",
"// if (tc.isEntryEnabled())",
"// SibTr.entry(tc, \"expand_array\");",
"int",
"length",
"=",
"m_array",
".",
"length",
";",
"Object",
"[",
"]",
"m_new",
"=",
"new",
"Object",
"[",
"length",
"*",
"... | Increase the size of the internal array to accomodate more
queue elements. | [
"Increase",
"the",
"size",
"of",
"the",
"internal",
"array",
"to",
"accomodate",
"more",
"queue",
"elements",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/Queue.java#L180-L194 |
67,926 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/CMConfigDataImpl.java | CMConfigDataImpl.getConfigDump | @Override
public LinkedHashMap<String, Object> getConfigDump(String aLocalId, boolean aRegisteredOnly) { // 327843 removed unused parameter
if (TC.isEntryEnabled()) {
Tr.entry(this, TC, "getConfigDump");
}
LinkedHashMap<String, Object> cp = new LinkedHashMap<String, Object>();
... | java | @Override
public LinkedHashMap<String, Object> getConfigDump(String aLocalId, boolean aRegisteredOnly) { // 327843 removed unused parameter
if (TC.isEntryEnabled()) {
Tr.entry(this, TC, "getConfigDump");
}
LinkedHashMap<String, Object> cp = new LinkedHashMap<String, Object>();
... | [
"@",
"Override",
"public",
"LinkedHashMap",
"<",
"String",
",",
"Object",
">",
"getConfigDump",
"(",
"String",
"aLocalId",
",",
"boolean",
"aRegisteredOnly",
")",
"{",
"// 327843 removed unused parameter",
"if",
"(",
"TC",
".",
"isEntryEnabled",
"(",
")",
")",
"... | Generate a config dump containing all the attributes which match the regular expression.
@param aLocalId The regular expression which will be used to determine which attributes to display. Ie, .* will enable everything,
current-resourceAdapterDD-transactionSupport enables just the transactionSupport level.
@param aReg... | [
"Generate",
"a",
"config",
"dump",
"containing",
"all",
"the",
"attributes",
"which",
"match",
"the",
"regular",
"expression",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/CMConfigDataImpl.java#L626-L640 |
67,927 | OpenLiberty/open-liberty | dev/com.ibm.ws.transaction.cdi/src/com/ibm/tx/jta/cdi/interceptors/TransactionalInterceptor.java | TransactionalInterceptor.findInterceptorFromStereotype | private Transactional findInterceptorFromStereotype(Annotation[] anns) {
if (tc.isEntryEnabled())
Tr.entry(tc, "findInterceptorFromStereotype", new Object[] { anns, this });
Transactional ret = null;
for (Annotation ann : anns) {
if (tc.isDebugEnabled())
... | java | private Transactional findInterceptorFromStereotype(Annotation[] anns) {
if (tc.isEntryEnabled())
Tr.entry(tc, "findInterceptorFromStereotype", new Object[] { anns, this });
Transactional ret = null;
for (Annotation ann : anns) {
if (tc.isDebugEnabled())
... | [
"private",
"Transactional",
"findInterceptorFromStereotype",
"(",
"Annotation",
"[",
"]",
"anns",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"findInterceptorFromStereotype\"",
",",
"new",
"Object",
"[... | it here. | [
"it",
"here",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transaction.cdi/src/com/ibm/tx/jta/cdi/interceptors/TransactionalInterceptor.java#L89-L116 |
67,928 | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPATxEntityManager.java | JPATxEntityManager.writeObject | private void writeObject(java.io.ObjectOutputStream out) throws IOException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "writeObject : " + this); // d468174
out.writeObject(ivPuRefId);
out.writeObject(ivJ2eeName); // d510184
out.writeO... | java | private void writeObject(java.io.ObjectOutputStream out) throws IOException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "writeObject : " + this); // d468174
out.writeObject(ivPuRefId);
out.writeObject(ivJ2eeName); // d510184
out.writeO... | [
"private",
"void",
"writeObject",
"(",
"java",
".",
"io",
".",
"ObjectOutputStream",
"out",
")",
"throws",
"IOException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"... | Instance serialization. | [
"Instance",
"serialization",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPATxEntityManager.java#L408-L421 |
67,929 | OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPATxEntityManager.java | JPATxEntityManager.registerEmInvocation | protected void registerEmInvocation(UOWCoordinator uowCoord, Synchronization emInvocation)
{
try {
ivAbstractJPAComponent.getEmbeddableWebSphereTransactionManager().registerSynchronization(uowCoord,
... | java | protected void registerEmInvocation(UOWCoordinator uowCoord, Synchronization emInvocation)
{
try {
ivAbstractJPAComponent.getEmbeddableWebSphereTransactionManager().registerSynchronization(uowCoord,
... | [
"protected",
"void",
"registerEmInvocation",
"(",
"UOWCoordinator",
"uowCoord",
",",
"Synchronization",
"emInvocation",
")",
"{",
"try",
"{",
"ivAbstractJPAComponent",
".",
"getEmbeddableWebSphereTransactionManager",
"(",
")",
".",
"registerSynchronization",
"(",
"uowCoord"... | d638095.4 | [
"d638095",
".",
"4"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPATxEntityManager.java#L467-L481 |
67,930 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java | DiscriminationProcessImpl.buildDiscriminatorNodes | private void buildDiscriminatorNodes(DiscriminatorNode node) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "buildDiscriminatorNodes: " + node);
}
DiscriminatorNode dn = node;
if (dn == null) {
return;
}
Discrimin... | java | private void buildDiscriminatorNodes(DiscriminatorNode node) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "buildDiscriminatorNodes: " + node);
}
DiscriminatorNode dn = node;
if (dn == null) {
return;
}
Discrimin... | [
"private",
"void",
"buildDiscriminatorNodes",
"(",
"DiscriminatorNode",
"node",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"buildDi... | Copy this DiscriminatorNode list.
@param node | [
"Copy",
"this",
"DiscriminatorNode",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java#L162-L186 |
67,931 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java | DiscriminationProcessImpl.addDiscriminator | @Override
public void addDiscriminator(Discriminator d, int weight) throws DiscriminationProcessException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "addDiscriminator: " + d + " weight=" + weight);
}
if (status == STARTED) {
Disc... | java | @Override
public void addDiscriminator(Discriminator d, int weight) throws DiscriminationProcessException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "addDiscriminator: " + d + " weight=" + weight);
}
if (status == STARTED) {
Disc... | [
"@",
"Override",
"public",
"void",
"addDiscriminator",
"(",
"Discriminator",
"d",
",",
"int",
"weight",
")",
"throws",
"DiscriminationProcessException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",... | Adds a discriminator to the group. Attempts to add the same discriminator
more than once are ignored. It is an error to attempt to add a
discriminator which is not able to deal with the groups type of
discriminatory data. A class cast exception is thrown if this is
attempted.
@param d
The discriminator to add.
@param ... | [
"Adds",
"a",
"discriminator",
"to",
"the",
"group",
".",
"Attempts",
"to",
"add",
"the",
"same",
"discriminator",
"more",
"than",
"once",
"are",
"ignored",
".",
"It",
"is",
"an",
"error",
"to",
"attempt",
"to",
"add",
"a",
"discriminator",
"which",
"is",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java#L268-L308 |
67,932 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java | DiscriminationProcessImpl.addDiscriminatorNode | private void addDiscriminatorNode(DiscriminatorNode dn) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "addDiscriminatorNode, weight=" + dn.weight);
}
if (discriminators == null) {
// add it as the first node
discriminators =... | java | private void addDiscriminatorNode(DiscriminatorNode dn) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "addDiscriminatorNode, weight=" + dn.weight);
}
if (discriminators == null) {
// add it as the first node
discriminators =... | [
"private",
"void",
"addDiscriminatorNode",
"(",
"DiscriminatorNode",
"dn",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"addDiscrimin... | add a discriminatorNode to the linked list.
@param dn | [
"add",
"a",
"discriminatorNode",
"to",
"the",
"linked",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java#L343-L395 |
67,933 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java | DiscriminationProcessImpl.removeDiscriminatorNode | private void removeDiscriminatorNode(Discriminator d) throws DiscriminationProcessException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "removeDiscriminatorNode: " + d);
}
if (d == null) {
DiscriminationProcessException e = new Discri... | java | private void removeDiscriminatorNode(Discriminator d) throws DiscriminationProcessException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "removeDiscriminatorNode: " + d);
}
if (d == null) {
DiscriminationProcessException e = new Discri... | [
"private",
"void",
"removeDiscriminatorNode",
"(",
"Discriminator",
"d",
")",
"throws",
"DiscriminationProcessException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"e... | remove the discriminatorNode from the linkedList.
@param d
@throws DiscriminationProcessException | [
"remove",
"the",
"discriminatorNode",
"from",
"the",
"linkedList",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java#L452-L503 |
67,934 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java | DiscriminationProcessImpl.start | @Override
public void start() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Started discriminator list " + discAL + "with size" + discAL.size());
}
if (discAL.size() > 1) {
rebuildDiscriminatorList();
discriminationAlgo... | java | @Override
public void start() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Started discriminator list " + discAL + "with size" + discAL.size());
}
if (discAL.size() > 1) {
rebuildDiscriminatorList();
discriminationAlgo... | [
"@",
"Override",
"public",
"void",
"start",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"Started discriminator list \"",
"+",... | Start this DiscriminatorProcess. | [
"Start",
"this",
"DiscriminatorProcess",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java#L547-L561 |
67,935 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java | DiscriminationProcessImpl.rebuildDiscriminatorList | private void rebuildDiscriminatorList() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "rebuildDiscriminatorList");
}
discAL.clear();
DiscriminatorNode dn = discriminators;
discAL.add(dn.disc);
dn = dn.next;
while (dn... | java | private void rebuildDiscriminatorList() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "rebuildDiscriminatorList");
}
discAL.clear();
DiscriminatorNode dn = discriminators;
discAL.add(dn.disc);
dn = dn.next;
while (dn... | [
"private",
"void",
"rebuildDiscriminatorList",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"rebuildDiscriminatorList\"",
")",
"... | Rebuild the array list from the linked list. | [
"Rebuild",
"the",
"array",
"list",
"from",
"the",
"linked",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java#L575-L590 |
67,936 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java | DiscriminationProcessImpl.addChannel | private void addChannel(Channel chan) {
if (channelList == null) {
channelList = new Channel[1];
channelList[0] = chan;
} else {
Channel[] oldList = channelList;
channelList = new Channel[oldList.length + 1];
System.arraycopy(oldList, 0, channe... | java | private void addChannel(Channel chan) {
if (channelList == null) {
channelList = new Channel[1];
channelList[0] = chan;
} else {
Channel[] oldList = channelList;
channelList = new Channel[oldList.length + 1];
System.arraycopy(oldList, 0, channe... | [
"private",
"void",
"addChannel",
"(",
"Channel",
"chan",
")",
"{",
"if",
"(",
"channelList",
"==",
"null",
")",
"{",
"channelList",
"=",
"new",
"Channel",
"[",
"1",
"]",
";",
"channelList",
"[",
"0",
"]",
"=",
"chan",
";",
"}",
"else",
"{",
"Channel"... | Add a channel to the channel list to be searched.
@param chan | [
"Add",
"a",
"channel",
"to",
"the",
"channel",
"list",
"to",
"be",
"searched",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/channelfw/internal/discrim/DiscriminationProcessImpl.java#L639-L649 |
67,937 | OpenLiberty/open-liberty | dev/com.ibm.ws.jndi/src/com/ibm/ws/jndi/internal/WSContext.java | WSContext.resolveObject | @FFDCIgnore({ NamingException.class })
@Sensitive
Object resolveObject(Object o, WSName subname) throws NamingException {
ServiceReference<?> ref = null;
try {
if (o instanceof ContextNode)
return new WSContext(userContext, (ContextNode) o, env);
if (tc.i... | java | @FFDCIgnore({ NamingException.class })
@Sensitive
Object resolveObject(Object o, WSName subname) throws NamingException {
ServiceReference<?> ref = null;
try {
if (o instanceof ContextNode)
return new WSContext(userContext, (ContextNode) o, env);
if (tc.i... | [
"@",
"FFDCIgnore",
"(",
"{",
"NamingException",
".",
"class",
"}",
")",
"@",
"Sensitive",
"Object",
"resolveObject",
"(",
"Object",
"o",
",",
"WSName",
"subname",
")",
"throws",
"NamingException",
"{",
"ServiceReference",
"<",
"?",
">",
"ref",
"=",
"null",
... | Perform any needed conversions on an object retrieved from the context tree.
@param o the object to be resolved
@return the resolved object
@throws Exception
@throws NamingException | [
"Perform",
"any",
"needed",
"conversions",
"on",
"an",
"object",
"retrieved",
"from",
"the",
"context",
"tree",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jndi/src/com/ibm/ws/jndi/internal/WSContext.java#L102-L173 |
67,938 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security/src/com/ibm/websphere/security/audit/AuditEvent.java | AuditEvent.send | public void send() throws AuditServiceUnavailableException {
AuditService auditService = SecurityUtils.getAuditService();
if (auditService != null) {
auditService.sendEvent(this);
} else {
throw new AuditServiceUnavailableException();
}
} | java | public void send() throws AuditServiceUnavailableException {
AuditService auditService = SecurityUtils.getAuditService();
if (auditService != null) {
auditService.sendEvent(this);
} else {
throw new AuditServiceUnavailableException();
}
} | [
"public",
"void",
"send",
"(",
")",
"throws",
"AuditServiceUnavailableException",
"{",
"AuditService",
"auditService",
"=",
"SecurityUtils",
".",
"getAuditService",
"(",
")",
";",
"if",
"(",
"auditService",
"!=",
"null",
")",
"{",
"auditService",
".",
"sendEvent",... | Send this event to the audit service for logging.
@throws AuditServiceUnavailableException | [
"Send",
"this",
"event",
"to",
"the",
"audit",
"service",
"for",
"logging",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/websphere/security/audit/AuditEvent.java#L564-L571 |
67,939 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security/src/com/ibm/websphere/security/audit/AuditEvent.java | AuditEvent.isAuditRequired | public static boolean isAuditRequired(String eventType, String outcome) throws AuditServiceUnavailableException {
AuditService auditService = SecurityUtils.getAuditService();
if (auditService != null) {
return auditService.isAuditRequired(eventType, outcome);
} else {
thr... | java | public static boolean isAuditRequired(String eventType, String outcome) throws AuditServiceUnavailableException {
AuditService auditService = SecurityUtils.getAuditService();
if (auditService != null) {
return auditService.isAuditRequired(eventType, outcome);
} else {
thr... | [
"public",
"static",
"boolean",
"isAuditRequired",
"(",
"String",
"eventType",
",",
"String",
"outcome",
")",
"throws",
"AuditServiceUnavailableException",
"{",
"AuditService",
"auditService",
"=",
"SecurityUtils",
".",
"getAuditService",
"(",
")",
";",
"if",
"(",
"a... | Check to see if auditing is required for an event type and outcome.
@param eventType SECURITY_AUTHN, SECURITY_AUTHZ, etc
@param outcome OUTCOME_SUCCESS, OUTCOME_DENIED, etc.
@return true - events with the type/outcome should be audited
false - events with the type/outcome should not be audited
@throws AuditServiceUna... | [
"Check",
"to",
"see",
"if",
"auditing",
"is",
"required",
"for",
"an",
"event",
"type",
"and",
"outcome",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/websphere/security/audit/AuditEvent.java#L595-L602 |
67,940 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security/src/com/ibm/websphere/security/audit/AuditEvent.java | AuditEvent.removeEntriesStartingWith | private void removeEntriesStartingWith(String key) {
synchronized (eventMap) {
Iterator<String> iter = eventMap.keySet().iterator();
while (iter.hasNext()) {
String str = iter.next();
if (str.startsWith(key)) {
iter.remove();
... | java | private void removeEntriesStartingWith(String key) {
synchronized (eventMap) {
Iterator<String> iter = eventMap.keySet().iterator();
while (iter.hasNext()) {
String str = iter.next();
if (str.startsWith(key)) {
iter.remove();
... | [
"private",
"void",
"removeEntriesStartingWith",
"(",
"String",
"key",
")",
"{",
"synchronized",
"(",
"eventMap",
")",
"{",
"Iterator",
"<",
"String",
">",
"iter",
"=",
"eventMap",
".",
"keySet",
"(",
")",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it... | Remove all entries starting with the given key
@param key | [
"Remove",
"all",
"entries",
"starting",
"with",
"the",
"given",
"key"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security/src/com/ibm/websphere/security/audit/AuditEvent.java#L609-L619 |
67,941 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/SimpleLinkedList.java | SimpleLinkedList.put | public void put(SimpleEntry simpleEntry)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "put", simpleEntry);
simpleEntry.previous = last;
simpleEntry.list = this;
if(last != null)
last.next = simpleEntry;
else
first = simpleEntr... | java | public void put(SimpleEntry simpleEntry)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "put", simpleEntry);
simpleEntry.previous = last;
simpleEntry.list = this;
if(last != null)
last.next = simpleEntry;
else
first = simpleEntr... | [
"public",
"void",
"put",
"(",
"SimpleEntry",
"simpleEntry",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"put\"",
",",... | Add an entry to the list
@param simpleEntry | [
"Add",
"an",
"entry",
"to",
"the",
"list"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/SimpleLinkedList.java#L49-L66 |
67,942 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/SimpleLinkedList.java | SimpleLinkedList.printList | protected String printList()
{
String output = "[";
SimpleEntry pointer = first;
int counter = 0;
while((pointer != null) && (counter < 3))
{
output += "@"+Integer.toHexString(pointer.hashCode());
pointer = pointer.next;
if(pointer != null)
output += ", ";
cou... | java | protected String printList()
{
String output = "[";
SimpleEntry pointer = first;
int counter = 0;
while((pointer != null) && (counter < 3))
{
output += "@"+Integer.toHexString(pointer.hashCode());
pointer = pointer.next;
if(pointer != null)
output += ", ";
cou... | [
"protected",
"String",
"printList",
"(",
")",
"{",
"String",
"output",
"=",
"\"[\"",
";",
"SimpleEntry",
"pointer",
"=",
"first",
";",
"int",
"counter",
"=",
"0",
";",
"while",
"(",
"(",
"pointer",
"!=",
"null",
")",
"&&",
"(",
"counter",
"<",
"3",
"... | Return the first and last entries in the list | [
"Return",
"the",
"first",
"and",
"last",
"entries",
"in",
"the",
"list"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist/SimpleLinkedList.java#L85-L107 |
67,943 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPChannel.java | TCPChannel.initializePort | private void initializePort() throws ChannelException {
try {
this.endPoint.initServerSocket();
} catch (IOException ioe) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "TCP Channel: " + getExternalName() + "- Problem occurred wh... | java | private void initializePort() throws ChannelException {
try {
this.endPoint.initServerSocket();
} catch (IOException ioe) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "TCP Channel: " + getExternalName() + "- Problem occurred wh... | [
"private",
"void",
"initializePort",
"(",
")",
"throws",
"ChannelException",
"{",
"try",
"{",
"this",
".",
"endPoint",
".",
"initServerSocket",
"(",
")",
";",
"}",
"catch",
"(",
"IOException",
"ioe",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingE... | Initialize the endpoint listening socket.
@throws ChannelException | [
"Initialize",
"the",
"endpoint",
"listening",
"socket",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPChannel.java#L325-L343 |
67,944 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPChannel.java | TCPChannel.destroyConnLinks | private synchronized void destroyConnLinks() {
// inUse queue is still open to modification
// during this time. Returned iterator is a "weakly consistent"
// I don't believe this has (yet) caused any issues.
for (Queue<TCPConnLink> queue : this.inUse) {
try {
... | java | private synchronized void destroyConnLinks() {
// inUse queue is still open to modification
// during this time. Returned iterator is a "weakly consistent"
// I don't believe this has (yet) caused any issues.
for (Queue<TCPConnLink> queue : this.inUse) {
try {
... | [
"private",
"synchronized",
"void",
"destroyConnLinks",
"(",
")",
"{",
"// inUse queue is still open to modification",
"// during this time. Returned iterator is a \"weakly consistent\"",
"// I don't believe this has (yet) caused any issues.",
"for",
"(",
"Queue",
"<",
"TCPConnLink",
">... | call the destroy on all the TCPConnLink objects related to
this TCPChannel which are currently "in use". | [
"call",
"the",
"destroy",
"on",
"all",
"the",
"TCPConnLink",
"objects",
"related",
"to",
"this",
"TCPChannel",
"which",
"are",
"currently",
"in",
"use",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPChannel.java#L521-L541 |
67,945 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractConfig.java | AbstractConfig.getValue | protected Object getValue(String propertyName, Type propertyType, boolean optional, String defaultString) {
Object value = null;
assertNotClosed();
SourcedValue sourced = getSourcedValue(propertyName, propertyType);
if (sourced != null) {
value = sourced.getValue();
... | java | protected Object getValue(String propertyName, Type propertyType, boolean optional, String defaultString) {
Object value = null;
assertNotClosed();
SourcedValue sourced = getSourcedValue(propertyName, propertyType);
if (sourced != null) {
value = sourced.getValue();
... | [
"protected",
"Object",
"getValue",
"(",
"String",
"propertyName",
",",
"Type",
"propertyType",
",",
"boolean",
"optional",
",",
"String",
"defaultString",
")",
"{",
"Object",
"value",
"=",
"null",
";",
"assertNotClosed",
"(",
")",
";",
"SourcedValue",
"sourced",... | Get the converted value of the given property.
If the property is not found and optional is true then use the default string to create a value to return.
If the property is not found and optional is false then throw an exception.
@param propertyName the property to get
@param propertyType the type to convert to
@par... | [
"Get",
"the",
"converted",
"value",
"of",
"the",
"given",
"property",
".",
"If",
"the",
"property",
"is",
"not",
"found",
"and",
"optional",
"is",
"true",
"then",
"use",
"the",
"default",
"string",
"to",
"create",
"a",
"value",
"to",
"return",
".",
"If",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractConfig.java#L164-L179 |
67,946 | OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/JoblogUtil.java | JoblogUtil.logToJobLogAndTraceOnly | @Trivial
public static void logToJobLogAndTraceOnly(Level level, String msg, Object[] params, Logger traceLogger){
String formattedMsg = getFormattedMessage(msg, params, "Job event.");
logRawMsgToJobLogAndTraceOnly(level, formattedMsg, traceLogger);
} | java | @Trivial
public static void logToJobLogAndTraceOnly(Level level, String msg, Object[] params, Logger traceLogger){
String formattedMsg = getFormattedMessage(msg, params, "Job event.");
logRawMsgToJobLogAndTraceOnly(level, formattedMsg, traceLogger);
} | [
"@",
"Trivial",
"public",
"static",
"void",
"logToJobLogAndTraceOnly",
"(",
"Level",
"level",
",",
"String",
"msg",
",",
"Object",
"[",
"]",
"params",
",",
"Logger",
"traceLogger",
")",
"{",
"String",
"formattedMsg",
"=",
"getFormattedMessage",
"(",
"msg",
","... | Logs the message to joblog and trace.
If level > FINE, this method will reduce the level to FINE while logging to trace
to prevent the message to be logged in console.log and messages.log file
Joblog messages will be logged as per original logging level
Use this method when you don't want a very verbose stack in mes... | [
"Logs",
"the",
"message",
"to",
"joblog",
"and",
"trace",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/JoblogUtil.java#L50-L54 |
67,947 | OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/JoblogUtil.java | JoblogUtil.logRawMsgToJobLogAndTraceOnly | @Trivial
public static void logRawMsgToJobLogAndTraceOnly(Level level, String msg, Logger traceLogger){
if(level.intValue() > Level.FINE.intValue()){
traceLogger.log(Level.FINE, msg);
logToJoblogIfNotTraceLoggable(Level.FINE, msg, traceLogger);
}
else{
traceLogger.log(level, msg);
logToJoblogIfNotTra... | java | @Trivial
public static void logRawMsgToJobLogAndTraceOnly(Level level, String msg, Logger traceLogger){
if(level.intValue() > Level.FINE.intValue()){
traceLogger.log(Level.FINE, msg);
logToJoblogIfNotTraceLoggable(Level.FINE, msg, traceLogger);
}
else{
traceLogger.log(level, msg);
logToJoblogIfNotTra... | [
"@",
"Trivial",
"public",
"static",
"void",
"logRawMsgToJobLogAndTraceOnly",
"(",
"Level",
"level",
",",
"String",
"msg",
",",
"Logger",
"traceLogger",
")",
"{",
"if",
"(",
"level",
".",
"intValue",
"(",
")",
">",
"Level",
".",
"FINE",
".",
"intValue",
"("... | logs the message to joblog and trace.
If Level > FINE, this method will reduce the level to FINE while logging to trace.log
to prevent the message to be logged in console.log and messages.log file
Joblog messages will be logged as per supplied logging level
Use this method when you don't want a very verbose stack in... | [
"logs",
"the",
"message",
"to",
"joblog",
"and",
"trace",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/ws/JoblogUtil.java#L72-L83 |
67,948 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java | CompatibilityMap.toEncodedForm | public byte[] toEncodedForm() {
if (encodedForm == null) {
encodedForm = new byte[encodedSize()];
ArrayUtil.writeLong(encodedForm, 0, accessSchemaId);
encode(encodedForm, new int[] { 8, encodedForm.length });
}
return encodedForm;
} | java | public byte[] toEncodedForm() {
if (encodedForm == null) {
encodedForm = new byte[encodedSize()];
ArrayUtil.writeLong(encodedForm, 0, accessSchemaId);
encode(encodedForm, new int[] { 8, encodedForm.length });
}
return encodedForm;
} | [
"public",
"byte",
"[",
"]",
"toEncodedForm",
"(",
")",
"{",
"if",
"(",
"encodedForm",
"==",
"null",
")",
"{",
"encodedForm",
"=",
"new",
"byte",
"[",
"encodedSize",
"(",
")",
"]",
";",
"ArrayUtil",
".",
"writeLong",
"(",
"encodedForm",
",",
"0",
",",
... | Turn an CompatibilityMap into its encoded form
@return the encoded form as a byte array | [
"Turn",
"an",
"CompatibilityMap",
"into",
"its",
"encoded",
"form"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java#L131-L138 |
67,949 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java | CompatibilityMap.encode | private void encode(byte[] frame, int[] limits) {
JSType.setCount(frame, limits, indices.length);
for (int i = 0; i < indices.length; i++)
JSType.setCount(frame, limits, indices[i]);
JSType.setCount(frame, limits, varBias);
JSType.setCount(frame, limits, setCases.length);
for (int i = 0; i < s... | java | private void encode(byte[] frame, int[] limits) {
JSType.setCount(frame, limits, indices.length);
for (int i = 0; i < indices.length; i++)
JSType.setCount(frame, limits, indices[i]);
JSType.setCount(frame, limits, varBias);
JSType.setCount(frame, limits, setCases.length);
for (int i = 0; i < s... | [
"private",
"void",
"encode",
"(",
"byte",
"[",
"]",
"frame",
",",
"int",
"[",
"]",
"limits",
")",
"{",
"JSType",
".",
"setCount",
"(",
"frame",
",",
"limits",
",",
"indices",
".",
"length",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
... | Encode subroutine used by toEncodedForm | [
"Encode",
"subroutine",
"used",
"by",
"toEncodedForm"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java#L141-L168 |
67,950 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java | CompatibilityMap.encodedSize | private int encodedSize() {
int ans =
16 /* for accessSchemaID, indices.length, varBias, setCases.length,
and getCases.length */
+ 2*indices.length; // for the elements in indices
for (int i = 0; i < setCases.length; i++) {
int[] cases = setCases[i];
ans += 2; /... | java | private int encodedSize() {
int ans =
16 /* for accessSchemaID, indices.length, varBias, setCases.length,
and getCases.length */
+ 2*indices.length; // for the elements in indices
for (int i = 0; i < setCases.length; i++) {
int[] cases = setCases[i];
ans += 2; /... | [
"private",
"int",
"encodedSize",
"(",
")",
"{",
"int",
"ans",
"=",
"16",
"/* for accessSchemaID, indices.length, varBias, setCases.length,\n and getCases.length */",
"+",
"2",
"*",
"indices",
".",
"length",
";",
"// for the elements in indices",
"for",
... | Find the number of bytes it takes to encode this CompatibilityMap | [
"Find",
"the",
"number",
"of",
"bytes",
"it",
"takes",
"to",
"encode",
"this",
"CompatibilityMap"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java#L171-L189 |
67,951 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java | CompatibilityMap.violation | private static void violation(JMFType from, JMFType to) throws JMFSchemaViolationException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JmfTr.debug(tc, "Violation:"
+ " from = " + from.getFeatureName() + " : " + from
... | java | private static void violation(JMFType from, JMFType to) throws JMFSchemaViolationException {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JmfTr.debug(tc, "Violation:"
+ " from = " + from.getFeatureName() + " : " + from
... | [
"private",
"static",
"void",
"violation",
"(",
"JMFType",
"from",
",",
"JMFType",
"to",
")",
"throws",
"JMFSchemaViolationException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Jmf... | Handle violation of the compatibility rules by throwing an informative exception | [
"Handle",
"violation",
"of",
"the",
"compatibility",
"rules",
"by",
"throwing",
"an",
"informative",
"exception"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java#L229-L235 |
67,952 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java | CompatibilityMap.recordOnePair | private void recordOnePair(JSField access, JSchema accSchema, JSField encoding,
JSchema encSchema)
{
int acc = access.getAccessor(accSchema);
if (acc >= indices.length)
return;
indices[acc] = encoding.getAccessor(encSchema);
} | java | private void recordOnePair(JSField access, JSchema accSchema, JSField encoding,
JSchema encSchema)
{
int acc = access.getAccessor(accSchema);
if (acc >= indices.length)
return;
indices[acc] = encoding.getAccessor(encSchema);
} | [
"private",
"void",
"recordOnePair",
"(",
"JSField",
"access",
",",
"JSchema",
"accSchema",
",",
"JSField",
"encoding",
",",
"JSchema",
"encSchema",
")",
"{",
"int",
"acc",
"=",
"access",
".",
"getAccessor",
"(",
"accSchema",
")",
";",
"if",
"(",
"acc",
">=... | later when maps are built for variant box schemas. | [
"later",
"when",
"maps",
"are",
"built",
"for",
"variant",
"box",
"schemas",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java#L340-L347 |
67,953 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java | CompatibilityMap.checkForDeletingVariant | private void checkForDeletingVariant(JMFType nonVar, JSVariant var, boolean varIsAccess,
JSchema accSchema, JSchema encSchema) throws JMFSchemaViolationException
{
// Deleting variant always has exactly two cases
if (var.getCaseCount() != 2) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebug... | java | private void checkForDeletingVariant(JMFType nonVar, JSVariant var, boolean varIsAccess,
JSchema accSchema, JSchema encSchema) throws JMFSchemaViolationException
{
// Deleting variant always has exactly two cases
if (var.getCaseCount() != 2) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebug... | [
"private",
"void",
"checkForDeletingVariant",
"(",
"JMFType",
"nonVar",
",",
"JSVariant",
"var",
",",
"boolean",
"varIsAccess",
",",
"JSchema",
"accSchema",
",",
"JSchema",
"encSchema",
")",
"throws",
"JMFSchemaViolationException",
"{",
"// Deleting variant always has exa... | info stripping off the deleting variant. | [
"info",
"stripping",
"off",
"the",
"deleting",
"variant",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java#L357-L393 |
67,954 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java | CompatibilityMap.checkExtraFields | private static void checkExtraFields(JSTuple tuple, int startCol, int count) throws JMFSchemaViolationException {
for (int i = startCol; i < count; i++) {
JMFType field = tuple.getField(i);
if (field instanceof JSVariant) {
JMFType firstCase = ((JSVariant)field).getCase(0);
if (firstCase... | java | private static void checkExtraFields(JSTuple tuple, int startCol, int count) throws JMFSchemaViolationException {
for (int i = startCol; i < count; i++) {
JMFType field = tuple.getField(i);
if (field instanceof JSVariant) {
JMFType firstCase = ((JSVariant)field).getCase(0);
if (firstCase... | [
"private",
"static",
"void",
"checkExtraFields",
"(",
"JSTuple",
"tuple",
",",
"int",
"startCol",
",",
"int",
"count",
")",
"throws",
"JMFSchemaViolationException",
"{",
"for",
"(",
"int",
"i",
"=",
"startCol",
";",
"i",
"<",
"count",
";",
"i",
"++",
")",
... | Check the extra columns in a tuple to make sure they are all defaultable | [
"Check",
"the",
"extra",
"columns",
"in",
"a",
"tuple",
"to",
"make",
"sure",
"they",
"are",
"all",
"defaultable"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/CompatibilityMap.java#L476-L487 |
67,955 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/archaius/cache/TypeContainer.java | TypeContainer.asType | public StampedValue asType(final Type type) {
StampedValue cachedValue = null;
//looping around a list is probably quicker than having a map since there are probably only one or two different
//types in use at any one time
for (StampedValue value : typeCache) {
if (value.ge... | java | public StampedValue asType(final Type type) {
StampedValue cachedValue = null;
//looping around a list is probably quicker than having a map since there are probably only one or two different
//types in use at any one time
for (StampedValue value : typeCache) {
if (value.ge... | [
"public",
"StampedValue",
"asType",
"(",
"final",
"Type",
"type",
")",
"{",
"StampedValue",
"cachedValue",
"=",
"null",
";",
"//looping around a list is probably quicker than having a map since there are probably only one or two different",
"//types in use at any one time",
"for",
... | Check if a StampedValue already exists for the type, if it does, return it,
otherwise create a new one and add it
@param type
@return | [
"Check",
"if",
"a",
"StampedValue",
"already",
"exists",
"for",
"the",
"type",
"if",
"it",
"does",
"return",
"it",
"otherwise",
"create",
"a",
"new",
"one",
"and",
"add",
"it"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/archaius/cache/TypeContainer.java#L74-L93 |
67,956 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java | ComponentSupport.finalizeForDeletion | @Deprecated
public static void finalizeForDeletion(UIComponent component)
{
// remove any existing marks of deletion
component.getAttributes().remove(MARK_DELETED);
// finally remove any children marked as deleted
if (component.getChildCount() > 0)
{
for (Ite... | java | @Deprecated
public static void finalizeForDeletion(UIComponent component)
{
// remove any existing marks of deletion
component.getAttributes().remove(MARK_DELETED);
// finally remove any children marked as deleted
if (component.getChildCount() > 0)
{
for (Ite... | [
"@",
"Deprecated",
"public",
"static",
"void",
"finalizeForDeletion",
"(",
"UIComponent",
"component",
")",
"{",
"// remove any existing marks of deletion",
"component",
".",
"getAttributes",
"(",
")",
".",
"remove",
"(",
"MARK_DELETED",
")",
";",
"// finally remove any... | Used in conjunction with markForDeletion where any UIComponent marked will be removed.
@deprecated use FaceletCompositionContext.finalizeForDeletion
@param component
UIComponent to finalize | [
"Used",
"in",
"conjunction",
"with",
"markForDeletion",
"where",
"any",
"UIComponent",
"marked",
"will",
"be",
"removed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java#L108-L141 |
67,957 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java | ComponentSupport.findChild | public static UIComponent findChild(UIComponent parent, String id)
{
int childCount = parent.getChildCount();
if (childCount > 0)
{
for (int i = 0; i < childCount; i++)
{
UIComponent child = parent.getChildren().get(i);
if (id.equals(ch... | java | public static UIComponent findChild(UIComponent parent, String id)
{
int childCount = parent.getChildCount();
if (childCount > 0)
{
for (int i = 0; i < childCount; i++)
{
UIComponent child = parent.getChildren().get(i);
if (id.equals(ch... | [
"public",
"static",
"UIComponent",
"findChild",
"(",
"UIComponent",
"parent",
",",
"String",
"id",
")",
"{",
"int",
"childCount",
"=",
"parent",
".",
"getChildCount",
"(",
")",
";",
"if",
"(",
"childCount",
">",
"0",
")",
"{",
"for",
"(",
"int",
"i",
"... | A lighter-weight version of UIComponent's findChild.
@param parent
parent to start searching from
@param id
to match to
@return UIComponent found or null | [
"A",
"lighter",
"-",
"weight",
"version",
"of",
"UIComponent",
"s",
"findChild",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java#L152-L167 |
67,958 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java | ComponentSupport.findChildByTagId | public static UIComponent findChildByTagId(UIComponent parent, String id)
{
Iterator<UIComponent> itr = null;
if (parent.getChildCount() > 0)
{
for (int i = 0, childCount = parent.getChildCount(); i < childCount; i ++)
{
UIComponent child = parent.getC... | java | public static UIComponent findChildByTagId(UIComponent parent, String id)
{
Iterator<UIComponent> itr = null;
if (parent.getChildCount() > 0)
{
for (int i = 0, childCount = parent.getChildCount(); i < childCount; i ++)
{
UIComponent child = parent.getC... | [
"public",
"static",
"UIComponent",
"findChildByTagId",
"(",
"UIComponent",
"parent",
",",
"String",
"id",
")",
"{",
"Iterator",
"<",
"UIComponent",
">",
"itr",
"=",
"null",
";",
"if",
"(",
"parent",
".",
"getChildCount",
"(",
")",
">",
"0",
")",
"{",
"fo... | By TagId, find Child
@param parent
@param id
@return | [
"By",
"TagId",
"find",
"Child"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java#L286-L343 |
67,959 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java | ComponentSupport.getLocale | public static Locale getLocale(FaceletContext ctx, TagAttribute attr) throws TagAttributeException
{
Object obj = attr.getObject(ctx);
if (obj instanceof Locale)
{
return (Locale) obj;
}
if (obj instanceof String)
{
String s = (String) obj;
... | java | public static Locale getLocale(FaceletContext ctx, TagAttribute attr) throws TagAttributeException
{
Object obj = attr.getObject(ctx);
if (obj instanceof Locale)
{
return (Locale) obj;
}
if (obj instanceof String)
{
String s = (String) obj;
... | [
"public",
"static",
"Locale",
"getLocale",
"(",
"FaceletContext",
"ctx",
",",
"TagAttribute",
"attr",
")",
"throws",
"TagAttributeException",
"{",
"Object",
"obj",
"=",
"attr",
".",
"getObject",
"(",
"ctx",
")",
";",
"if",
"(",
"obj",
"instanceof",
"Locale",
... | According to JSF 1.2 tag specs, this helper method will use the TagAttribute passed in determining the Locale
intended.
@param ctx
FaceletContext to evaluate from
@param attr
TagAttribute representing a Locale
@return Locale found
@throws TagAttributeException
if the Locale cannot be determined | [
"According",
"to",
"JSF",
"1",
".",
"2",
"tag",
"specs",
"this",
"helper",
"method",
"will",
"use",
"the",
"TagAttribute",
"passed",
"in",
"determining",
"the",
"Locale",
"intended",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java#L405-L436 |
67,960 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java | ComponentSupport.getViewRoot | public static UIViewRoot getViewRoot(FaceletContext ctx, UIComponent parent)
{
UIComponent c = parent;
do
{
if (c instanceof UIViewRoot)
{
return (UIViewRoot) c;
}
else
{
c = c.getParent();
... | java | public static UIViewRoot getViewRoot(FaceletContext ctx, UIComponent parent)
{
UIComponent c = parent;
do
{
if (c instanceof UIViewRoot)
{
return (UIViewRoot) c;
}
else
{
c = c.getParent();
... | [
"public",
"static",
"UIViewRoot",
"getViewRoot",
"(",
"FaceletContext",
"ctx",
",",
"UIComponent",
"parent",
")",
"{",
"UIComponent",
"c",
"=",
"parent",
";",
"do",
"{",
"if",
"(",
"c",
"instanceof",
"UIViewRoot",
")",
"{",
"return",
"(",
"UIViewRoot",
")",
... | Tries to walk up the parent to find the UIViewRoot, if not found, then go to FaceletContext's FacesContext for
the view root.
@param ctx
FaceletContext
@param parent
UIComponent to search from
@return UIViewRoot instance for this evaluation | [
"Tries",
"to",
"walk",
"up",
"the",
"parent",
"to",
"find",
"the",
"UIViewRoot",
"if",
"not",
"found",
"then",
"go",
"to",
"FaceletContext",
"s",
"FacesContext",
"for",
"the",
"view",
"root",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java#L448-L469 |
67,961 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java | ComponentSupport.markForDeletion | @Deprecated
public static void markForDeletion(UIComponent component)
{
// flag this component as deleted
component.getAttributes().put(MARK_DELETED, Boolean.TRUE);
Iterator<UIComponent> iter = component.getFacetsAndChildren();
while (iter.hasNext())
{
UIComp... | java | @Deprecated
public static void markForDeletion(UIComponent component)
{
// flag this component as deleted
component.getAttributes().put(MARK_DELETED, Boolean.TRUE);
Iterator<UIComponent> iter = component.getFacetsAndChildren();
while (iter.hasNext())
{
UIComp... | [
"@",
"Deprecated",
"public",
"static",
"void",
"markForDeletion",
"(",
"UIComponent",
"component",
")",
"{",
"// flag this component as deleted",
"component",
".",
"getAttributes",
"(",
")",
".",
"put",
"(",
"MARK_DELETED",
",",
"Boolean",
".",
"TRUE",
")",
";",
... | Marks all direct children and Facets with an attribute for deletion.
@deprecated use FaceletCompositionContext.markForDeletion
@see #finalizeForDeletion(UIComponent)
@param component
UIComponent to mark | [
"Marks",
"all",
"direct",
"children",
"and",
"Facets",
"with",
"an",
"attribute",
"for",
"deletion",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java#L479-L494 |
67,962 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java | ComponentSupport.createFacetUIPanel | private static UIComponent createFacetUIPanel(FaceletContext ctx, UIComponent parent, String facetName)
{
FacesContext facesContext = ctx.getFacesContext();
UIComponent panel = facesContext.getApplication().createComponent(facesContext, UIPanel.COMPONENT_TYPE, null);
// The panel cr... | java | private static UIComponent createFacetUIPanel(FaceletContext ctx, UIComponent parent, String facetName)
{
FacesContext facesContext = ctx.getFacesContext();
UIComponent panel = facesContext.getApplication().createComponent(facesContext, UIPanel.COMPONENT_TYPE, null);
// The panel cr... | [
"private",
"static",
"UIComponent",
"createFacetUIPanel",
"(",
"FaceletContext",
"ctx",
",",
"UIComponent",
"parent",
",",
"String",
"facetName",
")",
"{",
"FacesContext",
"facesContext",
"=",
"ctx",
".",
"getFacesContext",
"(",
")",
";",
"UIComponent",
"panel",
"... | Create a new UIPanel for the use as a dynamically
created container for multiple children in a facet.
Duplicate in javax.faces.webapp.UIComponentClassicTagBase.
@param facesContext
@return | [
"Create",
"a",
"new",
"UIPanel",
"for",
"the",
"use",
"as",
"a",
"dynamically",
"created",
"container",
"for",
"multiple",
"children",
"in",
"a",
"facet",
".",
"Duplicate",
"in",
"javax",
".",
"faces",
".",
"webapp",
".",
"UIComponentClassicTagBase",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/ComponentSupport.java#L577-L618 |
67,963 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/PolicyExecutorProvider.java | PolicyExecutorProvider.create | public PolicyExecutor create(Map<String, Object> props) {
PolicyExecutor executor = new PolicyExecutorImpl((ExecutorServiceImpl) globalExecutor, (String) props.get("config.displayId"), null, policyExecutors);
executor.updateConfig(props);
return executor;
} | java | public PolicyExecutor create(Map<String, Object> props) {
PolicyExecutor executor = new PolicyExecutorImpl((ExecutorServiceImpl) globalExecutor, (String) props.get("config.displayId"), null, policyExecutors);
executor.updateConfig(props);
return executor;
} | [
"public",
"PolicyExecutor",
"create",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"props",
")",
"{",
"PolicyExecutor",
"executor",
"=",
"new",
"PolicyExecutorImpl",
"(",
"(",
"ExecutorServiceImpl",
")",
"globalExecutor",
",",
"(",
"String",
")",
"props",
".... | Creates a new policy executor instance and initializes it per the specified OSGi service component properties.
The config.displayId of the OSGi service component properties is used as the unique identifier.
@param props properties for a configuration-based OSGi service component instance. For example, an instance of c... | [
"Creates",
"a",
"new",
"policy",
"executor",
"instance",
"and",
"initializes",
"it",
"per",
"the",
"specified",
"OSGi",
"service",
"component",
"properties",
".",
"The",
"config",
".",
"displayId",
"of",
"the",
"OSGi",
"service",
"component",
"properties",
"is",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/PolicyExecutorProvider.java#L66-L70 |
67,964 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/PolicyExecutorProvider.java | PolicyExecutorProvider.create | public PolicyExecutor create(String identifier) {
return new PolicyExecutorImpl((ExecutorServiceImpl) globalExecutor, "PolicyExecutorProvider-" + identifier, null, policyExecutors);
} | java | public PolicyExecutor create(String identifier) {
return new PolicyExecutorImpl((ExecutorServiceImpl) globalExecutor, "PolicyExecutorProvider-" + identifier, null, policyExecutors);
} | [
"public",
"PolicyExecutor",
"create",
"(",
"String",
"identifier",
")",
"{",
"return",
"new",
"PolicyExecutorImpl",
"(",
"(",
"ExecutorServiceImpl",
")",
"globalExecutor",
",",
"\"PolicyExecutorProvider-\"",
"+",
"identifier",
",",
"null",
",",
"policyExecutors",
")",... | Creates a new policy executor instance.
@param identifier unique identifier for the new instance, to be used for monitoring and problem determination.
Note: The prefix, PolicyExecutorProvider-, is prepended to the identifier.
@return a new policy executor instance.
@throws IllegalStateException if an instance with the... | [
"Creates",
"a",
"new",
"policy",
"executor",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/PolicyExecutorProvider.java#L81-L83 |
67,965 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/PolicyExecutorProvider.java | PolicyExecutorProvider.create | public PolicyExecutor create(String fullIdentifier, String owner) {
return new PolicyExecutorImpl((ExecutorServiceImpl) globalExecutor, fullIdentifier, owner, policyExecutors);
} | java | public PolicyExecutor create(String fullIdentifier, String owner) {
return new PolicyExecutorImpl((ExecutorServiceImpl) globalExecutor, fullIdentifier, owner, policyExecutors);
} | [
"public",
"PolicyExecutor",
"create",
"(",
"String",
"fullIdentifier",
",",
"String",
"owner",
")",
"{",
"return",
"new",
"PolicyExecutorImpl",
"(",
"(",
"ExecutorServiceImpl",
")",
"globalExecutor",
",",
"fullIdentifier",
",",
"owner",
",",
"policyExecutors",
")",
... | Creates a new policy executor instance for use by a single application.
Policy executors owned by this application can be shut down via the shutdownNow method of this class.
@param fullIdentifier unique identifier for the new instance, to be used for monitoring and problem determination.
@param owner name of applicati... | [
"Creates",
"a",
"new",
"policy",
"executor",
"instance",
"for",
"use",
"by",
"a",
"single",
"application",
".",
"Policy",
"executors",
"owned",
"by",
"this",
"application",
"can",
"be",
"shut",
"down",
"via",
"the",
"shutdownNow",
"method",
"of",
"this",
"cl... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/PolicyExecutorProvider.java#L95-L97 |
67,966 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/FileBeanStore.java | FileBeanStore.getGZIPOutputStream | public GZIPOutputStream getGZIPOutputStream(BeanId beanId)
throws CSIException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getOutputStream", beanId);
final String fileName = getPortable... | java | public GZIPOutputStream getGZIPOutputStream(BeanId beanId)
throws CSIException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getOutputStream", beanId);
final String fileName = getPortable... | [
"public",
"GZIPOutputStream",
"getGZIPOutputStream",
"(",
"BeanId",
"beanId",
")",
"throws",
"CSIException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
"isEntryEn... | Get object ouput stream suitable for reading persistent state
associated with given key. | [
"Get",
"object",
"ouput",
"stream",
"suitable",
"for",
"reading",
"persistent",
"state",
"associated",
"with",
"given",
"key",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/FileBeanStore.java#L273-L310 |
67,967 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/FileBeanStore.java | FileBeanStore.getPortableFilename | private String getPortableFilename(BeanId beanId)
{
// Historically, this method returned the equivalent of
// appendPortableFilenameString(beanId.toString()), where BeanId.toString
// returned "BeanId(" + j2eeName + ", " + pkey + ")", which translates to
// "BeanId_" + j2eeName + "_... | java | private String getPortableFilename(BeanId beanId)
{
// Historically, this method returned the equivalent of
// appendPortableFilenameString(beanId.toString()), where BeanId.toString
// returned "BeanId(" + j2eeName + ", " + pkey + ")", which translates to
// "BeanId_" + j2eeName + "_... | [
"private",
"String",
"getPortableFilename",
"(",
"BeanId",
"beanId",
")",
"{",
"// Historically, this method returned the equivalent of",
"// appendPortableFilenameString(beanId.toString()), where BeanId.toString",
"// returned \"BeanId(\" + j2eeName + \", \" + pkey + \")\", which translates to"... | Create a "safe" file name given the BeanId. There are a number of
characters which can cause problems on different platforms. A safe
file name will container only the following characters
a-z, A-Z, _, -, .
All other characters will get converted to a _ | [
"Create",
"a",
"safe",
"file",
"name",
"given",
"the",
"BeanId",
".",
"There",
"are",
"a",
"number",
"of",
"characters",
"which",
"can",
"cause",
"problems",
"on",
"different",
"platforms",
".",
"A",
"safe",
"file",
"name",
"will",
"container",
"only",
"th... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/FileBeanStore.java#L359-L373 |
67,968 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/FileBeanStore.java | FileBeanStore.getOutputStream | public OutputStream getOutputStream(BeanId beanId)
throws CSIException
{
final String fileName = getPortableFilename(beanId);
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getOutputStream: k... | java | public OutputStream getOutputStream(BeanId beanId)
throws CSIException
{
final String fileName = getPortableFilename(beanId);
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getOutputStream: k... | [
"public",
"OutputStream",
"getOutputStream",
"(",
"BeanId",
"beanId",
")",
"throws",
"CSIException",
"{",
"final",
"String",
"fileName",
"=",
"getPortableFilename",
"(",
"beanId",
")",
";",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEn... | LIDB2018-1
new method for just dumping in the byte array to a file,
byte array in gzip format.
@param key the BeanId for this SFSB
@return an OutputStream | [
"LIDB2018",
"-",
"1",
"new",
"method",
"for",
"just",
"dumping",
"in",
"the",
"byte",
"array",
"to",
"a",
"file",
"byte",
"array",
"in",
"gzip",
"format",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/csi/FileBeanStore.java#L401-L439 |
67,969 | 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 |
67,970 | 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 |
67,971 | 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 |
67,972 | 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 |
67,973 | 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 |
67,974 | 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 |
67,975 | 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 |
67,976 | 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 |
67,977 | 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 |
67,978 | 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 |
67,979 | 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 |
67,980 | 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 |
67,981 | 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 |
67,982 | 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 |
67,983 | 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 |
67,984 | 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 |
67,985 | 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 |
67,986 | 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 |
67,987 | 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 |
67,988 | 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 |
67,989 | 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 |
67,990 | 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 |
67,991 | 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 |
67,992 | 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 |
67,993 | 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 |
67,994 | 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 |
67,995 | 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 |
67,996 | 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 |
67,997 | 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 |
67,998 | 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 |
67,999 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.