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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
66,700 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java | Neighbour.setRequestedProxySubscriptions | void setRequestedProxySubscriptions()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setRequestedProxySubscriptions");
MPAlarmManager manager = iProxyHandler.getMessageProcessor().getAlarmManager();
iAlarm = manager.create(REQUEST_TIMER, this);
synchronized... | java | void setRequestedProxySubscriptions()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setRequestedProxySubscriptions");
MPAlarmManager manager = iProxyHandler.getMessageProcessor().getAlarmManager();
iAlarm = manager.create(REQUEST_TIMER, this);
synchronized... | [
"void",
"setRequestedProxySubscriptions",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"setRequestedProxySubscriptions\"",
")",
";",
... | Indicate that we have sent a request message to this neighbour.
This will mean that a timer is created for 5 seconds waiting
for a response. If no response is received, then the timer will pop
and log a console message to indicate that the pubsub topology will
not be consistent.
To remove the Timer, this neighbour m... | [
"Indicate",
"that",
"we",
"have",
"sent",
"a",
"request",
"message",
"to",
"this",
"neighbour",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L1176-L1192 |
66,701 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java | Neighbour.setRequestedProxySubscriptionsResponded | void setRequestedProxySubscriptionsResponded()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setRequestedProxySubscriptionsResponded");
synchronized (this)
{
iRequestSent = false;
if (!iAlarmCancelled)
iAlarm.cancel();
iAlarmCancelle... | java | void setRequestedProxySubscriptionsResponded()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "setRequestedProxySubscriptionsResponded");
synchronized (this)
{
iRequestSent = false;
if (!iAlarmCancelled)
iAlarm.cancel();
iAlarmCancelle... | [
"void",
"setRequestedProxySubscriptionsResponded",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"setRequestedProxySubscriptionsResponded\"... | The request for proxy subscriptions was responded to.
Cancels the Alarm that was created.
Updates the underlying object to indicate that a response was received.
@param transaction the transaction to do the update under | [
"The",
"request",
"for",
"proxy",
"subscriptions",
"was",
"responded",
"to",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L1202-L1229 |
66,702 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java | Neighbour.wasProxyRequestSent | boolean wasProxyRequestSent()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "wasProxyRequestSent");
SibTr.exit(tc, "wasProxyRequestSent", new Boolean(iRequestSent));
}
return iRequestSent;
} | java | boolean wasProxyRequestSent()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "wasProxyRequestSent");
SibTr.exit(tc, "wasProxyRequestSent", new Boolean(iRequestSent));
}
return iRequestSent;
} | [
"boolean",
"wasProxyRequestSent",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"wasProxyRequestSent\"",
")",
";",
"SibTr",
... | If a request message was sent to this neighbour for the
proxy subscriptions
@return true if a request was sent. | [
"If",
"a",
"request",
"message",
"was",
"sent",
"to",
"this",
"neighbour",
"for",
"the",
"proxy",
"subscriptions"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L1237-L1245 |
66,703 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java | Neighbour.deleteSystemDestinations | protected void deleteSystemDestinations()
throws SIConnectionLostException, SIResourceException, SIErrorException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "deleteSystemDestinations");
// If the producer session hasn't been closed, close it now
synchronize... | java | protected void deleteSystemDestinations()
throws SIConnectionLostException, SIResourceException, SIErrorException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "deleteSystemDestinations");
// If the producer session hasn't been closed, close it now
synchronize... | [
"protected",
"void",
"deleteSystemDestinations",
"(",
")",
"throws",
"SIConnectionLostException",
",",
"SIResourceException",
",",
"SIErrorException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
... | Deletes all remote system destinations that are on referencing the me that this
neighbour is referenced too.
This will only be called when the remote ME is to be deleted. This method
also cancels any alarm that may have been set so it doesn't fire at some point
in the future.
@throws SICoreException | [
"Deletes",
"all",
"remote",
"system",
"destinations",
"that",
"are",
"on",
"referencing",
"the",
"me",
"that",
"this",
"neighbour",
"is",
"referenced",
"too",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L1322-L1370 |
66,704 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java | Neighbour.checkForeignSecurityAttributesChanged | private boolean checkForeignSecurityAttributesChanged(MESubscription sub,
boolean foreignSecuredProxy,
String MESubUserId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkForeignSecurityAttributesChan... | java | private boolean checkForeignSecurityAttributesChanged(MESubscription sub,
boolean foreignSecuredProxy,
String MESubUserId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "checkForeignSecurityAttributesChan... | [
"private",
"boolean",
"checkForeignSecurityAttributesChanged",
"(",
"MESubscription",
"sub",
",",
"boolean",
"foreignSecuredProxy",
",",
"String",
"MESubUserId",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnab... | checkForeignSecurityAttributesChanged is called in order to determine
whether security attributes have changed.
@param sub The stored subscription
@param foreignSecuredProxy Flag to indicate whether the new proxy sub
originated from a foreign bus where the home
bus is secured.
@param MESubUserId Userid to be stored... | [
"checkForeignSecurityAttributesChanged",
"is",
"called",
"in",
"order",
"to",
"determine",
"whether",
"security",
"attributes",
"have",
"changed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L1384-L1451 |
66,705 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java | Neighbour.resetListFailed | synchronized void resetListFailed()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "resetListFailed");
iRequestFailed = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "resetListFailed");
} | java | synchronized void resetListFailed()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "resetListFailed");
iRequestFailed = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "resetListFailed");
} | [
"synchronized",
"void",
"resetListFailed",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"resetListFailed\"",
")",
";",
"iRequestFa... | Method indicates that the reset list failed - update the alarm to indicate that this failed. | [
"Method",
"indicates",
"that",
"the",
"reset",
"list",
"failed",
"-",
"update",
"the",
"alarm",
"to",
"indicate",
"that",
"this",
"failed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/Neighbour.java#L1456-L1465 |
66,706 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/InfoImpl.java | InfoImpl.isDeclaredAnnotationWithin | @Override
public boolean isDeclaredAnnotationWithin(Collection<String> annotationNames) {
if (declaredAnnotations != null) {
for (AnnotationInfo annotation : declaredAnnotations) {
if (annotationNames.contains(annotation.getAnnotationClassName())) {
return tru... | java | @Override
public boolean isDeclaredAnnotationWithin(Collection<String> annotationNames) {
if (declaredAnnotations != null) {
for (AnnotationInfo annotation : declaredAnnotations) {
if (annotationNames.contains(annotation.getAnnotationClassName())) {
return tru... | [
"@",
"Override",
"public",
"boolean",
"isDeclaredAnnotationWithin",
"(",
"Collection",
"<",
"String",
">",
"annotationNames",
")",
"{",
"if",
"(",
"declaredAnnotations",
"!=",
"null",
")",
"{",
"for",
"(",
"AnnotationInfo",
"annotation",
":",
"declaredAnnotations",
... | Optimized to iterate across the declared annotations first. | [
"Optimized",
"to",
"iterate",
"across",
"the",
"declared",
"annotations",
"first",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/info/internal/InfoImpl.java#L194-L205 |
66,707 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/RAWrapperEECImpl.java | RAWrapperEECImpl.readObject | private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
ObjectInputStream.GetField getField = s.readFields();
version = getField.get("version", 1);
resourceAdapterKey = (String) getField.get("resourceAdapterKey", null);
} | java | private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
ObjectInputStream.GetField getField = s.readFields();
version = getField.get("version", 1);
resourceAdapterKey = (String) getField.get("resourceAdapterKey", null);
} | [
"private",
"void",
"readObject",
"(",
"ObjectInputStream",
"s",
")",
"throws",
"IOException",
",",
"ClassNotFoundException",
"{",
"ObjectInputStream",
".",
"GetField",
"getField",
"=",
"s",
".",
"readFields",
"(",
")",
";",
"version",
"=",
"getField",
".",
"get"... | Overrides the default deserialization. | [
"Overrides",
"the",
"default",
"deserialization",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/RAWrapperEECImpl.java#L135-L140 |
66,708 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/RAWrapperEECImpl.java | RAWrapperEECImpl.writeObject | private void writeObject(ObjectOutputStream s) throws IOException {
ObjectOutputStream.PutField putField = s.putFields();
putField.put("version", version);
putField.put("resourceAdapterKey", resourceAdapterKey);
s.writeFields();
} | java | private void writeObject(ObjectOutputStream s) throws IOException {
ObjectOutputStream.PutField putField = s.putFields();
putField.put("version", version);
putField.put("resourceAdapterKey", resourceAdapterKey);
s.writeFields();
} | [
"private",
"void",
"writeObject",
"(",
"ObjectOutputStream",
"s",
")",
"throws",
"IOException",
"{",
"ObjectOutputStream",
".",
"PutField",
"putField",
"=",
"s",
".",
"putFields",
"(",
")",
";",
"putField",
".",
"put",
"(",
"\"version\"",
",",
"version",
")",
... | Overrides the default serialization. | [
"Overrides",
"the",
"default",
"serialization",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/RAWrapperEECImpl.java#L161-L166 |
66,709 | OpenLiberty/open-liberty | dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSControllerImpl.java | RLSControllerImpl.notifyTimeout | static void notifyTimeout()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "notifyTimeout");
synchronized(SUSPEND_LOCK)
{
// Check if there are any outstanding suspends
if (_tokenManager.isResumable())
{
if (tc.isEventEnabled()) Tr.e... | java | static void notifyTimeout()
{
if (tc.isEntryEnabled()) Tr.entry(tc, "notifyTimeout");
synchronized(SUSPEND_LOCK)
{
// Check if there are any outstanding suspends
if (_tokenManager.isResumable())
{
if (tc.isEventEnabled()) Tr.e... | [
"static",
"void",
"notifyTimeout",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"notifyTimeout\"",
")",
";",
"synchronized",
"(",
"SUSPEND_LOCK",
")",
"{",
"// Check if there are any outstanding su... | Called by the RLSSuspendTokenManager in the event of
a suspension timeout occurring
We need to check, if as a result of a suspension timing out,
whether we should resume the RLS.
We will resume only if there are no other outstanding active suspensions
@return boolean isSuspended | [
"Called",
"by",
"the",
"RLSSuspendTokenManager",
"in",
"the",
"event",
"of",
"a",
"suspension",
"timeout",
"occurring"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.recoverylog/src/com/ibm/ws/recoverylog/spi/RLSControllerImpl.java#L258-L281 |
66,710 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java | InternalTransaction.getExternalTransaction | protected synchronized final Transaction getExternalTransaction()
{
final String methodName = "getExternalTransaction";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName);
Transaction ... | java | protected synchronized final Transaction getExternalTransaction()
{
final String methodName = "getExternalTransaction";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName);
Transaction ... | [
"protected",
"synchronized",
"final",
"Transaction",
"getExternalTransaction",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"getExternalTransaction\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"... | Create the extrnal transaction for use by the public interface
from this InternalTransaction.
To detect orphaned Transactions, ie. Transactions not referenced elsewhere in the JVM,
we will keep a reference to the internalTransaction and make a weak reference to the
container we pass to the application. When the contai... | [
"Create",
"the",
"extrnal",
"transaction",
"for",
"use",
"by",
"the",
"public",
"interface",
"from",
"this",
"InternalTransaction",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L463-L487 |
66,711 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java | InternalTransaction.requestCallback | protected synchronized void requestCallback(Token token,
Transaction transaction)
throws ObjectManagerException
{
final String methodName = "requestCallback";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
... | java | protected synchronized void requestCallback(Token token,
Transaction transaction)
throws ObjectManagerException
{
final String methodName = "requestCallback";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
... | [
"protected",
"synchronized",
"void",
"requestCallback",
"(",
"Token",
"token",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"requestCallback\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEn... | Note a request for the Token in the transaction to be called at prePrepare,
preCommit, preBackout, postCommit and postBackout.
@param token who's ManagedObject is to be called back.
@param transaction the external transaction.
@throws ObjectManagerException
@throws InvalidStateException if the tansaction has started i... | [
"Note",
"a",
"request",
"for",
"the",
"Token",
"in",
"the",
"transaction",
"to",
"be",
"called",
"at",
"prePrepare",
"preCommit",
"preBackout",
"postCommit",
"and",
"postBackout",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L615-L654 |
66,712 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java | InternalTransaction.addFromCheckpoint | protected synchronized void addFromCheckpoint(ManagedObject managedObject,
Transaction transaction)
throws ObjectManagerException {
final String methodName = "addFromCheckpoint";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabl... | java | protected synchronized void addFromCheckpoint(ManagedObject managedObject,
Transaction transaction)
throws ObjectManagerException {
final String methodName = "addFromCheckpoint";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabl... | [
"protected",
"synchronized",
"void",
"addFromCheckpoint",
"(",
"ManagedObject",
"managedObject",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"addFromCheckpoint\"",
";",
"if",
"(",
"Tracing",
".... | Recover an Add operation from a checkpoint.
@param managedObject being added.
@param transaction the external Transaction.
@throws ObjectManagerException | [
"Recover",
"an",
"Add",
"operation",
"from",
"a",
"checkpoint",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L874-L908 |
66,713 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java | InternalTransaction.replaceFromCheckpoint | protected synchronized void replaceFromCheckpoint(ManagedObject managedObject,
byte[] serializedBytes,
Transaction transaction)
throws ObjectManagerException {
final String methodName ... | java | protected synchronized void replaceFromCheckpoint(ManagedObject managedObject,
byte[] serializedBytes,
Transaction transaction)
throws ObjectManagerException {
final String methodName ... | [
"protected",
"synchronized",
"void",
"replaceFromCheckpoint",
"(",
"ManagedObject",
"managedObject",
",",
"byte",
"[",
"]",
"serializedBytes",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"repla... | Recover a Replace operation from a checkpoint.
@param managedObject recovered from a checkpoint.
@param serializedBytes representing the serialized form of the ManagedObject originally logged.
@param transaction the external Transaction.
@throws ObjectManagerException | [
"Recover",
"a",
"Replace",
"operation",
"from",
"a",
"checkpoint",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L1078-L1120 |
66,714 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java | InternalTransaction.prepare | protected synchronized void prepare(Transaction transaction)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "prepare"
, "transaction=" + transaction + "(Tr... | java | protected synchronized void prepare(Transaction transaction)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "prepare"
, "transaction=" + transaction + "(Tr... | [
"protected",
"synchronized",
"void",
"prepare",
"(",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry... | Prepare the transaction.
After execution of this method the
users of this transaction shall not perform any further work as part
of the logical unit of work, or modify any of the objects that are
referenced by the transaction.
We have already spooled the add and delete log records for persistent objects.
Since we are ... | [
"Prepare",
"the",
"transaction",
".",
"After",
"execution",
"of",
"this",
"method",
"the",
"users",
"of",
"this",
"transaction",
"shall",
"not",
"perform",
"any",
"further",
"work",
"as",
"part",
"of",
"the",
"logical",
"unit",
"of",
"work",
"or",
"modify",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L1759-L1812 |
66,715 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java | InternalTransaction.commit | protected void commit(boolean reUse,
Transaction transaction)
throws ObjectManagerException {
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "commit"
, new Object[] ... | java | protected void commit(boolean reUse,
Transaction transaction)
throws ObjectManagerException {
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "commit"
, new Object[] ... | [
"protected",
"void",
"commit",
"(",
"boolean",
"reUse",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
"... | Commit the transaction.
Fore write a commit record to the log.
Unlock the objects that are part of this logical unit of work.
@param reUse true indicates that the transaction is terminated and then reused
with another logical unit of work.
@param transaction the external Transaction.
@throws ObjectManagerException | [
"Commit",
"the",
"transaction",
".",
"Fore",
"write",
"a",
"commit",
"record",
"to",
"the",
"log",
".",
"Unlock",
"the",
"objects",
"that",
"are",
"part",
"of",
"this",
"logical",
"unit",
"of",
"work",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L1857-L1986 |
66,716 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java | InternalTransaction.backout | protected void backout(boolean reUse,
Transaction transaction)
throws ObjectManagerException {
final String methodName = "backout";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName, new Object[] {... | java | protected void backout(boolean reUse,
Transaction transaction)
throws ObjectManagerException {
final String methodName = "backout";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName, new Object[] {... | [
"protected",
"void",
"backout",
"(",
"boolean",
"reUse",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"backout\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
... | Rollback the transacion. Force a backout record to the log.
@param reUse Indicates whether the transaction is terminated or can be reused for another logical unit of work.
@param transaction the external Transaction.
@throws ObjectManagerException | [
"Rollback",
"the",
"transacion",
".",
"Force",
"a",
"backout",
"record",
"to",
"the",
"log",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2055-L2174 |
66,717 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java | InternalTransaction.preBackout | void preBackout(Transaction transaction)
throws ObjectManagerException {
final String methodName = "preBackout";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName, new Object[] { transaction });
// Allow any last mi... | java | void preBackout(Transaction transaction)
throws ObjectManagerException {
final String methodName = "preBackout";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName, new Object[] { transaction });
// Allow any last mi... | [
"void",
"preBackout",
"(",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"preBackout\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(... | Before the transaction is backed out, give the ManagedObjects a chance to adjust their transient state to reflect
the final outcome. It is too late for them to adjust persistent state as that is already written to the log
assuming an outcome of Commit.
@param transaction the external Transaction.
@throws ObjectManager... | [
"Before",
"the",
"transaction",
"is",
"backed",
"out",
"give",
"the",
"ManagedObjects",
"a",
"chance",
"to",
"adjust",
"their",
"transient",
"state",
"to",
"reflect",
"the",
"final",
"outcome",
".",
"It",
"is",
"too",
"late",
"for",
"them",
"to",
"adjust",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2184-L2201 |
66,718 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java | InternalTransaction.complete | private final void complete(boolean reUse,
Transaction transaction)
throws ObjectManagerException {
final String methodName = "complete";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName, new... | java | private final void complete(boolean reUse,
Transaction transaction)
throws ObjectManagerException {
final String methodName = "complete";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName, new... | [
"private",
"final",
"void",
"complete",
"(",
"boolean",
"reUse",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"complete\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",... | Tidy up after Commit or Backout have finished all work for this InternalTransaction.
@param reUse true if the trandsaction is to be reused.
@param transaction the external Transaction completing.
@throws ObjectManagerException | [
"Tidy",
"up",
"after",
"Commit",
"or",
"Backout",
"have",
"finished",
"all",
"work",
"for",
"this",
"InternalTransaction",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2242-L2287 |
66,719 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java | InternalTransaction.terminate | protected synchronized void terminate(int reason)
throws ObjectManagerException {
final String methodName = "terminate";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName, new Object[] { new Integer(reason) });
if (... | java | protected synchronized void terminate(int reason)
throws ObjectManagerException {
final String methodName = "terminate";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName, new Object[] { new Integer(reason) });
if (... | [
"protected",
"synchronized",
"void",
"terminate",
"(",
"int",
"reason",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"terminate\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isE... | Permanently disable use of this transaction. reason the Transaction.terininatedXXX reason
@throws ObjectManagerException | [
"Permanently",
"disable",
"use",
"of",
"this",
"transaction",
".",
"reason",
"the",
"Transaction",
".",
"terininatedXXX",
"reason"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2294-L2317 |
66,720 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java | InternalTransaction.shutdown | protected synchronized void shutdown()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "shutDown"
);
setState(nextStateForShutdown);
//... | java | protected synchronized void shutdown()
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "shutDown"
);
setState(nextStateForShutdown);
//... | [
"protected",
"synchronized",
"void",
"shutdown",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"ccl... | Run at shutdown of the ObjectManager to close activity.
@throws ObjectManagerException | [
"Run",
"at",
"shutdown",
"of",
"the",
"ObjectManager",
"to",
"close",
"activity",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2324-L2340 |
66,721 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java | InternalTransaction.setRequiresCheckpoint | protected final void setRequiresCheckpoint()
{
final String methodName = "setRequiresCheckpoint";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName,
new Object[] { new ... | java | protected final void setRequiresCheckpoint()
{
final String methodName = "setRequiresCheckpoint";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
methodName,
new Object[] { new ... | [
"protected",
"final",
"void",
"setRequiresCheckpoint",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"setRequiresCheckpoint\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace"... | Mark this InternalTransaction as requiring a Checkpoint in the current checkpoint cycle. | [
"Mark",
"this",
"InternalTransaction",
"as",
"requiring",
"a",
"Checkpoint",
"in",
"the",
"current",
"checkpoint",
"cycle",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2345-L2383 |
66,722 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java | InternalTransaction.checkpoint | protected synchronized void checkpoint(long forcedLogSequenceNumber)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "checkpoint"
, new Object[] { new Long(... | java | protected synchronized void checkpoint(long forcedLogSequenceNumber)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "checkpoint"
, new Object[] { new Long(... | [
"protected",
"synchronized",
"void",
"checkpoint",
"(",
"long",
"forcedLogSequenceNumber",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
... | Called by the ObjectManager when it has written a checkpointStartLogRecord.
The Transaction can assume that all log records up to and including logSequenceNumber
are now safely hardened to disk. On this assumption it calls includedObjects
so that they can write after images to the ObjectStores.
@param forcedLogSequenc... | [
"Called",
"by",
"the",
"ObjectManager",
"when",
"it",
"has",
"written",
"a",
"checkpointStartLogRecord",
".",
"The",
"Transaction",
"can",
"assume",
"that",
"all",
"log",
"records",
"up",
"to",
"and",
"including",
"logSequenceNumber",
"are",
"now",
"safely",
"ha... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/InternalTransaction.java#L2394-L2489 |
66,723 | OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/InvokerTask.java | InvokerTask.afterCompletion | @Override
public void afterCompletion(int status) {
if (status == Status.STATUS_COMMITTED) {
Boolean previous = persistentExecutor.inMemoryTaskIds.put(taskId, Boolean.TRUE);
if (previous == null) {
long delay = expectedExecTime - new Date().getTime();
... | java | @Override
public void afterCompletion(int status) {
if (status == Status.STATUS_COMMITTED) {
Boolean previous = persistentExecutor.inMemoryTaskIds.put(taskId, Boolean.TRUE);
if (previous == null) {
long delay = expectedExecTime - new Date().getTime();
... | [
"@",
"Override",
"public",
"void",
"afterCompletion",
"(",
"int",
"status",
")",
"{",
"if",
"(",
"status",
"==",
"Status",
".",
"STATUS_COMMITTED",
")",
"{",
"Boolean",
"previous",
"=",
"persistentExecutor",
".",
"inMemoryTaskIds",
".",
"put",
"(",
"taskId",
... | Upon successful transaction commit, automatically schedules a task for execution in the near future.
@see javax.transaction.Synchronization#afterCompletion(int) | [
"Upon",
"successful",
"transaction",
"commit",
"automatically",
"schedules",
"a",
"task",
"for",
"execution",
"in",
"the",
"near",
"future",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/InvokerTask.java#L78-L92 |
66,724 | OpenLiberty/open-liberty | dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/InvokerTask.java | InvokerTask.serializeResult | @FFDCIgnore(Throwable.class)
@Sensitive
private byte[] serializeResult(Object result, ClassLoader loader) throws IOException {
try {
return persistentExecutor.serialize(result);
} catch (Throwable x) {
return persistentExecutor.serialize(new TaskFailure(x, loader, persist... | java | @FFDCIgnore(Throwable.class)
@Sensitive
private byte[] serializeResult(Object result, ClassLoader loader) throws IOException {
try {
return persistentExecutor.serialize(result);
} catch (Throwable x) {
return persistentExecutor.serialize(new TaskFailure(x, loader, persist... | [
"@",
"FFDCIgnore",
"(",
"Throwable",
".",
"class",
")",
"@",
"Sensitive",
"private",
"byte",
"[",
"]",
"serializeResult",
"(",
"Object",
"result",
",",
"ClassLoader",
"loader",
")",
"throws",
"IOException",
"{",
"try",
"{",
"return",
"persistentExecutor",
".",... | Utility method that serializes a task result, or the failure that occurred when attempting
to serialize the task result.
@param result non-null task result
@param loader class loader that can deserialize the task and result.
@return serialized bytes | [
"Utility",
"method",
"that",
"serializes",
"a",
"task",
"result",
"or",
"the",
"failure",
"that",
"occurred",
"when",
"attempting",
"to",
"serialize",
"the",
"task",
"result",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.concurrent.persistent/src/com/ibm/ws/concurrent/persistent/internal/InvokerTask.java#L605-L613 |
66,725 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/core/ConvertNumberHandler.java | ConvertNumberHandler.createConverter | protected Converter createConverter(FaceletContext ctx) throws FacesException, ELException, FaceletException
{
return ctx.getFacesContext().getApplication().createConverter(NumberConverter.CONVERTER_ID);
} | java | protected Converter createConverter(FaceletContext ctx) throws FacesException, ELException, FaceletException
{
return ctx.getFacesContext().getApplication().createConverter(NumberConverter.CONVERTER_ID);
} | [
"protected",
"Converter",
"createConverter",
"(",
"FaceletContext",
"ctx",
")",
"throws",
"FacesException",
",",
"ELException",
",",
"FaceletException",
"{",
"return",
"ctx",
".",
"getFacesContext",
"(",
")",
".",
"getApplication",
"(",
")",
".",
"createConverter",
... | Returns a new NumberConverter
@see NumberConverter
@see org.apache.myfaces.view.facelets.tag.jsf.ConverterHandler#createConverter(javax.faces.view.facelets.FaceletContext) | [
"Returns",
"a",
"new",
"NumberConverter"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/jsf/core/ConvertNumberHandler.java#L67-L70 |
66,726 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatcher.java | ReceiveListenerDispatcher.queueDataReceivedInvocation | public void queueDataReceivedInvocation(Connection connection,
ReceiveListener listener,
WsByteBuffer data,
int segmentType,
int request... | java | public void queueDataReceivedInvocation(Connection connection,
ReceiveListener listener,
WsByteBuffer data,
int segmentType,
int request... | [
"public",
"void",
"queueDataReceivedInvocation",
"(",
"Connection",
"connection",
",",
"ReceiveListener",
"listener",
",",
"WsByteBuffer",
"data",
",",
"int",
"segmentType",
",",
"int",
"requestNumber",
",",
"int",
"priority",
",",
"boolean",
"allocatedFromBufferPool",
... | Queues the invocation of a data received method into the dispatcher. | [
"Queues",
"the",
"invocation",
"of",
"a",
"data",
"received",
"method",
"into",
"the",
"dispatcher",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatcher.java#L574-L605 |
66,727 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatcher.java | ReceiveListenerDispatcher.getInstance | public static ReceiveListenerDispatcher getInstance(Conversation.ConversationType convType, boolean isOnClientSide)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getInstance",
new Object[] {""+convType, ""+isOnClientSide});
... | java | public static ReceiveListenerDispatcher getInstance(Conversation.ConversationType convType, boolean isOnClientSide)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getInstance",
new Object[] {""+convType, ""+isOnClientSide});
... | [
"public",
"static",
"ReceiveListenerDispatcher",
"getInstance",
"(",
"Conversation",
".",
"ConversationType",
"convType",
",",
"boolean",
"isOnClientSide",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
... | Return a reference to the instance of this class. Used to implement the
singleton design pattern.
@return ReceiveListenerDispatcher | [
"Return",
"a",
"reference",
"to",
"the",
"instance",
"of",
"this",
"class",
".",
"Used",
"to",
"implement",
"the",
"singleton",
"design",
"pattern",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDispatcher.java#L739-L792 |
66,728 | OpenLiberty/open-liberty | dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java | CustomUtils.isCommandLine | public static boolean isCommandLine() {
String output = AccessController.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
return System.getProperty("wlp.process.type");
}
});
boolean value = true;
if (output... | java | public static boolean isCommandLine() {
String output = AccessController.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
return System.getProperty("wlp.process.type");
}
});
boolean value = true;
if (output... | [
"public",
"static",
"boolean",
"isCommandLine",
"(",
")",
"{",
"String",
"output",
"=",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"PrivilegedAction",
"<",
"String",
">",
"(",
")",
"{",
"@",
"Override",
"public",
"String",
"run",
"(",
")",
"{",
"... | Returns true when the value of wlp.process.type is neither server nor client.
false otherwise. | [
"Returns",
"true",
"when",
"the",
"value",
"of",
"wlp",
".",
"process",
".",
"type",
"is",
"neither",
"server",
"nor",
"client",
".",
"false",
"otherwise",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java#L55-L70 |
66,729 | OpenLiberty/open-liberty | dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java | CustomUtils.getInstallRoot | public static String getInstallRoot() {
return AccessController.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
String output = System.getProperty("wlp.install.dir");
if (output == null) {
output = System.g... | java | public static String getInstallRoot() {
return AccessController.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
String output = System.getProperty("wlp.install.dir");
if (output == null) {
output = System.g... | [
"public",
"static",
"String",
"getInstallRoot",
"(",
")",
"{",
"return",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"PrivilegedAction",
"<",
"String",
">",
"(",
")",
"{",
"@",
"Override",
"public",
"String",
"run",
"(",
")",
"{",
"String",
"output"... | Returns the installation root. If it wasn't detected, use current directory. | [
"Returns",
"the",
"installation",
"root",
".",
"If",
"it",
"wasn",
"t",
"detected",
"use",
"current",
"directory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java#L120-L147 |
66,730 | OpenLiberty/open-liberty | dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java | CustomUtils.getResourceBundle | public static ResourceBundle getResourceBundle(File location, String name, Locale locale) {
File[] files = new File[] { new File(location, name + "_" + locale.toString() + RESOURCE_FILE_EXT),
new File(location, name + "_" + locale.getLanguage() + RESOURCE_FILE_EXT),
... | java | public static ResourceBundle getResourceBundle(File location, String name, Locale locale) {
File[] files = new File[] { new File(location, name + "_" + locale.toString() + RESOURCE_FILE_EXT),
new File(location, name + "_" + locale.getLanguage() + RESOURCE_FILE_EXT),
... | [
"public",
"static",
"ResourceBundle",
"getResourceBundle",
"(",
"File",
"location",
",",
"String",
"name",
",",
"Locale",
"locale",
")",
"{",
"File",
"[",
"]",
"files",
"=",
"new",
"File",
"[",
"]",
"{",
"new",
"File",
"(",
"location",
",",
"name",
"+",
... | find the best matching resouce bundle of the specified resouce file name. | [
"find",
"the",
"best",
"matching",
"resouce",
"bundle",
"of",
"the",
"specified",
"resouce",
"file",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java#L152-L168 |
66,731 | OpenLiberty/open-liberty | dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java | CustomUtils.findCustomEncryption | public static List<CustomManifest> findCustomEncryption(String extension) throws IOException {
List<File> dirs = listRootAndExtensionDirectories();
return findCustomEncryption(dirs, TOOL_EXTENSION_DIR + extension);
} | java | public static List<CustomManifest> findCustomEncryption(String extension) throws IOException {
List<File> dirs = listRootAndExtensionDirectories();
return findCustomEncryption(dirs, TOOL_EXTENSION_DIR + extension);
} | [
"public",
"static",
"List",
"<",
"CustomManifest",
">",
"findCustomEncryption",
"(",
"String",
"extension",
")",
"throws",
"IOException",
"{",
"List",
"<",
"File",
">",
"dirs",
"=",
"listRootAndExtensionDirectories",
"(",
")",
";",
"return",
"findCustomEncryption",
... | Find the URL of the jar file which includes specified class.
If there is none, return empty array.
@throws IOException | [
"Find",
"the",
"URL",
"of",
"the",
"jar",
"file",
"which",
"includes",
"specified",
"class",
".",
"If",
"there",
"is",
"none",
"return",
"empty",
"array",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java#L176-L179 |
66,732 | OpenLiberty/open-liberty | dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java | CustomUtils.findCustomEncryption | protected static List<CustomManifest> findCustomEncryption(List<File> rootDirs, String path) throws IOException {
List<CustomManifest> list = new ArrayList<CustomManifest>();
for (File dir : rootDirs) {
dir = new File(dir, path);
if (exists(dir)) {
File[] files = ... | java | protected static List<CustomManifest> findCustomEncryption(List<File> rootDirs, String path) throws IOException {
List<CustomManifest> list = new ArrayList<CustomManifest>();
for (File dir : rootDirs) {
dir = new File(dir, path);
if (exists(dir)) {
File[] files = ... | [
"protected",
"static",
"List",
"<",
"CustomManifest",
">",
"findCustomEncryption",
"(",
"List",
"<",
"File",
">",
"rootDirs",
",",
"String",
"path",
")",
"throws",
"IOException",
"{",
"List",
"<",
"CustomManifest",
">",
"list",
"=",
"new",
"ArrayList",
"<",
... | Find the custom encryption manifest files from the specified list of root directories and path name.
The reason why there are multiple root directories is that the product extensions which will allow to
add the additional root directory anywhere.
@throws IOException | [
"Find",
"the",
"custom",
"encryption",
"manifest",
"files",
"from",
"the",
"specified",
"list",
"of",
"root",
"directories",
"and",
"path",
"name",
".",
"The",
"reason",
"why",
"there",
"are",
"multiple",
"root",
"directories",
"is",
"that",
"the",
"product",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/custom/CustomUtils.java#L188-L214 |
66,733 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java | RichClientFramework.getNetworkTransportFactory | @Override
public NetworkTransportFactory getNetworkTransportFactory()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getNetworkTransportFactory");
NetworkTransportFactory factory = new RichClientTransportFactory(framework);
if (Trace... | java | @Override
public NetworkTransportFactory getNetworkTransportFactory()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getNetworkTransportFactory");
NetworkTransportFactory factory = new RichClientTransportFactory(framework);
if (Trace... | [
"@",
"Override",
"public",
"NetworkTransportFactory",
"getNetworkTransportFactory",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc... | This method is our entry point into the Channel Framework implementation of the JFap Framework
interfaces.
@see com.ibm.ws.sib.jfapchannel.framework.Framework#getNetworkTransportFactory() | [
"This",
"method",
"is",
"our",
"entry",
"point",
"into",
"the",
"Channel",
"Framework",
"implementation",
"of",
"the",
"JFap",
"Framework",
"interfaces",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L98-L107 |
66,734 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java | RichClientFramework.getOutboundConnectionProperties | @Override
public Map getOutboundConnectionProperties(String outboundTransportName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getOutboundConnectionProperties",
outboundTransportName);
ChainData chainData = framew... | java | @Override
public Map getOutboundConnectionProperties(String outboundTransportName)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getOutboundConnectionProperties",
outboundTransportName);
ChainData chainData = framew... | [
"@",
"Override",
"public",
"Map",
"getOutboundConnectionProperties",
"(",
"String",
"outboundTransportName",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"("... | This method will retrieve the property bag on the named chain so that it can be determined
what properties have been set on it.
@param outboundTransportName The chain name.
@see com.ibm.ws.sib.jfapchannel.framework.Framework#getOutboundConnectionProperties(java.lang.String) | [
"This",
"method",
"will",
"retrieve",
"the",
"property",
"bag",
"on",
"the",
"named",
"chain",
"so",
"that",
"it",
"can",
"be",
"determined",
"what",
"properties",
"have",
"been",
"set",
"on",
"it",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L117-L144 |
66,735 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java | RichClientFramework.getOutboundConnectionProperties | @Override
public Map getOutboundConnectionProperties(Object ep)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getOutboundConnectionProperties", ep);
Map properties = null;
if (ep instanceof CFEndPoint)
{
Outboun... | java | @Override
public Map getOutboundConnectionProperties(Object ep)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getOutboundConnectionProperties", ep);
Map properties = null;
if (ep instanceof CFEndPoint)
{
Outboun... | [
"@",
"Override",
"public",
"Map",
"getOutboundConnectionProperties",
"(",
"Object",
"ep",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
... | This method will retrieve the property bag on the outbound chain that will be used by the
specified end point. This method is only valid for CFEndPoints.
@param ep The CFEndPoint
@see com.ibm.ws.sib.jfapchannel.framework.Framework#getOutboundConnectionProperties(java.lang.Object) | [
"This",
"method",
"will",
"retrieve",
"the",
"property",
"bag",
"on",
"the",
"outbound",
"chain",
"that",
"will",
"be",
"used",
"by",
"the",
"specified",
"end",
"point",
".",
"This",
"method",
"is",
"only",
"valid",
"for",
"CFEndPoints",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L154-L172 |
66,736 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java | RichClientFramework.getHostAddress | @Override
public InetAddress getHostAddress(Object endPoint)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getHostAddress", endPoint);
InetAddress address = null;
if (endPoint instanceof CFEndPoint)
{
address = ... | java | @Override
public InetAddress getHostAddress(Object endPoint)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getHostAddress", endPoint);
InetAddress address = null;
if (endPoint instanceof CFEndPoint)
{
address = ... | [
"@",
"Override",
"public",
"InetAddress",
"getHostAddress",
"(",
"Object",
"endPoint",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"... | Retrieves the host address from the specified CFEndPoint.
@see com.ibm.ws.sib.jfapchannel.framework.Framework#getHostAddress(java.lang.Object) | [
"Retrieves",
"the",
"host",
"address",
"from",
"the",
"specified",
"CFEndPoint",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L426-L441 |
66,737 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java | RichClientFramework.getHostPort | @Override
public int getHostPort(Object endPoint)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getHostPort", endPoint);
int port = 0;
if (endPoint instanceof CFEndPoint)
{
port = ((CFEndPoint) endPoint).getPort... | java | @Override
public int getHostPort(Object endPoint)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getHostPort", endPoint);
int port = 0;
if (endPoint instanceof CFEndPoint)
{
port = ((CFEndPoint) endPoint).getPort... | [
"@",
"Override",
"public",
"int",
"getHostPort",
"(",
"Object",
"endPoint",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",... | Retrieves the host port from the specified CFEndPoint.
@see com.ibm.ws.sib.jfapchannel.framework.Framework#getHostPort(java.lang.Object) | [
"Retrieves",
"the",
"host",
"port",
"from",
"the",
"specified",
"CFEndPoint",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L448-L463 |
66,738 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java | RichClientFramework.areEndPointsEqual | @Override
public boolean areEndPointsEqual(Object ep1, Object ep2)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "areEndPointsEqual", new Object[] { ep1, ep2 });
boolean isEqual = false;
if (ep1 instanceof CFEndPoint && ep2 instanc... | java | @Override
public boolean areEndPointsEqual(Object ep1, Object ep2)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "areEndPointsEqual", new Object[] { ep1, ep2 });
boolean isEqual = false;
if (ep1 instanceof CFEndPoint && ep2 instanc... | [
"@",
"Override",
"public",
"boolean",
"areEndPointsEqual",
"(",
"Object",
"ep1",
",",
"Object",
"ep2",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"("... | The channel framework EP's don't have their own equals method - so one is implemented here by
comparing the various parts of the EP.
@see com.ibm.ws.sib.jfapchannel.framework.Framework#areEndPointsEqual(java.lang.Object, java.lang.Object) | [
"The",
"channel",
"framework",
"EP",
"s",
"don",
"t",
"have",
"their",
"own",
"equals",
"method",
"-",
"so",
"one",
"is",
"implemented",
"here",
"by",
"comparing",
"the",
"various",
"parts",
"of",
"the",
"EP",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L572-L597 |
66,739 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java | RichClientFramework.getEndPointHashCode | @Override
public int getEndPointHashCode(Object ep)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getEndPointHashCode", ep);
int hashCode = 0;
if (ep instanceof CFEndPoint)
{
CFEndPoint cfEndPoint = (CFEndPoint)... | java | @Override
public int getEndPointHashCode(Object ep)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "getEndPointHashCode", ep);
int hashCode = 0;
if (ep instanceof CFEndPoint)
{
CFEndPoint cfEndPoint = (CFEndPoint)... | [
"@",
"Override",
"public",
"int",
"getEndPointHashCode",
"(",
"Object",
"ep",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",... | The channel framework EP's don't have their own hashCode method - so one is implemented here
using the various parts of the EP.
@see com.ibm.ws.sib.jfapchannel.framework.Framework#getEndPointHashCode(java.lang.Object) | [
"The",
"channel",
"framework",
"EP",
"s",
"don",
"t",
"have",
"their",
"own",
"hashCode",
"method",
"-",
"so",
"one",
"is",
"implemented",
"here",
"using",
"the",
"various",
"parts",
"of",
"the",
"EP",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L605-L627 |
66,740 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java | RichClientFramework.cloneEndpoint | private CFEndPoint cloneEndpoint(final CFEndPoint originalEndPoint)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "cloneEndpoint", originalEndPoint);
CFEndPoint endPoint;
ByteArrayOutputStream baos = null;
ObjectOutputStream out... | java | private CFEndPoint cloneEndpoint(final CFEndPoint originalEndPoint)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "cloneEndpoint", originalEndPoint);
CFEndPoint endPoint;
ByteArrayOutputStream baos = null;
ObjectOutputStream out... | [
"private",
"CFEndPoint",
"cloneEndpoint",
"(",
"final",
"CFEndPoint",
"originalEndPoint",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
... | Creates a copy of originalEndPoint.
This is to prevent us causing problems when we change it. As there is no exposed way to do this we will use serialization.
It may be a bit slow, but it is implementation safe as the implementation of CFEndPoint is designed to be serialized by WLM.
Plus we only need to do this when cr... | [
"Creates",
"a",
"copy",
"of",
"originalEndPoint",
".",
"This",
"is",
"to",
"prevent",
"us",
"causing",
"problems",
"when",
"we",
"change",
"it",
".",
"As",
"there",
"is",
"no",
"exposed",
"way",
"to",
"do",
"this",
"we",
"will",
"use",
"serialization",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/richclient/framework/impl/RichClientFramework.java#L665-L730 |
66,741 | OpenLiberty/open-liberty | dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/LinkRead.java | LinkRead.getCause | private Throwable getCause(Throwable t) {
Throwable cause = t.getCause();
if (t.getCause() != null) {
return cause;
} else {
return t;
}
} | java | private Throwable getCause(Throwable t) {
Throwable cause = t.getCause();
if (t.getCause() != null) {
return cause;
} else {
return t;
}
} | [
"private",
"Throwable",
"getCause",
"(",
"Throwable",
"t",
")",
"{",
"Throwable",
"cause",
"=",
"t",
".",
"getCause",
"(",
")",
";",
"if",
"(",
"t",
".",
"getCause",
"(",
")",
"!=",
"null",
")",
"{",
"return",
"cause",
";",
"}",
"else",
"{",
"retur... | get if 'cause' exists, else return the original exception | [
"get",
"if",
"cause",
"exists",
"else",
"return",
"the",
"original",
"exception"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.wsoc/src/com/ibm/ws/wsoc/LinkRead.java#L1143-L1150 |
66,742 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceFormatter.java | BaseTraceFormatter.traceLogFormat | public String traceLogFormat(LogRecord logRecord, Object id, String formattedMsg, String formattedVerboseMsg) {
final String txt;
if (formattedVerboseMsg == null) {
// If we don't already have a formatted message... (for Audit or Info or Warning.. )
// we have to build something ... | java | public String traceLogFormat(LogRecord logRecord, Object id, String formattedMsg, String formattedVerboseMsg) {
final String txt;
if (formattedVerboseMsg == null) {
// If we don't already have a formatted message... (for Audit or Info or Warning.. )
// we have to build something ... | [
"public",
"String",
"traceLogFormat",
"(",
"LogRecord",
"logRecord",
",",
"Object",
"id",
",",
"String",
"formattedMsg",
",",
"String",
"formattedVerboseMsg",
")",
"{",
"final",
"String",
"txt",
";",
"if",
"(",
"formattedVerboseMsg",
"==",
"null",
")",
"{",
"/... | Format a detailed record for trace.log. Previously formatted messages may
be provided and may be reused if possible.
@param logRecord
@param id
@param formattedMsg the result of {@link #formatMessage}, or null if that
method was not previously called
@param formattedVerboseMsg the result of {@link #formatVerboseMessag... | [
"Format",
"a",
"detailed",
"record",
"for",
"trace",
".",
"log",
".",
"Previously",
"formatted",
"messages",
"may",
"be",
"provided",
"and",
"may",
"be",
"reused",
"if",
"possible",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceFormatter.java#L205-L216 |
66,743 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceFormatter.java | BaseTraceFormatter.formatVerboseObj | private Object formatVerboseObj(Object obj) {
// Make sure that we don't truncate any stack traces during verbose logging
if (obj instanceof TruncatableThrowable) {
TruncatableThrowable truncatable = (TruncatableThrowable) obj;
final Throwable wrappedException = truncatable.getW... | java | private Object formatVerboseObj(Object obj) {
// Make sure that we don't truncate any stack traces during verbose logging
if (obj instanceof TruncatableThrowable) {
TruncatableThrowable truncatable = (TruncatableThrowable) obj;
final Throwable wrappedException = truncatable.getW... | [
"private",
"Object",
"formatVerboseObj",
"(",
"Object",
"obj",
")",
"{",
"// Make sure that we don't truncate any stack traces during verbose logging",
"if",
"(",
"obj",
"instanceof",
"TruncatableThrowable",
")",
"{",
"TruncatableThrowable",
"truncatable",
"=",
"(",
"Truncata... | Format an object for a verbose message.
@param obj the non-null parameter object
@return the reformatted object, or null if the object can be used as-is | [
"Format",
"an",
"object",
"for",
"a",
"verbose",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceFormatter.java#L373-L384 |
66,744 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceFormatter.java | BaseTraceFormatter.formatStreamOutput | protected String formatStreamOutput(GenericData genData) {
String txt = null;
String loglevel = null;
KeyValuePair kvp = null;
KeyValuePair[] pairs = genData.getPairs();
for (KeyValuePair p : pairs) {
if (p != null && !p.isList()) {
kvp = p;
... | java | protected String formatStreamOutput(GenericData genData) {
String txt = null;
String loglevel = null;
KeyValuePair kvp = null;
KeyValuePair[] pairs = genData.getPairs();
for (KeyValuePair p : pairs) {
if (p != null && !p.isList()) {
kvp = p;
... | [
"protected",
"String",
"formatStreamOutput",
"(",
"GenericData",
"genData",
")",
"{",
"String",
"txt",
"=",
"null",
";",
"String",
"loglevel",
"=",
"null",
";",
"KeyValuePair",
"kvp",
"=",
"null",
";",
"KeyValuePair",
"[",
"]",
"pairs",
"=",
"genData",
".",
... | Outputs filteredStream of genData
@param genData object to filter
@return filtered message of the genData | [
"Outputs",
"filteredStream",
"of",
"genData"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/BaseTraceFormatter.java#L1051-L1077 |
66,745 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncSocketChannelHelper.java | AsyncSocketChannelHelper.createTimeout | private void createTimeout(IAbstractAsyncFuture future, long delay, boolean isRead) {
if (AsyncProperties.disableTimeouts) {
return;
}
// create the timeout time, while not holding the lock
long timeoutTime =
(System.currentTimeMillis() + delay + Timer... | java | private void createTimeout(IAbstractAsyncFuture future, long delay, boolean isRead) {
if (AsyncProperties.disableTimeouts) {
return;
}
// create the timeout time, while not holding the lock
long timeoutTime =
(System.currentTimeMillis() + delay + Timer... | [
"private",
"void",
"createTimeout",
"(",
"IAbstractAsyncFuture",
"future",
",",
"long",
"delay",
",",
"boolean",
"isRead",
")",
"{",
"if",
"(",
"AsyncProperties",
".",
"disableTimeouts",
")",
"{",
"return",
";",
"}",
"// create the timeout time, while not holding the ... | Create the delayed timeout work item for this request.
@param future
@param delay
@param isRead | [
"Create",
"the",
"delayed",
"timeout",
"work",
"item",
"for",
"this",
"request",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/io/async/AsyncSocketChannelHelper.java#L574-L589 |
66,746 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Product.java | Product.refresh | public void refresh() {
this.productProperties = new Properties();
FileInputStream fis = null;
try {
fis = new FileInputStream(new File(this.installDir, PRODUCT_PROPERTIES_PATH));
this.productProperties.load(fis);
} catch (Exception e) {
} finally {
... | java | public void refresh() {
this.productProperties = new Properties();
FileInputStream fis = null;
try {
fis = new FileInputStream(new File(this.installDir, PRODUCT_PROPERTIES_PATH));
this.productProperties.load(fis);
} catch (Exception e) {
} finally {
... | [
"public",
"void",
"refresh",
"(",
")",
"{",
"this",
".",
"productProperties",
"=",
"new",
"Properties",
"(",
")",
";",
"FileInputStream",
"fis",
"=",
"null",
";",
"try",
"{",
"fis",
"=",
"new",
"FileInputStream",
"(",
"new",
"File",
"(",
"this",
".",
"... | Resets productProperties, featureDefs, installFeatureDefs, and mfp. | [
"Resets",
"productProperties",
"featureDefs",
"installFeatureDefs",
"and",
"mfp",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Product.java#L67-L80 |
66,747 | OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.request/src/com/ibm/ws/jmx/request/RequestContext.java | RequestContext.getRequestMetadata | public static RequestMetadata getRequestMetadata() {
RequestMetadata metadata = threadLocal.get();
if (metadata == null)
metadata = getNoMetadata();
return metadata;
} | java | public static RequestMetadata getRequestMetadata() {
RequestMetadata metadata = threadLocal.get();
if (metadata == null)
metadata = getNoMetadata();
return metadata;
} | [
"public",
"static",
"RequestMetadata",
"getRequestMetadata",
"(",
")",
"{",
"RequestMetadata",
"metadata",
"=",
"threadLocal",
".",
"get",
"(",
")",
";",
"if",
"(",
"metadata",
"==",
"null",
")",
"metadata",
"=",
"getNoMetadata",
"(",
")",
";",
"return",
"me... | Gets the metadata for the current request
@return the request metadata | [
"Gets",
"the",
"metadata",
"for",
"the",
"current",
"request"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.request/src/com/ibm/ws/jmx/request/RequestContext.java#L41-L46 |
66,748 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java | WsByteBufferPoolManagerImpl.initialize | public void initialize(int[] bufferEntrySizes, int[] bufferEntryDepths) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "initialize");
}
// order both lists from smallest to largest, based only on Entry Sizes
int len = bufferEntrySizes.lengt... | java | public void initialize(int[] bufferEntrySizes, int[] bufferEntryDepths) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "initialize");
}
// order both lists from smallest to largest, based only on Entry Sizes
int len = bufferEntrySizes.lengt... | [
"public",
"void",
"initialize",
"(",
"int",
"[",
"]",
"bufferEntrySizes",
",",
"int",
"[",
"]",
"bufferEntryDepths",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
... | Initialize the pool manager with the number of pools, the entry sizes for each
pool, and the maximum depth of the free pool.
@param bufferEntrySizes the memory sizes of each entry in the pools
@param bufferEntryDepths the maximum number of entries in the free pool | [
"Initialize",
"the",
"pool",
"manager",
"with",
"the",
"number",
"of",
"pools",
"the",
"entry",
"sizes",
"for",
"each",
"pool",
"and",
"the",
"maximum",
"depth",
"of",
"the",
"free",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java#L260-L316 |
66,749 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java | WsByteBufferPoolManagerImpl.setLeakDetectionSettings | public void setLeakDetectionSettings(int interval, String output) throws IOException {
this.leakDetectionInterval = interval;
this.leakDetectionOutput = TrConfigurator.getLogLocation() + File.separator + output;
if ((interval > -1) && (output != null)) {
// clear file
Fi... | java | public void setLeakDetectionSettings(int interval, String output) throws IOException {
this.leakDetectionInterval = interval;
this.leakDetectionOutput = TrConfigurator.getLogLocation() + File.separator + output;
if ((interval > -1) && (output != null)) {
// clear file
Fi... | [
"public",
"void",
"setLeakDetectionSettings",
"(",
"int",
"interval",
",",
"String",
"output",
")",
"throws",
"IOException",
"{",
"this",
".",
"leakDetectionInterval",
"=",
"interval",
";",
"this",
".",
"leakDetectionOutput",
"=",
"TrConfigurator",
".",
"getLogLocat... | Set the memory leak detection parameters. If the interval is 0 or
greater, then the detection code will enabled.
@param interval the minimum amount of time between leak detection code
will be ran. Also the minimum amount of time that a buffer can go without
being accessed before it will be flagged as a possible memory... | [
"Set",
"the",
"memory",
"leak",
"detection",
"parameters",
".",
"If",
"the",
"interval",
"is",
"0",
"or",
"greater",
"then",
"the",
"detection",
"code",
"will",
"enabled",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java#L329-L338 |
66,750 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java | WsByteBufferPoolManagerImpl.allocateFileChannelBuffer | @Override
public WsByteBuffer allocateFileChannelBuffer(FileChannel fc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "allocateFileChannelBuffer");
}
return new FCWsByteBufferImpl(fc);
} | java | @Override
public WsByteBuffer allocateFileChannelBuffer(FileChannel fc) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "allocateFileChannelBuffer");
}
return new FCWsByteBufferImpl(fc);
} | [
"@",
"Override",
"public",
"WsByteBuffer",
"allocateFileChannelBuffer",
"(",
"FileChannel",
"fc",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc... | Allocate a buffer which will use tha FileChannel until the buffer needs
to be used in a "non-FileChannel" way.
@param fc FileChannel to use for this buffer
@return FCWsByteBuffer buffer which can now be used. | [
"Allocate",
"a",
"buffer",
"which",
"will",
"use",
"tha",
"FileChannel",
"until",
"the",
"buffer",
"needs",
"to",
"be",
"used",
"in",
"a",
"non",
"-",
"FileChannel",
"way",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java#L396-L402 |
66,751 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java | WsByteBufferPoolManagerImpl.allocateBufferDirect | protected WsByteBufferImpl allocateBufferDirect(WsByteBufferImpl buffer,
int size, boolean overrideRefCount) {
DirectByteBufferHelper directByteBufferHelper = this.directByteBufferHelper.get();
ByteBuffer byteBuffer;
if (directByteBufferHelper ... | java | protected WsByteBufferImpl allocateBufferDirect(WsByteBufferImpl buffer,
int size, boolean overrideRefCount) {
DirectByteBufferHelper directByteBufferHelper = this.directByteBufferHelper.get();
ByteBuffer byteBuffer;
if (directByteBufferHelper ... | [
"protected",
"WsByteBufferImpl",
"allocateBufferDirect",
"(",
"WsByteBufferImpl",
"buffer",
",",
"int",
"size",
",",
"boolean",
"overrideRefCount",
")",
"{",
"DirectByteBufferHelper",
"directByteBufferHelper",
"=",
"this",
".",
"directByteBufferHelper",
".",
"get",
"(",
... | Allocate the direct ByteBuffer that will be wrapped by the
input WsByteBuffer object.
@param buffer
@param size
@param overrideRefCount | [
"Allocate",
"the",
"direct",
"ByteBuffer",
"that",
"will",
"be",
"wrapped",
"by",
"the",
"input",
"WsByteBuffer",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java#L550-L561 |
66,752 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java | WsByteBufferPoolManagerImpl.releasing | protected void releasing(ByteBuffer buffer) {
if (buffer != null && buffer.isDirect()) {
DirectByteBufferHelper directByteBufferHelper = this.directByteBufferHelper.get();
if (directByteBufferHelper != null) {
directByteBufferHelper.releaseDirectByteBuffer(buffer);
... | java | protected void releasing(ByteBuffer buffer) {
if (buffer != null && buffer.isDirect()) {
DirectByteBufferHelper directByteBufferHelper = this.directByteBufferHelper.get();
if (directByteBufferHelper != null) {
directByteBufferHelper.releaseDirectByteBuffer(buffer);
... | [
"protected",
"void",
"releasing",
"(",
"ByteBuffer",
"buffer",
")",
"{",
"if",
"(",
"buffer",
"!=",
"null",
"&&",
"buffer",
".",
"isDirect",
"(",
")",
")",
"{",
"DirectByteBufferHelper",
"directByteBufferHelper",
"=",
"this",
".",
"directByteBufferHelper",
".",
... | Method called when a buffer is being destroyed to allow any
additional cleanup that might be required.
@param buffer | [
"Method",
"called",
"when",
"a",
"buffer",
"is",
"being",
"destroyed",
"to",
"allow",
"any",
"additional",
"cleanup",
"that",
"might",
"be",
"required",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/bytebuffer/internal/WsByteBufferPoolManagerImpl.java#L621-L628 |
66,753 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/ConsumerProperties.java | ConsumerProperties.debug | public String debug()
{
String data = null;
StringBuffer sb = new StringBuffer();
sb.append("ConsumerProperties");
sb.append("\n");
sb.append("------------------");
sb.append("\n");
sb.append("Destination: ");
sb.append(getJmsDestination());
sb.append("\n");
... | java | public String debug()
{
String data = null;
StringBuffer sb = new StringBuffer();
sb.append("ConsumerProperties");
sb.append("\n");
sb.append("------------------");
sb.append("\n");
sb.append("Destination: ");
sb.append(getJmsDestination());
sb.append("\n");
... | [
"public",
"String",
"debug",
"(",
")",
"{",
"String",
"data",
"=",
"null",
";",
"StringBuffer",
"sb",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"sb",
".",
"append",
"(",
"\"ConsumerProperties\"",
")",
";",
"sb",
".",
"append",
"(",
"\"\\n\"",
")",
";"... | Returns a printable form of the information stored in this object.
@return String | [
"Returns",
"a",
"printable",
"form",
"of",
"the",
"information",
"stored",
"in",
"this",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/ConsumerProperties.java#L198-L264 |
66,754 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeResourceLibrary.java | CompositeResourceLibrary.loadAcceptPattern | private Pattern loadAcceptPattern(ExternalContext context)
{
assert context != null;
String mappings = context.getInitParameter(ViewHandler.FACELETS_VIEW_MAPPINGS_PARAM_NAME);
if (mappings == null)
{
return null;
}
// Make sure the mappings contain somet... | java | private Pattern loadAcceptPattern(ExternalContext context)
{
assert context != null;
String mappings = context.getInitParameter(ViewHandler.FACELETS_VIEW_MAPPINGS_PARAM_NAME);
if (mappings == null)
{
return null;
}
// Make sure the mappings contain somet... | [
"private",
"Pattern",
"loadAcceptPattern",
"(",
"ExternalContext",
"context",
")",
"{",
"assert",
"context",
"!=",
"null",
";",
"String",
"mappings",
"=",
"context",
".",
"getInitParameter",
"(",
"ViewHandler",
".",
"FACELETS_VIEW_MAPPINGS_PARAM_NAME",
")",
";",
"if... | Load and compile a regular expression pattern built from the Facelet view mapping parameters.
@param context
the application's external context
@return the compiled regular expression | [
"Load",
"and",
"compile",
"a",
"regular",
"expression",
"pattern",
"built",
"from",
"the",
"Facelet",
"view",
"mapping",
"parameters",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeResourceLibrary.java#L101-L119 |
66,755 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeResourceLibrary.java | CompositeResourceLibrary.toRegex | private String toRegex(String mappings)
{
assert mappings != null;
// Get rid of spaces
mappings = mappings.replaceAll("\\s", "");
// Escape '.'
mappings = mappings.replaceAll("\\.", "\\\\.");
// Change '*' to '.*' to represent any match
mappings = mappings... | java | private String toRegex(String mappings)
{
assert mappings != null;
// Get rid of spaces
mappings = mappings.replaceAll("\\s", "");
// Escape '.'
mappings = mappings.replaceAll("\\.", "\\\\.");
// Change '*' to '.*' to represent any match
mappings = mappings... | [
"private",
"String",
"toRegex",
"(",
"String",
"mappings",
")",
"{",
"assert",
"mappings",
"!=",
"null",
";",
"// Get rid of spaces",
"mappings",
"=",
"mappings",
".",
"replaceAll",
"(",
"\"\\\\s\"",
",",
"\"\"",
")",
";",
"// Escape '.'",
"mappings",
"=",
"ma... | Convert the specified mapping string to an equivalent regular expression.
@param mappings
le mapping string
@return an uncompiled regular expression representing the mappings | [
"Convert",
"the",
"specified",
"mapping",
"string",
"to",
"an",
"equivalent",
"regular",
"expression",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/tag/composite/CompositeResourceLibrary.java#L150-L167 |
66,756 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/client/AbstractClient.java | AbstractClient.prepareConduitSelector | protected void prepareConduitSelector(Message message, URI currentURI, boolean proxy) {
try {
cfg.prepareConduitSelector(message);
} catch (Fault ex) {
LOG.warning("Failure to prepare a message from conduit selector");
}
message.getExchange().put(ConduitSelector.... | java | protected void prepareConduitSelector(Message message, URI currentURI, boolean proxy) {
try {
cfg.prepareConduitSelector(message);
} catch (Fault ex) {
LOG.warning("Failure to prepare a message from conduit selector");
}
message.getExchange().put(ConduitSelector.... | [
"protected",
"void",
"prepareConduitSelector",
"(",
"Message",
"message",
",",
"URI",
"currentURI",
",",
"boolean",
"proxy",
")",
"{",
"try",
"{",
"cfg",
".",
"prepareConduitSelector",
"(",
"message",
")",
";",
"}",
"catch",
"(",
"Fault",
"ex",
")",
"{",
"... | or web client invocation has returned | [
"or",
"web",
"client",
"invocation",
"has",
"returned"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/jaxrs/client/AbstractClient.java#L937-L956 |
66,757 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractAliasDestinationHandler.java | AbstractAliasDestinationHandler.isCorruptOrIndoubt | @Override
public boolean isCorruptOrIndoubt()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isCorruptOrIndoubt");
boolean isCorruptOrIndoubt = _targetDestinationHandler.isCorruptOrIndoubt();
if (TraceComponent.isAnyTracingEnabled() && t... | java | @Override
public boolean isCorruptOrIndoubt()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isCorruptOrIndoubt");
boolean isCorruptOrIndoubt = _targetDestinationHandler.isCorruptOrIndoubt();
if (TraceComponent.isAnyTracingEnabled() && t... | [
"@",
"Override",
"public",
"boolean",
"isCorruptOrIndoubt",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"isCorruptOrIndoubt\"",
"... | Is a real target destination corrupt? | [
"Is",
"a",
"real",
"target",
"destination",
"corrupt?"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractAliasDestinationHandler.java#L951-L963 |
66,758 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractAliasDestinationHandler.java | AbstractAliasDestinationHandler.delete | public void delete()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "delete");
//Tell the target of the alias to remove the backwards reference to it
_targetDestinationHandler.removeTargettingAlias(this);
if (TraceComponent.isAnyTracing... | java | public void delete()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "delete");
//Tell the target of the alias to remove the backwards reference to it
_targetDestinationHandler.removeTargettingAlias(this);
if (TraceComponent.isAnyTracing... | [
"public",
"void",
"delete",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"delete\"",
")",
";",
"//Tell the target of the alias to ... | This destination handler is being deleted and should perform any
processing required. | [
"This",
"destination",
"handler",
"is",
"being",
"deleted",
"and",
"should",
"perform",
"any",
"processing",
"required",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractAliasDestinationHandler.java#L1143-L1151 |
66,759 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java | TransmissionData.setLayoutToPrimary | protected void setLayoutToPrimary(int segmentLength,
int priority,
boolean isPooled,
boolean isExchange,
int packetNumber,
int segmentT... | java | protected void setLayoutToPrimary(int segmentLength,
int priority,
boolean isPooled,
boolean isExchange,
int packetNumber,
int segmentT... | [
"protected",
"void",
"setLayoutToPrimary",
"(",
"int",
"segmentLength",
",",
"int",
"priority",
",",
"boolean",
"isPooled",
",",
"boolean",
"isExchange",
",",
"int",
"packetNumber",
",",
"int",
"segmentType",
",",
"SendListener",
"sendListener",
")",
"{",
"if",
... | Sets the layout to use for this transmission to be a primary header only.
@param segmentLength
@param priority
@param isPooled
@param isExchange
@param packetNumber
@param segmentType
@param sendListener | [
"Sets",
"the",
"layout",
"to",
"use",
"for",
"this",
"transmission",
"to",
"be",
"a",
"primary",
"header",
"only",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L193-L212 |
66,760 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java | TransmissionData.setLayoutToConversation | protected void setLayoutToConversation(int segmentLength,
int priority,
boolean isPooled,
boolean isExchange,
int packetNumber,
... | java | protected void setLayoutToConversation(int segmentLength,
int priority,
boolean isPooled,
boolean isExchange,
int packetNumber,
... | [
"protected",
"void",
"setLayoutToConversation",
"(",
"int",
"segmentLength",
",",
"int",
"priority",
",",
"boolean",
"isPooled",
",",
"boolean",
"isExchange",
",",
"int",
"packetNumber",
",",
"int",
"segmentType",
",",
"int",
"conversationId",
",",
"int",
"request... | Set layout for transmission to build to have a conversation header.
@param segmentLength
@param priority
@param isPooled
@param isExchange
@param packetNumber
@param segmentType
@param conversationId
@param requestNumber
@param conversation
@param sendListener | [
"Set",
"layout",
"for",
"transmission",
"to",
"build",
"to",
"have",
"a",
"conversation",
"header",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L246-L265 |
66,761 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java | TransmissionData.setLayoutToStartSegment | protected void setLayoutToStartSegment(int segmentLength,
int priority,
boolean isPooled,
boolean isExchange,
int packetNumber,
... | java | protected void setLayoutToStartSegment(int segmentLength,
int priority,
boolean isPooled,
boolean isExchange,
int packetNumber,
... | [
"protected",
"void",
"setLayoutToStartSegment",
"(",
"int",
"segmentLength",
",",
"int",
"priority",
",",
"boolean",
"isPooled",
",",
"boolean",
"isExchange",
",",
"int",
"packetNumber",
",",
"int",
"segmentType",
",",
"int",
"conversationId",
",",
"int",
"request... | Set next transmission being built to have a segment start layout | [
"Set",
"next",
"transmission",
"being",
"built",
"to",
"have",
"a",
"segment",
"start",
"layout"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L289-L307 |
66,762 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java | TransmissionData.setLayoutToMiddleSegment | protected void setLayoutToMiddleSegment(int segmentLength,
int priority,
boolean isPooled,
boolean isExchange,
int packetNumber,
... | java | protected void setLayoutToMiddleSegment(int segmentLength,
int priority,
boolean isPooled,
boolean isExchange,
int packetNumber,
... | [
"protected",
"void",
"setLayoutToMiddleSegment",
"(",
"int",
"segmentLength",
",",
"int",
"priority",
",",
"boolean",
"isPooled",
",",
"boolean",
"isExchange",
",",
"int",
"packetNumber",
",",
"int",
"conversationId",
",",
"int",
"requestNumber",
")",
"{",
"if",
... | Set next transmission being built to have a segment middle layout | [
"Set",
"next",
"transmission",
"being",
"built",
"to",
"have",
"a",
"segment",
"middle",
"layout"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L310-L323 |
66,763 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java | TransmissionData.setLayoutToEndSegment | protected void setLayoutToEndSegment(int segmentLength,
int priority,
boolean isPooled,
boolean isExchange,
int packetNumber,
... | java | protected void setLayoutToEndSegment(int segmentLength,
int priority,
boolean isPooled,
boolean isExchange,
int packetNumber,
... | [
"protected",
"void",
"setLayoutToEndSegment",
"(",
"int",
"segmentLength",
",",
"int",
"priority",
",",
"boolean",
"isPooled",
",",
"boolean",
"isExchange",
",",
"int",
"packetNumber",
",",
"int",
"conversationId",
",",
"int",
"requestNumber",
",",
"Conversation",
... | Set next transmission being built to have a segment end layout | [
"Set",
"next",
"transmission",
"being",
"built",
"to",
"have",
"a",
"segment",
"end",
"layout"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L326-L340 |
66,764 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java | TransmissionData.isPooledBuffers | protected boolean isPooledBuffers()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "isPooledBuffers");
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "isPooledBuffers", ""+primaryHeaderFields.isPooled);
return primaryHeaderFields.isPooled;
} | java | protected boolean isPooledBuffers()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "isPooledBuffers");
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "isPooledBuffers", ""+primaryHeaderFields.isPooled);
return primaryHeaderFields.isPooled;
} | [
"protected",
"boolean",
"isPooledBuffers",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"isPooledBuffers\"",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",... | Returns true iff this transmission should be received into pooled buffers.
@return Returns true iff this transmission should be received into pooled buffers. | [
"Returns",
"true",
"iff",
"this",
"transmission",
"should",
"be",
"received",
"into",
"pooled",
"buffers",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L448-L453 |
66,765 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java | TransmissionData.isUserRequest | protected boolean isUserRequest()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "isUserRequest");
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "isUserRequest", ""+isUserRequest);
return isUserRequest;
} | java | protected boolean isUserRequest()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "isUserRequest");
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "isUserRequest", ""+isUserRequest);
return isUserRequest;
} | [
"protected",
"boolean",
"isUserRequest",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"isUserRequest\"",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"... | Returns true iff this transmission is a user request.
@return Returns true iff this transmission is a user request. | [
"Returns",
"true",
"iff",
"this",
"transmission",
"is",
"a",
"user",
"request",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L481-L486 |
66,766 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java | TransmissionData.isTerminal | protected boolean isTerminal()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "isTermainl");
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "isTermainl", ""+isTerminal);
return isTerminal;
} | java | protected boolean isTerminal()
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "isTermainl");
if (tc.isEntryEnabled()) SibTr.exit(this, tc, "isTermainl", ""+isTerminal);
return isTerminal;
} | [
"protected",
"boolean",
"isTerminal",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"isTermainl\"",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr"... | Returns true if this transmission should stop this connection
from writing any more data to the socket.
@return Returns true if this transmission should stop this connection
from writing any more data to the socket. | [
"Returns",
"true",
"if",
"this",
"transmission",
"should",
"stop",
"this",
"connection",
"from",
"writing",
"any",
"more",
"data",
"to",
"the",
"socket",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L494-L499 |
66,767 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java | TransmissionData.buildHeader | private boolean buildHeader(HeaderFields headerFields, WsByteBuffer xmitBuffer)
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "buildHeader", new Object[] {headerFields, xmitBuffer});
if (tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, tc, xmitBuffer, "xmitBuffer");
boolean... | java | private boolean buildHeader(HeaderFields headerFields, WsByteBuffer xmitBuffer)
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "buildHeader", new Object[] {headerFields, xmitBuffer});
if (tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, tc, xmitBuffer, "xmitBuffer");
boolean... | [
"private",
"boolean",
"buildHeader",
"(",
"HeaderFields",
"headerFields",
",",
"WsByteBuffer",
"xmitBuffer",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"buildHeader\"",
",",
"new",
... | Builds a header from a description of the header fields. The header is
incrementally built into the supplied transmission buffer. This may
require use of a scratch space in the event that there is insufficient room
in the transmission buffer on the first attempt.
@param headerFields
@param xmitBuffer
@return True if ... | [
"Builds",
"a",
"header",
"from",
"a",
"description",
"of",
"the",
"header",
"fields",
".",
"The",
"header",
"is",
"incrementally",
"built",
"into",
"the",
"supplied",
"transmission",
"buffer",
".",
"This",
"may",
"require",
"use",
"of",
"a",
"scratch",
"spac... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L538-L600 |
66,768 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java | TransmissionData.buildPayload | private boolean buildPayload(WsByteBuffer xmitBuffer)
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "buildPayload", xmitBuffer);
if (tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, tc, xmitBuffer, "xmitBuffer");
boolean payloadFinished = false;
int amountCopied, amou... | java | private boolean buildPayload(WsByteBuffer xmitBuffer)
{
if (tc.isEntryEnabled()) SibTr.entry(this, tc, "buildPayload", xmitBuffer);
if (tc.isDebugEnabled()) JFapUtils.debugTraceWsByteBufferInfo(this, tc, xmitBuffer, "xmitBuffer");
boolean payloadFinished = false;
int amountCopied, amou... | [
"private",
"boolean",
"buildPayload",
"(",
"WsByteBuffer",
"xmitBuffer",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"buildPayload\"",
",",
"xmitBuffer",
")",
";",
"if",
"(",
"tc"... | Builds a transmission payload into the supplied buffer. This may be done
incrementally by multiple invocations in the case that the supplied buffer
is smaller than the payload being built.
@param xmitBuffer
@return True if the payload was completely built | [
"Builds",
"a",
"transmission",
"payload",
"into",
"the",
"supplied",
"buffer",
".",
"This",
"may",
"be",
"done",
"incrementally",
"by",
"multiple",
"invocations",
"in",
"the",
"case",
"that",
"the",
"supplied",
"buffer",
"is",
"smaller",
"than",
"the",
"payloa... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/TransmissionData.java#L609-L648 |
66,769 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/container/jaxrs/ClaimValueInjectionEndpoint.java | ClaimValueInjectionEndpoint.verifyInjectedOptionalCustomMissing | @GET
@Path("/verifyInjectedOptionalCustomMissing")
@Produces(MediaType.APPLICATION_JSON)
public JsonObject verifyInjectedOptionalCustomMissing() {
boolean pass = false;
String msg;
// custom-missing
Optional<Long> customValue = custom.getValue();
if(customValue == nul... | java | @GET
@Path("/verifyInjectedOptionalCustomMissing")
@Produces(MediaType.APPLICATION_JSON)
public JsonObject verifyInjectedOptionalCustomMissing() {
boolean pass = false;
String msg;
// custom-missing
Optional<Long> customValue = custom.getValue();
if(customValue == nul... | [
"@",
"GET",
"@",
"Path",
"(",
"\"/verifyInjectedOptionalCustomMissing\"",
")",
"@",
"Produces",
"(",
"MediaType",
".",
"APPLICATION_JSON",
")",
"public",
"JsonObject",
"verifyInjectedOptionalCustomMissing",
"(",
")",
"{",
"boolean",
"pass",
"=",
"false",
";",
"Strin... | Verify that values exist and that types match the corresponding Claims enum
@return a series of pass/fail statements regarding the check for each injected claim | [
"Verify",
"that",
"values",
"exist",
"and",
"that",
"types",
"match",
"the",
"corresponding",
"Claims",
"enum"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/container/jaxrs/ClaimValueInjectionEndpoint.java#L249-L272 |
66,770 | OpenLiberty/open-liberty | dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/PersonAccount.java | PersonAccount.addExtendedProperty | public static void addExtendedProperty(String propName, String dataType, boolean multiValued, Object defaultValue) {
if (dataType == null || "null".equalsIgnoreCase(dataType))
return;
if (extendedPropertiesDataType.containsKey(propName)) {
Tr.warning(tc, WIMMessageKey.DUPLICATE_... | java | public static void addExtendedProperty(String propName, String dataType, boolean multiValued, Object defaultValue) {
if (dataType == null || "null".equalsIgnoreCase(dataType))
return;
if (extendedPropertiesDataType.containsKey(propName)) {
Tr.warning(tc, WIMMessageKey.DUPLICATE_... | [
"public",
"static",
"void",
"addExtendedProperty",
"(",
"String",
"propName",
",",
"String",
"dataType",
",",
"boolean",
"multiValued",
",",
"Object",
"defaultValue",
")",
"{",
"if",
"(",
"dataType",
"==",
"null",
"||",
"\"null\"",
".",
"equalsIgnoreCase",
"(",
... | Allows for an extended property, or a property not pre-defined as part of this PersonAccount entity type, to be
added to the PersonAccount entity
@param propName: name of property
<ul><li>allowed object is a {@link String}</li></ul>
@param dataType: Java type of property
<ul><li>allowed object is a {@link String}</li>... | [
"Allows",
"for",
"an",
"extended",
"property",
"or",
"a",
"property",
"not",
"pre",
"-",
"defined",
"as",
"part",
"of",
"this",
"PersonAccount",
"entity",
"type",
"to",
"be",
"added",
"to",
"the",
"PersonAccount",
"entity"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/PersonAccount.java#L3239-L3258 |
66,771 | OpenLiberty/open-liberty | dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java | ModelBuilder.depluralize | private static String depluralize(String s) {
if (s.endsWith("ies")) {
return s.substring(0, s.length() - 3) + 'y';
}
if (s.endsWith("s")) {
return s.substring(0, s.length() - 1);
}
return s;
} | java | private static String depluralize(String s) {
if (s.endsWith("ies")) {
return s.substring(0, s.length() - 3) + 'y';
}
if (s.endsWith("s")) {
return s.substring(0, s.length() - 1);
}
return s;
} | [
"private",
"static",
"String",
"depluralize",
"(",
"String",
"s",
")",
"{",
"if",
"(",
"s",
".",
"endsWith",
"(",
"\"ies\"",
")",
")",
"{",
"return",
"s",
".",
"substring",
"(",
"0",
",",
"s",
".",
"length",
"(",
")",
"-",
"3",
")",
"+",
"'",
"... | Convert a string like "abcs" to "abc". | [
"Convert",
"a",
"string",
"like",
"abcs",
"to",
"abc",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java#L296-L304 |
66,772 | OpenLiberty/open-liberty | dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java | ModelBuilder.hyphenatedToCamelCase | private static String hyphenatedToCamelCase(String s) {
Matcher m = Pattern.compile("(?:^|-)([a-z])").matcher(s);
StringBuilder b = new StringBuilder();
int last = 0;
for (; m.find(); last = m.end()) {
b.append(s, last, m.start()).append(Character.toUpperCase(m.group(1).charA... | java | private static String hyphenatedToCamelCase(String s) {
Matcher m = Pattern.compile("(?:^|-)([a-z])").matcher(s);
StringBuilder b = new StringBuilder();
int last = 0;
for (; m.find(); last = m.end()) {
b.append(s, last, m.start()).append(Character.toUpperCase(m.group(1).charA... | [
"private",
"static",
"String",
"hyphenatedToCamelCase",
"(",
"String",
"s",
")",
"{",
"Matcher",
"m",
"=",
"Pattern",
".",
"compile",
"(",
"\"(?:^|-)([a-z])\"",
")",
".",
"matcher",
"(",
"s",
")",
";",
"StringBuilder",
"b",
"=",
"new",
"StringBuilder",
"(",
... | Convert a string like "abc-def-ghi" to "AbcDefGhi". | [
"Convert",
"a",
"string",
"like",
"abc",
"-",
"def",
"-",
"ghi",
"to",
"AbcDefGhi",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java#L309-L317 |
66,773 | OpenLiberty/open-liberty | dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java | ModelBuilder.upperCaseFirstChar | private static String upperCaseFirstChar(String s) {
return Character.toUpperCase(s.charAt(0)) + s.substring(1);
} | java | private static String upperCaseFirstChar(String s) {
return Character.toUpperCase(s.charAt(0)) + s.substring(1);
} | [
"private",
"static",
"String",
"upperCaseFirstChar",
"(",
"String",
"s",
")",
"{",
"return",
"Character",
".",
"toUpperCase",
"(",
"s",
".",
"charAt",
"(",
"0",
")",
")",
"+",
"s",
".",
"substring",
"(",
"1",
")",
";",
"}"
] | Convert a string like "abcDef" to "AbcDef". | [
"Convert",
"a",
"string",
"like",
"abcDef",
"to",
"AbcDef",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java#L322-L324 |
66,774 | OpenLiberty/open-liberty | dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java | ModelBuilder.getAnnotationClassValues | private static List<TypeMirror> getAnnotationClassValues(Element member, Annotation annotation, String annotationMemberName) {
for (AnnotationMirror annotationMirror : member.getAnnotationMirrors()) {
if (((TypeElement) annotationMirror.getAnnotationType().asElement()).getQualifiedName().contentEqua... | java | private static List<TypeMirror> getAnnotationClassValues(Element member, Annotation annotation, String annotationMemberName) {
for (AnnotationMirror annotationMirror : member.getAnnotationMirrors()) {
if (((TypeElement) annotationMirror.getAnnotationType().asElement()).getQualifiedName().contentEqua... | [
"private",
"static",
"List",
"<",
"TypeMirror",
">",
"getAnnotationClassValues",
"(",
"Element",
"member",
",",
"Annotation",
"annotation",
",",
"String",
"annotationMemberName",
")",
"{",
"for",
"(",
"AnnotationMirror",
"annotationMirror",
":",
"member",
".",
"getA... | Return a List of TypeMirror for an annotation on a member. This is a
workaround for JDK-6519115, which causes MirroredTypeException to be
thrown rather than MirroredTypesException. | [
"Return",
"a",
"List",
"of",
"TypeMirror",
"for",
"an",
"annotation",
"on",
"a",
"member",
".",
"This",
"is",
"a",
"workaround",
"for",
"JDK",
"-",
"6519115",
"which",
"causes",
"MirroredTypeException",
"to",
"be",
"thrown",
"rather",
"than",
"MirroredTypesExc... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java#L338-L357 |
66,775 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.java | ViewScopeBeanHolder.getContextualStorage | public ViewScopeContextualStorage getContextualStorage(
BeanManager beanManager, String viewScopeId)
{
ViewScopeContextualStorage contextualStorage = storageMap.get(viewScopeId);
if (contextualStorage == null)
{
synchronized (this)
{
... | java | public ViewScopeContextualStorage getContextualStorage(
BeanManager beanManager, String viewScopeId)
{
ViewScopeContextualStorage contextualStorage = storageMap.get(viewScopeId);
if (contextualStorage == null)
{
synchronized (this)
{
... | [
"public",
"ViewScopeContextualStorage",
"getContextualStorage",
"(",
"BeanManager",
"beanManager",
",",
"String",
"viewScopeId",
")",
"{",
"ViewScopeContextualStorage",
"contextualStorage",
"=",
"storageMap",
".",
"get",
"(",
"viewScopeId",
")",
";",
"if",
"(",
"context... | This method will return the ViewScopeContextualStorage or create a new one
if no one is yet assigned to the current windowId.
@param beanManager we need the CDI {@link BeanManager} for serialisation.
@param windowId the windowId for the current browser tab or window. | [
"This",
"method",
"will",
"return",
"the",
"ViewScopeContextualStorage",
"or",
"create",
"a",
"new",
"one",
"if",
"no",
"one",
"is",
"yet",
"assigned",
"to",
"the",
"current",
"windowId",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.java#L81-L98 |
66,776 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/ProviderRegistry.java | ProviderRegistry.setProvider | public AuthConfigProvider setProvider(ProviderService providerService) {
AuthConfigProvider authConfigProvider = null;
if (providerService != null) {
authConfigProvider = providerService.getAuthConfigProvider(this);
registerConfigProvider(authConfigProvider, null, null, null);
... | java | public AuthConfigProvider setProvider(ProviderService providerService) {
AuthConfigProvider authConfigProvider = null;
if (providerService != null) {
authConfigProvider = providerService.getAuthConfigProvider(this);
registerConfigProvider(authConfigProvider, null, null, null);
... | [
"public",
"AuthConfigProvider",
"setProvider",
"(",
"ProviderService",
"providerService",
")",
"{",
"AuthConfigProvider",
"authConfigProvider",
"=",
"null",
";",
"if",
"(",
"providerService",
"!=",
"null",
")",
"{",
"authConfigProvider",
"=",
"providerService",
".",
"... | Called when a Liberty user defined feature provider is set or unset
@param providerService the provider if set, null if unset | [
"Called",
"when",
"a",
"Liberty",
"user",
"defined",
"feature",
"provider",
"is",
"set",
"or",
"unset"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/ProviderRegistry.java#L398-L407 |
66,777 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/SingletonActivationStrategy.java | SingletonActivationStrategy.doActivation | protected BeanO doActivation(EJBThreadData threadData, ContainerTx tx, BeanId beanId,
boolean takeInvocationRef)
throws RemoteException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "doActivation",
... | java | protected BeanO doActivation(EJBThreadData threadData, ContainerTx tx, BeanId beanId,
boolean takeInvocationRef)
throws RemoteException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "doActivation",
... | [
"protected",
"BeanO",
"doActivation",
"(",
"EJBThreadData",
"threadData",
",",
"ContainerTx",
"tx",
",",
"BeanId",
"beanId",
",",
"boolean",
"takeInvocationRef",
")",
"throws",
"RemoteException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")"... | Internal method used by subclasses to activate a bean | [
"Internal",
"method",
"used",
"by",
"subclasses",
"to",
"activate",
"a",
"bean"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/SingletonActivationStrategy.java#L47-L152 |
66,778 | OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/impl/BatchKernelImpl.java | BatchKernelImpl.startPartition | @Override
public Entry<BatchPartitionWorkUnit, Future<?>> startPartition(PartitionPlanConfig partitionPlanConfig,
Step step,
PartitionReplyQueue partitionReplyQueue,
... | java | @Override
public Entry<BatchPartitionWorkUnit, Future<?>> startPartition(PartitionPlanConfig partitionPlanConfig,
Step step,
PartitionReplyQueue partitionReplyQueue,
... | [
"@",
"Override",
"public",
"Entry",
"<",
"BatchPartitionWorkUnit",
",",
"Future",
"<",
"?",
">",
">",
"startPartition",
"(",
"PartitionPlanConfig",
"partitionPlanConfig",
",",
"Step",
"step",
",",
"PartitionReplyQueue",
"partitionReplyQueue",
",",
"boolean",
"isRemote... | Create the BatchPartitionWorkUnit and start the sub-job partition thread.
@return A Map Entry with BatchPartitionWorkUnit as key and a Future WorkUnit as value | [
"Create",
"the",
"BatchPartitionWorkUnit",
"and",
"start",
"the",
"sub",
"-",
"job",
"partition",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/impl/BatchKernelImpl.java#L677-L690 |
66,779 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java | JFAPCommunicator.setConversation | protected void setConversation(Conversation conversation)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setConversation", conversation);
con = conversation;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setConversa... | java | protected void setConversation(Conversation conversation)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setConversation", conversation);
con = conversation;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setConversa... | [
"protected",
"void",
"setConversation",
"(",
"Conversation",
"conversation",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
... | Sets the Conversation object
@param conversation | [
"Sets",
"the",
"Conversation",
"object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java#L152-L157 |
66,780 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java | JFAPCommunicator.jfapExchange | protected CommsByteBuffer jfapExchange(CommsByteBuffer buffer,
int sendSegmentType,
int priority,
boolean canPoolOnReceive)
throws SIConnectionDroppedException, SIConnectionLostException
... | java | protected CommsByteBuffer jfapExchange(CommsByteBuffer buffer,
int sendSegmentType,
int priority,
boolean canPoolOnReceive)
throws SIConnectionDroppedException, SIConnectionLostException
... | [
"protected",
"CommsByteBuffer",
"jfapExchange",
"(",
"CommsByteBuffer",
"buffer",
",",
"int",
"sendSegmentType",
",",
"int",
"priority",
",",
"boolean",
"canPoolOnReceive",
")",
"throws",
"SIConnectionDroppedException",
",",
"SIConnectionLostException",
"{",
"if",
"(",
... | Wraps the JFAP Channel exchange method to allow tracing, retrieval
of Unique request numbers and setting of message priority.
@param buffer
@param sendSegmentType
@param priority
@param canPoolOnReceive
@return CommsByteBuffer
@throws SIConnectionDroppedException
@throws SIConnectionLostException | [
"Wraps",
"the",
"JFAP",
"Channel",
"exchange",
"method",
"to",
"allow",
"tracing",
"retrieval",
"of",
"Unique",
"request",
"numbers",
"and",
"setting",
"of",
"message",
"priority",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java#L222-L284 |
66,781 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java | JFAPCommunicator.jfapSend | protected void jfapSend(CommsByteBuffer buffer,
int sendSegType,
int priority,
boolean canPoolOnReceive,
ThrottlingPolicy throttlingPolicy)
throws SIConnectionDroppedException,
SIConnectionLost... | java | protected void jfapSend(CommsByteBuffer buffer,
int sendSegType,
int priority,
boolean canPoolOnReceive,
ThrottlingPolicy throttlingPolicy)
throws SIConnectionDroppedException,
SIConnectionLost... | [
"protected",
"void",
"jfapSend",
"(",
"CommsByteBuffer",
"buffer",
",",
"int",
"sendSegType",
",",
"int",
"priority",
",",
"boolean",
"canPoolOnReceive",
",",
"ThrottlingPolicy",
"throttlingPolicy",
")",
"throws",
"SIConnectionDroppedException",
",",
"SIConnectionLostExce... | Wraps the JFAP Channel send method to allow tracing, retrieval
of Unique request numbers and setting of message priority.
@param sendSegType
@param priority
@param canPoolOnReceive
@throws SIConnectionDroppedException
@throws SIConnectionLostException | [
"Wraps",
"the",
"JFAP",
"Channel",
"send",
"method",
"to",
"allow",
"tracing",
"retrieval",
"of",
"Unique",
"request",
"numbers",
"and",
"setting",
"of",
"message",
"priority",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java#L297-L341 |
66,782 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java | JFAPCommunicator.getClientCapabilities | private short getClientCapabilities()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getClientCapabilities");
short capabilities = CommsConstants.CAPABILITIES_DEFAULT;
// Allow the use of a runtime property to alter the capability that we req... | java | private short getClientCapabilities()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getClientCapabilities");
short capabilities = CommsConstants.CAPABILITIES_DEFAULT;
// Allow the use of a runtime property to alter the capability that we req... | [
"private",
"short",
"getClientCapabilities",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getClientCapabilities\"",
... | Works out the capabilities that will be sent to the peer as part of the initial handshake.
This also takes into account any overrides from the SIB properties file.
@return Returns the capabilities. | [
"Works",
"out",
"the",
"capabilities",
"that",
"will",
"be",
"sent",
"to",
"the",
"peer",
"as",
"part",
"of",
"the",
"initial",
"handshake",
".",
"This",
"also",
"takes",
"into",
"account",
"any",
"overrides",
"from",
"the",
"SIB",
"properties",
"file",
".... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java#L903-L960 |
66,783 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java | JFAPCommunicator.defaultChecker | public void defaultChecker(CommsByteBuffer buffer, short exceptionCode)
throws SIErrorException
{
if (exceptionCode != CommsConstants.SI_NO_EXCEPTION)
{
throw new SIErrorException(buffer.getException(con));
}
} | java | public void defaultChecker(CommsByteBuffer buffer, short exceptionCode)
throws SIErrorException
{
if (exceptionCode != CommsConstants.SI_NO_EXCEPTION)
{
throw new SIErrorException(buffer.getException(con));
}
} | [
"public",
"void",
"defaultChecker",
"(",
"CommsByteBuffer",
"buffer",
",",
"short",
"exceptionCode",
")",
"throws",
"SIErrorException",
"{",
"if",
"(",
"exceptionCode",
"!=",
"CommsConstants",
".",
"SI_NO_EXCEPTION",
")",
"{",
"throw",
"new",
"SIErrorException",
"("... | The default checker. Should always be called last after all the checkers.
@param buffer
@param exceptionCode
@throws SIErrorException if the exception code is <strong>not</strong>
the enumerated value for "throw no exception". | [
"The",
"default",
"checker",
".",
"Should",
"always",
"be",
"called",
"last",
"after",
"all",
"the",
"checkers",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java#L1415-L1422 |
66,784 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java | JFAPCommunicator.invalidateConnection | protected void invalidateConnection(boolean notifyPeer, Throwable throwable, String debugReason)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "invalidateConnection", new Object[]{new Boolean(notifyPeer),
... | java | protected void invalidateConnection(boolean notifyPeer, Throwable throwable, String debugReason)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "invalidateConnection", new Object[]{new Boolean(notifyPeer),
... | [
"protected",
"void",
"invalidateConnection",
"(",
"boolean",
"notifyPeer",
",",
"Throwable",
"throwable",
",",
"String",
"debugReason",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",... | Utility method to invalidate Connection. Parameters passed to ConnectionInterface.invalidate
@param notifyPeer
@param throwable
@param debugReason | [
"Utility",
"method",
"to",
"invalidate",
"Connection",
".",
"Parameters",
"passed",
"to",
"ConnectionInterface",
".",
"invalidate"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java#L1430-L1444 |
66,785 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java | SibRaMessagingEngineConnection.createListener | SibRaListener createListener(final SIDestinationAddress destination, MessageEndpointFactory messageEndpointFactory)
throws ResourceException {
final String methodName = "createListener";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(th... | java | SibRaListener createListener(final SIDestinationAddress destination, MessageEndpointFactory messageEndpointFactory)
throws ResourceException {
final String methodName = "createListener";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(th... | [
"SibRaListener",
"createListener",
"(",
"final",
"SIDestinationAddress",
"destination",
",",
"MessageEndpointFactory",
"messageEndpointFactory",
")",
"throws",
"ResourceException",
"{",
"final",
"String",
"methodName",
"=",
"\"createListener\"",
";",
"if",
"(",
"TraceCompon... | Creates a new listener to the given destination.
@param destination
the destination to listen to
@return a listener
@throws ResourceException
if the creation fails | [
"Creates",
"a",
"new",
"listener",
"to",
"the",
"given",
"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/SibRaMessagingEngineConnection.java#L661-L686 |
66,786 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java | SibRaMessagingEngineConnection.createDispatcher | SibRaDispatcher createDispatcher(final AbstractConsumerSession session,
final Reliability unrecoveredReliability,
final int maxFailedDeliveries,
final int sequentialFailureThreshold)
throws... | java | SibRaDispatcher createDispatcher(final AbstractConsumerSession session,
final Reliability unrecoveredReliability,
final int maxFailedDeliveries,
final int sequentialFailureThreshold)
throws... | [
"SibRaDispatcher",
"createDispatcher",
"(",
"final",
"AbstractConsumerSession",
"session",
",",
"final",
"Reliability",
"unrecoveredReliability",
",",
"final",
"int",
"maxFailedDeliveries",
",",
"final",
"int",
"sequentialFailureThreshold",
")",
"throws",
"ResourceException",... | Gets a dispatcher for the given session and messages.
@param session
the session locking the messages
@return the dispatcher
@throws ResourceException
if a dispatcher could not be created | [
"Gets",
"a",
"dispatcher",
"for",
"the",
"given",
"session",
"and",
"messages",
"."
] | 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/SibRaMessagingEngineConnection.java#L697-L770 |
66,787 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java | SibRaMessagingEngineConnection.closeDispatcher | void closeDispatcher(final SibRaDispatcher dispatcher) {
final String methodName = "closeDispatcher";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName);
}
dispatcher.close();
_dispatcherCount.decrementAndGet()... | java | void closeDispatcher(final SibRaDispatcher dispatcher) {
final String methodName = "closeDispatcher";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName);
}
dispatcher.close();
_dispatcherCount.decrementAndGet()... | [
"void",
"closeDispatcher",
"(",
"final",
"SibRaDispatcher",
"dispatcher",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"closeDispatcher\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",... | Closes the given dispatcher.
@param dispatcher
the dispatcher to close. | [
"Closes",
"the",
"given",
"dispatcher",
"."
] | 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/SibRaMessagingEngineConnection.java#L778-L798 |
66,788 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java | SibRaMessagingEngineConnection.close | void close() {
final String methodName = "close";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName);
}
close(false);
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.exit... | java | void close() {
final String methodName = "close";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName);
}
close(false);
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.exit... | [
"void",
"close",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"close\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"this",
",",
... | Closes the connection and any associated listeners and dispatchers | [
"Closes",
"the",
"connection",
"and",
"any",
"associated",
"listeners",
"and",
"dispatchers"
] | 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/SibRaMessagingEngineConnection.java#L803-L814 |
66,789 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java | SibRaMessagingEngineConnection.close | void close(boolean alreadyClosed) {
final String methodName = "close";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName, alreadyClosed);
}
_closed = true;
/*
* 238811:
* Stop all of the list... | java | void close(boolean alreadyClosed) {
final String methodName = "close";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName, alreadyClosed);
}
_closed = true;
/*
* 238811:
* Stop all of the list... | [
"void",
"close",
"(",
"boolean",
"alreadyClosed",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"close\"",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"... | Closes this connection and any associated listeners and dispatchers. | [
"Closes",
"this",
"connection",
"and",
"any",
"associated",
"listeners",
"and",
"dispatchers",
"."
] | 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/SibRaMessagingEngineConnection.java#L819-L915 |
66,790 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java | SibRaMessagingEngineConnection.createConnection | SICoreConnection createConnection(SICoreConnectionFactory factory, String name, String password, Map properties, String busName)
throws SIException, SIErrorException, Exception {
final String methodName = "createConnection";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntry... | java | SICoreConnection createConnection(SICoreConnectionFactory factory, String name, String password, Map properties, String busName)
throws SIException, SIErrorException, Exception {
final String methodName = "createConnection";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntry... | [
"SICoreConnection",
"createConnection",
"(",
"SICoreConnectionFactory",
"factory",
",",
"String",
"name",
",",
"String",
"password",
",",
"Map",
"properties",
",",
"String",
"busName",
")",
"throws",
"SIException",
",",
"SIErrorException",
",",
"Exception",
"{",
"fi... | Creates this connection using either the Auth Alias supplied or, if the property is set
the WAS server subject.
@param factory
The SICoreConnectionFactory used to make the connection.
@param name
The userid to use for secure connections
@param password
The password to use for secure connections
@param properties
The M... | [
"Creates",
"this",
"connection",
"using",
"either",
"the",
"Auth",
"Alias",
"supplied",
"or",
"if",
"the",
"property",
"is",
"set",
"the",
"WAS",
"server",
"subject",
"."
] | 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/SibRaMessagingEngineConnection.java#L991-L1012 |
66,791 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.ready.service/src/com/ibm/ws/security/ready/internal/SecurityReadyServiceImpl.java | SecurityReadyServiceImpl.getUnavailableServices | private String getUnavailableServices() {
StringBuilder missingServices = new StringBuilder();
if (tokenService.getReference() == null) {
missingServices.append("tokenService, ");
}
if (tokenManager.getReference() == null) {
missingServices.append("tokenManager, "... | java | private String getUnavailableServices() {
StringBuilder missingServices = new StringBuilder();
if (tokenService.getReference() == null) {
missingServices.append("tokenService, ");
}
if (tokenManager.getReference() == null) {
missingServices.append("tokenManager, "... | [
"private",
"String",
"getUnavailableServices",
"(",
")",
"{",
"StringBuilder",
"missingServices",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"tokenService",
".",
"getReference",
"(",
")",
"==",
"null",
")",
"{",
"missingServices",
".",
"append",
"(... | Construct a String that lists all of the missing services.
This is very useful for debugging.
@return {@code null} if all services are present, or a non-empty
String if any are missing | [
"Construct",
"a",
"String",
"that",
"lists",
"all",
"of",
"the",
"missing",
"services",
".",
"This",
"is",
"very",
"useful",
"for",
"debugging",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.ready.service/src/com/ibm/ws/security/ready/internal/SecurityReadyServiceImpl.java#L174-L201 |
66,792 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.ready.service/src/com/ibm/ws/security/ready/internal/SecurityReadyServiceImpl.java | SecurityReadyServiceImpl.updateSecurityReadyState | private void updateSecurityReadyState() {
if (!activated) {
return;
}
String unavailableServices = getUnavailableServices();
if (unavailableServices == null) {
Tr.info(tc, "SECURITY_SERVICE_READY");
securityReady = true;
Dictionary<String... | java | private void updateSecurityReadyState() {
if (!activated) {
return;
}
String unavailableServices = getUnavailableServices();
if (unavailableServices == null) {
Tr.info(tc, "SECURITY_SERVICE_READY");
securityReady = true;
Dictionary<String... | [
"private",
"void",
"updateSecurityReadyState",
"(",
")",
"{",
"if",
"(",
"!",
"activated",
")",
"{",
"return",
";",
"}",
"String",
"unavailableServices",
"=",
"getUnavailableServices",
"(",
")",
";",
"if",
"(",
"unavailableServices",
"==",
"null",
")",
"{",
... | Security is ready when all of these required services have been registered. | [
"Security",
"is",
"ready",
"when",
"all",
"of",
"these",
"required",
"services",
"have",
"been",
"registered",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.ready.service/src/com/ibm/ws/security/ready/internal/SecurityReadyServiceImpl.java#L206-L229 |
66,793 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ServerXMLConfiguration.java | ServerXMLConfiguration.parseDirectoryFiles | private void parseDirectoryFiles(WsResource directory, ServerConfiguration configuration) throws ConfigParserException, ConfigValidationException {
if (directory != null) {
File[] defaultFiles = getChildXMLFiles(directory);
if (defaultFiles == null)
return;
A... | java | private void parseDirectoryFiles(WsResource directory, ServerConfiguration configuration) throws ConfigParserException, ConfigValidationException {
if (directory != null) {
File[] defaultFiles = getChildXMLFiles(directory);
if (defaultFiles == null)
return;
A... | [
"private",
"void",
"parseDirectoryFiles",
"(",
"WsResource",
"directory",
",",
"ServerConfiguration",
"configuration",
")",
"throws",
"ConfigParserException",
",",
"ConfigValidationException",
"{",
"if",
"(",
"directory",
"!=",
"null",
")",
"{",
"File",
"[",
"]",
"d... | Parse all of the config files in a directory in platform insensitive alphabetical order | [
"Parse",
"all",
"of",
"the",
"config",
"files",
"in",
"a",
"directory",
"in",
"platform",
"insensitive",
"alphabetical",
"order"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ServerXMLConfiguration.java#L345-L383 |
66,794 | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/VirtualHost.java | VirtualHost.findContext | public ServletContext findContext(String path) {
WebGroup g = (WebGroup) requestMapper.map(path);
if (g != null)
return g.getContext();
else
return null;
} | java | public ServletContext findContext(String path) {
WebGroup g = (WebGroup) requestMapper.map(path);
if (g != null)
return g.getContext();
else
return null;
} | [
"public",
"ServletContext",
"findContext",
"(",
"String",
"path",
")",
"{",
"WebGroup",
"g",
"=",
"(",
"WebGroup",
")",
"requestMapper",
".",
"map",
"(",
"path",
")",
";",
"if",
"(",
"g",
"!=",
"null",
")",
"return",
"g",
".",
"getContext",
"(",
")",
... | Method findContext.
@param path
@return ServletContext | [
"Method",
"findContext",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/VirtualHost.java#L197-L203 |
66,795 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/SingleFileClient.java | SingleFileClient.addWlpInformation | private void addWlpInformation(Asset asset) {
WlpInformation wlpInfo = asset.getWlpInformation();
if (wlpInfo == null) {
wlpInfo = new WlpInformation();
asset.setWlpInformation(wlpInfo);
}
if (wlpInfo.getAppliesToFilterInfo() == null) {
wlpInfo.setAppl... | java | private void addWlpInformation(Asset asset) {
WlpInformation wlpInfo = asset.getWlpInformation();
if (wlpInfo == null) {
wlpInfo = new WlpInformation();
asset.setWlpInformation(wlpInfo);
}
if (wlpInfo.getAppliesToFilterInfo() == null) {
wlpInfo.setAppl... | [
"private",
"void",
"addWlpInformation",
"(",
"Asset",
"asset",
")",
"{",
"WlpInformation",
"wlpInfo",
"=",
"asset",
".",
"getWlpInformation",
"(",
")",
";",
"if",
"(",
"wlpInfo",
"==",
"null",
")",
"{",
"wlpInfo",
"=",
"new",
"WlpInformation",
"(",
")",
";... | For historic reasons, when an asset is read back from the repository the wlpInformation and ATFI should always be present. This method does that. | [
"For",
"historic",
"reasons",
"when",
"an",
"asset",
"is",
"read",
"back",
"from",
"the",
"repository",
"the",
"wlpInformation",
"and",
"ATFI",
"should",
"always",
"be",
"present",
".",
"This",
"method",
"does",
"that",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/SingleFileClient.java#L215-L224 |
66,796 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/JFapChannelInbound.java | JFapChannelInbound.getDiscriminator | public Discriminator getDiscriminator() {
if (tc.isEntryEnabled())
SibTr.entry(this, tc, "getDiscriminator");
if (tc.isEntryEnabled())
SibTr.exit(this, tc, "getDiscriminator", discriminator);
return discriminator;
} | java | public Discriminator getDiscriminator() {
if (tc.isEntryEnabled())
SibTr.entry(this, tc, "getDiscriminator");
if (tc.isEntryEnabled())
SibTr.exit(this, tc, "getDiscriminator", discriminator);
return discriminator;
} | [
"public",
"Discriminator",
"getDiscriminator",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getDiscriminator\"",
")",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
... | Returns the discriminator for this channel. | [
"Returns",
"the",
"discriminator",
"for",
"this",
"channel",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/JFapChannelInbound.java#L68-L74 |
66,797 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java | ServerAsyncResult.getResult | private Object getResult() throws InterruptedException, ExecutionException {
if (ivCancelled) { // F743-11774
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.exit(tc, "getResult: throwing CancellationException");
}
throw new CancellationE... | java | private Object getResult() throws InterruptedException, ExecutionException {
if (ivCancelled) { // F743-11774
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.exit(tc, "getResult: throwing CancellationException");
}
throw new CancellationE... | [
"private",
"Object",
"getResult",
"(",
")",
"throws",
"InterruptedException",
",",
"ExecutionException",
"{",
"if",
"(",
"ivCancelled",
")",
"{",
"// F743-11774",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",... | This get method returns the result of the async method call. This method
must not be called unless ivGate indicates that results are available.
@return - the result object
@throws InterruptedException - if the thread is interrupted while waiting
@throws CancellationException - if the async method was canceled success... | [
"This",
"get",
"method",
"returns",
"the",
"result",
"of",
"the",
"async",
"method",
"call",
".",
"This",
"method",
"must",
"not",
"be",
"called",
"unless",
"ivGate",
"indicates",
"that",
"results",
"are",
"available",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java#L217-L248 |
66,798 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java | ServerAsyncResult.getResult | private Object getResult(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
if (ivCancelled) { // F743-11774
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.exit(tc, "getResult: throwing CancellationException");
... | java | private Object getResult(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
if (ivCancelled) { // F743-11774
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.exit(tc, "getResult: throwing CancellationException");
... | [
"private",
"Object",
"getResult",
"(",
"long",
"timeout",
",",
"TimeUnit",
"unit",
")",
"throws",
"InterruptedException",
",",
"ExecutionException",
",",
"TimeoutException",
"{",
"if",
"(",
"ivCancelled",
")",
"{",
"// F743-11774",
"if",
"(",
"TraceComponent",
"."... | This get method returns the result of the asynch method call. This method
must not be called unless ivGate indicates that results are available.
@param timeout - the timeout value
@param unit - the time unit for the timeout value (e.g. milliseconds, seconds, etc.)
@return - the result object
@throws InterruptedExcep... | [
"This",
"get",
"method",
"returns",
"the",
"result",
"of",
"the",
"asynch",
"method",
"call",
".",
"This",
"method",
"must",
"not",
"be",
"called",
"unless",
"ivGate",
"indicates",
"that",
"results",
"are",
"available",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java#L264-L303 |
66,799 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java | ServerAsyncResult.isCancelled | @Override
public boolean isCancelled() {
//F743-609CodRev - read volatile variable only once
boolean cancelled = ivCancelled;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "isCancelled: " + cancelled + " Future object: " + this);
}
... | java | @Override
public boolean isCancelled() {
//F743-609CodRev - read volatile variable only once
boolean cancelled = ivCancelled;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "isCancelled: " + cancelled + " Future object: " + this);
}
... | [
"@",
"Override",
"public",
"boolean",
"isCancelled",
"(",
")",
"{",
"//F743-609CodRev - read volatile variable only once",
"boolean",
"cancelled",
"=",
"ivCancelled",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnab... | This method allows clients to check the Future object to see if the asynch
method was canceled before it got a chance to execute. | [
"This",
"method",
"allows",
"clients",
"to",
"check",
"the",
"Future",
"object",
"to",
"see",
"if",
"the",
"asynch",
"method",
"was",
"canceled",
"before",
"it",
"got",
"a",
"chance",
"to",
"execute",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java#L373-L384 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.