repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java | Tr.register | public static TraceComponent register(String name, Class<?> aClass, String[] groups) {
return register(name, aClass, groups, null);
} | java | public static TraceComponent register(String name, Class<?> aClass, String[] groups) {
return register(name, aClass, groups, null);
} | [
"public",
"static",
"TraceComponent",
"register",
"(",
"String",
"name",
",",
"Class",
"<",
"?",
">",
"aClass",
",",
"String",
"[",
"]",
"groups",
")",
"{",
"return",
"register",
"(",
"name",
",",
"aClass",
",",
"groups",
",",
"null",
")",
";",
"}"
] | Register the provided name with the trace service and assign it to the
provided groups.
@param name
a <code>String</code> to register a component for with
the trace manager. The name is used in the registration
process.
@param aClass
a valid <code>Class</code> to register a component for with
the trace manager. The cl... | [
"Register",
"the",
"provided",
"name",
"with",
"the",
"trace",
"service",
"and",
"assign",
"it",
"to",
"the",
"provided",
"groups",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java#L228-L230 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java | Tr.audit | public static final void audit(TraceComponent tc, String msgKey, Object... objs) {
TrConfigurator.getDelegate().audit(tc, msgKey, objs);
} | java | public static final void audit(TraceComponent tc, String msgKey, Object... objs) {
TrConfigurator.getDelegate().audit(tc, msgKey, objs);
} | [
"public",
"static",
"final",
"void",
"audit",
"(",
"TraceComponent",
"tc",
",",
"String",
"msgKey",
",",
"Object",
"...",
"objs",
")",
"{",
"TrConfigurator",
".",
"getDelegate",
"(",
")",
".",
"audit",
"(",
"tc",
",",
"msgKey",
",",
"objs",
")",
";",
"... | Print the provided translated message if the input trace component allows
audit level messages.
@param tc
the non-null <code>TraceComponent</code> the event is
associated with.
@param msgKey
the message key identifying an NLS message for this event.
This message must be in the resource bundle currently
associated with... | [
"Print",
"the",
"provided",
"translated",
"message",
"if",
"the",
"input",
"trace",
"component",
"allows",
"audit",
"level",
"messages",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java#L364-L366 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java | Tr.entry | public static final void entry(TraceComponent tc, String methodName, Object... objs) {
TrConfigurator.getDelegate().entry(tc, methodName, objs);
} | java | public static final void entry(TraceComponent tc, String methodName, Object... objs) {
TrConfigurator.getDelegate().entry(tc, methodName, objs);
} | [
"public",
"static",
"final",
"void",
"entry",
"(",
"TraceComponent",
"tc",
",",
"String",
"methodName",
",",
"Object",
"...",
"objs",
")",
"{",
"TrConfigurator",
".",
"getDelegate",
"(",
")",
".",
"entry",
"(",
"tc",
",",
"methodName",
",",
"objs",
")",
... | Print the provided trace point if the input trace component allows entry
level messages.
@param tc
the non-null <code>TraceComponent</code> the event is
associated with.
@param methodName
@param objs
a variable number (zero to n) of <code>Objects</code>.
toString() is called on each object and the results are
appended... | [
"Print",
"the",
"provided",
"trace",
"point",
"if",
"the",
"input",
"trace",
"component",
"allows",
"entry",
"level",
"messages",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java#L442-L444 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java | Tr.formatMessage | public static final String formatMessage(TraceComponent tc, String msgKey, Object... objs) {
return formatMessage(tc, Locale.getDefault(), msgKey, objs);
} | java | public static final String formatMessage(TraceComponent tc, String msgKey, Object... objs) {
return formatMessage(tc, Locale.getDefault(), msgKey, objs);
} | [
"public",
"static",
"final",
"String",
"formatMessage",
"(",
"TraceComponent",
"tc",
",",
"String",
"msgKey",
",",
"Object",
"...",
"objs",
")",
"{",
"return",
"formatMessage",
"(",
"tc",
",",
"Locale",
".",
"getDefault",
"(",
")",
",",
"msgKey",
",",
"obj... | Translate a message in the context of the input trace component using
the default locale. This method is typically used to provide translated
messages that might help resolve an exception that is surfaced to a user.
@param tc
the non-null <code>TraceComponent</code> of the message
@param msgKey
the message key identif... | [
"Translate",
"a",
"message",
"in",
"the",
"context",
"of",
"the",
"input",
"trace",
"component",
"using",
"the",
"default",
"locale",
".",
"This",
"method",
"is",
"typically",
"used",
"to",
"provide",
"translated",
"messages",
"that",
"might",
"help",
"resolve... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java#L675-L677 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java | Tr.formatMessage | public static final String formatMessage(TraceComponent tc, List<Locale> locales, String msgKey, Object... objs) {
// WsLogRecord.createWsLogRecord + BaseTraceService.formatMessage
// The best odds for finding the resource bundle are with using the
// classloader that loaded the associated clas... | java | public static final String formatMessage(TraceComponent tc, List<Locale> locales, String msgKey, Object... objs) {
// WsLogRecord.createWsLogRecord + BaseTraceService.formatMessage
// The best odds for finding the resource bundle are with using the
// classloader that loaded the associated clas... | [
"public",
"static",
"final",
"String",
"formatMessage",
"(",
"TraceComponent",
"tc",
",",
"List",
"<",
"Locale",
">",
"locales",
",",
"String",
"msgKey",
",",
"Object",
"...",
"objs",
")",
"{",
"// WsLogRecord.createWsLogRecord + BaseTraceService.formatMessage",
"// T... | Translate a message in the context of the input trace component. This
method is typically used to provide translated messages that might help
resolve an exception that is surfaced to a user.
@param tc
the non-null <code>TraceComponent</code> of the message
@param locales
the possible locales to use for translation. Lo... | [
"Translate",
"a",
"message",
"in",
"the",
"context",
"of",
"the",
"input",
"trace",
"component",
".",
"This",
"method",
"is",
"typically",
"used",
"to",
"provide",
"translated",
"messages",
"that",
"might",
"help",
"resolve",
"an",
"exception",
"that",
"is",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java#L723-L744 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java | Tr.registerTraceComponent | static void registerTraceComponent(TraceComponent tc) {
tc.setTraceSpec(activeTraceSpec);
TrService activeDelegate = TrConfigurator.getDelegate();
activeDelegate.register(tc);
TrConfigurator.traceComponentRegistered(tc);
// Add the new TraceComponent to the queue of new trace ... | java | static void registerTraceComponent(TraceComponent tc) {
tc.setTraceSpec(activeTraceSpec);
TrService activeDelegate = TrConfigurator.getDelegate();
activeDelegate.register(tc);
TrConfigurator.traceComponentRegistered(tc);
// Add the new TraceComponent to the queue of new trace ... | [
"static",
"void",
"registerTraceComponent",
"(",
"TraceComponent",
"tc",
")",
"{",
"tc",
".",
"setTraceSpec",
"(",
"activeTraceSpec",
")",
";",
"TrService",
"activeDelegate",
"=",
"TrConfigurator",
".",
"getDelegate",
"(",
")",
";",
"activeDelegate",
".",
"registe... | Support for com.ibm.ejs.ras.Tr register methods | [
"Support",
"for",
"com",
".",
"ibm",
".",
"ejs",
".",
"ras",
".",
"Tr",
"register",
"methods"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.core/src/com/ibm/websphere/ras/Tr.java#L749-L763 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/BatchingContextImpl.java | BatchingContextImpl.updateXIDToCommitted | public void updateXIDToCommitted(PersistentTranId xid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateXIDToCommitted", "XID="+xid);
if (_deferredException == null)
{
// We are committing a transaction. The transaction can
/... | java | public void updateXIDToCommitted(PersistentTranId xid)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateXIDToCommitted", "XID="+xid);
if (_deferredException == null)
{
// We are committing a transaction. The transaction can
/... | [
"public",
"void",
"updateXIDToCommitted",
"(",
"PersistentTranId",
"xid",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"updateXIDToCommit... | In the OM implementation this method is used to flag the batching
context so that upon the next call to executeBatch the OM transaction
being used is committed.
@param xid | [
"In",
"the",
"OM",
"implementation",
"this",
"method",
"is",
"used",
"to",
"flag",
"the",
"batching",
"context",
"so",
"that",
"upon",
"the",
"next",
"call",
"to",
"executeBatch",
"the",
"OM",
"transaction",
"being",
"used",
"is",
"committed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/BatchingContextImpl.java#L607-L632 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMFactory.java | JPAEMFactory.unwrap | public <T> T unwrap(Class<T> cls) // d706751
{
if (cls.isInstance(ivFactory))
{
return cls.cast(ivFactory);
}
throw new PersistenceException(cls.toString());
} | java | public <T> T unwrap(Class<T> cls) // d706751
{
if (cls.isInstance(ivFactory))
{
return cls.cast(ivFactory);
}
throw new PersistenceException(cls.toString());
} | [
"public",
"<",
"T",
">",
"T",
"unwrap",
"(",
"Class",
"<",
"T",
">",
"cls",
")",
"// d706751",
"{",
"if",
"(",
"cls",
".",
"isInstance",
"(",
"ivFactory",
")",
")",
"{",
"return",
"cls",
".",
"cast",
"(",
"ivFactory",
")",
";",
"}",
"throw",
"new... | Return an object of the specified type to allow access to
provider-specific API.
@param cls the class of the object to be returned
@return an instance of the specified class
@throws PersistenceException if the class is not supported | [
"Return",
"an",
"object",
"of",
"the",
"specified",
"type",
"to",
"allow",
"access",
"to",
"provider",
"-",
"specific",
"API",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.core/src/com/ibm/ws/jpa/management/JPAEMFactory.java#L78-L86 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/AtomicServiceReference.java | AtomicServiceReference.getService | @SuppressWarnings("unchecked")
private T getService(boolean throwException) {
T svc = null;
ReferenceTuple<T> current = null;
ReferenceTuple<T> newTuple = null;
do {
// Get the current tuple
current = tuple.get();
// We have both a context and a ... | java | @SuppressWarnings("unchecked")
private T getService(boolean throwException) {
T svc = null;
ReferenceTuple<T> current = null;
ReferenceTuple<T> newTuple = null;
do {
// Get the current tuple
current = tuple.get();
// We have both a context and a ... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"T",
"getService",
"(",
"boolean",
"throwException",
")",
"{",
"T",
"svc",
"=",
"null",
";",
"ReferenceTuple",
"<",
"T",
">",
"current",
"=",
"null",
";",
"ReferenceTuple",
"<",
"T",
">",
"newT... | Try to locate the service
@param throwException if true, throw exception when required services are
missing
@return T or null if unavailable | [
"Try",
"to",
"locate",
"the",
"service"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.service/src/com/ibm/wsspi/kernel/service/utils/AtomicServiceReference.java#L220-L273 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java | EJBThreadData.getCurrentThreadContext | private static <T> ThreadContext<T> getCurrentThreadContext(ThreadContext<T> threadContext)
{
return ((ThreadContextImpl<T>) threadContext).get();
} | java | private static <T> ThreadContext<T> getCurrentThreadContext(ThreadContext<T> threadContext)
{
return ((ThreadContextImpl<T>) threadContext).get();
} | [
"private",
"static",
"<",
"T",
">",
"ThreadContext",
"<",
"T",
">",
"getCurrentThreadContext",
"(",
"ThreadContext",
"<",
"T",
">",
"threadContext",
")",
"{",
"return",
"(",
"(",
"ThreadContextImpl",
"<",
"T",
">",
")",
"threadContext",
")",
".",
"get",
"(... | Obtains a context object optimized for accessing the current thread. | [
"Obtains",
"a",
"context",
"object",
"optimized",
"for",
"accessing",
"the",
"current",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java#L47-L50 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java | EJBThreadData.getCallbackBeanO | public BeanO getCallbackBeanO()
{
BeanO result = ivCallbackBeanOStack.peek();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getCallbackBeanO: " + result);
return result;
} | java | public BeanO getCallbackBeanO()
{
BeanO result = ivCallbackBeanOStack.peek();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getCallbackBeanO: " + result);
return result;
} | [
"public",
"BeanO",
"getCallbackBeanO",
"(",
")",
"{",
"BeanO",
"result",
"=",
"ivCallbackBeanOStack",
".",
"peek",
"(",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
"."... | Gets a reference to the bean that the container is currently processing
via a business method or lifecycle callback.
@return the callback bean, or null if the container is not processing a
bean | [
"Gets",
"a",
"reference",
"to",
"the",
"bean",
"that",
"the",
"container",
"is",
"currently",
"processing",
"via",
"a",
"business",
"method",
"or",
"lifecycle",
"callback",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java#L206-L213 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java | EJBThreadData.pushCallbackBeanO | public void pushCallbackBeanO(BeanO bean) // d662032
throws CSIException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "pushCallbackBeanO: " + bean);
HandleListInterface hl = bean.reAssociateHandleList();
ivHandleListContext.beginContext(hl... | java | public void pushCallbackBeanO(BeanO bean) // d662032
throws CSIException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "pushCallbackBeanO: " + bean);
HandleListInterface hl = bean.reAssociateHandleList();
ivHandleListContext.beginContext(hl... | [
"public",
"void",
"pushCallbackBeanO",
"(",
"BeanO",
"bean",
")",
"// d662032",
"throws",
"CSIException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",... | Updates the bean that the container is currently processing via a
business method or lifecycle callback, and establishes a thread context
specific to the bean.
@throws CSIException if an exception occurs while reassociating handles | [
"Updates",
"the",
"bean",
"that",
"the",
"container",
"is",
"currently",
"processing",
"via",
"a",
"business",
"method",
"or",
"lifecycle",
"callback",
"and",
"establishes",
"a",
"thread",
"context",
"specific",
"to",
"the",
"bean",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java#L222-L232 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java | EJBThreadData.pushClassLoader | public void pushClassLoader(BeanMetaData bmd)
{
ClassLoader classLoader = bmd.ivContextClassLoader; // F85059
Object origCL = svThreadContextAccessor.pushContextClassLoaderForUnprivileged(classLoader);
ivClassLoaderStack.push(origCL);
if (TraceComponent.isAnyTracingEnabled() && tc.i... | java | public void pushClassLoader(BeanMetaData bmd)
{
ClassLoader classLoader = bmd.ivContextClassLoader; // F85059
Object origCL = svThreadContextAccessor.pushContextClassLoaderForUnprivileged(classLoader);
ivClassLoaderStack.push(origCL);
if (TraceComponent.isAnyTracingEnabled() && tc.i... | [
"public",
"void",
"pushClassLoader",
"(",
"BeanMetaData",
"bmd",
")",
"{",
"ClassLoader",
"classLoader",
"=",
"bmd",
".",
"ivContextClassLoader",
";",
"// F85059",
"Object",
"origCL",
"=",
"svThreadContextAccessor",
".",
"pushContextClassLoaderForUnprivileged",
"(",
"cl... | Sets the thread context class loader for the specified bean metadata, and
saves the current thread context class loader. | [
"Sets",
"the",
"thread",
"context",
"class",
"loader",
"for",
"the",
"specified",
"bean",
"metadata",
"and",
"saves",
"the",
"current",
"thread",
"context",
"class",
"loader",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java#L253-L264 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java | EJBThreadData.getContextData | public Map<String, Object> getContextData() // d644886
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
Map<String, Object> contextData;
if (isLifecycleMethodActive()) // d704496
{
if (ivLifecycleContextData == null)
{
ivLifec... | java | public Map<String, Object> getContextData() // d644886
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
Map<String, Object> contextData;
if (isLifecycleMethodActive()) // d704496
{
if (ivLifecycleContextData == null)
{
ivLifec... | [
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"getContextData",
"(",
")",
"// d644886",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"Map",
"<",
"String",
",",
"Object",
">",
"contextData",
";"... | Gets the context data associated with the current EJB method or EJB
lifecycle callback.
@see BeanO#getContextData
@throws IllegalStateException if neither an EJB method nor an EJB
lifecycle method is active on the thread | [
"Gets",
"the",
"context",
"data",
"associated",
"with",
"the",
"current",
"EJB",
"method",
"or",
"EJB",
"lifecycle",
"callback",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJBThreadData.java#L373-L414 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/Utils.java | Utils.getImpl | protected static Object getImpl(String className, Class[] types, Object[] args) {
// No tracing as this is used to load the trace factory.
Object Impl; // For return.
try {
Class classToInstantiate = Class.forName(className);
java.lang.reflect.Constructor constructor = c... | java | protected static Object getImpl(String className, Class[] types, Object[] args) {
// No tracing as this is used to load the trace factory.
Object Impl; // For return.
try {
Class classToInstantiate = Class.forName(className);
java.lang.reflect.Constructor constructor = c... | [
"protected",
"static",
"Object",
"getImpl",
"(",
"String",
"className",
",",
"Class",
"[",
"]",
"types",
",",
"Object",
"[",
"]",
"args",
")",
"{",
"// No tracing as this is used to load the trace factory.",
"Object",
"Impl",
";",
"// For return.",
"try",
"{",
"Cl... | Create a platform specific instance of a utils class.
@param className the simple name of the class whois implementation is to be found.
@param types used to select the constructor.
@param args used to invoke the constructor.
@return Object the utils class loaded. | [
"Create",
"a",
"platform",
"specific",
"instance",
"of",
"a",
"utils",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/utils/Utils.java#L34-L53 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java | UniqueKeyRangeManager.scheduleUpdate | public void scheduleUpdate(UniqueKeyGenerator generator)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "scheduleUpdate", "GeneratorName="+generator.getName());
synchronized (_asyncQ)
{
_asyncQ.add(generator);
_asyncQ.notify();
... | java | public void scheduleUpdate(UniqueKeyGenerator generator)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "scheduleUpdate", "GeneratorName="+generator.getName());
synchronized (_asyncQ)
{
_asyncQ.add(generator);
_asyncQ.notify();
... | [
"public",
"void",
"scheduleUpdate",
"(",
"UniqueKeyGenerator",
"generator",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"scheduleUpdate\... | Request an asynchronous update of the persistent state
@param generator to be updated | [
"Request",
"an",
"asynchronous",
"update",
"of",
"the",
"persistent",
"state"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java#L131-L142 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java | UniqueKeyRangeManager.entryExists | public boolean entryExists(UniqueKeyGenerator generator)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "entryExists", "GeneratorName="+generator.getName());
boolean retval = false;
if (_generators.containsKey(generator.getName()))
{
... | java | public boolean entryExists(UniqueKeyGenerator generator)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "entryExists", "GeneratorName="+generator.getName());
boolean retval = false;
if (_generators.containsKey(generator.getName()))
{
... | [
"public",
"boolean",
"entryExists",
"(",
"UniqueKeyGenerator",
"generator",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"entryExists\"",... | Test if the generator is known to the persistence layer
@param generator to check for
@return true if generator exists, false otherwise | [
"Test",
"if",
"the",
"generator",
"is",
"known",
"to",
"the",
"persistence",
"layer"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java#L151-L164 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java | UniqueKeyRangeManager.addEntry | public long addEntry(UniqueKeyGenerator generator) throws PersistenceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addEntry", "GeneratorName="+generator.getName());
if (!_generators.containsKey(generator.getName()))
{
Transaction t... | java | public long addEntry(UniqueKeyGenerator generator) throws PersistenceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addEntry", "GeneratorName="+generator.getName());
if (!_generators.containsKey(generator.getName()))
{
Transaction t... | [
"public",
"long",
"addEntry",
"(",
"UniqueKeyGenerator",
"generator",
")",
"throws",
"PersistenceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"... | Tell the persistence layer about a new generator
@param generator
@return initial key to be used by the generator
@throws PersistenceException | [
"Tell",
"the",
"persistence",
"layer",
"about",
"a",
"new",
"generator"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java#L174-L227 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java | UniqueKeyRangeManager.updateEntry | public long updateEntry(UniqueKeyGenerator generator) throws PersistenceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateEntry", "GeneratorName="+generator.getName());
long currentLimit = 0L;
// Do we know of this generator?
if (_g... | java | public long updateEntry(UniqueKeyGenerator generator) throws PersistenceException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "updateEntry", "GeneratorName="+generator.getName());
long currentLimit = 0L;
// Do we know of this generator?
if (_g... | [
"public",
"long",
"updateEntry",
"(",
"UniqueKeyGenerator",
"generator",
")",
"throws",
"PersistenceException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
... | Request an immediate update to the persistent state
@param generator to be updated
@return the value that was stored prior to the update
@throws PersistenceException | [
"Request",
"an",
"immediate",
"update",
"to",
"the",
"persistent",
"state"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java#L237-L302 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java | UniqueKeyRangeManager.run | public void run()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "run");
UniqueKeyGenerator generator = null;
while (_running)
{
synchronized (_asyncQ)
{
// Do we have anything to do?
while... | java | public void run()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "run");
UniqueKeyGenerator generator = null;
while (_running)
{
synchronized (_asyncQ)
{
// Do we have anything to do?
while... | [
"public",
"void",
"run",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"run\"",
")",
";",
"UniqueKeyGenerator",
"generator",
"=... | This method is where the asynchronous reads and writes are done
to the filesystem for persistent updates to the currently active
range of keys. | [
"This",
"method",
"is",
"where",
"the",
"asynchronous",
"reads",
"and",
"writes",
"are",
"done",
"to",
"the",
"filesystem",
"for",
"persistent",
"updates",
"to",
"the",
"currently",
"active",
"range",
"of",
"keys",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/persistence/objectManager/UniqueKeyRangeManager.java#L310-L358 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/injection/ServiceRefObjectFactory.java | ServiceRefObjectFactory.getInstance | private Object getInstance(TransientWebServiceRefInfo tInfo, WebServiceRefInfo wsrInfo) throws Exception {
Object instance = null;
// First, obtain an instance of the JAX-WS Service class.
Service svc = null;
List<WebServiceFeature> originalWsFeatureList = LibertyProviderImpl.getWebSe... | java | private Object getInstance(TransientWebServiceRefInfo tInfo, WebServiceRefInfo wsrInfo) throws Exception {
Object instance = null;
// First, obtain an instance of the JAX-WS Service class.
Service svc = null;
List<WebServiceFeature> originalWsFeatureList = LibertyProviderImpl.getWebSe... | [
"private",
"Object",
"getInstance",
"(",
"TransientWebServiceRefInfo",
"tInfo",
",",
"WebServiceRefInfo",
"wsrInfo",
")",
"throws",
"Exception",
"{",
"Object",
"instance",
"=",
"null",
";",
"// First, obtain an instance of the JAX-WS Service class.",
"Service",
"svc",
"=",
... | This method will create an instance of a JAX-WS service ref, using the metadata supplied in the WebServiceRefInfo
object. | [
"This",
"method",
"will",
"create",
"an",
"instance",
"of",
"a",
"JAX",
"-",
"WS",
"service",
"ref",
"using",
"the",
"metadata",
"supplied",
"in",
"the",
"WebServiceRefInfo",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/injection/ServiceRefObjectFactory.java#L176-L222 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.authentication.filter/src/com/ibm/ws/security/authentication/filter/internal/OrCondition.java | OrCondition.checkCondition | @Override
public boolean checkCondition(IValue test) throws FilterException {
Iterator iter = values.iterator();
while (iter.hasNext()) {
IValue value = (IValue) iter.next();
if (value.containedBy(test)) {
return true;
}
}
return fa... | java | @Override
public boolean checkCondition(IValue test) throws FilterException {
Iterator iter = values.iterator();
while (iter.hasNext()) {
IValue value = (IValue) iter.next();
if (value.containedBy(test)) {
return true;
}
}
return fa... | [
"@",
"Override",
"public",
"boolean",
"checkCondition",
"(",
"IValue",
"test",
")",
"throws",
"FilterException",
"{",
"Iterator",
"iter",
"=",
"values",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"iter",
".",
"hasNext",
"(",
")",
")",
"{",
"IValue",
"... | Loop through all of the values and see if any of them pass the equality test | [
"Loop",
"through",
"all",
"of",
"the",
"values",
"and",
"see",
"if",
"any",
"of",
"them",
"pass",
"the",
"equality",
"test"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.filter/src/com/ibm/ws/security/authentication/filter/internal/OrCondition.java#L44-L54 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/dataobject/IDAndRealm.java | IDAndRealm.setRealm | public void setRealm(String inputRealm) {
if ((inputRealm != null) && (!inputRealm.equals(""))) {
this.realm = inputRealm;
setRealmDefined(true);
}
} | java | public void setRealm(String inputRealm) {
if ((inputRealm != null) && (!inputRealm.equals(""))) {
this.realm = inputRealm;
setRealmDefined(true);
}
} | [
"public",
"void",
"setRealm",
"(",
"String",
"inputRealm",
")",
"{",
"if",
"(",
"(",
"inputRealm",
"!=",
"null",
")",
"&&",
"(",
"!",
"inputRealm",
".",
"equals",
"(",
"\"\"",
")",
")",
")",
"{",
"this",
".",
"realm",
"=",
"inputRealm",
";",
"setReal... | Set the realm.
@param inputRealm The realm to set.
@pre inputRealm != null
@pre inputRealm != "" | [
"Set",
"the",
"realm",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.registry/src/com/ibm/ws/security/wim/registry/dataobject/IDAndRealm.java#L101-L106 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/upgrade/H2HandlerImpl.java | H2HandlerImpl.isH2Request | @Override
public boolean isH2Request(HttpInboundConnection hic, ServletRequest request) throws ServletException {
//first check if H2 is enabled for this channel/port
if (!((Http2InboundConnection)hic).isHTTP2UpgradeRequest(null, true) ){
return false;
}
... | java | @Override
public boolean isH2Request(HttpInboundConnection hic, ServletRequest request) throws ServletException {
//first check if H2 is enabled for this channel/port
if (!((Http2InboundConnection)hic).isHTTP2UpgradeRequest(null, true) ){
return false;
}
... | [
"@",
"Override",
"public",
"boolean",
"isH2Request",
"(",
"HttpInboundConnection",
"hic",
",",
"ServletRequest",
"request",
")",
"throws",
"ServletException",
"{",
"//first check if H2 is enabled for this channel/port",
"if",
"(",
"!",
"(",
"(",
"Http2InboundConnection",
... | Determines if a given request is an http2 upgrade request | [
"Determines",
"if",
"a",
"given",
"request",
"is",
"an",
"http2",
"upgrade",
"request"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/upgrade/H2HandlerImpl.java#L40-L60 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/upgrade/H2HandlerImpl.java | H2HandlerImpl.handleRequest | @Override
public void handleRequest(HttpInboundConnection hic, HttpServletRequest request, HttpServletResponse response) {
Http2InboundConnection h2ic = (Http2InboundConnection) hic;
H2UpgradeHandlerWrapper h2uh = null;
try {
h2uh = request.upgrade(H2UpgradeHandlerWrapper.class);... | java | @Override
public void handleRequest(HttpInboundConnection hic, HttpServletRequest request, HttpServletResponse response) {
Http2InboundConnection h2ic = (Http2InboundConnection) hic;
H2UpgradeHandlerWrapper h2uh = null;
try {
h2uh = request.upgrade(H2UpgradeHandlerWrapper.class);... | [
"@",
"Override",
"public",
"void",
"handleRequest",
"(",
"HttpInboundConnection",
"hic",
",",
"HttpServletRequest",
"request",
",",
"HttpServletResponse",
"response",
")",
"{",
"Http2InboundConnection",
"h2ic",
"=",
"(",
"Http2InboundConnection",
")",
"hic",
";",
"H2U... | Upgrades the given request for http2 | [
"Upgrades",
"the",
"given",
"request",
"for",
"http2"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.servlet.3.1/src/com/ibm/ws/webcontainer31/upgrade/H2HandlerImpl.java#L65-L106 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionEvent.java | WSConnectionEvent.recycle | public final WSConnectionEvent recycle(int eid, Exception ex, Object handle)
{
id = eid;
exception = ex;
setConnectionHandle(handle);
return this;
} | java | public final WSConnectionEvent recycle(int eid, Exception ex, Object handle)
{
id = eid;
exception = ex;
setConnectionHandle(handle);
return this;
} | [
"public",
"final",
"WSConnectionEvent",
"recycle",
"(",
"int",
"eid",
",",
"Exception",
"ex",
",",
"Object",
"handle",
")",
"{",
"id",
"=",
"eid",
";",
"exception",
"=",
"ex",
";",
"setConnectionHandle",
"(",
"handle",
")",
";",
"return",
"this",
";",
"}... | Recycle this ConnectionEvent by replacing the current values with those for the new
event.
@param eid ConnectionEvent constant indicating the type of ConnectionEvent.
@param ex the exception about to be throw to the application, or null if none.
@param handle Connection handle on which the error occurred, or null if n... | [
"Recycle",
"this",
"ConnectionEvent",
"by",
"replacing",
"the",
"current",
"values",
"with",
"those",
"for",
"the",
"new",
"event",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionEvent.java#L79-L86 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java | SSLWriteServiceContext.encryptAndWriteAsync | public VirtualConnection encryptAndWriteAsync(long numBytes, boolean forceQueue, int timeout) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "encryptAndWriteAsync: " + numBytes);
}
this.asyncBytesToWrite = 0L;
this.asyncTimeout = timeout;
... | java | public VirtualConnection encryptAndWriteAsync(long numBytes, boolean forceQueue, int timeout) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "encryptAndWriteAsync: " + numBytes);
}
this.asyncBytesToWrite = 0L;
this.asyncTimeout = timeout;
... | [
"public",
"VirtualConnection",
"encryptAndWriteAsync",
"(",
"long",
"numBytes",
",",
"boolean",
"forceQueue",
",",
"int",
"timeout",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
... | This method is called as a part of an asynchronous write, but after a
potential SSL handshake has taken place.
@param numBytes
@param forceQueue
@param timeout
@return virtual connection | [
"This",
"method",
"is",
"called",
"as",
"a",
"part",
"of",
"an",
"asynchronous",
"write",
"but",
"after",
"a",
"potential",
"SSL",
"handshake",
"has",
"taken",
"place",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java#L442-L511 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java | SSLWriteServiceContext.doHandshake | private SSLEngineResult doHandshake(MyHandshakeCompletedCallback hsCallback) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "doHandshake");
}
SSLEngineResult sslResult;
SSLEngine sslEngine = getConnLink().getSSLEngine();
... | java | private SSLEngineResult doHandshake(MyHandshakeCompletedCallback hsCallback) throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "doHandshake");
}
SSLEngineResult sslResult;
SSLEngine sslEngine = getConnLink().getSSLEngine();
... | [
"private",
"SSLEngineResult",
"doHandshake",
"(",
"MyHandshakeCompletedCallback",
"hsCallback",
")",
"throws",
"IOException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
... | When a write is attempted, a first check is done to see if the SSL engine
needs to do a handshake. If so, this method will be called. Note, it is
used by both the sync and async writes.
@param hsCallback callback for use by async write, null for sync write
@return result of the handshake
@throws IOException | [
"When",
"a",
"write",
"is",
"attempted",
"a",
"first",
"check",
"is",
"done",
"to",
"see",
"if",
"the",
"SSL",
"engine",
"needs",
"to",
"do",
"a",
"handshake",
".",
"If",
"so",
"this",
"method",
"will",
"be",
"called",
".",
"Note",
"it",
"is",
"used"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java#L619-L678 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java | SSLWriteServiceContext.encryptMessage | private SSLEngineResult encryptMessage() throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "encryptMessage");
}
// Get the application buffer used as input to the encryption algorithm.
// Extract the app buffers containing d... | java | private SSLEngineResult encryptMessage() throws IOException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "encryptMessage");
}
// Get the application buffer used as input to the encryption algorithm.
// Extract the app buffers containing d... | [
"private",
"SSLEngineResult",
"encryptMessage",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"encryptMe... | Handle common activity of write and writeAsynch involving the encryption of the
current buffers. The caller will have the responsibility of writing them to the
device side channel.
@return SSLEngineResult
@throws IOException | [
"Handle",
"common",
"activity",
"of",
"write",
"and",
"writeAsynch",
"involving",
"the",
"encryption",
"of",
"the",
"current",
"buffers",
".",
"The",
"caller",
"will",
"have",
"the",
"responsibility",
"of",
"writing",
"them",
"to",
"the",
"device",
"side",
"ch... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java#L688-L750 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java | SSLWriteServiceContext.increaseEncryptedBuffer | protected void increaseEncryptedBuffer() throws IOException {
final int packetSize = getConnLink().getPacketBufferSize();
if (null == this.encryptedAppBuffer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Allocating encryptedAppBuffer, siz... | java | protected void increaseEncryptedBuffer() throws IOException {
final int packetSize = getConnLink().getPacketBufferSize();
if (null == this.encryptedAppBuffer) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Allocating encryptedAppBuffer, siz... | [
"protected",
"void",
"increaseEncryptedBuffer",
"(",
")",
"throws",
"IOException",
"{",
"final",
"int",
"packetSize",
"=",
"getConnLink",
"(",
")",
".",
"getPacketBufferSize",
"(",
")",
";",
"if",
"(",
"null",
"==",
"this",
".",
"encryptedAppBuffer",
")",
"{",... | Reuse the buffers used to send data out to the network. If existing buffer
is available, grow the array by one.
@throws IOException - if allocation failed | [
"Reuse",
"the",
"buffers",
"used",
"to",
"send",
"data",
"out",
"to",
"the",
"network",
".",
"If",
"existing",
"buffer",
"is",
"available",
"grow",
"the",
"array",
"by",
"one",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java#L758-L787 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java | SSLWriteServiceContext.getEncryptedAppBuffer | private void getEncryptedAppBuffer(int requested_size) throws IOException {
final int size = Math.max(getConnLink().getPacketBufferSize(), requested_size);
synchronized (closeSync) {
if (closeCalled) {
IOException up = new IOException("Operation failed due to connection clo... | java | private void getEncryptedAppBuffer(int requested_size) throws IOException {
final int size = Math.max(getConnLink().getPacketBufferSize(), requested_size);
synchronized (closeSync) {
if (closeCalled) {
IOException up = new IOException("Operation failed due to connection clo... | [
"private",
"void",
"getEncryptedAppBuffer",
"(",
"int",
"requested_size",
")",
"throws",
"IOException",
"{",
"final",
"int",
"size",
"=",
"Math",
".",
"max",
"(",
"getConnLink",
"(",
")",
".",
"getPacketBufferSize",
"(",
")",
",",
"requested_size",
")",
";",
... | Make sure that an output buffer is ready for encryption use. This will always
allocate a minimum of the current SSLSession packet size.
@param requested_size | [
"Make",
"sure",
"that",
"an",
"output",
"buffer",
"is",
"ready",
"for",
"encryption",
"use",
".",
"This",
"will",
"always",
"allocate",
"a",
"minimum",
"of",
"the",
"current",
"SSLSession",
"packet",
"size",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java#L795-L822 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java | SSLWriteServiceContext.close | public void close() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "close");
}
synchronized (closeSync) {
if (closeCalled) {
return;
}
closeCalled = true;
// Release the buffer used ... | java | public void close() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "close");
}
synchronized (closeSync) {
if (closeCalled) {
return;
}
closeCalled = true;
// Release the buffer used ... | [
"public",
"void",
"close",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"close\"",
")",
";",
"}",
"synchronized",
"(",
"... | Release the potential input buffer that was created during encryption. | [
"Release",
"the",
"potential",
"input",
"buffer",
"that",
"was",
"created",
"during",
"encryption",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channel.ssl/src/com/ibm/ws/channel/ssl/internal/SSLWriteServiceContext.java#L827-L854 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/SubjectPublicKeyInfo.java | SubjectPublicKeyInfo.getPublicKey | public DERObject getPublicKey()
throws IOException
{
ByteArrayInputStream bIn = new ByteArrayInputStream(keyData.getBytes());
ASN1InputStream aIn = new ASN1InputStream(bIn);
return aIn.readObject();
} | java | public DERObject getPublicKey()
throws IOException
{
ByteArrayInputStream bIn = new ByteArrayInputStream(keyData.getBytes());
ASN1InputStream aIn = new ASN1InputStream(bIn);
return aIn.readObject();
} | [
"public",
"DERObject",
"getPublicKey",
"(",
")",
"throws",
"IOException",
"{",
"ByteArrayInputStream",
"bIn",
"=",
"new",
"ByteArrayInputStream",
"(",
"keyData",
".",
"getBytes",
"(",
")",
")",
";",
"ASN1InputStream",
"aIn",
"=",
"new",
"ASN1InputStream",
"(",
"... | for when the public key is an encoded object - if the bitstring
can't be decoded this routine throws an IOException.
@exception IOException - if the bit string doesn't represent a DER
encoded object. | [
"for",
"when",
"the",
"public",
"key",
"is",
"an",
"encoded",
"object",
"-",
"if",
"the",
"bitstring",
"can",
"t",
"be",
"decoded",
"this",
"routine",
"throws",
"an",
"IOException",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/SubjectPublicKeyInfo.java#L102-L109 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/remap/AddVersionFieldClassAdapter.java | AddVersionFieldClassAdapter.visitEnd | @Override
public void visitEnd() {
if (!fieldAlreadyExists) {
FieldVisitor fv = super.visitField(
Opcodes.ACC_PUBLIC + Opcodes.ACC_FINAL + Opcodes.ACC_STATIC,
versionFieldName,
... | java | @Override
public void visitEnd() {
if (!fieldAlreadyExists) {
FieldVisitor fv = super.visitField(
Opcodes.ACC_PUBLIC + Opcodes.ACC_FINAL + Opcodes.ACC_STATIC,
versionFieldName,
... | [
"@",
"Override",
"public",
"void",
"visitEnd",
"(",
")",
"{",
"if",
"(",
"!",
"fieldAlreadyExists",
")",
"{",
"FieldVisitor",
"fv",
"=",
"super",
".",
"visitField",
"(",
"Opcodes",
".",
"ACC_PUBLIC",
"+",
"Opcodes",
".",
"ACC_FINAL",
"+",
"Opcodes",
".",
... | End of class visitor that creates a version field definition if an
existing definition wasn't observed. | [
"End",
"of",
"class",
"visitor",
"that",
"creates",
"a",
"version",
"field",
"definition",
"if",
"an",
"existing",
"definition",
"wasn",
"t",
"observed",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/bci/remap/AddVersionFieldClassAdapter.java#L72-L85 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionFactoryImpl.java | JmsConnectionFactoryImpl.setNonPersistentMapping | @Override
public void setNonPersistentMapping(String nonPersistentMapping) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setNonPersistentMapping", nonPersistentMapping);
if (nonPersistentMapping == null) {
throw... | java | @Override
public void setNonPersistentMapping(String nonPersistentMapping) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setNonPersistentMapping", nonPersistentMapping);
if (nonPersistentMapping == null) {
throw... | [
"@",
"Override",
"public",
"void",
"setNonPersistentMapping",
"(",
"String",
"nonPersistentMapping",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
... | default non persistent mapping is EXPRESS_NONPERSISTENT, null non persistent mapping is
not valid. | [
"default",
"non",
"persistent",
"mapping",
"is",
"EXPRESS_NONPERSISTENT",
"null",
"non",
"persistent",
"mapping",
"is",
"not",
"valid",
"."
] | 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/JmsConnectionFactoryImpl.java#L117-L153 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionFactoryImpl.java | JmsConnectionFactoryImpl.setPersistentMapping | @Override
public void setPersistentMapping(String persistentMapping) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setPersistentMapping", persistentMapping);
if (persistentMapping == null) {
throw (JMSException)... | java | @Override
public void setPersistentMapping(String persistentMapping) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setPersistentMapping", persistentMapping);
if (persistentMapping == null) {
throw (JMSException)... | [
"@",
"Override",
"public",
"void",
"setPersistentMapping",
"(",
"String",
"persistentMapping",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
... | default persistent mapping is RELIABLE_PERSISTENT, null persistent mapping is
not valid. | [
"default",
"persistent",
"mapping",
"is",
"RELIABLE_PERSISTENT",
"null",
"persistent",
"mapping",
"is",
"not",
"valid",
"."
] | 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/JmsConnectionFactoryImpl.java#L159-L195 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionFactoryImpl.java | JmsConnectionFactoryImpl.setConnectionProximity | @Override
public void setConnectionProximity(String newConnectionProximity) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setConnectionProximity", newConnectionProximity);
// Check for null and empty string, and set to defa... | java | @Override
public void setConnectionProximity(String newConnectionProximity) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setConnectionProximity", newConnectionProximity);
// Check for null and empty string, and set to defa... | [
"@",
"Override",
"public",
"void",
"setConnectionProximity",
"(",
"String",
"newConnectionProximity",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
... | Set the connection proximity
181802.2
@param newConnectionProximity The connection proximity to use
@see com.ibm.websphere.sib.api.jms.JmsConnectionFactory#setConnectionProximity(java.lang.String) | [
"Set",
"the",
"connection",
"proximity",
"181802",
".",
"2"
] | 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/JmsConnectionFactoryImpl.java#L298-L325 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionFactoryImpl.java | JmsConnectionFactoryImpl.setTargetTransportChain | @Override
public void setTargetTransportChain(String newTargetTransportChain) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTargetTransportChain", newTargetTransportChain);
jcaManagedConnectionFactory.setTargetTransportCh... | java | @Override
public void setTargetTransportChain(String newTargetTransportChain) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTargetTransportChain", newTargetTransportChain);
jcaManagedConnectionFactory.setTargetTransportCh... | [
"@",
"Override",
"public",
"void",
"setTargetTransportChain",
"(",
"String",
"newTargetTransportChain",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr"... | Set the remote protocol
181802.2
@param newTargetTransportChain The remote protocol to use
@see com.ibm.websphere.sib.api.jms.JmsConnectionFactory#setRemoteProtocol(java.lang.String) | [
"Set",
"the",
"remote",
"protocol",
"181802",
".",
"2"
] | 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/JmsConnectionFactoryImpl.java#L368-L375 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionFactoryImpl.java | JmsConnectionFactoryImpl.setTarget | @Override
public void setTarget(String newTargetGroup) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTarget", newTargetGroup);
jcaManagedConnectionFactory.setTarget(newTargetGroup);
if (TraceComponent.isAnyTracing... | java | @Override
public void setTarget(String newTargetGroup) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTarget", newTargetGroup);
jcaManagedConnectionFactory.setTarget(newTargetGroup);
if (TraceComponent.isAnyTracing... | [
"@",
"Override",
"public",
"void",
"setTarget",
"(",
"String",
"newTargetGroup",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"... | Set the target
181802.2
@param newTargetGroup The target to use
@see com.ibm.websphere.sib.api.jms.JmsConnectionFactory#setTarget(java.lang.String) | [
"Set",
"the",
"target",
"181802",
".",
"2"
] | 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/JmsConnectionFactoryImpl.java#L384-L391 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionFactoryImpl.java | JmsConnectionFactoryImpl.setTargetType | @Override
public void setTargetType(String newTargetType) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTargetType", newTargetType);
// Check for null and empty string, and set to default value if found
if ((newT... | java | @Override
public void setTargetType(String newTargetType) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTargetType", newTargetType);
// Check for null and empty string, and set to default value if found
if ((newT... | [
"@",
"Override",
"public",
"void",
"setTargetType",
"(",
"String",
"newTargetType",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
... | Set the target type
181802.2
@param newTargetType The target type to use
@see com.ibm.websphere.sib.api.jms.JmsConnectionFactory#setTargetType(java.lang.String) | [
"Set",
"the",
"target",
"type",
"181802",
".",
"2"
] | 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/JmsConnectionFactoryImpl.java#L400-L426 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionFactoryImpl.java | JmsConnectionFactoryImpl.setTemporaryQueueNamePrefix | @Override
public void setTemporaryQueueNamePrefix(String prefix) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTemporaryQueueNamePrefix", prefix);
if (prefix != null && !prefix.equals("")) {
jcaManagedConnect... | java | @Override
public void setTemporaryQueueNamePrefix(String prefix) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setTemporaryQueueNamePrefix", prefix);
if (prefix != null && !prefix.equals("")) {
jcaManagedConnect... | [
"@",
"Override",
"public",
"void",
"setTemporaryQueueNamePrefix",
"(",
"String",
"prefix",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"e... | Set the temp queue name prefix
188482
@param prefix The String prefix to use
@see com.ibm.websphere.sib.api.jms.JmsConnectionFactory#setTemporaryQueueNamePrefix(java.lang.String) | [
"Set",
"the",
"temp",
"queue",
"name",
"prefix",
"188482"
] | 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/JmsConnectionFactoryImpl.java#L435-L449 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionFactoryImpl.java | JmsConnectionFactoryImpl.setMulticastInterface | @Override
public void setMulticastInterface(String mi) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setMulticastInterface", mi);
jcaManagedConnectionFactory.setMulticastInterface(mi);
if (TraceComponent.isAnyTracingEnabled() && tc.isEn... | java | @Override
public void setMulticastInterface(String mi) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setMulticastInterface", mi);
jcaManagedConnectionFactory.setMulticastInterface(mi);
if (TraceComponent.isAnyTracingEnabled() && tc.isEn... | [
"@",
"Override",
"public",
"void",
"setMulticastInterface",
"(",
"String",
"mi",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
... | Set network interface to be used for multicast data.
@param mi The IP address of the network interface.
@see ApiJmsConstants.MULTICAST_INTERFACE_NONE | [
"Set",
"network",
"interface",
"to",
"be",
"used",
"for",
"multicast",
"data",
"."
] | 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/JmsConnectionFactoryImpl.java#L541-L548 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionFactoryImpl.java | JmsConnectionFactoryImpl.setSubscriptionProtocol | @Override
public void setSubscriptionProtocol(String p) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setSubscriptionProtocol", p);
if (ApiJmsConstants.SUBSCRIPTION_PROTOCOL_UNICAST.equals(p) ||
ApiJmsConstants.... | java | @Override
public void setSubscriptionProtocol(String p) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setSubscriptionProtocol", p);
if (ApiJmsConstants.SUBSCRIPTION_PROTOCOL_UNICAST.equals(p) ||
ApiJmsConstants.... | [
"@",
"Override",
"public",
"void",
"setSubscriptionProtocol",
"(",
"String",
"p",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
... | Set the subscription protocol to be used for the transmission of
message data from the ME to the client.
@param the protocol to use.
@see ApiJmsConstants.SUBSCRIPTION_PROTOCOL_UNICAST
@see ApiJmsConstants.SUBSCRIPTION_PROTOCOL_MULTICAST
@see ApiJmsConstants.SUBSCRIPTION_PROTOCOL_UNICAST_AND_MULTICAST | [
"Set",
"the",
"subscription",
"protocol",
"to",
"be",
"used",
"for",
"the",
"transmission",
"of",
"message",
"data",
"from",
"the",
"ME",
"to",
"the",
"client",
"."
] | 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/JmsConnectionFactoryImpl.java#L559-L577 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsConnectionFactoryImpl.java | JmsConnectionFactoryImpl.setProducerDoesNotModifyPayloadAfterSet | @Override
public void setProducerDoesNotModifyPayloadAfterSet(String propertyValue) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setProducerDoesNotModifyPayloadAfterSet", propertyValue);
// First of all, convert null and e... | java | @Override
public void setProducerDoesNotModifyPayloadAfterSet(String propertyValue) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setProducerDoesNotModifyPayloadAfterSet", propertyValue);
// First of all, convert null and e... | [
"@",
"Override",
"public",
"void",
"setProducerDoesNotModifyPayloadAfterSet",
"(",
"String",
"propertyValue",
")",
"throws",
"JMSException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"... | Sets the property that indicates if the producer will modify the payload after setting it.
@param propertyValue containing the property value.
@throws JMSException In the event of an invalid value | [
"Sets",
"the",
"property",
"that",
"indicates",
"if",
"the",
"producer",
"will",
"modify",
"the",
"payload",
"after",
"setting",
"it",
"."
] | 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/JmsConnectionFactoryImpl.java#L585-L609 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/CRLDistPoint.java | CRLDistPoint.getDistributionPoints | public DistributionPoint[] getDistributionPoints()
{
DistributionPoint[] dp = new DistributionPoint[seq.size()];
for (int i = 0; i != seq.size(); i++)
{
dp[i] = DistributionPoint.getInstance(seq.getObjectAt(i));
}
return dp;
} | java | public DistributionPoint[] getDistributionPoints()
{
DistributionPoint[] dp = new DistributionPoint[seq.size()];
for (int i = 0; i != seq.size(); i++)
{
dp[i] = DistributionPoint.getInstance(seq.getObjectAt(i));
}
return dp;
} | [
"public",
"DistributionPoint",
"[",
"]",
"getDistributionPoints",
"(",
")",
"{",
"DistributionPoint",
"[",
"]",
"dp",
"=",
"new",
"DistributionPoint",
"[",
"seq",
".",
"size",
"(",
")",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"!=",
"seq",... | Return the distribution points making up the sequence.
@return DistributionPoint[] | [
"Return",
"the",
"distribution",
"points",
"making",
"up",
"the",
"sequence",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/CRLDistPoint.java#L75-L85 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/J2CUtilityClass.java | J2CUtilityClass.getNextThrowable | public static Throwable getNextThrowable(Throwable t) {
Throwable nextThrowable = null;
if (t != null) {
// try getCause first.
nextThrowable = t.getCause();
if (nextThrowable == null) {
// if getCause returns null, look for the JDBC and JCA specifi... | java | public static Throwable getNextThrowable(Throwable t) {
Throwable nextThrowable = null;
if (t != null) {
// try getCause first.
nextThrowable = t.getCause();
if (nextThrowable == null) {
// if getCause returns null, look for the JDBC and JCA specifi... | [
"public",
"static",
"Throwable",
"getNextThrowable",
"(",
"Throwable",
"t",
")",
"{",
"Throwable",
"nextThrowable",
"=",
"null",
";",
"if",
"(",
"t",
"!=",
"null",
")",
"{",
"// try getCause first.",
"nextThrowable",
"=",
"t",
".",
"getCause",
"(",
")",
";",... | Finds the next Throwable object from the one provided.
@param t The throwable to start with
@return The next or linked, or initial cause. | [
"Finds",
"the",
"next",
"Throwable",
"object",
"from",
"the",
"one",
"provided",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/J2CUtilityClass.java#L89-L110 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/ChangeControl.java | ChangeControl.getCheckPoint | public List<com.ibm.wsspi.security.wim.model.CheckPointType> getCheckPoint() {
if (checkPoint == null) {
checkPoint = new ArrayList<com.ibm.wsspi.security.wim.model.CheckPointType>();
}
return this.checkPoint;
} | java | public List<com.ibm.wsspi.security.wim.model.CheckPointType> getCheckPoint() {
if (checkPoint == null) {
checkPoint = new ArrayList<com.ibm.wsspi.security.wim.model.CheckPointType>();
}
return this.checkPoint;
} | [
"public",
"List",
"<",
"com",
".",
"ibm",
".",
"wsspi",
".",
"security",
".",
"wim",
".",
"model",
".",
"CheckPointType",
">",
"getCheckPoint",
"(",
")",
"{",
"if",
"(",
"checkPoint",
"==",
"null",
")",
"{",
"checkPoint",
"=",
"new",
"ArrayList",
"<",
... | Gets the value of the checkPoint property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the checkPoint property.
<p>
For example, to... | [
"Gets",
"the",
"value",
"of",
"the",
"checkPoint",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/ChangeControl.java#L117-L122 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/GatheringConsumerKey.java | GatheringConsumerKey.isKeyReady | public boolean isKeyReady()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isKeyReady");
boolean returnValue = false;
if(keyGroup == null)
returnValue = ready;
else
//check if the ordering context is ready
returnValue = keyGroup.isKeyRe... | java | public boolean isKeyReady()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isKeyReady");
boolean returnValue = false;
if(keyGroup == null)
returnValue = ready;
else
//check if the ordering context is ready
returnValue = keyGroup.isKeyRe... | [
"public",
"boolean",
"isKeyReady",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"isKeyReady\"",
")",
";",
"boolean",
"returnValu... | Determine if this key is ready
No need to synchronize as this should be called under the readyConsumerPointLock | [
"Determine",
"if",
"this",
"key",
"is",
"ready",
"No",
"need",
"to",
"synchronize",
"as",
"this",
"should",
"be",
"called",
"under",
"the",
"readyConsumerPointLock"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/GatheringConsumerKey.java#L297-L313 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/GatheringConsumerKey.java | GatheringConsumerKey.markNotReady | public synchronized void markNotReady()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "markNotReady");
// No-op
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "markNotReady");
} | java | public synchronized void markNotReady()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "markNotReady");
// No-op
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "markNotReady");
} | [
"public",
"synchronized",
"void",
"markNotReady",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"markNotReady\"",
")",
";",
"// N... | No-op for gathering | [
"No",
"-",
"op",
"for",
"gathering"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/GatheringConsumerKey.java#L316-L325 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/GatheringConsumerKey.java | GatheringConsumerKey.reattachConsumer | public void reattachConsumer(SIBUuid8 uuid, ConsumableKey ck)
throws SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "reattachConsumer", new Object[] {uuid, ck});
long timeout = LocalConsumerPoint.NO_WAIT;
... | java | public void reattachConsumer(SIBUuid8 uuid, ConsumableKey ck)
throws SINotPossibleInCurrentConfigurationException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "reattachConsumer", new Object[] {uuid, ck});
long timeout = LocalConsumerPoint.NO_WAIT;
... | [
"public",
"void",
"reattachConsumer",
"(",
"SIBUuid8",
"uuid",
",",
"ConsumableKey",
"ck",
")",
"throws",
"SINotPossibleInCurrentConfigurationException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
... | Also add the consumer key back into the list. | [
"Also",
"add",
"the",
"consumer",
"key",
"back",
"into",
"the",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/GatheringConsumerKey.java#L530-L575 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractObjectStore.java | AbstractObjectStore.like | public Token like(Token likeToken)
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"like",
new Object[] { likeToken });
// See if we already have a copy of the object in memo... | java | public Token like(Token likeToken)
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"like",
new Object[] { likeToken });
// See if we already have a copy of the object in memo... | [
"public",
"Token",
"like",
"(",
"Token",
"likeToken",
")",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"cclass",
",",
"\"like\"",
",",
"n... | References a ManagedObject at the same location in the store.
Used to make sure that the caller is refering to the same object as
all other users of the ManagedObject.
@param likeToken which is a prototype of the Token we are looking for.
@return the definitive version of the Token. | [
"References",
"a",
"ManagedObject",
"at",
"the",
"same",
"location",
"in",
"the",
"store",
".",
"Used",
"to",
"make",
"sure",
"that",
"the",
"caller",
"is",
"refering",
"to",
"the",
"same",
"object",
"as",
"all",
"other",
"users",
"of",
"the",
"ManagedObje... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractObjectStore.java#L265-L300 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractObjectStore.java | AbstractObjectStore.allocate | public Token allocate(ManagedObject objectToStore)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"allocate",
objectToStore);
... | java | public Token allocate(ManagedObject objectToStore)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"allocate",
objectToStore);
... | [
"public",
"Token",
"allocate",
"(",
"ManagedObject",
"objectToStore",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"th... | Allocate a Token for the ManagedObject.
@param objectToStore to be allocated a token.
@return Token allocated.
@throws ObjectManagerException | [
"Allocate",
"a",
"Token",
"for",
"the",
"ManagedObject",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractObjectStore.java#L310-L408 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractObjectStore.java | AbstractObjectStore.getIdentifier | public int getIdentifier()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
{
trace.entry(this, cclass
, "getIdentifier"
);
trace.exit(this, cclass
, "getIdentifier"
... | java | public int getIdentifier()
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
{
trace.entry(this, cclass
, "getIdentifier"
);
trace.exit(this, cclass
, "getIdentifier"
... | [
"public",
"int",
"getIdentifier",
"(",
")",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"trace",
".",
"entry",
"(",
"this",
",",
"cclass",
",",
"\"getIdentifier\"",
")",
";",
... | The identifier of the ObjectStore, unique within this ObjectManager.
@return int the objectStore identifier | [
"The",
"identifier",
"of",
"the",
"ObjectStore",
"unique",
"within",
"this",
"ObjectManager",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractObjectStore.java#L584-L598 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractObjectStore.java | AbstractObjectStore.setIdentifier | public void setIdentifier(int identifier)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"setIdentifier",
new Object[] { new Integer... | java | public void setIdentifier(int identifier)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"setIdentifier",
new Object[] { new Integer... | [
"public",
"void",
"setIdentifier",
"(",
"int",
"identifier",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",... | Set the identifier of the Object Store, unique within this ObjectManager.
@param identifier the assigned objectStore identifier
@throws ObjectManagerException | [
"Set",
"the",
"identifier",
"of",
"the",
"Object",
"Store",
"unique",
"within",
"this",
"ObjectManager",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractObjectStore.java#L606-L640 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractObjectStore.java | AbstractObjectStore.getName | public final String getName() {
final String methodName = "getName";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) {
trace.entry(this, cclass, methodName);
trace.exit(this, cclass, methodName, new Object[] { storeName });
}
return storeName;
} | java | public final String getName() {
final String methodName = "getName";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) {
trace.entry(this, cclass, methodName);
trace.exit(this, cclass, methodName, new Object[] { storeName });
}
return storeName;
} | [
"public",
"final",
"String",
"getName",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"getName\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"trace",
".",
"entry",
... | The name of the ObjectStore.
@return String the objectStore name | [
"The",
"name",
"of",
"the",
"ObjectStore",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/AbstractObjectStore.java#L647-L654 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.registry/src/com/ibm/ws/security/registry/internal/UserRegistryServiceImpl.java | UserRegistryServiceImpl.autoDetectUserRegistry | private UserRegistry autoDetectUserRegistry(boolean exceptionOnError) throws RegistryException {
// Determine if there is a federation registry configured.
UserRegistry ur = getFederationRegistry(exceptionOnError);
synchronized (userRegistrySync) {
if (ur != null) {
s... | java | private UserRegistry autoDetectUserRegistry(boolean exceptionOnError) throws RegistryException {
// Determine if there is a federation registry configured.
UserRegistry ur = getFederationRegistry(exceptionOnError);
synchronized (userRegistrySync) {
if (ur != null) {
s... | [
"private",
"UserRegistry",
"autoDetectUserRegistry",
"(",
"boolean",
"exceptionOnError",
")",
"throws",
"RegistryException",
"{",
"// Determine if there is a federation registry configured.",
"UserRegistry",
"ur",
"=",
"getFederationRegistry",
"(",
"exceptionOnError",
")",
";",
... | When a configuration element is not defined, use some "auto-detect"
logic to try and return the single UserRegistry. If there is no
service, or multiple services, that is considered an error case which
"auto-detect" can not resolve.
@return
@throws RegistryException | [
"When",
"a",
"configuration",
"element",
"is",
"not",
"defined",
"use",
"some",
"auto",
"-",
"detect",
"logic",
"to",
"try",
"and",
"return",
"the",
"single",
"UserRegistry",
".",
"If",
"there",
"is",
"no",
"service",
"or",
"multiple",
"services",
"that",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.registry/src/com/ibm/ws/security/registry/internal/UserRegistryServiceImpl.java#L391-L429 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.registry/src/com/ibm/ws/security/registry/internal/UserRegistryServiceImpl.java | UserRegistryServiceImpl.getUserRegistryFromConfiguration | private UserRegistry getUserRegistryFromConfiguration() throws RegistryException {
String[] refIds = this.refId;
if (refIds == null || refIds.length == 0) {
// Can look for config.source = file
// If thats set, and we're missing this, we can error.
// If its not set, ... | java | private UserRegistry getUserRegistryFromConfiguration() throws RegistryException {
String[] refIds = this.refId;
if (refIds == null || refIds.length == 0) {
// Can look for config.source = file
// If thats set, and we're missing this, we can error.
// If its not set, ... | [
"private",
"UserRegistry",
"getUserRegistryFromConfiguration",
"(",
")",
"throws",
"RegistryException",
"{",
"String",
"[",
"]",
"refIds",
"=",
"this",
".",
"refId",
";",
"if",
"(",
"refIds",
"==",
"null",
"||",
"refIds",
".",
"length",
"==",
"0",
")",
"{",
... | When a configuration element is defined, use it to resolve the effective
UserRegistry configuration.
@return
@throws RegistryException | [
"When",
"a",
"configuration",
"element",
"is",
"defined",
"use",
"it",
"to",
"resolve",
"the",
"effective",
"UserRegistry",
"configuration",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.registry/src/com/ibm/ws/security/registry/internal/UserRegistryServiceImpl.java#L447-L471 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/AioTCPReadRequestContextImpl.java | AioTCPReadRequestContextImpl.processSyncReadRequest | public long processSyncReadRequest(long numBytes, int timeout) throws IOException {
long bytesRead = 0;
boolean freeJIT = false;
IOException exThisTime = null;
immedTimeoutRequested = false;
setJITAllocateAction(false);
this.jITAllocatedDirect = false;
// alloca... | java | public long processSyncReadRequest(long numBytes, int timeout) throws IOException {
long bytesRead = 0;
boolean freeJIT = false;
IOException exThisTime = null;
immedTimeoutRequested = false;
setJITAllocateAction(false);
this.jITAllocatedDirect = false;
// alloca... | [
"public",
"long",
"processSyncReadRequest",
"(",
"long",
"numBytes",
",",
"int",
"timeout",
")",
"throws",
"IOException",
"{",
"long",
"bytesRead",
"=",
"0",
";",
"boolean",
"freeJIT",
"=",
"false",
";",
"IOException",
"exThisTime",
"=",
"null",
";",
"immedTim... | that apply here | [
"that",
"apply",
"here"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/AioTCPReadRequestContextImpl.java#L127-L183 | train |
OpenLiberty/open-liberty | dev/com.ibm.json4j/src/com/ibm/json/xml/internal/JSONSAXHandler.java | JSONSAXHandler.startElement | public void startElement(String namespaceURI, String localName, String qName, Attributes attrs)
throws SAXException
{
if (logger.isLoggable(Level.FINER)) logger.exiting(className, "startElement(String,String,String,org.xml.sax.Attributes)");
Properties props = new Properties();
int attr... | java | public void startElement(String namespaceURI, String localName, String qName, Attributes attrs)
throws SAXException
{
if (logger.isLoggable(Level.FINER)) logger.exiting(className, "startElement(String,String,String,org.xml.sax.Attributes)");
Properties props = new Properties();
int attr... | [
"public",
"void",
"startElement",
"(",
"String",
"namespaceURI",
",",
"String",
"localName",
",",
"String",
"qName",
",",
"Attributes",
"attrs",
")",
"throws",
"SAXException",
"{",
"if",
"(",
"logger",
".",
"isLoggable",
"(",
"Level",
".",
"FINER",
")",
")",... | This function parses an IFix top level element and all its children. | [
"This",
"function",
"parses",
"an",
"IFix",
"top",
"level",
"element",
"and",
"all",
"its",
"children",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.json4j/src/com/ibm/json/xml/internal/JSONSAXHandler.java#L100-L129 | train |
OpenLiberty/open-liberty | dev/com.ibm.json4j/src/com/ibm/json/xml/internal/JSONSAXHandler.java | JSONSAXHandler.endElement | public void endElement(String uri, String localName, String qName)
throws SAXException
{
if (logger.isLoggable(Level.FINER)) logger.entering(className, "endElement(String,String,String)");
if (!previousObjects.isEmpty())
{
this.current = (JSONObject)this.previousObjects.pop... | java | public void endElement(String uri, String localName, String qName)
throws SAXException
{
if (logger.isLoggable(Level.FINER)) logger.entering(className, "endElement(String,String,String)");
if (!previousObjects.isEmpty())
{
this.current = (JSONObject)this.previousObjects.pop... | [
"public",
"void",
"endElement",
"(",
"String",
"uri",
",",
"String",
"localName",
",",
"String",
"qName",
")",
"throws",
"SAXException",
"{",
"if",
"(",
"logger",
".",
"isLoggable",
"(",
"Level",
".",
"FINER",
")",
")",
"logger",
".",
"entering",
"(",
"c... | Function ends a tag in this iFix parser. | [
"Function",
"ends",
"a",
"tag",
"in",
"this",
"iFix",
"parser",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.json4j/src/com/ibm/json/xml/internal/JSONSAXHandler.java#L134-L149 | train |
OpenLiberty/open-liberty | dev/com.ibm.json4j/src/com/ibm/json/xml/internal/JSONSAXHandler.java | JSONSAXHandler.flushBuffer | public void flushBuffer()
throws IOException
{
if (logger.isLoggable(Level.FINER)) logger.entering(className, "flushBuffer()");
if (this.osWriter != null)
{
this.osWriter.flush();
}
if (logger.isLoggable(Level.FINER)) logger.exiting(className, "flushBuffer()... | java | public void flushBuffer()
throws IOException
{
if (logger.isLoggable(Level.FINER)) logger.entering(className, "flushBuffer()");
if (this.osWriter != null)
{
this.osWriter.flush();
}
if (logger.isLoggable(Level.FINER)) logger.exiting(className, "flushBuffer()... | [
"public",
"void",
"flushBuffer",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"logger",
".",
"isLoggable",
"(",
"Level",
".",
"FINER",
")",
")",
"logger",
".",
"entering",
"(",
"className",
",",
"\"flushBuffer()\"",
")",
";",
"if",
"(",
"this",
"."... | Method to flush out anything remaining in the buffers. | [
"Method",
"to",
"flush",
"out",
"anything",
"remaining",
"in",
"the",
"buffers",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.json4j/src/com/ibm/json/xml/internal/JSONSAXHandler.java#L190-L201 | train |
OpenLiberty/open-liberty | dev/com.ibm.json4j/src/com/ibm/json/xml/internal/JSONSAXHandler.java | JSONSAXHandler.startJSON | private void startJSON()
throws SAXException
{
if (logger.isLoggable(Level.FINER)) logger.entering(className, "startJSON()");
this.head = new JSONObject("",null);
this.current = head;
if (logger.isLoggable(Level.FINER)) logger.exiting(className, "startJSON()");
} | java | private void startJSON()
throws SAXException
{
if (logger.isLoggable(Level.FINER)) logger.entering(className, "startJSON()");
this.head = new JSONObject("",null);
this.current = head;
if (logger.isLoggable(Level.FINER)) logger.exiting(className, "startJSON()");
} | [
"private",
"void",
"startJSON",
"(",
")",
"throws",
"SAXException",
"{",
"if",
"(",
"logger",
".",
"isLoggable",
"(",
"Level",
".",
"FINER",
")",
")",
"logger",
".",
"entering",
"(",
"className",
",",
"\"startJSON()\"",
")",
";",
"this",
".",
"head",
"="... | Internal method to start JSON generation. | [
"Internal",
"method",
"to",
"start",
"JSON",
"generation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.json4j/src/com/ibm/json/xml/internal/JSONSAXHandler.java#L206-L215 | train |
OpenLiberty/open-liberty | dev/com.ibm.json4j/src/com/ibm/json/xml/internal/JSONSAXHandler.java | JSONSAXHandler.endJSON | private void endJSON()
throws SAXException
{
if (logger.isLoggable(Level.FINER)) logger.entering(className, "endJSON()");
try
{
this.head.writeObject(this.osWriter, 0, true, this.compact);
this.head = null;
this.current = null;
this.... | java | private void endJSON()
throws SAXException
{
if (logger.isLoggable(Level.FINER)) logger.entering(className, "endJSON()");
try
{
this.head.writeObject(this.osWriter, 0, true, this.compact);
this.head = null;
this.current = null;
this.... | [
"private",
"void",
"endJSON",
"(",
")",
"throws",
"SAXException",
"{",
"if",
"(",
"logger",
".",
"isLoggable",
"(",
"Level",
".",
"FINER",
")",
")",
"logger",
".",
"entering",
"(",
"className",
",",
"\"endJSON()\"",
")",
";",
"try",
"{",
"this",
".",
"... | Internal method to end the JSON generation and to write out the resultant JSON text
and reset the internal state of the hander. | [
"Internal",
"method",
"to",
"end",
"the",
"JSON",
"generation",
"and",
"to",
"write",
"out",
"the",
"resultant",
"JSON",
"text",
"and",
"reset",
"the",
"internal",
"state",
"of",
"the",
"hander",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.json4j/src/com/ibm/json/xml/internal/JSONSAXHandler.java#L221-L241 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnectionFactoryImpl.java | JmsJcaManagedConnectionFactoryImpl.matchManagedConnections | @Override
final public ManagedConnection matchManagedConnections(
final Set connectionSet, final Subject subject,
final ConnectionRequestInfo requestInfo) {
if (TraceComponent.isAnyTracingE... | java | @Override
final public ManagedConnection matchManagedConnections(
final Set connectionSet, final Subject subject,
final ConnectionRequestInfo requestInfo) {
if (TraceComponent.isAnyTracingE... | [
"@",
"Override",
"final",
"public",
"ManagedConnection",
"matchManagedConnections",
"(",
"final",
"Set",
"connectionSet",
",",
"final",
"Subject",
"subject",
",",
"final",
"ConnectionRequestInfo",
"requestInfo",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracin... | Returns a matching connection from the candidate set of connections.
@param connectionSet
the candidate set of connections
@param subject
the subject
@param requestInfo
the request information
@return the matching connection, if any | [
"Returns",
"a",
"matching",
"connection",
"from",
"the",
"candidate",
"set",
"of",
"connections",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnectionFactoryImpl.java#L508-L593 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnectionFactoryImpl.java | JmsJcaManagedConnectionFactoryImpl.getTrmProperties | Map getTrmProperties() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "getTrmProperties");
}
final Map trmProperties = new HashMap();
final String trmBusName = getBusName();
if ((trmBusName != null) && (!trmBusName.... | java | Map getTrmProperties() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "getTrmProperties");
}
final Map trmProperties = new HashMap();
final String trmBusName = getBusName();
if ((trmBusName != null) && (!trmBusName.... | [
"Map",
"getTrmProperties",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"this",
",",
"TRACE",
",",
"\"getTrmProperties\"",
")",
";",
... | Returns the map of properties required by TRM.
@return the map of TRM properties | [
"Returns",
"the",
"map",
"of",
"properties",
"required",
"by",
"TRM",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnectionFactoryImpl.java#L1567-L1644 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnectionFactoryImpl.java | JmsJcaManagedConnectionFactoryImpl.getReference | Reference getReference() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "getReference");
}
// Create a reference object describing this class
final Reference reference = new Reference(getConnectionType(),
... | java | Reference getReference() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "getReference");
}
// Create a reference object describing this class
final Reference reference = new Reference(getConnectionType(),
... | [
"Reference",
"getReference",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"this",
",",
"TRACE",
",",
"\"getReference\"",
")",
";",
... | Returns a reference for this managed connection factory.
@return a reference for this managed connection factory | [
"Returns",
"a",
"reference",
"for",
"this",
"managed",
"connection",
"factory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnectionFactoryImpl.java#L1779-L1818 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnectionFactoryImpl.java | JmsJcaManagedConnectionFactoryImpl.setReference | public void setReference(final Reference reference) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "setReference", reference);
}
// Make sure no-one can pull the rug from beneath us.
synchronized (_properties) {
... | java | public void setReference(final Reference reference) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "setReference", reference);
}
// Make sure no-one can pull the rug from beneath us.
synchronized (_properties) {
... | [
"public",
"void",
"setReference",
"(",
"final",
"Reference",
"reference",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"this",
",",
"TRACE... | Initializes this managed connection factory using the given reference.
@param reference
the reference | [
"Initializes",
"this",
"managed",
"connection",
"factory",
"using",
"the",
"given",
"reference",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnectionFactoryImpl.java#L1826-L1842 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnectionFactoryImpl.java | JmsJcaManagedConnectionFactoryImpl.getObjectInstance | @Override
public Object getObjectInstance(final Object object, final Name name,
final Context context, final Hashtable environment)
throws Exception {
JmsConnectionFactory jmsConnectionFactory = null;
if (TraceComponent.isAnyTracingEnabled() ... | java | @Override
public Object getObjectInstance(final Object object, final Name name,
final Context context, final Hashtable environment)
throws Exception {
JmsConnectionFactory jmsConnectionFactory = null;
if (TraceComponent.isAnyTracingEnabled() ... | [
"@",
"Override",
"public",
"Object",
"getObjectInstance",
"(",
"final",
"Object",
"object",
",",
"final",
"Name",
"name",
",",
"final",
"Context",
"context",
",",
"final",
"Hashtable",
"environment",
")",
"throws",
"Exception",
"{",
"JmsConnectionFactory",
"jmsCon... | Constructs an object factory which constructs a managed connection
factory, calls the non-managed createConnectionFactory and then calls the
setReference on the JMSConnFactory.
@param object
the referenceable object to be created
@param name
the name
@param context
the naming context
@param environment
the environment... | [
"Constructs",
"an",
"object",
"factory",
"which",
"constructs",
"a",
"managed",
"connection",
"factory",
"calls",
"the",
"non",
"-",
"managed",
"createConnectionFactory",
"and",
"then",
"calls",
"the",
"setReference",
"on",
"the",
"JMSConnFactory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaManagedConnectionFactoryImpl.java#L1859-L1913 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/WsTraceRouterImpl.java | WsTraceRouterImpl.setWsTraceHandler | public void setWsTraceHandler(String id, WsTraceHandler ref) {
if (id != null && ref != null) {
RERWLOCK.writeLock().lock();
try {
wsTraceHandlerServices.put(id, ref);
/*
* Route prev traces to the new LogHandler.
*
... | java | public void setWsTraceHandler(String id, WsTraceHandler ref) {
if (id != null && ref != null) {
RERWLOCK.writeLock().lock();
try {
wsTraceHandlerServices.put(id, ref);
/*
* Route prev traces to the new LogHandler.
*
... | [
"public",
"void",
"setWsTraceHandler",
"(",
"String",
"id",
",",
"WsTraceHandler",
"ref",
")",
"{",
"if",
"(",
"id",
"!=",
"null",
"&&",
"ref",
"!=",
"null",
")",
"{",
"RERWLOCK",
".",
"writeLock",
"(",
")",
".",
"lock",
"(",
")",
";",
"try",
"{",
... | Add the wsTraceHandler ref. 1 or more LogHandlers may be set. | [
"Add",
"the",
"wsTraceHandler",
"ref",
".",
"1",
"or",
"more",
"LogHandlers",
"may",
"be",
"set",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/WsTraceRouterImpl.java#L67-L93 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/WsTraceRouterImpl.java | WsTraceRouterImpl.routeToAll | protected boolean routeToAll(RoutedMessage routedTrace, Set<String> logHandlerIds) {
for (String logHandlerId : logHandlerIds) {
routeTo(routedTrace, logHandlerId);
}
return true; //for now return true. Later we might have a config/flag to check whether to log normally or not.
... | java | protected boolean routeToAll(RoutedMessage routedTrace, Set<String> logHandlerIds) {
for (String logHandlerId : logHandlerIds) {
routeTo(routedTrace, logHandlerId);
}
return true; //for now return true. Later we might have a config/flag to check whether to log normally or not.
... | [
"protected",
"boolean",
"routeToAll",
"(",
"RoutedMessage",
"routedTrace",
",",
"Set",
"<",
"String",
">",
"logHandlerIds",
")",
"{",
"for",
"(",
"String",
"logHandlerId",
":",
"logHandlerIds",
")",
"{",
"routeTo",
"(",
"routedTrace",
",",
"logHandlerId",
")",
... | Route the trace to all LogHandlers in the set.
@return true if the set contained DEFAULT, which means the msg should be logged
normally as well. false otherwise. | [
"Route",
"the",
"trace",
"to",
"all",
"LogHandlers",
"in",
"the",
"set",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/WsTraceRouterImpl.java#L136-L143 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/WsTraceRouterImpl.java | WsTraceRouterImpl.routeTo | protected void routeTo(RoutedMessage routedTrace, String logHandlerId) {
WsTraceHandler wsTraceHandler = wsTraceHandlerServices.get(logHandlerId);
if (wsTraceHandler != null) {
wsTraceHandler.publish(routedTrace);
}
} | java | protected void routeTo(RoutedMessage routedTrace, String logHandlerId) {
WsTraceHandler wsTraceHandler = wsTraceHandlerServices.get(logHandlerId);
if (wsTraceHandler != null) {
wsTraceHandler.publish(routedTrace);
}
} | [
"protected",
"void",
"routeTo",
"(",
"RoutedMessage",
"routedTrace",
",",
"String",
"logHandlerId",
")",
"{",
"WsTraceHandler",
"wsTraceHandler",
"=",
"wsTraceHandlerServices",
".",
"get",
"(",
"logHandlerId",
")",
";",
"if",
"(",
"wsTraceHandler",
"!=",
"null",
"... | Route the traces to the LogHandler identified by the given logHandlerId.
@param msg The fully formatted trace.
@param logRecord The associated LogRecord, in case the LogHandler needs it.
@param logHandlerId The LogHandler ID in which to route. | [
"Route",
"the",
"traces",
"to",
"the",
"LogHandler",
"identified",
"by",
"the",
"given",
"logHandlerId",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.osgi/src/com/ibm/ws/logging/internal/osgi/WsTraceRouterImpl.java#L152-L157 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/MatchingImpl.java | MatchingImpl.createMatchSpace | public MatchSpace createMatchSpace(Identifier rootId, boolean enableCacheing)
{
MatchSpace matchSpace = new MatchSpaceImpl(rootId, enableCacheing);
return matchSpace;
} | java | public MatchSpace createMatchSpace(Identifier rootId, boolean enableCacheing)
{
MatchSpace matchSpace = new MatchSpaceImpl(rootId, enableCacheing);
return matchSpace;
} | [
"public",
"MatchSpace",
"createMatchSpace",
"(",
"Identifier",
"rootId",
",",
"boolean",
"enableCacheing",
")",
"{",
"MatchSpace",
"matchSpace",
"=",
"new",
"MatchSpaceImpl",
"(",
"rootId",
",",
"enableCacheing",
")",
";",
"return",
"matchSpace",
";",
"}"
] | Create a concrete instance of a MatchSpace | [
"Create",
"a",
"concrete",
"instance",
"of",
"a",
"MatchSpace"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/MatchingImpl.java#L99-L104 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/MatchingImpl.java | MatchingImpl.createOperator | public Operator createOperator(int op, Selector operand)
{
Operator operator = new OperatorImpl(op, operand);
return operator;
} | java | public Operator createOperator(int op, Selector operand)
{
Operator operator = new OperatorImpl(op, operand);
return operator;
} | [
"public",
"Operator",
"createOperator",
"(",
"int",
"op",
",",
"Selector",
"operand",
")",
"{",
"Operator",
"operator",
"=",
"new",
"OperatorImpl",
"(",
"op",
",",
"operand",
")",
";",
"return",
"operator",
";",
"}"
] | Create a concrete instance of an Operator | [
"Create",
"a",
"concrete",
"instance",
"of",
"an",
"Operator"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/MatchingImpl.java#L268-L273 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/MatchingImpl.java | MatchingImpl.createLikeOperator | public Operator createLikeOperator(Selector ar, String pattern, boolean escaped, char escape)
{
Object parsed = Pattern.parsePattern(pattern, escaped, escape);
if (parsed == null)
return null;
else if (parsed == Pattern.matchMany)
return createOperator(Selector.NOT, createOperator(Selector.ISNULL, ar));... | java | public Operator createLikeOperator(Selector ar, String pattern, boolean escaped, char escape)
{
Object parsed = Pattern.parsePattern(pattern, escaped, escape);
if (parsed == null)
return null;
else if (parsed == Pattern.matchMany)
return createOperator(Selector.NOT, createOperator(Selector.ISNULL, ar));... | [
"public",
"Operator",
"createLikeOperator",
"(",
"Selector",
"ar",
",",
"String",
"pattern",
",",
"boolean",
"escaped",
",",
"char",
"escape",
")",
"{",
"Object",
"parsed",
"=",
"Pattern",
".",
"parsePattern",
"(",
"pattern",
",",
"escaped",
",",
"escape",
"... | Create a concrete instance of a LikeOperator | [
"Create",
"a",
"concrete",
"instance",
"of",
"a",
"LikeOperator"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/MatchingImpl.java#L301-L313 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/RequestUtils.java | RequestUtils.getURIForCurrentDispatch | public static String getURIForCurrentDispatch (HttpServletRequest req){
String includeURI = (String) req.getAttribute(WebAppRequestDispatcher.REQUEST_URI_INCLUDE_ATTR);
if (includeURI == null)
return req.getRequestURI();
else
return includeURI;
} | java | public static String getURIForCurrentDispatch (HttpServletRequest req){
String includeURI = (String) req.getAttribute(WebAppRequestDispatcher.REQUEST_URI_INCLUDE_ATTR);
if (includeURI == null)
return req.getRequestURI();
else
return includeURI;
} | [
"public",
"static",
"String",
"getURIForCurrentDispatch",
"(",
"HttpServletRequest",
"req",
")",
"{",
"String",
"includeURI",
"=",
"(",
"String",
")",
"req",
".",
"getAttribute",
"(",
"WebAppRequestDispatcher",
".",
"REQUEST_URI_INCLUDE_ATTR",
")",
";",
"if",
"(",
... | Used to retrive the "true" uri that represents the current request.
If include request_uri attribute is set, it returns that value.
Otherwise, it returns the default of req.getRequestUri
@param req
@return | [
"Used",
"to",
"retrive",
"the",
"true",
"uri",
"that",
"represents",
"the",
"current",
"request",
".",
"If",
"include",
"request_uri",
"attribute",
"is",
"set",
"it",
"returns",
"that",
"value",
".",
"Otherwise",
"it",
"returns",
"the",
"default",
"of",
"req... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/RequestUtils.java#L657-L663 | train |
OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/execution/impl/RuntimeJobExecution.java | RuntimeJobExecution.publishEvent | private void publishEvent(WSJobInstance objectToPublish, String eventToPublish) {
if (getBatchEventsPublisher() != null) {
getBatchEventsPublisher().publishJobInstanceEvent(objectToPublish, eventToPublish, correlationId);
}
} | java | private void publishEvent(WSJobInstance objectToPublish, String eventToPublish) {
if (getBatchEventsPublisher() != null) {
getBatchEventsPublisher().publishJobInstanceEvent(objectToPublish, eventToPublish, correlationId);
}
} | [
"private",
"void",
"publishEvent",
"(",
"WSJobInstance",
"objectToPublish",
",",
"String",
"eventToPublish",
")",
"{",
"if",
"(",
"getBatchEventsPublisher",
"(",
")",
"!=",
"null",
")",
"{",
"getBatchEventsPublisher",
"(",
")",
".",
"publishJobInstanceEvent",
"(",
... | Publish event for this job instance
@param jobInstance
@param eventToBePublished | [
"Publish",
"event",
"for",
"this",
"job",
"instance"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/execution/impl/RuntimeJobExecution.java#L150-L155 | train |
OpenLiberty/open-liberty | dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/execution/impl/RuntimeJobExecution.java | RuntimeJobExecution.publishEvent | private void publishEvent(WSJobExecution execution, WSJobInstance jobInstance, BatchStatus batchStatus) {
if (batchStatus == BatchStatus.FAILED) {
publishEvent(execution, BatchEventsPublisher.TOPIC_EXECUTION_FAILED);
publishEvent(jobInstance, BatchEventsPublisher.TOPIC_INSTANCE_FAILED);... | java | private void publishEvent(WSJobExecution execution, WSJobInstance jobInstance, BatchStatus batchStatus) {
if (batchStatus == BatchStatus.FAILED) {
publishEvent(execution, BatchEventsPublisher.TOPIC_EXECUTION_FAILED);
publishEvent(jobInstance, BatchEventsPublisher.TOPIC_INSTANCE_FAILED);... | [
"private",
"void",
"publishEvent",
"(",
"WSJobExecution",
"execution",
",",
"WSJobInstance",
"jobInstance",
",",
"BatchStatus",
"batchStatus",
")",
"{",
"if",
"(",
"batchStatus",
"==",
"BatchStatus",
".",
"FAILED",
")",
"{",
"publishEvent",
"(",
"execution",
",",
... | Helper method to publish execution data to appropriate topic per batchStatus
@param execution
@param jobInstance
@param batchStatus | [
"Helper",
"method",
"to",
"publish",
"execution",
"data",
"to",
"appropriate",
"topic",
"per",
"batchStatus"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/execution/impl/RuntimeJobExecution.java#L215-L235 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadManager.java | ThreadManager.getInstance | public static ThreadManager getInstance() {
if (thisClass == null) {
thisClass = new ThreadManager();
String useInheritableThreadLocalString = SSLConfigManager.getInstance().getGlobalProperty(Constants.SSLPROP_USE_INHERITABLE_THREAD_LOCAL);
if (useInheritableThreadLocalStrin... | java | public static ThreadManager getInstance() {
if (thisClass == null) {
thisClass = new ThreadManager();
String useInheritableThreadLocalString = SSLConfigManager.getInstance().getGlobalProperty(Constants.SSLPROP_USE_INHERITABLE_THREAD_LOCAL);
if (useInheritableThreadLocalStrin... | [
"public",
"static",
"ThreadManager",
"getInstance",
"(",
")",
"{",
"if",
"(",
"thisClass",
"==",
"null",
")",
"{",
"thisClass",
"=",
"new",
"ThreadManager",
"(",
")",
";",
"String",
"useInheritableThreadLocalString",
"=",
"SSLConfigManager",
".",
"getInstance",
... | Access the singleton instance of this class.
@return ThreadManager | [
"Access",
"the",
"singleton",
"instance",
"of",
"this",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadManager.java#L55-L68 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadManager.java | ThreadManager.getThreadContext | public ThreadContext getThreadContext() {
if (useInheritableThreadLocal && !SSLConfigManager.getInstance().isServerProcess()) {
ThreadContext context = inheritableThreadLocStorage.get();
if (context == null) {
context = new ThreadContext();
inheritableThr... | java | public ThreadContext getThreadContext() {
if (useInheritableThreadLocal && !SSLConfigManager.getInstance().isServerProcess()) {
ThreadContext context = inheritableThreadLocStorage.get();
if (context == null) {
context = new ThreadContext();
inheritableThr... | [
"public",
"ThreadContext",
"getThreadContext",
"(",
")",
"{",
"if",
"(",
"useInheritableThreadLocal",
"&&",
"!",
"SSLConfigManager",
".",
"getInstance",
"(",
")",
".",
"isServerProcess",
"(",
")",
")",
"{",
"ThreadContext",
"context",
"=",
"inheritableThreadLocStora... | Access the current thread context.
@return ThreadContext | [
"Access",
"the",
"current",
"thread",
"context",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/config/ThreadManager.java#L75-L93 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java | AbstractInjectionEngine.stop | public void stop()
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "stop");
ivIsInitialized = false;
if (isTraceOn && tc.isEntryEnabled())
Tr.exit(tc, "stop");
} | java | public void stop()
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "stop");
ivIsInitialized = false;
if (isTraceOn && tc.isEntryEnabled())
Tr.exit(tc, "stop");
} | [
"public",
"void",
"stop",
"(",
")",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\... | Set the initialized flag to false so that others may not NOT register in their start method. | [
"Set",
"the",
"initialized",
"flag",
"to",
"false",
"so",
"that",
"others",
"may",
"not",
"NOT",
"register",
"in",
"their",
"start",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java#L263-L271 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java | AbstractInjectionEngine.registerInjectionProcessor | @Override
public <A extends Annotation, AS extends Annotation> void registerInjectionProcessor
(Class<? extends InjectionProcessor<A, AS>> processor,
Class<A> annotation)
throws InjectionException
{
if (OverrideInjectionProcess... | java | @Override
public <A extends Annotation, AS extends Annotation> void registerInjectionProcessor
(Class<? extends InjectionProcessor<A, AS>> processor,
Class<A> annotation)
throws InjectionException
{
if (OverrideInjectionProcess... | [
"@",
"Override",
"public",
"<",
"A",
"extends",
"Annotation",
",",
"AS",
"extends",
"Annotation",
">",
"void",
"registerInjectionProcessor",
"(",
"Class",
"<",
"?",
"extends",
"InjectionProcessor",
"<",
"A",
",",
"AS",
">",
">",
"processor",
",",
"Class",
"<... | Registers the specified processor with the injection engine.
If a processor was already registered with the specified annotation, that class will be returned
otherwise a null will be returned.
@param processor The processor class to be registered
@param annotation The annotation class the processor is associated.
@th... | [
"Registers",
"the",
"specified",
"processor",
"with",
"the",
"injection",
"engine",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java#L283-L295 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java | AbstractInjectionEngine.processInjectionMetaData | @Override
public void processInjectionMetaData
(HashMap<Class<?>, InjectionTarget[]> injectionTargetMap,
ComponentNameSpaceConfiguration compNSConfig)
throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTr... | java | @Override
public void processInjectionMetaData
(HashMap<Class<?>, InjectionTarget[]> injectionTargetMap,
ComponentNameSpaceConfiguration compNSConfig)
throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTr... | [
"@",
"Override",
"public",
"void",
"processInjectionMetaData",
"(",
"HashMap",
"<",
"Class",
"<",
"?",
">",
",",
"InjectionTarget",
"[",
"]",
">",
"injectionTargetMap",
",",
"ComponentNameSpaceConfiguration",
"compNSConfig",
")",
"throws",
"InjectionException",
"{",
... | Populates the empty cookie map with cookies to be injections.
@param injectionTargetMap An empty map to be populated with the injection targets from
the merged xml and annotations.
@param compNSConfig The component configuration information provided by the container.
@throws InjectionException if an error occurs proce... | [
"Populates",
"the",
"empty",
"cookie",
"map",
"with",
"cookies",
"to",
"be",
"injections",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java#L404-L441 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java | AbstractInjectionEngine.processInjectionMetaData | protected void processInjectionMetaData(ComponentNameSpaceConfiguration compNSConfig,
List<Class<?>> annotatedClasses)
throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEnt... | java | protected void processInjectionMetaData(ComponentNameSpaceConfiguration compNSConfig,
List<Class<?>> annotatedClasses)
throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEnt... | [
"protected",
"void",
"processInjectionMetaData",
"(",
"ComponentNameSpaceConfiguration",
"compNSConfig",
",",
"List",
"<",
"Class",
"<",
"?",
">",
">",
"annotatedClasses",
")",
"throws",
"InjectionException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
... | Processes injection metadata using the specified configuration with
InjectionProcessorContext already set.
@param compNSConfig the component configuration with
InjectionProcessorContext already set
@param annotatedClasses the list of classes that should be processed for
annotations, or <tt>null</tt> if the list should... | [
"Processes",
"injection",
"metadata",
"using",
"the",
"specified",
"configuration",
"with",
"InjectionProcessorContext",
"already",
"set",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java#L452-L529 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java | AbstractInjectionEngine.checkAnnotationClasses | private void checkAnnotationClasses(ClassLoader loader) // d676633
{
boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isDebugEnabled())
Tr.entry(tc, "checkAnnotationClasses: " + loader);
// All EJBs in an application share the same class loader. Onl... | java | private void checkAnnotationClasses(ClassLoader loader) // d676633
{
boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isDebugEnabled())
Tr.entry(tc, "checkAnnotationClasses: " + loader);
// All EJBs in an application share the same class loader. Onl... | [
"private",
"void",
"checkAnnotationClasses",
"(",
"ClassLoader",
"loader",
")",
"// d676633",
"{",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",... | Check the specified class loader to check if it has overridden any
annotation classes processed by the injection engine. | [
"Check",
"the",
"specified",
"class",
"loader",
"to",
"check",
"if",
"it",
"has",
"overridden",
"any",
"annotation",
"classes",
"processed",
"by",
"the",
"injection",
"engine",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java#L535-L602 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java | AbstractInjectionEngine.inject | @Override
public void inject(Object objectToInject,
InjectionTarget injectionTarget)
throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "inject", obj... | java | @Override
public void inject(Object objectToInject,
InjectionTarget injectionTarget)
throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "inject", obj... | [
"@",
"Override",
"public",
"void",
"inject",
"(",
"Object",
"objectToInject",
",",
"InjectionTarget",
"injectionTarget",
")",
"throws",
"InjectionException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if"... | This method handles the actual injection of injectedObject to the target beanObject using
either the METHOD or FIELD specified in the injectionTarget. | [
"This",
"method",
"handles",
"the",
"actual",
"injection",
"of",
"injectedObject",
"to",
"the",
"target",
"beanObject",
"using",
"either",
"the",
"METHOD",
"or",
"FIELD",
"specified",
"in",
"the",
"injectionTarget",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java#L822-L835 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java | AbstractInjectionEngine.registerInjectionMetaDataListener | @Override
public void registerInjectionMetaDataListener(InjectionMetaDataListener metaDataListener)
{
if (metaDataListener == null) {
throw new IllegalArgumentException("A null InjectionMetaDataListener cannot be registered " +
"with the injecti... | java | @Override
public void registerInjectionMetaDataListener(InjectionMetaDataListener metaDataListener)
{
if (metaDataListener == null) {
throw new IllegalArgumentException("A null InjectionMetaDataListener cannot be registered " +
"with the injecti... | [
"@",
"Override",
"public",
"void",
"registerInjectionMetaDataListener",
"(",
"InjectionMetaDataListener",
"metaDataListener",
")",
"{",
"if",
"(",
"metaDataListener",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"A null InjectionMetaDataListene... | This method will register an instance of an InjectionMetaDataListener with the current
engine instance. | [
"This",
"method",
"will",
"register",
"an",
"instance",
"of",
"an",
"InjectionMetaDataListener",
"with",
"the",
"current",
"engine",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java#L887-L897 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java | AbstractInjectionEngine.unregisterInjectionMetaDataListener | @Override
public void unregisterInjectionMetaDataListener(InjectionMetaDataListener metaDataListener)
{
if (metaDataListener == null) {
throw new IllegalArgumentException("A null InjectionMetaDataListener cannot be unregistered " +
"from the inj... | java | @Override
public void unregisterInjectionMetaDataListener(InjectionMetaDataListener metaDataListener)
{
if (metaDataListener == null) {
throw new IllegalArgumentException("A null InjectionMetaDataListener cannot be unregistered " +
"from the inj... | [
"@",
"Override",
"public",
"void",
"unregisterInjectionMetaDataListener",
"(",
"InjectionMetaDataListener",
"metaDataListener",
")",
"{",
"if",
"(",
"metaDataListener",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"A null InjectionMetaDataListe... | This method will unregister an instance of an InjectionMetaDataListener with the current
engine instance. | [
"This",
"method",
"will",
"unregister",
"an",
"instance",
"of",
"an",
"InjectionMetaDataListener",
"with",
"the",
"current",
"engine",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java#L903-L913 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java | AbstractInjectionEngine.registerOverrideReferenceFactory | @Override
public <A extends Annotation> void registerOverrideReferenceFactory(Class<A> annotation,
OverrideReferenceFactory<A> factory)
throws InjectionException
{
if (TraceComponent.isAnyTracingEnabled() && tc.i... | java | @Override
public <A extends Annotation> void registerOverrideReferenceFactory(Class<A> annotation,
OverrideReferenceFactory<A> factory)
throws InjectionException
{
if (TraceComponent.isAnyTracingEnabled() && tc.i... | [
"@",
"Override",
"public",
"<",
"A",
"extends",
"Annotation",
">",
"void",
"registerOverrideReferenceFactory",
"(",
"Class",
"<",
"A",
">",
"annotation",
",",
"OverrideReferenceFactory",
"<",
"A",
">",
"factory",
")",
"throws",
"InjectionException",
"{",
"if",
"... | F1339-9050 | [
"F1339",
"-",
"9050"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java#L1092-L1162 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java | AbstractInjectionEngine.getOverrideReferenceFactories | @Override
@SuppressWarnings("unchecked")
public synchronized <A extends Annotation> OverrideReferenceFactory<A>[] getOverrideReferenceFactories(Class<A> klass) // F743-32443
{
ivOverrideReferenceFactoryMapCopyOnWrite = true; // PM79779
return (OverrideReferenceFactory<A>[]) ivOverrideReferen... | java | @Override
@SuppressWarnings("unchecked")
public synchronized <A extends Annotation> OverrideReferenceFactory<A>[] getOverrideReferenceFactories(Class<A> klass) // F743-32443
{
ivOverrideReferenceFactoryMapCopyOnWrite = true; // PM79779
return (OverrideReferenceFactory<A>[]) ivOverrideReferen... | [
"@",
"Override",
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"synchronized",
"<",
"A",
"extends",
"Annotation",
">",
"OverrideReferenceFactory",
"<",
"A",
">",
"[",
"]",
"getOverrideReferenceFactories",
"(",
"Class",
"<",
"A",
">",
"klass",
")"... | Gets the list of override factories for the specified class.
@param klass the class
@return the list of override factories | [
"Gets",
"the",
"list",
"of",
"override",
"factories",
"for",
"the",
"specified",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java#L1170-L1176 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java | AbstractInjectionEngine.registerManagedBeanReferenceFactory | @Override
public MBLinkReferenceFactory registerManagedBeanReferenceFactory(MBLinkReferenceFactory mbLinkRefFactory)
{
MBLinkReferenceFactory rtnFactory = DEFAULT_MBLinkRefFactory;
ivMBLinkRefFactory = mbLinkRefFactory; // d703474
return rtnFactory;
} | java | @Override
public MBLinkReferenceFactory registerManagedBeanReferenceFactory(MBLinkReferenceFactory mbLinkRefFactory)
{
MBLinkReferenceFactory rtnFactory = DEFAULT_MBLinkRefFactory;
ivMBLinkRefFactory = mbLinkRefFactory; // d703474
return rtnFactory;
} | [
"@",
"Override",
"public",
"MBLinkReferenceFactory",
"registerManagedBeanReferenceFactory",
"(",
"MBLinkReferenceFactory",
"mbLinkRefFactory",
")",
"{",
"MBLinkReferenceFactory",
"rtnFactory",
"=",
"DEFAULT_MBLinkRefFactory",
";",
"ivMBLinkRefFactory",
"=",
"mbLinkRefFactory",
";... | d698540.1 | [
"d698540",
".",
"1"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/AbstractInjectionEngine.java#L1212-L1218 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/FileSystem.java | FileSystem.walkPath | public static boolean walkPath(File appRoot, String relativePath) throws IOException {
// Walk the path from the app root
String[] relativePathElements = relativePath.replace(File.separatorChar, '/').split("/");
File currentPath = new File(appRoot.getCanonicalPath());
for (int i = 0; i <... | java | public static boolean walkPath(File appRoot, String relativePath) throws IOException {
// Walk the path from the app root
String[] relativePathElements = relativePath.replace(File.separatorChar, '/').split("/");
File currentPath = new File(appRoot.getCanonicalPath());
for (int i = 0; i <... | [
"public",
"static",
"boolean",
"walkPath",
"(",
"File",
"appRoot",
",",
"String",
"relativePath",
")",
"throws",
"IOException",
"{",
"// Walk the path from the app root",
"String",
"[",
"]",
"relativePathElements",
"=",
"relativePath",
".",
"replace",
"(",
"File",
"... | end 94578 Security Defect. | [
"end",
"94578",
"Security",
"Defect",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/FileSystem.java#L136-L153 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DurableOutputHandler.java | DurableOutputHandler.staticHandleControlMessage | public static void staticHandleControlMessage(
ControlMessage cMsg,
DestinationManager DM,
MessageProcessor MP)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "staticHandleControlMessage",
new Object[]{cMsg, DM, MP});
// This should be one of t... | java | public static void staticHandleControlMessage(
ControlMessage cMsg,
DestinationManager DM,
MessageProcessor MP)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "staticHandleControlMessage",
new Object[]{cMsg, DM, MP});
// This should be one of t... | [
"public",
"static",
"void",
"staticHandleControlMessage",
"(",
"ControlMessage",
"cMsg",
",",
"DestinationManager",
"DM",
",",
"MessageProcessor",
"MP",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
... | This is the only message handling method which should be invoked
on the DurableOutputHandler. This method will receive control messages
giving the status of durable subcription creation or deletion, as well
as stream creation requests.
@param sourceCellue The origin of the message.
@param cMsg The ControlMessage to p... | [
"This",
"is",
"the",
"only",
"message",
"handling",
"method",
"which",
"should",
"be",
"invoked",
"on",
"the",
"DurableOutputHandler",
".",
"This",
"method",
"will",
"receive",
"control",
"messages",
"giving",
"the",
"status",
"of",
"durable",
"subcription",
"cr... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DurableOutputHandler.java#L120-L174 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DurableOutputHandler.java | DurableOutputHandler.handleCreateDurable | protected static void handleCreateDurable(
DestinationManager DM,
ControlCreateDurable msg,
MessageProcessor MP)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "handleCreateDurable", new Object[] {DM, msg, MP});
int status = STATUS_SUB_GENER... | java | protected static void handleCreateDurable(
DestinationManager DM,
ControlCreateDurable msg,
MessageProcessor MP)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "handleCreateDurable", new Object[] {DM, msg, MP});
int status = STATUS_SUB_GENER... | [
"protected",
"static",
"void",
"handleCreateDurable",
"(",
"DestinationManager",
"DM",
",",
"ControlCreateDurable",
"msg",
",",
"MessageProcessor",
"MP",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
... | Attempt to create a new durable subscription and send back either a
ControlDurableConfirm giving the result.
@param msg The ControlCreateDurable request message. | [
"Attempt",
"to",
"create",
"a",
"new",
"durable",
"subscription",
"and",
"send",
"back",
"either",
"a",
"ControlDurableConfirm",
"giving",
"the",
"result",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DurableOutputHandler.java#L182-L272 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DurableOutputHandler.java | DurableOutputHandler.handleDeleteDurable | protected static void handleDeleteDurable(
DestinationManager DM,
ControlDeleteDurable msg,
MessageProcessor MP)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "handleDeleteDurable", new Object[] {DM, msg, MP});
int status = STATUS_SUB_GENERAL_ERROR;
... | java | protected static void handleDeleteDurable(
DestinationManager DM,
ControlDeleteDurable msg,
MessageProcessor MP)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "handleDeleteDurable", new Object[] {DM, msg, MP});
int status = STATUS_SUB_GENERAL_ERROR;
... | [
"protected",
"static",
"void",
"handleDeleteDurable",
"(",
"DestinationManager",
"DM",
",",
"ControlDeleteDurable",
"msg",
",",
"MessageProcessor",
"MP",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
... | Attempt to delete the durable subscription specified by the sender
and send back a ControlDurableConfirm giving the result.
@param msg The ControlDeleteDurable request message. | [
"Attempt",
"to",
"delete",
"the",
"durable",
"subscription",
"specified",
"by",
"the",
"sender",
"and",
"send",
"back",
"a",
"ControlDurableConfirm",
"giving",
"the",
"result",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DurableOutputHandler.java#L280-L376 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DurableOutputHandler.java | DurableOutputHandler.createDurableConfirm | protected static ControlDurableConfirm createDurableConfirm(
MessageProcessor MP,
SIBUuid8 target,
long reqID,
int status)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createDurableConfirm", new Object[] {MP, target, new Long(reqID), new Integer(status)... | java | protected static ControlDurableConfirm createDurableConfirm(
MessageProcessor MP,
SIBUuid8 target,
long reqID,
int status)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createDurableConfirm", new Object[] {MP, target, new Long(reqID), new Integer(status)... | [
"protected",
"static",
"ControlDurableConfirm",
"createDurableConfirm",
"(",
"MessageProcessor",
"MP",
",",
"SIBUuid8",
"target",
",",
"long",
"reqID",
",",
"int",
"status",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
... | Create a DurableConfirm reply.
@param target The target ME for the message.
@param reqID The request ID of the original request message.
@param status The status to record in this reply. | [
"Create",
"a",
"DurableConfirm",
"reply",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DurableOutputHandler.java#L462-L496 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DurableOutputHandler.java | DurableOutputHandler.createCardinalityInfo | protected static ControlCardinalityInfo createCardinalityInfo(
MessageProcessor MP,
SIBUuid8 target,
long reqID,
int card)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createCardinalityInfo", new Object[] {MP, target, new Long(reqID), new Integer(card)}... | java | protected static ControlCardinalityInfo createCardinalityInfo(
MessageProcessor MP,
SIBUuid8 target,
long reqID,
int card)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "createCardinalityInfo", new Object[] {MP, target, new Long(reqID), new Integer(card)}... | [
"protected",
"static",
"ControlCardinalityInfo",
"createCardinalityInfo",
"(",
"MessageProcessor",
"MP",
",",
"SIBUuid8",
"target",
",",
"long",
"reqID",
",",
"int",
"card",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
... | Create a CardinalityInfo reply.
@param target The target ME for this reply.
@param reqID The request ID of the original request message.
@param card The cardinality to record on this message. | [
"Create",
"a",
"CardinalityInfo",
"reply",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DurableOutputHandler.java#L505-L539 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DurableOutputHandler.java | DurableOutputHandler.initializeControlMessage | protected static void initializeControlMessage(SIBUuid8 sourceME, ControlMessage msg, SIBUuid8 remoteMEId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initializeControlMessage", new Object[] {msg, remoteMEId});
SIMPUtils.setGuaranteedDeliveryProperties(msg,
... | java | protected static void initializeControlMessage(SIBUuid8 sourceME, ControlMessage msg, SIBUuid8 remoteMEId)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "initializeControlMessage", new Object[] {msg, remoteMEId});
SIMPUtils.setGuaranteedDeliveryProperties(msg,
... | [
"protected",
"static",
"void",
"initializeControlMessage",
"(",
"SIBUuid8",
"sourceME",
",",
"ControlMessage",
"msg",
",",
"SIBUuid8",
"remoteMEId",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"("... | Common initialization for all messages sent by the DurableOutputHandler.
@param msg Message to initialize.
@param remoteMEId The ME the message will be sent to. | [
"Common",
"initialization",
"for",
"all",
"messages",
"sent",
"by",
"the",
"DurableOutputHandler",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/DurableOutputHandler.java#L547-L566 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManager.java | ConnectionManager.associateConnection | private void associateConnection(ManagedConnectionFactory mcf,
Subject subject,
ConnectionRequestInfo cri,
Object connection) throws ResourceException {
final boolean isTraceOn = TraceComponent.isAnyT... | java | private void associateConnection(ManagedConnectionFactory mcf,
Subject subject,
ConnectionRequestInfo cri,
Object connection) throws ResourceException {
final boolean isTraceOn = TraceComponent.isAnyT... | [
"private",
"void",
"associateConnection",
"(",
"ManagedConnectionFactory",
"mcf",
",",
"Subject",
"subject",
",",
"ConnectionRequestInfo",
"cri",
",",
"Object",
"connection",
")",
"throws",
"ResourceException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent"... | not associated with a connection to get reassociated with a valid connection. | [
"not",
"associated",
"with",
"a",
"connection",
"to",
"get",
"reassociated",
"with",
"a",
"valid",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManager.java#L1311-L1358 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManager.java | ConnectionManager.reassociateConnectionHandle | private void reassociateConnectionHandle(Object connection,
MCWrapper fromMCWrapper,
MCWrapper toMCWrapper,
UOWCoordinator uowCoord) throws ResourceException {
final boolean is... | java | private void reassociateConnectionHandle(Object connection,
MCWrapper fromMCWrapper,
MCWrapper toMCWrapper,
UOWCoordinator uowCoord) throws ResourceException {
final boolean is... | [
"private",
"void",
"reassociateConnectionHandle",
"(",
"Object",
"connection",
",",
"MCWrapper",
"fromMCWrapper",
",",
"MCWrapper",
"toMCWrapper",
",",
"UOWCoordinator",
"uowCoord",
")",
"throws",
"ResourceException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceCom... | with a new MCWrapper. The fromMCWrapper can be null - needed for SmartHandle support. | [
"with",
"a",
"new",
"MCWrapper",
".",
"The",
"fromMCWrapper",
"can",
"be",
"null",
"-",
"needed",
"for",
"SmartHandle",
"support",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManager.java#L1362-L1435 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManager.java | ConnectionManager.inactiveConnectionClosed | @Override
public void inactiveConnectionClosed(
Object connection, ManagedConnectionFactory managedConnectionFactory) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) {
Tr.entry(this, tc, "in... | java | @Override
public void inactiveConnectionClosed(
Object connection, ManagedConnectionFactory managedConnectionFactory) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) {
Tr.entry(this, tc, "in... | [
"@",
"Override",
"public",
"void",
"inactiveConnectionClosed",
"(",
"Object",
"connection",
",",
"ManagedConnectionFactory",
"managedConnectionFactory",
")",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
... | This method is called by resource adapters that support lazy associable
connections in order to notify the connection manager that it moved the
a connection handle from the inactive state to closed.
@see javax.resource.spi.LazyAssociableConnectionManager
An inactive handle is disassociated from a managed conection wi... | [
"This",
"method",
"is",
"called",
"by",
"resource",
"adapters",
"that",
"support",
"lazy",
"associable",
"connections",
"in",
"order",
"to",
"notify",
"the",
"connection",
"manager",
"that",
"it",
"moved",
"the",
"a",
"connection",
"handle",
"from",
"the",
"in... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ConnectionManager.java#L1453-L1469 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.