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.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPBaseRequestContext.java | TCPBaseRequestContext.updateIOCounts | public boolean updateIOCounts(long byteCount, int type) {
setLastIOAmt(byteCount);
setIODoneAmount(getIODoneAmount() + byteCount);
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
String dbString = null;
if (type == 0) {
dbString = "Rea... | java | public boolean updateIOCounts(long byteCount, int type) {
setLastIOAmt(byteCount);
setIODoneAmount(getIODoneAmount() + byteCount);
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
String dbString = null;
if (type == 0) {
dbString = "Rea... | [
"public",
"boolean",
"updateIOCounts",
"(",
"long",
"byteCount",
",",
"int",
"type",
")",
"{",
"setLastIOAmt",
"(",
"byteCount",
")",
";",
"setIODoneAmount",
"(",
"getIODoneAmount",
"(",
")",
"+",
"byteCount",
")",
";",
"if",
"(",
"TraceComponent",
".",
"isA... | rather than in extension classes | [
"rather",
"than",
"in",
"extension",
"classes"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/TCPBaseRequestContext.java#L524-L563 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java | ServerTransportAcceptListener.acceptConnection | public ConversationReceiveListener acceptConnection(Conversation cfConversation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "acceptConnection", cfConversation);
// Add this conversation to our active conversations list
synchronized (activeConv... | java | public ConversationReceiveListener acceptConnection(Conversation cfConversation) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "acceptConnection", cfConversation);
// Add this conversation to our active conversations list
synchronized (activeConv... | [
"public",
"ConversationReceiveListener",
"acceptConnection",
"(",
"Conversation",
"cfConversation",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
"... | Called when we are about to accept a connection from a peer.
@param cfConversation | [
"Called",
"when",
"we",
"are",
"about",
"to",
"accept",
"a",
"connection",
"from",
"a",
"peer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java#L93-L157 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java | ServerTransportAcceptListener.removeConversation | public void removeConversation(Conversation conv) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "removeConversation", conv);
synchronized (activeConversations) {
Object connectionReference = conv.getConnectionReference();
Ar... | java | public void removeConversation(Conversation conv) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "removeConversation", conv);
synchronized (activeConversations) {
Object connectionReference = conv.getConnectionReference();
Ar... | [
"public",
"void",
"removeConversation",
"(",
"Conversation",
"conv",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"remov... | This method removes a conversation from the list of active conversations. This would be called
if the connection is closed or if a failure is deteceted.
@param conv | [
"This",
"method",
"removes",
"a",
"conversation",
"from",
"the",
"list",
"of",
"active",
"conversations",
".",
"This",
"would",
"be",
"called",
"if",
"the",
"connection",
"is",
"closed",
"or",
"if",
"a",
"failure",
"is",
"deteceted",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java#L165-L185 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java | ServerTransportAcceptListener.connectionClosed | public void connectionClosed(Object connectionReference) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "connectionClosed", connectionReference);
removeAllConversations(connectionReference);
if (TraceComponent.isAnyTracingEnabled() && tc.is... | java | public void connectionClosed(Object connectionReference) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "connectionClosed", connectionReference);
removeAllConversations(connectionReference);
if (TraceComponent.isAnyTracingEnabled() && tc.is... | [
"public",
"void",
"connectionClosed",
"(",
"Object",
"connectionReference",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"... | Driven in the event that the underlying connection closes. This will only be driven if the
socket dies before a connection to the ME has had chance to be established.
@see com.ibm.ws.sib.jfapchannel.ConnectionClosedListener#connectionClosed(java.lang.Object) | [
"Driven",
"in",
"the",
"event",
"that",
"the",
"underlying",
"connection",
"closes",
".",
"This",
"will",
"only",
"be",
"driven",
"if",
"the",
"socket",
"dies",
"before",
"a",
"connection",
"to",
"the",
"ME",
"has",
"had",
"chance",
"to",
"be",
"establishe... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java#L193-L201 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java | ServerTransportAcceptListener.removeAllConversations | public void removeAllConversations(Object connectionReference) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "removeAllConversations", connectionReference);
final ArrayList list;
synchronized (activeConversations) {
list = (Arra... | java | public void removeAllConversations(Object connectionReference) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "removeAllConversations", connectionReference);
final ArrayList list;
synchronized (activeConversations) {
list = (Arra... | [
"public",
"void",
"removeAllConversations",
"(",
"Object",
"connectionReference",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",... | This method is used to clean up any resources that
@param connectionReference | [
"This",
"method",
"is",
"used",
"to",
"clean",
"up",
"any",
"resources",
"that"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/ServerTransportAcceptListener.java#L225-L259 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java | InjectionProcessor.getObjectFactoryInfo | protected final ObjectFactoryInfo getObjectFactoryInfo(Class<?> klass, String className) // F743-32443
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getObjectFactory: " + klass + ", " + className);
if (ivObj... | java | protected final ObjectFactoryInfo getObjectFactoryInfo(Class<?> klass, String className) // F743-32443
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getObjectFactory: " + klass + ", " + className);
if (ivObj... | [
"protected",
"final",
"ObjectFactoryInfo",
"getObjectFactoryInfo",
"(",
"Class",
"<",
"?",
">",
"klass",
",",
"String",
"className",
")",
"// F743-32443",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",... | Gets an object factory for the specified class or class name. This
method must be used to support configurations without a class loader.
@param klass the class or <tt>null</tt> if unavailable
@param className the class name or <tt>null</tt> if klass was specified
@return the ObjectFactory | [
"Gets",
"an",
"object",
"factory",
"for",
"the",
"specified",
"class",
"or",
"class",
"name",
".",
"This",
"method",
"must",
"be",
"used",
"to",
"support",
"configurations",
"without",
"a",
"class",
"loader",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java#L268-L304 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java | InjectionProcessor.updateInjectionBinding | private void updateInjectionBinding(String jndiName, InjectionBinding<A> injectionBinding) // d675172
{
// If the annotation didn't have a name or the binding implementation
// constructor did not set it, then the binding needs to be updated
// with the default name or name (if not set by co... | java | private void updateInjectionBinding(String jndiName, InjectionBinding<A> injectionBinding) // d675172
{
// If the annotation didn't have a name or the binding implementation
// constructor did not set it, then the binding needs to be updated
// with the default name or name (if not set by co... | [
"private",
"void",
"updateInjectionBinding",
"(",
"String",
"jndiName",
",",
"InjectionBinding",
"<",
"A",
">",
"injectionBinding",
")",
"// d675172",
"{",
"// If the annotation didn't have a name or the binding implementation",
"// constructor did not set it, then the binding needs ... | Updates an InjectionBinding created for an annotation. | [
"Updates",
"an",
"InjectionBinding",
"created",
"for",
"an",
"annotation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java#L356-L365 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java | InjectionProcessor.addOrMergeOverrideInjectionBinding | private <P extends Annotation> InjectionBinding<?> addOrMergeOverrideInjectionBinding(Class<?> instanceClass,
Member member,
A annotation,
... | java | private <P extends Annotation> InjectionBinding<?> addOrMergeOverrideInjectionBinding(Class<?> instanceClass,
Member member,
A annotation,
... | [
"private",
"<",
"P",
"extends",
"Annotation",
">",
"InjectionBinding",
"<",
"?",
">",
"addOrMergeOverrideInjectionBinding",
"(",
"Class",
"<",
"?",
">",
"instanceClass",
",",
"Member",
"member",
",",
"A",
"annotation",
",",
"String",
"jndiName",
")",
"// d675843... | Creates and adds a new override injection binding, or merges the data in
an annotation with an existing override injection binding.
@param <P> the primary annotation class; from the perspective of this
method, the A type variable is the overridden annotation type
@param instanceClass the class that contained the annot... | [
"Creates",
"and",
"adds",
"a",
"new",
"override",
"injection",
"binding",
"or",
"merges",
"the",
"data",
"in",
"an",
"annotation",
"with",
"an",
"existing",
"override",
"injection",
"binding",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java#L413-L452 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java | InjectionProcessor.performJavaNameSpaceBinding | void performJavaNameSpaceBinding() throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "performJavaNameSpaceBinding: " + this);
for (InjectionBinding<A> injectionBinding : ivAllAnnotations... | java | void performJavaNameSpaceBinding() throws InjectionException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "performJavaNameSpaceBinding: " + this);
for (InjectionBinding<A> injectionBinding : ivAllAnnotations... | [
"void",
"performJavaNameSpaceBinding",
"(",
")",
"throws",
"InjectionException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr... | Bind all the jndi annotation entries found. | [
"Bind",
"all",
"the",
"jndi",
"annotation",
"entries",
"found",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java#L708-L739 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java | InjectionProcessor.addInjectionBinding | public final void addInjectionBinding(InjectionBinding<A> injectionBinding)
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isDebugEnabled())
Tr.debug(tc, "addInjectionBinding: " + injectionBinding);
// jndi name not found in collection, sim... | java | public final void addInjectionBinding(InjectionBinding<A> injectionBinding)
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isDebugEnabled())
Tr.debug(tc, "addInjectionBinding: " + injectionBinding);
// jndi name not found in collection, sim... | [
"public",
"final",
"void",
"addInjectionBinding",
"(",
"InjectionBinding",
"<",
"A",
">",
"injectionBinding",
")",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
... | Add the InjectionBinding to the annotationCollection. The collection will be used
later when binding and resolving injection targets.
@param injectionBinding | [
"Add",
"the",
"InjectionBinding",
"to",
"the",
"annotationCollection",
".",
"The",
"collection",
"will",
"be",
"used",
"later",
"when",
"binding",
"and",
"resolving",
"injection",
"targets",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java#L747-L755 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java | InjectionProcessor.getJavaBeansPropertyName | protected final String getJavaBeansPropertyName(Member fieldOrMethod)
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getJavaBeansPropertyName : " + fieldOrMethod);
String propertyName;
if (fieldOrMeth... | java | protected final String getJavaBeansPropertyName(Member fieldOrMethod)
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "getJavaBeansPropertyName : " + fieldOrMethod);
String propertyName;
if (fieldOrMeth... | [
"protected",
"final",
"String",
"getJavaBeansPropertyName",
"(",
"Member",
"fieldOrMethod",
")",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
"isEntryEnabled",
"(",... | F50309.5 | [
"F50309",
".",
"5"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/wsspi/injectionengine/InjectionProcessor.java#L767-L800 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/EmbeddedServerImpl.java | EmbeddedServerImpl.getServerFeatures | public Set<String> getServerFeatures() {
ServerTask serverTask = runningServer.get();
try {
if (serverTask != null)
return serverTask.getServerFeatures();
} catch (InterruptedException e) {
// nothing to do here, we couldn't get the results from the server... | java | public Set<String> getServerFeatures() {
ServerTask serverTask = runningServer.get();
try {
if (serverTask != null)
return serverTask.getServerFeatures();
} catch (InterruptedException e) {
// nothing to do here, we couldn't get the results from the server... | [
"public",
"Set",
"<",
"String",
">",
"getServerFeatures",
"(",
")",
"{",
"ServerTask",
"serverTask",
"=",
"runningServer",
".",
"get",
"(",
")",
";",
"try",
"{",
"if",
"(",
"serverTask",
"!=",
"null",
")",
"return",
"serverTask",
".",
"getServerFeatures",
... | The feature gather operation needs to launch the server far enough for it to read
config and figure out all of the features that would be loaded. It doesn't actually
start any of those features, but it needs to get far enough to evaluate the full
feature set, including features and auto-features that are part of Libert... | [
"The",
"feature",
"gather",
"operation",
"needs",
"to",
"launch",
"the",
"server",
"far",
"enough",
"for",
"it",
"to",
"read",
"config",
"and",
"figure",
"out",
"all",
"of",
"the",
"features",
"that",
"would",
"be",
"loaded",
".",
"It",
"doesn",
"t",
"ac... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/EmbeddedServerImpl.java#L273-L283 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java | Node.findNode | protected Node findNode(int nodeStreamID) {
// mainline debug in this recursive method is way to verbose, so only debug when we find what we are looking for
if (nodeStreamID == this.streamID) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, ... | java | protected Node findNode(int nodeStreamID) {
// mainline debug in this recursive method is way to verbose, so only debug when we find what we are looking for
if (nodeStreamID == this.streamID) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, ... | [
"protected",
"Node",
"findNode",
"(",
"int",
"nodeStreamID",
")",
"{",
"// mainline debug in this recursive method is way to verbose, so only debug when we find what we are looking for",
"if",
"(",
"nodeStreamID",
"==",
"this",
".",
"streamID",
")",
"{",
"if",
"(",
"TraceComp... | Starting with this node, find the node matching the input stream ID, look at this node and all dependents recursively.
To search the whole tree start by calling findNode on the root node.
@param nodeStreamID
@return | [
"Starting",
"with",
"this",
"node",
"find",
"the",
"node",
"matching",
"the",
"input",
"stream",
"ID",
"look",
"at",
"this",
"node",
"and",
"all",
"dependents",
"recursively",
".",
"To",
"search",
"the",
"whole",
"tree",
"start",
"by",
"calling",
"findNode",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L77-L98 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java | Node.addDependent | protected void addDependent(Node nodeToAdd) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "addDependent entry: node to add: " + nodeToAdd);
}
dependents.add(nodeToAdd);
} | java | protected void addDependent(Node nodeToAdd) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "addDependent entry: node to add: " + nodeToAdd);
}
dependents.add(nodeToAdd);
} | [
"protected",
"void",
"addDependent",
"(",
"Node",
"nodeToAdd",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"addDependent entry: node... | Add a new dependent to this node.
@param toAdd | [
"Add",
"a",
"new",
"dependent",
"to",
"this",
"node",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L105-L110 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java | Node.removeDependent | protected void removeDependent(Node nodeToRemove) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "removeDependent entry: node to remove: " + nodeToRemove);
}
dependents.remove(nodeToRemove);
} | java | protected void removeDependent(Node nodeToRemove) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "removeDependent entry: node to remove: " + nodeToRemove);
}
dependents.remove(nodeToRemove);
} | [
"protected",
"void",
"removeDependent",
"(",
"Node",
"nodeToRemove",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"removeDependent en... | Remove a dependent from the dependent list this node is keeping
@param toRemove | [
"Remove",
"a",
"dependent",
"from",
"the",
"dependent",
"list",
"this",
"node",
"is",
"keeping"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L117-L122 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java | Node.clearDependentsWriteCount | protected void clearDependentsWriteCount() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "clearDependentsWriteCount entry: for this node: " + this);
}
dependentWriteCount = 0;
if ((dependents == null) || (dependents.size() == 0)) {
... | java | protected void clearDependentsWriteCount() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "clearDependentsWriteCount entry: for this node: " + this);
}
dependentWriteCount = 0;
if ((dependents == null) || (dependents.size() == 0)) {
... | [
"protected",
"void",
"clearDependentsWriteCount",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"clearDependentsWriteCount entry: for... | clear counts for all direct dependents of this node.
also clear the dependent write counter | [
"clear",
"counts",
"for",
"all",
"direct",
"dependents",
"of",
"this",
"node",
".",
"also",
"clear",
"the",
"dependent",
"write",
"counter"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L132-L148 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java | Node.findNextWrite | protected Node findNextWrite() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "findNextWrite entry: on node " + this + "With status: " + status + "and positive ratio of: " + getPriorityRatioPositive());
}
if (status == NODE_STATUS.REQUESTING_WRITE... | java | protected Node findNextWrite() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "findNextWrite entry: on node " + this + "With status: " + status + "and positive ratio of: " + getPriorityRatioPositive());
}
if (status == NODE_STATUS.REQUESTING_WRITE... | [
"protected",
"Node",
"findNextWrite",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"findNextWrite entry: on node \"",
"+",
"this... | recursively go through the tree finding the highest priority node that is requesting to write.
Assume nodes are arranged according to which dependents should write next from low index to high index at all levels.
Recursively find the next node ready to write, where first option is the highest rank node at a given leve... | [
"recursively",
"go",
"through",
"the",
"tree",
"finding",
"the",
"highest",
"priority",
"node",
"that",
"is",
"requesting",
"to",
"write",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L282-L312 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java | Node.incrementDependentWriteCount | protected int incrementDependentWriteCount() {
dependentWriteCount++;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "incrementDependentWriteCount entry: new dependentWriteCount of: " + dependentWriteCount + " for node: " + this);
}
return dep... | java | protected int incrementDependentWriteCount() {
dependentWriteCount++;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "incrementDependentWriteCount entry: new dependentWriteCount of: " + dependentWriteCount + " for node: " + this);
}
return dep... | [
"protected",
"int",
"incrementDependentWriteCount",
"(",
")",
"{",
"dependentWriteCount",
"++",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",... | increment the count since of the number of writes the direct dependents have done since that last reset. | [
"increment",
"the",
"count",
"since",
"of",
"the",
"number",
"of",
"writes",
"the",
"direct",
"dependents",
"have",
"done",
"since",
"that",
"last",
"reset",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L317-L323 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java | Node.setParent | protected void setParent(Node newParent, boolean removeDep) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setParent entry: new parent will be: " + newParent + " for node: " + this);
}
Node oldParent = parent;
parent = newParent;
... | java | protected void setParent(Node newParent, boolean removeDep) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setParent entry: new parent will be: " + newParent + " for node: " + this);
}
Node oldParent = parent;
parent = newParent;
... | [
"protected",
"void",
"setParent",
"(",
"Node",
"newParent",
",",
"boolean",
"removeDep",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",... | Give this node a new parent.
Remove this node as a dependent of the old parent
Add this node as a dependent of the new parent.
@param newParent The new parent for this node. Null is allowed is is basically removing this node from the tree. | [
"Give",
"this",
"node",
"a",
"new",
"parent",
".",
"Remove",
"this",
"node",
"as",
"a",
"dependent",
"of",
"the",
"old",
"parent",
"Add",
"this",
"node",
"as",
"a",
"dependent",
"of",
"the",
"new",
"parent",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/priority/Node.java#L332-L358 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java | Subcursor._next | private final AbstractItemLink _next(long lockID) throws SevereMessageStoreException
{
// first look for an available link that we can lock. We scan the tree
// removing each element as we find it. If we are able to lock the link
// we use it.
AbstractItemLink lockedMatchingLink = nu... | java | private final AbstractItemLink _next(long lockID) throws SevereMessageStoreException
{
// first look for an available link that we can lock. We scan the tree
// removing each element as we find it. If we are able to lock the link
// we use it.
AbstractItemLink lockedMatchingLink = nu... | [
"private",
"final",
"AbstractItemLink",
"_next",
"(",
"long",
"lockID",
")",
"throws",
"SevereMessageStoreException",
"{",
"// first look for an available link that we can lock. We scan the tree",
"// removing each element as we find it. If we are able to lock the link",
"// we use it.",
... | Finds and locks the next matching item.
<p>This method MUST NOT be synchronized. It can cause reading from the
persistence layer. For this reason, and because it contains a loop to
find a suitable item, the execution time of this method can be long
and synchronization would prevent concurrent addition of entries to th... | [
"Finds",
"and",
"locks",
"the",
"next",
"matching",
"item",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java#L82-L163 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java | Subcursor.available | public final void available(AbstractItemLink link) throws SevereMessageStoreException
{
if (_jumpbackEnabled)
{
final long newPos = link.getPosition();
// we need to synchronize the read of the position
// or we can miss out items when reading an empty queue fast... | java | public final void available(AbstractItemLink link) throws SevereMessageStoreException
{
if (_jumpbackEnabled)
{
final long newPos = link.getPosition();
// we need to synchronize the read of the position
// or we can miss out items when reading an empty queue fast... | [
"public",
"final",
"void",
"available",
"(",
"AbstractItemLink",
"link",
")",
"throws",
"SevereMessageStoreException",
"{",
"if",
"(",
"_jumpbackEnabled",
")",
"{",
"final",
"long",
"newPos",
"=",
"link",
".",
"getPosition",
"(",
")",
";",
"// we need to synchroni... | The cursor is being told that a link has become available. Add it to the list to revisit, but
only if it is older than the current cursor position.
@param link
@throws SevereMessageStoreException | [
"The",
"cursor",
"is",
"being",
"told",
"that",
"a",
"link",
"has",
"become",
"available",
".",
"Add",
"it",
"to",
"the",
"list",
"to",
"revisit",
"but",
"only",
"if",
"it",
"is",
"older",
"than",
"the",
"current",
"cursor",
"position",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java#L172-L208 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java | Subcursor.next | public final AbstractItem next(long lockID) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "next", Long.valueOf(lockID));
final AbstractItemLink lockedMatchingLink = _next(lockID);
// retrieve the item from the li... | java | public final AbstractItem next(long lockID) throws SevereMessageStoreException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "next", Long.valueOf(lockID));
final AbstractItemLink lockedMatchingLink = _next(lockID);
// retrieve the item from the li... | [
"public",
"final",
"AbstractItem",
"next",
"(",
"long",
"lockID",
")",
"throws",
"SevereMessageStoreException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"("... | Return the next item that is deemed a match by the filter specified when the cursor
was created. Items returned by this method are locked.
@throws SevereMessageStoreException | [
"Return",
"the",
"next",
"item",
"that",
"is",
"deemed",
"a",
"match",
"by",
"the",
"filter",
"specified",
"when",
"the",
"cursor",
"was",
"created",
".",
"Items",
"returned",
"by",
"this",
"method",
"are",
"locked",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java#L258-L273 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java | Subcursor.finished | public final void finished()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "finished");
if (null != _lastLink)
{
_lastLink.cursorRemoved();
_lastLink = null;
}
if (TraceComponent.isAnyTracingEnabled() && tc.... | java | public final void finished()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "finished");
if (null != _lastLink)
{
_lastLink.cursorRemoved();
_lastLink = null;
}
if (TraceComponent.isAnyTracingEnabled() && tc.... | [
"public",
"final",
"void",
"finished",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"finished\"",
")",
";",
"if... | Signals that use of the cursor has finished. The cursor is removed from the AIL that it currently
rests on. | [
"Signals",
"that",
"use",
"of",
"the",
"cursor",
"has",
"finished",
".",
"The",
"cursor",
"is",
"removed",
"from",
"the",
"AIL",
"that",
"it",
"currently",
"rests",
"on",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/list/Subcursor.java#L279-L290 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SingletonBeanO.java | SingletonBeanO.callTransactionalLifecycleInterceptors | private void callTransactionalLifecycleInterceptors(InterceptorProxy[] proxies, int methodId) throws RemoteException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
LifecycleInterceptorWrapper wrapper = new LifecycleInterceptorWrapper(container, this);
EJSDeployedSupport s = ... | java | private void callTransactionalLifecycleInterceptors(InterceptorProxy[] proxies, int methodId) throws RemoteException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
LifecycleInterceptorWrapper wrapper = new LifecycleInterceptorWrapper(container, this);
EJSDeployedSupport s = ... | [
"private",
"void",
"callTransactionalLifecycleInterceptors",
"(",
"InterceptorProxy",
"[",
"]",
"proxies",
",",
"int",
"methodId",
")",
"throws",
"RemoteException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",... | Invoke PostConstruct or PreDestroy interceptors associated with this bean
using the transaction and security context specified in the method info.
@param proxies the non-null reference to InterceptorProxy array that
contains the PostConstruct interceptor methods to invoke.
@param methodInfo the method info for transac... | [
"Invoke",
"PostConstruct",
"or",
"PreDestroy",
"interceptors",
"associated",
"with",
"this",
"bean",
"using",
"the",
"transaction",
"and",
"security",
"context",
"specified",
"in",
"the",
"method",
"info",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SingletonBeanO.java#L194-L231 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SingletonBeanO.java | SingletonBeanO.postInvoke | @Override
public void postInvoke(int id, EJSDeployedSupport s) throws RemoteException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) {
Tr.entry(tc, "postInvoke");
}
// Release lock acquired if container managed con... | java | @Override
public void postInvoke(int id, EJSDeployedSupport s) throws RemoteException {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled()) {
Tr.entry(tc, "postInvoke");
}
// Release lock acquired if container managed con... | [
"@",
"Override",
"public",
"void",
"postInvoke",
"(",
"int",
"id",
",",
"EJSDeployedSupport",
"s",
")",
"throws",
"RemoteException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
... | Release lock acquired by preInvoke.
@see com.ibm.ejs.container.BeanO#postInvoke(int, com.ibm.ejs.container.EJSDeployedSupport) | [
"Release",
"lock",
"acquired",
"by",
"preInvoke",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/SingletonBeanO.java#L543-L574 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/DeserializationObjectInputStream.java | DeserializationObjectInputStream.resolveClassWithCL | private Class<?> resolveClassWithCL(String name) throws ClassNotFoundException {
SecurityManager security = System.getSecurityManager();
if (security != null) {
return Class.forName(name, false, getClassLoader(thisClass));
}
// The platform classloader is null if we failed t... | java | private Class<?> resolveClassWithCL(String name) throws ClassNotFoundException {
SecurityManager security = System.getSecurityManager();
if (security != null) {
return Class.forName(name, false, getClassLoader(thisClass));
}
// The platform classloader is null if we failed t... | [
"private",
"Class",
"<",
"?",
">",
"resolveClassWithCL",
"(",
"String",
"name",
")",
"throws",
"ClassNotFoundException",
"{",
"SecurityManager",
"security",
"=",
"System",
".",
"getSecurityManager",
"(",
")",
";",
"if",
"(",
"security",
"!=",
"null",
")",
"{",... | Resolves a class using the appropriate classloader.
@param name The name of the class to resolve.
@return The resolved class.
@throws ClassNotFoundException | [
"Resolves",
"a",
"class",
"using",
"the",
"appropriate",
"classloader",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/DeserializationObjectInputStream.java#L128-L142 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/DeserializationObjectInputStream.java | DeserializationObjectInputStream.resolveProxyClass | @Override
protected Class<?> resolveProxyClass(String[] interfaceNames) throws ClassNotFoundException {
ClassLoader proxyClassLoader = classLoader;
Class<?>[] interfaces = new Class[interfaceNames.length];
Class<?> nonPublicInterface = null;
for (int i = 0; i < interfaceNames.length... | java | @Override
protected Class<?> resolveProxyClass(String[] interfaceNames) throws ClassNotFoundException {
ClassLoader proxyClassLoader = classLoader;
Class<?>[] interfaces = new Class[interfaceNames.length];
Class<?> nonPublicInterface = null;
for (int i = 0; i < interfaceNames.length... | [
"@",
"Override",
"protected",
"Class",
"<",
"?",
">",
"resolveProxyClass",
"(",
"String",
"[",
"]",
"interfaceNames",
")",
"throws",
"ClassNotFoundException",
"{",
"ClassLoader",
"proxyClassLoader",
"=",
"classLoader",
";",
"Class",
"<",
"?",
">",
"[",
"]",
"i... | Delegates class loading to the specified class loader.
<p>{@inheritDoc} | [
"Delegates",
"class",
"loading",
"to",
"the",
"specified",
"class",
"loader",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/DeserializationObjectInputStream.java#L212-L241 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/DeserializationObjectInputStream.java | DeserializationObjectInputStream.getPlatformClassLoader | private static ClassLoader getPlatformClassLoader() {
if (JavaInfo.majorVersion() >= 9) {
return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
@Override
public ClassLoader run() {
ClassLoader pcl = null;
tr... | java | private static ClassLoader getPlatformClassLoader() {
if (JavaInfo.majorVersion() >= 9) {
return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
@Override
public ClassLoader run() {
ClassLoader pcl = null;
tr... | [
"private",
"static",
"ClassLoader",
"getPlatformClassLoader",
"(",
")",
"{",
"if",
"(",
"JavaInfo",
".",
"majorVersion",
"(",
")",
">=",
"9",
")",
"{",
"return",
"AccessController",
".",
"doPrivileged",
"(",
"new",
"PrivilegedAction",
"<",
"ClassLoader",
">",
... | Returns the PlatformClassloader when running with java 9 and above; otherwise returns null. | [
"Returns",
"the",
"PlatformClassloader",
"when",
"running",
"with",
"java",
"9",
"and",
"above",
";",
"otherwise",
"returns",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.serialization/src/com/ibm/ws/serialization/DeserializationObjectInputStream.java#L255-L272 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java | CATAsynchConsumer.setAsynchConsumerCallback | @Override
public void setAsynchConsumerCallback(int requestNumber,
int maxActiveMessages,
long messageLockExpiry,
int batchsize,
OrderingContext ord... | java | @Override
public void setAsynchConsumerCallback(int requestNumber,
int maxActiveMessages,
long messageLockExpiry,
int batchsize,
OrderingContext ord... | [
"@",
"Override",
"public",
"void",
"setAsynchConsumerCallback",
"(",
"int",
"requestNumber",
",",
"int",
"maxActiveMessages",
",",
"long",
"messageLockExpiry",
",",
"int",
"batchsize",
",",
"OrderingContext",
"orderContext",
",",
"boolean",
"stoppable",
",",
"int",
... | Creates a normal or stoppable async consumer for this session. This is called in response to
the request from a client. This differs from readahead or synchronous sessions where an async
callback is registered without the client knowing.
@param requestNumber
@param maxActiveMessages
@param messageLockExpiry
@param bat... | [
"Creates",
"a",
"normal",
"or",
"stoppable",
"async",
"consumer",
"for",
"this",
"session",
".",
"This",
"is",
"called",
"in",
"response",
"to",
"the",
"request",
"from",
"a",
"client",
".",
"This",
"differs",
"from",
"readahead",
"or",
"synchronous",
"sessi... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java#L173-L268 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java | CATAsynchConsumer.flush | @Override
public void flush(int requestNumber) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "flush", "" + requestNumber);
try {
// Make sure it is stopped before we activate it
if (mainConsumer.isStarted())
... | java | @Override
public void flush(int requestNumber) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "flush", "" + requestNumber);
try {
// Make sure it is stopped before we activate it
if (mainConsumer.isStarted())
... | [
"@",
"Override",
"public",
"void",
"flush",
"(",
"int",
"requestNumber",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
... | This method will flush the consumer to ensure it is completely
out of messages.
@param requestNumber | [
"This",
"method",
"will",
"flush",
"the",
"consumer",
"to",
"ensure",
"it",
"is",
"completely",
"out",
"of",
"messages",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java#L619-L675 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java | CATAsynchConsumer.sendMessage | private boolean sendMessage(SIBusMessage sibMessage, boolean lastMsg, Integer priority)
throws MessageEncodeFailedException,
IncorrectMessageTypeException,
MessageCopyFailedException,
UnsupportedEncodingException {
if (TraceComponen... | java | private boolean sendMessage(SIBusMessage sibMessage, boolean lastMsg, Integer priority)
throws MessageEncodeFailedException,
IncorrectMessageTypeException,
MessageCopyFailedException,
UnsupportedEncodingException {
if (TraceComponen... | [
"private",
"boolean",
"sendMessage",
"(",
"SIBusMessage",
"sibMessage",
",",
"boolean",
"lastMsg",
",",
"Integer",
"priority",
")",
"throws",
"MessageEncodeFailedException",
",",
"IncorrectMessageTypeException",
",",
"MessageCopyFailedException",
",",
"UnsupportedEncodingExce... | Method to perform a single send of a message to the client.
@param sibMessage The message to send.
@param lastMsg true if this is the last message in the batch.
@param priority The priority to sent the message
@return Returns false if a communications error prevented the message
from being sent.
@throws MessageEncod... | [
"Method",
"to",
"perform",
"a",
"single",
"send",
"of",
"a",
"message",
"to",
"the",
"client",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java#L689-L712 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java | CATAsynchConsumer.sendEntireMessage | private boolean sendEntireMessage(SIBusMessage sibMessage, List<DataSlice> messageSlices,
boolean lastMsg, Integer priority)
throws MessageEncodeFailedException,
IncorrectMessageTypeException,
MessageCopyFailedException,
... | java | private boolean sendEntireMessage(SIBusMessage sibMessage, List<DataSlice> messageSlices,
boolean lastMsg, Integer priority)
throws MessageEncodeFailedException,
IncorrectMessageTypeException,
MessageCopyFailedException,
... | [
"private",
"boolean",
"sendEntireMessage",
"(",
"SIBusMessage",
"sibMessage",
",",
"List",
"<",
"DataSlice",
">",
"messageSlices",
",",
"boolean",
"lastMsg",
",",
"Integer",
"priority",
")",
"throws",
"MessageEncodeFailedException",
",",
"IncorrectMessageTypeException",
... | Sends the message in one big buffer. If the messageSlices parameter is not null then
the message has already been encoded and does not need to be done again. This may be in the
case where the message was destined to be sent in chunks but is so small that it does not
seem worth it.
@param sibMessage The entire message ... | [
"Sends",
"the",
"message",
"in",
"one",
"big",
"buffer",
".",
"If",
"the",
"messageSlices",
"parameter",
"is",
"not",
"null",
"then",
"the",
"message",
"has",
"already",
"been",
"encoded",
"and",
"does",
"not",
"need",
"to",
"be",
"done",
"again",
".",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java#L845-L910 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java | CATAsynchConsumer.consumerSessionStopped | public void consumerSessionStopped() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "consumerSessionStopped");
// Inform the main consumer instance that message processor has stopped the session, this will prevent any more
// restart request... | java | public void consumerSessionStopped() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "consumerSessionStopped");
// Inform the main consumer instance that message processor has stopped the session, this will prevent any more
// restart request... | [
"public",
"void",
"consumerSessionStopped",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"consumerSessionStopped\"",
... | Method called when the asynchronous consumer has been stopped duee to the maxSequentialFailures threshold being reached
@param lme | [
"Method",
"called",
"when",
"the",
"asynchronous",
"consumer",
"has",
"been",
"stopped",
"duee",
"to",
"the",
"maxSequentialFailures",
"threshold",
"being",
"reached"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATAsynchConsumer.java#L1092-L1123 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceProcessor.java | ResourceProcessor.checkObjectFactoryAttributes | private void checkObjectFactoryAttributes(ResourceInjectionBinding resourceBinding,
ObjectFactoryInfo extensionFactory) // d675976
throws InjectionConfigurationException
{
Resource resourceAnnotation = resourceBinding.getAnnotation();
if (!extension... | java | private void checkObjectFactoryAttributes(ResourceInjectionBinding resourceBinding,
ObjectFactoryInfo extensionFactory) // d675976
throws InjectionConfigurationException
{
Resource resourceAnnotation = resourceBinding.getAnnotation();
if (!extension... | [
"private",
"void",
"checkObjectFactoryAttributes",
"(",
"ResourceInjectionBinding",
"resourceBinding",
",",
"ObjectFactoryInfo",
"extensionFactory",
")",
"// d675976",
"throws",
"InjectionConfigurationException",
"{",
"Resource",
"resourceAnnotation",
"=",
"resourceBinding",
".",... | Check attributes for registered ObjectFactory's.
@param resourceBinding
@param extensionFactory
@throws InjectionConfigurationException | [
"Check",
"attributes",
"for",
"registered",
"ObjectFactory",
"s",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceProcessor.java#L872-L889 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceProcessor.java | ResourceProcessor.createExtensionFactoryReference | private Reference createExtensionFactoryReference(ObjectFactoryInfo extensionFactory,
ResourceInjectionBinding resourceBinding) // F48603.9
{
String className = extensionFactory.getObjectFactoryClass().getName();
Reference ref = new Reference(res... | java | private Reference createExtensionFactoryReference(ObjectFactoryInfo extensionFactory,
ResourceInjectionBinding resourceBinding) // F48603.9
{
String className = extensionFactory.getObjectFactoryClass().getName();
Reference ref = new Reference(res... | [
"private",
"Reference",
"createExtensionFactoryReference",
"(",
"ObjectFactoryInfo",
"extensionFactory",
",",
"ResourceInjectionBinding",
"resourceBinding",
")",
"// F48603.9",
"{",
"String",
"className",
"=",
"extensionFactory",
".",
"getObjectFactoryClass",
"(",
")",
".",
... | Creates a Reference for a binding from a registered ObjectFactory.
@param extensionFactory the object factory info
@param resourceBinding the resource binding
@return the reference | [
"Creates",
"a",
"Reference",
"for",
"a",
"binding",
"from",
"a",
"registered",
"ObjectFactory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceProcessor.java#L928-L940 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceProcessor.java | ResourceProcessor.createResourceInfo | private ResourceInfo createResourceInfo(ResourceInjectionBinding resourceBinding) // F48603.9
{
J2EEName j2eeName = ivNameSpaceConfig.getJ2EEName();
Resource resourceAnnotation = resourceBinding.getAnnotation();
return new ResourceInfo(j2eeName == null ? null : j2eeName.getApplication(),
... | java | private ResourceInfo createResourceInfo(ResourceInjectionBinding resourceBinding) // F48603.9
{
J2EEName j2eeName = ivNameSpaceConfig.getJ2EEName();
Resource resourceAnnotation = resourceBinding.getAnnotation();
return new ResourceInfo(j2eeName == null ? null : j2eeName.getApplication(),
... | [
"private",
"ResourceInfo",
"createResourceInfo",
"(",
"ResourceInjectionBinding",
"resourceBinding",
")",
"// F48603.9",
"{",
"J2EEName",
"j2eeName",
"=",
"ivNameSpaceConfig",
".",
"getJ2EEName",
"(",
")",
";",
"Resource",
"resourceAnnotation",
"=",
"resourceBinding",
"."... | Creates a ResourceInfo for a binding.
@param resourceBinding the binding
@return the info | [
"Creates",
"a",
"ResourceInfo",
"for",
"a",
"binding",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.injection.core/src/com/ibm/ws/injectionengine/processor/ResourceProcessor.java#L948-L965 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/transport/https/HttpsURLConnectionFactory.java | HttpsURLConnectionFactory.createConnection | public HttpURLConnection createConnection(TLSClientParameters tlsClientParameters,
Proxy proxy, URL url) throws IOException {
HttpURLConnection connection = (HttpURLConnection) (proxy != null ? url.openConnection(proxy) : url.openConnection());
if (HTTPS_UR... | java | public HttpURLConnection createConnection(TLSClientParameters tlsClientParameters,
Proxy proxy, URL url) throws IOException {
HttpURLConnection connection = (HttpURLConnection) (proxy != null ? url.openConnection(proxy) : url.openConnection());
if (HTTPS_UR... | [
"public",
"HttpURLConnection",
"createConnection",
"(",
"TLSClientParameters",
"tlsClientParameters",
",",
"Proxy",
"proxy",
",",
"URL",
"url",
")",
"throws",
"IOException",
"{",
"HttpURLConnection",
"connection",
"=",
"(",
"HttpURLConnection",
")",
"(",
"proxy",
"!="... | Create a HttpURLConnection, proxified if necessary.
@param proxy This parameter is non-null if connection should be proxied.
@param url The target URL. This parameter must be an https url.
@return The HttpsURLConnection for the given URL.
@throws IOException This exception is thrown if
the "url" is not "https" or ot... | [
"Create",
"a",
"HttpURLConnection",
"proxified",
"if",
"necessary",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/transport/https/HttpsURLConnectionFactory.java#L88-L117 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/jaxrs2/util/ReaderUtils.java | ReaderUtils.collectConstructorParameters | public static List<Parameter> collectConstructorParameters(Class<?> cls, Components components, javax.ws.rs.Consumes classConsumes) {
if (cls.isLocalClass() || (cls.isMemberClass() && !Modifier.isStatic(cls.getModifiers()))) {
return Collections.emptyList();
}
List<Parameter> select... | java | public static List<Parameter> collectConstructorParameters(Class<?> cls, Components components, javax.ws.rs.Consumes classConsumes) {
if (cls.isLocalClass() || (cls.isMemberClass() && !Modifier.isStatic(cls.getModifiers()))) {
return Collections.emptyList();
}
List<Parameter> select... | [
"public",
"static",
"List",
"<",
"Parameter",
">",
"collectConstructorParameters",
"(",
"Class",
"<",
"?",
">",
"cls",
",",
"Components",
"components",
",",
"javax",
".",
"ws",
".",
"rs",
".",
"Consumes",
"classConsumes",
")",
"{",
"if",
"(",
"cls",
".",
... | Collects constructor-level parameters from class.
@param cls is a class for collecting
@param components
@return the collection of supported parameters | [
"Collects",
"constructor",
"-",
"level",
"parameters",
"from",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/jaxrs2/util/ReaderUtils.java#L49-L99 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/jaxrs2/util/ReaderUtils.java | ReaderUtils.collectFieldParameters | public static List<Parameter> collectFieldParameters(Class<?> cls, Components components, javax.ws.rs.Consumes classConsumes) {
final List<Parameter> parameters = new ArrayList<Parameter>();
for (Field field : ReflectionUtils.getDeclaredFields(cls)) {
final List<Annotation> annotations = Arr... | java | public static List<Parameter> collectFieldParameters(Class<?> cls, Components components, javax.ws.rs.Consumes classConsumes) {
final List<Parameter> parameters = new ArrayList<Parameter>();
for (Field field : ReflectionUtils.getDeclaredFields(cls)) {
final List<Annotation> annotations = Arr... | [
"public",
"static",
"List",
"<",
"Parameter",
">",
"collectFieldParameters",
"(",
"Class",
"<",
"?",
">",
"cls",
",",
"Components",
"components",
",",
"javax",
".",
"ws",
".",
"rs",
".",
"Consumes",
"classConsumes",
")",
"{",
"final",
"List",
"<",
"Paramet... | Collects field-level parameters from class.
@param cls is a class for collecting
@param components
@return the collection of supported parameters | [
"Collects",
"field",
"-",
"level",
"parameters",
"from",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/jaxrs2/util/ReaderUtils.java#L108-L116 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/jaxrs2/util/ReaderUtils.java | ReaderUtils.splitContentValues | public static String[] splitContentValues(String[] strings) {
final Set<String> result = new LinkedHashSet<String>();
for (String string : strings) {
if (string.isEmpty())
continue;
String[] splitted = string.trim().split(",");
for (String string2 : s... | java | public static String[] splitContentValues(String[] strings) {
final Set<String> result = new LinkedHashSet<String>();
for (String string : strings) {
if (string.isEmpty())
continue;
String[] splitted = string.trim().split(",");
for (String string2 : s... | [
"public",
"static",
"String",
"[",
"]",
"splitContentValues",
"(",
"String",
"[",
"]",
"strings",
")",
"{",
"final",
"Set",
"<",
"String",
">",
"result",
"=",
"new",
"LinkedHashSet",
"<",
"String",
">",
"(",
")",
";",
"for",
"(",
"String",
"string",
":... | Splits the provided array of strings into an array, using comma as the separator.
Also removes leading and trailing whitespace and omits empty strings from the results.
@param strings is the provided array of strings
@return the resulted array of strings | [
"Splits",
"the",
"provided",
"array",
"of",
"strings",
"into",
"an",
"array",
"using",
"comma",
"as",
"the",
"separator",
".",
"Also",
"removes",
"leading",
"and",
"trailing",
"whitespace",
"and",
"omits",
"empty",
"strings",
"from",
"the",
"results",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.openapi/src/com/ibm/ws/microprofile/openapi/impl/jaxrs2/util/ReaderUtils.java#L140-L152 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaUtils.java | SibRaUtils.objectsNotEqual | public static boolean objectsNotEqual(final Object one, final Object two) {
return (one == null) ? (two != null) : (!one.equals(two));
} | java | public static boolean objectsNotEqual(final Object one, final Object two) {
return (one == null) ? (two != null) : (!one.equals(two));
} | [
"public",
"static",
"boolean",
"objectsNotEqual",
"(",
"final",
"Object",
"one",
",",
"final",
"Object",
"two",
")",
"{",
"return",
"(",
"one",
"==",
"null",
")",
"?",
"(",
"two",
"!=",
"null",
")",
":",
"(",
"!",
"one",
".",
"equals",
"(",
"two",
... | Compares two objects for equality.
@param one
the first object
@param two
the second object
@return <code>true</code> if the two objects are <b>not </b> equal,
othewise <code>false</code> | [
"Compares",
"two",
"objects",
"for",
"equality",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaUtils.java#L82-L86 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaUtils.java | SibRaUtils.addFieldToString | public static void addFieldToString(final StringBuffer buffer,
final String name, final Object value) {
buffer.append(" <");
buffer.append(name);
buffer.append("=");
buffer.append(value);
buffer.append(">");
} | java | public static void addFieldToString(final StringBuffer buffer,
final String name, final Object value) {
buffer.append(" <");
buffer.append(name);
buffer.append("=");
buffer.append(value);
buffer.append(">");
} | [
"public",
"static",
"void",
"addFieldToString",
"(",
"final",
"StringBuffer",
"buffer",
",",
"final",
"String",
"name",
",",
"final",
"Object",
"value",
")",
"{",
"buffer",
".",
"append",
"(",
"\" <\"",
")",
";",
"buffer",
".",
"append",
"(",
"name",
")",
... | Adds a string representation of the given field to the buffer.
@param buffer
the buffer
@param name
the name of the field
@param value
the value of the field | [
"Adds",
"a",
"string",
"representation",
"of",
"the",
"given",
"field",
"to",
"the",
"buffer",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaUtils.java#L175-L184 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaUtils.java | SibRaUtils.addPasswordFieldToString | public static void addPasswordFieldToString(final StringBuffer buffer,
final String name, final Object value) {
addFieldToString(buffer, name, (value == null) ? null : "*****");
} | java | public static void addPasswordFieldToString(final StringBuffer buffer,
final String name, final Object value) {
addFieldToString(buffer, name, (value == null) ? null : "*****");
} | [
"public",
"static",
"void",
"addPasswordFieldToString",
"(",
"final",
"StringBuffer",
"buffer",
",",
"final",
"String",
"name",
",",
"final",
"Object",
"value",
")",
"{",
"addFieldToString",
"(",
"buffer",
",",
"name",
",",
"(",
"value",
"==",
"null",
")",
"... | Adds a string representation of the given password to the buffer. This
will contain a row of asterisks if the password is non-null.
@param buffer
the buffer
@param name
the name of the field
@param value
the value of the field | [
"Adds",
"a",
"string",
"representation",
"of",
"the",
"given",
"password",
"to",
"the",
"buffer",
".",
"This",
"will",
"contain",
"a",
"row",
"of",
"asterisks",
"if",
"the",
"password",
"is",
"non",
"-",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.common/src/com/ibm/ws/sib/ra/impl/SibRaUtils.java#L218-L223 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/runtime/HttpJspBase.java | HttpJspBase.service | public final void service(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
_jspService(request, response);
} | java | public final void service(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
_jspService(request, response);
} | [
"public",
"final",
"void",
"service",
"(",
"HttpServletRequest",
"request",
",",
"HttpServletResponse",
"response",
")",
"throws",
"ServletException",
",",
"IOException",
"{",
"_jspService",
"(",
"request",
",",
"response",
")",
";",
"}"
] | Entry point into service. | [
"Entry",
"point",
"into",
"service",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/runtime/HttpJspBase.java#L98-L101 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.util/src/com/ibm/tx/util/LongObjectHashMap.java | LongObjectHashMap.put | public Object put(long key, Object value)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "put", new Object[]{new Long(key), value, this});
if (value == null)
{
if (tc.isEntryEnabled()) Tr.exit(tc, "put", "IllegalArgumentException");
throw new IllegalArgumentException("Null is not a permitted value.");
}
... | java | public Object put(long key, Object value)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "put", new Object[]{new Long(key), value, this});
if (value == null)
{
if (tc.isEntryEnabled()) Tr.exit(tc, "put", "IllegalArgumentException");
throw new IllegalArgumentException("Null is not a permitted value.");
}
... | [
"public",
"Object",
"put",
"(",
"long",
"key",
",",
"Object",
"value",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"put\"",
",",
"new",
"Object",
"[",
"]",
"{",
"new",
"Long",
"(",
"key",... | Store the given value in the map, associating it with the given key. If the
map already contains an entry associated with the given key that entry will
be replaced.
@param key The key to associate with the entry
@param value The entry to be associated with the key
@return The entry replaced by this put operation, or nu... | [
"Store",
"the",
"given",
"value",
"in",
"the",
"map",
"associating",
"it",
"with",
"the",
"given",
"key",
".",
"If",
"the",
"map",
"already",
"contains",
"an",
"entry",
"associated",
"with",
"the",
"given",
"key",
"that",
"entry",
"will",
"be",
"replaced",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.util/src/com/ibm/tx/util/LongObjectHashMap.java#L145-L230 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.util/src/com/ibm/tx/util/LongObjectHashMap.java | LongObjectHashMap.remove | public Object remove(long key)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "remove", new Object[]{new Long(key), this});
int hash = getHashForExistingEntry(key);
Object result = null;
if (hash >= 0)
{
result = _values[hash];
}
if (result != null)
{
if (tc.isD... | java | public Object remove(long key)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "remove", new Object[]{new Long(key), this});
int hash = getHashForExistingEntry(key);
Object result = null;
if (hash >= 0)
{
result = _values[hash];
}
if (result != null)
{
if (tc.isD... | [
"public",
"Object",
"remove",
"(",
"long",
"key",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"remove\"",
",",
"new",
"Object",
"[",
"]",
"{",
"new",
"Long",
"(",
"key",
")",
",",
"this",... | Remove the entry from the map that is associated with
the given key.
@param key The key associated with the object that is to be removed
@return The object that has been removed from the map, or null if no object was removed.
Null can also be returned if the given key was previously associated with a null value. | [
"Remove",
"the",
"entry",
"from",
"the",
"map",
"that",
"is",
"associated",
"with",
"the",
"given",
"key",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.util/src/com/ibm/tx/util/LongObjectHashMap.java#L239-L261 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.util/src/com/ibm/tx/util/LongObjectHashMap.java | LongObjectHashMap.get | public Object get(long key)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "get", new Object[]{new Long(key), this});
int hash = getHashForExistingEntry(key);
Object value = null;
if (hash >= 0)
{
value = _values[hash];
}
if (tc.isEntryEnabled()) Tr.exit(tc, "get", ... | java | public Object get(long key)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "get", new Object[]{new Long(key), this});
int hash = getHashForExistingEntry(key);
Object value = null;
if (hash >= 0)
{
value = _values[hash];
}
if (tc.isEntryEnabled()) Tr.exit(tc, "get", ... | [
"public",
"Object",
"get",
"(",
"long",
"key",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"get\"",
",",
"new",
"Object",
"[",
"]",
"{",
"new",
"Long",
"(",
"key",
")",
",",
"this",
"}"... | Return the entry from the map associated with the given key
@param key the key whose associated value is to be returned
@return the entry in the map associated with the given key. | [
"Return",
"the",
"entry",
"from",
"the",
"map",
"associated",
"with",
"the",
"given",
"key"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.util/src/com/ibm/tx/util/LongObjectHashMap.java#L268-L282 | train |
OpenLiberty/open-liberty | dev/com.ibm.tx.util/src/com/ibm/tx/util/LongObjectHashMap.java | LongObjectHashMap.getHashForKey | private int getHashForKey(long key)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "getHashForKey", new Object[]{new Long(key), this});
int hash = (int) (key % _mapSize);
if (hash < 0) hash = -hash;
if (tc.isEntryEnabled()) Tr.exit(tc, "getHashForKey", new Integer(hash));
return hash;
} | java | private int getHashForKey(long key)
{
if (tc.isEntryEnabled()) Tr.entry(tc, "getHashForKey", new Object[]{new Long(key), this});
int hash = (int) (key % _mapSize);
if (hash < 0) hash = -hash;
if (tc.isEntryEnabled()) Tr.exit(tc, "getHashForKey", new Integer(hash));
return hash;
} | [
"private",
"int",
"getHashForKey",
"(",
"long",
"key",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"getHashForKey\"",
",",
"new",
"Object",
"[",
"]",
"{",
"new",
"Long",
"(",
"key",
")",
",... | suitable int index into the map | [
"suitable",
"int",
"index",
"into",
"the",
"map"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.util/src/com/ibm/tx/util/LongObjectHashMap.java#L371-L380 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security.feature/src/com/ibm/ws/webcontainer/security/feature/internal/FeatureAuthorizationTable.java | FeatureAuthorizationTable.processConfigProps | private void processConfigProps(Map<String, Object> props) {
if (props == null || props.isEmpty())
return;
id = (String) props.get(CFG_KEY_ID);
if (id == null) {
Tr.error(tc, "AUTHZ_ROLE_ID_IS_NULL");
return;
}
rolePids = (String[]) props.get(C... | java | private void processConfigProps(Map<String, Object> props) {
if (props == null || props.isEmpty())
return;
id = (String) props.get(CFG_KEY_ID);
if (id == null) {
Tr.error(tc, "AUTHZ_ROLE_ID_IS_NULL");
return;
}
rolePids = (String[]) props.get(C... | [
"private",
"void",
"processConfigProps",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"props",
")",
"{",
"if",
"(",
"props",
"==",
"null",
"||",
"props",
".",
"isEmpty",
"(",
")",
")",
"return",
";",
"id",
"=",
"(",
"String",
")",
"props",
".",
"... | Process the sytemRole properties from the server.xml.
@param props | [
"Process",
"the",
"sytemRole",
"properties",
"from",
"the",
"server",
".",
"xml",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security.feature/src/com/ibm/ws/webcontainer/security/feature/internal/FeatureAuthorizationTable.java#L107-L119 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/ClassLoaderConfigHelper.java | ClassLoaderConfigHelper.retrieveConfig | private Configuration retrieveConfig(NestedConfigHelper configHelper, ConfigurationAdmin configAdmin) throws InitWithoutConfig {
if (configHelper == null)
throw new InitWithoutConfig("Configuration not found");
// We need configAdmin to list the configurations of nested classloader elements ... | java | private Configuration retrieveConfig(NestedConfigHelper configHelper, ConfigurationAdmin configAdmin) throws InitWithoutConfig {
if (configHelper == null)
throw new InitWithoutConfig("Configuration not found");
// We need configAdmin to list the configurations of nested classloader elements ... | [
"private",
"Configuration",
"retrieveConfig",
"(",
"NestedConfigHelper",
"configHelper",
",",
"ConfigurationAdmin",
"configAdmin",
")",
"throws",
"InitWithoutConfig",
"{",
"if",
"(",
"configHelper",
"==",
"null",
")",
"throw",
"new",
"InitWithoutConfig",
"(",
"\"Configu... | get the configuration object or die trying | [
"get",
"the",
"configuration",
"object",
"or",
"die",
"trying"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/ClassLoaderConfigHelper.java#L137-L172 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/ClassLoaderConfigHelper.java | ClassLoaderConfigHelper.getIds | private List<String> getIds(ConfigurationAdmin ca, String[] pids) {
final String methodName = "getIds(): ";
if (pids == null) {
return Collections.emptyList();
}
List<String> ids = new ArrayList<String>();
for (String pid : pids) {
try {
St... | java | private List<String> getIds(ConfigurationAdmin ca, String[] pids) {
final String methodName = "getIds(): ";
if (pids == null) {
return Collections.emptyList();
}
List<String> ids = new ArrayList<String>();
for (String pid : pids) {
try {
St... | [
"private",
"List",
"<",
"String",
">",
"getIds",
"(",
"ConfigurationAdmin",
"ca",
",",
"String",
"[",
"]",
"pids",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"getIds(): \"",
";",
"if",
"(",
"pids",
"==",
"null",
")",
"{",
"return",
"Collections",
... | Find the PID in the configAdmin and get the id corresponding to it. | [
"Find",
"the",
"PID",
"in",
"the",
"configAdmin",
"and",
"get",
"the",
"id",
"corresponding",
"to",
"it",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/ClassLoaderConfigHelper.java#L175-L203 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/ClassLoaderConfigHelper.java | ClassLoaderConfigHelper.folderContainsFiles | private boolean folderContainsFiles(File folder) {
if (folder != null) {
File[] files = folder.listFiles();
for (File file : files)
if (file.isFile())
return true;
for (File file : files)
if (file.isDirectory())
... | java | private boolean folderContainsFiles(File folder) {
if (folder != null) {
File[] files = folder.listFiles();
for (File file : files)
if (file.isFile())
return true;
for (File file : files)
if (file.isDirectory())
... | [
"private",
"boolean",
"folderContainsFiles",
"(",
"File",
"folder",
")",
"{",
"if",
"(",
"folder",
"!=",
"null",
")",
"{",
"File",
"[",
"]",
"files",
"=",
"folder",
".",
"listFiles",
"(",
")",
";",
"for",
"(",
"File",
"file",
":",
"files",
")",
"if",... | Breadth-first traversal of folder and any subdirectories looking for if any files exist | [
"Breadth",
"-",
"first",
"traversal",
"of",
"folder",
"and",
"any",
"subdirectories",
"looking",
"for",
"if",
"any",
"files",
"exist"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/ClassLoaderConfigHelper.java#L221-L233 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/ASN1Sequence.java | ASN1Sequence.getInstance | public static ASN1Sequence getInstance(
Object obj)
{
if (obj == null || obj instanceof ASN1Sequence)
{
return (ASN1Sequence)obj;
}
throw new IllegalArgumentException("unknown object in getInstance");
} | java | public static ASN1Sequence getInstance(
Object obj)
{
if (obj == null || obj instanceof ASN1Sequence)
{
return (ASN1Sequence)obj;
}
throw new IllegalArgumentException("unknown object in getInstance");
} | [
"public",
"static",
"ASN1Sequence",
"getInstance",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"obj",
"==",
"null",
"||",
"obj",
"instanceof",
"ASN1Sequence",
")",
"{",
"return",
"(",
"ASN1Sequence",
")",
"obj",
";",
"}",
"throw",
"new",
"IllegalArgumentExcep... | return an ASN1Sequence from the given object.
@param obj the object we want converted.
@exception IllegalArgumentException if the object cannot be converted. | [
"return",
"an",
"ASN1Sequence",
"from",
"the",
"given",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/ASN1Sequence.java#L32-L41 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.javaee.ddmodel/src.gen/com/ibm/ws/javaee/ddmodel/webext/WebExtAdapter.java | WebExtAdapter.markError | private static boolean markError(OverlayContainer overlay, String errorTag) {
if ( overlay.getFromNonPersistentCache(errorTag, WebExtAdapter.class) == null ) {
overlay.addToNonPersistentCache(errorTag, WebExtAdapter.class, errorTag);
return true;
} else {
return false... | java | private static boolean markError(OverlayContainer overlay, String errorTag) {
if ( overlay.getFromNonPersistentCache(errorTag, WebExtAdapter.class) == null ) {
overlay.addToNonPersistentCache(errorTag, WebExtAdapter.class, errorTag);
return true;
} else {
return false... | [
"private",
"static",
"boolean",
"markError",
"(",
"OverlayContainer",
"overlay",
",",
"String",
"errorTag",
")",
"{",
"if",
"(",
"overlay",
".",
"getFromNonPersistentCache",
"(",
"errorTag",
",",
"WebExtAdapter",
".",
"class",
")",
"==",
"null",
")",
"{",
"ove... | Mark an error condition to an overlay container.
The tag is used as both the overlay key and the overlay value.
Each mark is not placed relative to particular data. Each mark
may be placed at most once.
@param overlay The overlay in which to place the mark.
@param errorTag The tag used as the mark.
@return True or ... | [
"Mark",
"an",
"error",
"condition",
"to",
"an",
"overlay",
"container",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmodel/src.gen/com/ibm/ws/javaee/ddmodel/webext/WebExtAdapter.java#L69-L76 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.javaee.ddmodel/src.gen/com/ibm/ws/javaee/ddmodel/webext/WebExtAdapter.java | WebExtAdapter.adapt | @Override
@FFDCIgnore(ParseException.class)
public com.ibm.ws.javaee.dd.webext.WebExt adapt(
Container root,
OverlayContainer rootOverlay,
ArtifactContainer artifactContainer,
Container containerToAdapt) throws UnableToAdaptException {
// What web extension is stored dep... | java | @Override
@FFDCIgnore(ParseException.class)
public com.ibm.ws.javaee.dd.webext.WebExt adapt(
Container root,
OverlayContainer rootOverlay,
ArtifactContainer artifactContainer,
Container containerToAdapt) throws UnableToAdaptException {
// What web extension is stored dep... | [
"@",
"Override",
"@",
"FFDCIgnore",
"(",
"ParseException",
".",
"class",
")",
"public",
"com",
".",
"ibm",
".",
"ws",
".",
"javaee",
".",
"dd",
".",
"webext",
".",
"WebExt",
"adapt",
"(",
"Container",
"root",
",",
"OverlayContainer",
"rootOverlay",
",",
... | Obtain the web extension for a module container.
There are four possibilities:
(1) The container has neither a web extension nor a configuration override of its
web extension. In this case, answer null: No web extension is available.
(2) The container has a web extension and does not have a configuration override
(... | [
"Obtain",
"the",
"web",
"extension",
"for",
"a",
"module",
"container",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmodel/src.gen/com/ibm/ws/javaee/ddmodel/webext/WebExtAdapter.java#L116-L170 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.javaee.ddmodel/src.gen/com/ibm/ws/javaee/ddmodel/webext/WebExtAdapter.java | WebExtAdapter.stripExtension | private String stripExtension(String moduleName) {
if ( moduleName.endsWith(".war") || moduleName.endsWith(".jar") ) {
return moduleName.substring(0, moduleName.length() - 4);
}
return moduleName;
} | java | private String stripExtension(String moduleName) {
if ( moduleName.endsWith(".war") || moduleName.endsWith(".jar") ) {
return moduleName.substring(0, moduleName.length() - 4);
}
return moduleName;
} | [
"private",
"String",
"stripExtension",
"(",
"String",
"moduleName",
")",
"{",
"if",
"(",
"moduleName",
".",
"endsWith",
"(",
"\".war\"",
")",
"||",
"moduleName",
".",
"endsWith",
"(",
"\".jar\"",
")",
")",
"{",
"return",
"moduleName",
".",
"substring",
"(",
... | Strip the extension from a module name.
Remove only ".war" or ".jar", and only if these are present in lower case.
The module name is as obtained from an application descriptor, or from a web
extension override, or from module information. Module names are usually,
but not always, simple file names. Module names ca... | [
"Strip",
"the",
"extension",
"from",
"a",
"module",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmodel/src.gen/com/ibm/ws/javaee/ddmodel/webext/WebExtAdapter.java#L332-L337 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.isReconfigurable | public final boolean isReconfigurable(WSConnectionRequestInfoImpl cri, boolean reauth)
{
// The CRI is only reconfigurable if all fields which cannot be changed already match.
// Although sharding keys can sometimes be changed via connection.setShardingKey,
// the spec does not guarantee th... | java | public final boolean isReconfigurable(WSConnectionRequestInfoImpl cri, boolean reauth)
{
// The CRI is only reconfigurable if all fields which cannot be changed already match.
// Although sharding keys can sometimes be changed via connection.setShardingKey,
// the spec does not guarantee th... | [
"public",
"final",
"boolean",
"isReconfigurable",
"(",
"WSConnectionRequestInfoImpl",
"cri",
",",
"boolean",
"reauth",
")",
"{",
"// The CRI is only reconfigurable if all fields which cannot be changed already match.",
"// Although sharding keys can sometimes be changed via connection.setS... | Indicates whether a Connection with this CRI may be reconfigured to the specific CRI.
@param cri The CRI to test against.
@return true if a connection with the CRI represented by this class can be reconfigured
to the specified CRI. | [
"Indicates",
"whether",
"a",
"Connection",
"with",
"this",
"CRI",
"may",
"be",
"reconfigured",
"to",
"the",
"specific",
"CRI",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L419-L442 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.matchKerberosIdentities | private boolean matchKerberosIdentities(WSConnectionRequestInfoImpl cri) {
boolean flag = false;
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "matchKerberosIdentities", this, cri);
if (kerberosIdent... | java | private boolean matchKerberosIdentities(WSConnectionRequestInfoImpl cri) {
boolean flag = false;
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(this, tc, "matchKerberosIdentities", this, cri);
if (kerberosIdent... | [
"private",
"boolean",
"matchKerberosIdentities",
"(",
"WSConnectionRequestInfoImpl",
"cri",
")",
"{",
"boolean",
"flag",
"=",
"false",
";",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"... | Per JAVA Docs,
method returns true if the two names contain at least one primitive element in common.
If either of the names represents an anonymous entity, the method will return false. | [
"Per",
"JAVA",
"Docs",
"method",
"returns",
"true",
"if",
"the",
"two",
"names",
"contain",
"at",
"least",
"one",
"primitive",
"element",
"in",
"common",
".",
"If",
"either",
"of",
"the",
"names",
"represents",
"an",
"anonymous",
"entity",
"the",
"method",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L524-L549 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.match | private static final boolean match(Object obj1, Object obj2) {
return obj1 == obj2 || (obj1 != null && obj1.equals(obj2));
} | java | private static final boolean match(Object obj1, Object obj2) {
return obj1 == obj2 || (obj1 != null && obj1.equals(obj2));
} | [
"private",
"static",
"final",
"boolean",
"match",
"(",
"Object",
"obj1",
",",
"Object",
"obj2",
")",
"{",
"return",
"obj1",
"==",
"obj2",
"||",
"(",
"obj1",
"!=",
"null",
"&&",
"obj1",
".",
"equals",
"(",
"obj2",
")",
")",
";",
"}"
] | Determine if two objects, either of which may be null, are equal.
@param obj1
one object.
@param obj2
another object.
@return true if the objects are equal or are both null, otherwise false. | [
"Determine",
"if",
"two",
"objects",
"either",
"of",
"which",
"may",
"be",
"null",
"are",
"equal",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L562-L564 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.matchCatalog | private final boolean matchCatalog(WSConnectionRequestInfoImpl cri) {
// At least one of the CRIs should know the default value.
String defaultValue = defaultCatalog == null ? cri.defaultCatalog : defaultCatalog;
return match(ivCatalog, cri.ivCatalog)
|| ivCatalog == null && matc... | java | private final boolean matchCatalog(WSConnectionRequestInfoImpl cri) {
// At least one of the CRIs should know the default value.
String defaultValue = defaultCatalog == null ? cri.defaultCatalog : defaultCatalog;
return match(ivCatalog, cri.ivCatalog)
|| ivCatalog == null && matc... | [
"private",
"final",
"boolean",
"matchCatalog",
"(",
"WSConnectionRequestInfoImpl",
"cri",
")",
"{",
"// At least one of the CRIs should know the default value.",
"String",
"defaultValue",
"=",
"defaultCatalog",
"==",
"null",
"?",
"cri",
".",
"defaultCatalog",
":",
"defaultC... | Determine if the catalog property matches. It is considered to match if
- Both catalog values are unspecified.
- Both catalog values are the same value.
- One of the catalog values is unspecified and the other CRI requested the default value.
@return true if the catalogs match, otherwise false. | [
"Determine",
"if",
"the",
"catalog",
"property",
"matches",
".",
"It",
"is",
"considered",
"to",
"match",
"if",
"-",
"Both",
"catalog",
"values",
"are",
"unspecified",
".",
"-",
"Both",
"catalog",
"values",
"are",
"the",
"same",
"value",
".",
"-",
"One",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L574-L581 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.matchSchema | private final boolean matchSchema(WSConnectionRequestInfoImpl cri){
// At least one of the CRIs should know the default value.
String defaultValue = defaultSchema == null ? cri.defaultSchema : defaultSchema;
return match(ivSchema, cri.ivSchema)
|| ivSchema == null && match(defaul... | java | private final boolean matchSchema(WSConnectionRequestInfoImpl cri){
// At least one of the CRIs should know the default value.
String defaultValue = defaultSchema == null ? cri.defaultSchema : defaultSchema;
return match(ivSchema, cri.ivSchema)
|| ivSchema == null && match(defaul... | [
"private",
"final",
"boolean",
"matchSchema",
"(",
"WSConnectionRequestInfoImpl",
"cri",
")",
"{",
"// At least one of the CRIs should know the default value.",
"String",
"defaultValue",
"=",
"defaultSchema",
"==",
"null",
"?",
"cri",
".",
"defaultSchema",
":",
"defaultSche... | Determine if the schema property matches. It is considered to match if
- Both schema values are unspecified.
- Both schema values are the same value.
- One of the schema values is unspecified and the other CRI requested the default value.
@return true if the schema match, otherwise false. | [
"Determine",
"if",
"the",
"schema",
"property",
"matches",
".",
"It",
"is",
"considered",
"to",
"match",
"if",
"-",
"Both",
"schema",
"values",
"are",
"unspecified",
".",
"-",
"Both",
"schema",
"values",
"are",
"the",
"same",
"value",
".",
"-",
"One",
"o... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L591-L598 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.matchNetworkTimeout | private final boolean matchNetworkTimeout(WSConnectionRequestInfoImpl cri){
// At least one of the CRIs should know the default value.
int defaultValue = defaultNetworkTimeout == 0 ? cri.defaultNetworkTimeout : defaultNetworkTimeout;
return ivNetworkTimeout == cri.ivNetworkTimeout
... | java | private final boolean matchNetworkTimeout(WSConnectionRequestInfoImpl cri){
// At least one of the CRIs should know the default value.
int defaultValue = defaultNetworkTimeout == 0 ? cri.defaultNetworkTimeout : defaultNetworkTimeout;
return ivNetworkTimeout == cri.ivNetworkTimeout
... | [
"private",
"final",
"boolean",
"matchNetworkTimeout",
"(",
"WSConnectionRequestInfoImpl",
"cri",
")",
"{",
"// At least one of the CRIs should know the default value.",
"int",
"defaultValue",
"=",
"defaultNetworkTimeout",
"==",
"0",
"?",
"cri",
".",
"defaultNetworkTimeout",
"... | Determine if the networkTimeout property matches. It is considered to match if
- Both networkTimeout values are unspecified.
- Both networkTimeout values are the same value.
- One of the networkTimeout values is unspecified and the other CRI requested the default value.
@return true if the networkTimeouts match, other... | [
"Determine",
"if",
"the",
"networkTimeout",
"property",
"matches",
".",
"It",
"is",
"considered",
"to",
"match",
"if",
"-",
"Both",
"networkTimeout",
"values",
"are",
"unspecified",
".",
"-",
"Both",
"networkTimeout",
"values",
"are",
"the",
"same",
"value",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L608-L615 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.matchHoldability | private final boolean matchHoldability(WSConnectionRequestInfoImpl cri) {
// At least one of the CRIs should know the default value.
int defaultValue = defaultHoldability == 0 ? cri.defaultHoldability : defaultHoldability;
return ivHoldability == cri.ivHoldability
|| ivHoldabilit... | java | private final boolean matchHoldability(WSConnectionRequestInfoImpl cri) {
// At least one of the CRIs should know the default value.
int defaultValue = defaultHoldability == 0 ? cri.defaultHoldability : defaultHoldability;
return ivHoldability == cri.ivHoldability
|| ivHoldabilit... | [
"private",
"final",
"boolean",
"matchHoldability",
"(",
"WSConnectionRequestInfoImpl",
"cri",
")",
"{",
"// At least one of the CRIs should know the default value.",
"int",
"defaultValue",
"=",
"defaultHoldability",
"==",
"0",
"?",
"cri",
".",
"defaultHoldability",
":",
"de... | Determine if the result set holdability property matches. It is considered to match if
- Both holdability values are unspecified.
- Both holdability values are the same value.
- One of the holdability values is unspecified and the other CRI requested the default value.
@return true if the result set holdabilities matc... | [
"Determine",
"if",
"the",
"result",
"set",
"holdability",
"property",
"matches",
".",
"It",
"is",
"considered",
"to",
"match",
"if",
"-",
"Both",
"holdability",
"values",
"are",
"unspecified",
".",
"-",
"Both",
"holdability",
"values",
"are",
"the",
"same",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L625-L632 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.matchReadOnly | private final boolean matchReadOnly(WSConnectionRequestInfoImpl cri) {
// At least one of the CRIs should know the default value.
Boolean defaultValue = defaultReadOnly == null ? cri.defaultReadOnly : defaultReadOnly;
return match(ivReadOnly, cri.ivReadOnly)
|| ivReadOnly == null... | java | private final boolean matchReadOnly(WSConnectionRequestInfoImpl cri) {
// At least one of the CRIs should know the default value.
Boolean defaultValue = defaultReadOnly == null ? cri.defaultReadOnly : defaultReadOnly;
return match(ivReadOnly, cri.ivReadOnly)
|| ivReadOnly == null... | [
"private",
"final",
"boolean",
"matchReadOnly",
"(",
"WSConnectionRequestInfoImpl",
"cri",
")",
"{",
"// At least one of the CRIs should know the default value.",
"Boolean",
"defaultValue",
"=",
"defaultReadOnly",
"==",
"null",
"?",
"cri",
".",
"defaultReadOnly",
":",
"defa... | Determine if the read-only property matches. It is considered to match if
- Both read-only values are unspecified.
- Both read-only values are the same value.
- One of the read-only values is unspecified and the other CRI requested the default value.
@return true if the read-only values match, otherwise false. | [
"Determine",
"if",
"the",
"read",
"-",
"only",
"property",
"matches",
".",
"It",
"is",
"considered",
"to",
"match",
"if",
"-",
"Both",
"read",
"-",
"only",
"values",
"are",
"unspecified",
".",
"-",
"Both",
"read",
"-",
"only",
"values",
"are",
"the",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L642-L649 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.matchTypeMap | private final boolean matchTypeMap(WSConnectionRequestInfoImpl cri) {
// At least one of the CRIs should know the default value.
Map<String, Class<?>> defaultValue = defaultTypeMap == null ? cri.defaultTypeMap : defaultTypeMap;
return matchTypeMap(ivTypeMap, cri.ivTypeMap)
|| ivT... | java | private final boolean matchTypeMap(WSConnectionRequestInfoImpl cri) {
// At least one of the CRIs should know the default value.
Map<String, Class<?>> defaultValue = defaultTypeMap == null ? cri.defaultTypeMap : defaultTypeMap;
return matchTypeMap(ivTypeMap, cri.ivTypeMap)
|| ivT... | [
"private",
"final",
"boolean",
"matchTypeMap",
"(",
"WSConnectionRequestInfoImpl",
"cri",
")",
"{",
"// At least one of the CRIs should know the default value.",
"Map",
"<",
"String",
",",
"Class",
"<",
"?",
">",
">",
"defaultValue",
"=",
"defaultTypeMap",
"==",
"null",... | Determine if the type map property matches. It is considered to match if
- Both type map values are unspecified.
- Both type map values are the same value.
- One of the type map values is unspecified and the other CRI requested the default value.
@return true if the type map values match, otherwise false. | [
"Determine",
"if",
"the",
"type",
"map",
"property",
"matches",
".",
"It",
"is",
"considered",
"to",
"match",
"if",
"-",
"Both",
"type",
"map",
"values",
"are",
"unspecified",
".",
"-",
"Both",
"type",
"map",
"values",
"are",
"the",
"same",
"value",
".",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L659-L666 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.matchTypeMap | public static final boolean matchTypeMap(Map<String, Class<?>> m1, Map<String, Class<?>> m2) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "matchTypeMap", new Object[] { m1, m2 });
boolean match = false;
... | java | public static final boolean matchTypeMap(Map<String, Class<?>> m1, Map<String, Class<?>> m2) {
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
Tr.entry(tc, "matchTypeMap", new Object[] { m1, m2 });
boolean match = false;
... | [
"public",
"static",
"final",
"boolean",
"matchTypeMap",
"(",
"Map",
"<",
"String",
",",
"Class",
"<",
"?",
">",
">",
"m1",
",",
"Map",
"<",
"String",
",",
"Class",
"<",
"?",
">",
">",
"m2",
")",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceCompon... | determines if two typeMaps match. Note that this method takes under account
an Oracle 11g change with TypeMap
@param m1
@param m2
@return | [
"determines",
"if",
"two",
"typeMaps",
"match",
".",
"Note",
"that",
"this",
"method",
"takes",
"under",
"account",
"an",
"Oracle",
"11g",
"change",
"with",
"TypeMap"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L676-L691 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.setDefaultValues | public void setDefaultValues(String catalog, int holdability, Boolean readOnly, Map<String, Class<?>> typeMap,
String schema, int networkTimeout) {
defaultCatalog = catalog;
defaultHoldability = holdability;
defaultReadOnly = readOnly;
defaultTypeMap = ty... | java | public void setDefaultValues(String catalog, int holdability, Boolean readOnly, Map<String, Class<?>> typeMap,
String schema, int networkTimeout) {
defaultCatalog = catalog;
defaultHoldability = holdability;
defaultReadOnly = readOnly;
defaultTypeMap = ty... | [
"public",
"void",
"setDefaultValues",
"(",
"String",
"catalog",
",",
"int",
"holdability",
",",
"Boolean",
"readOnly",
",",
"Map",
"<",
"String",
",",
"Class",
"<",
"?",
">",
">",
"typeMap",
",",
"String",
"schema",
",",
"int",
"networkTimeout",
")",
"{",
... | Initialize default values that are used for unspecified properties.
This allows us to match unspecified values with specified values in another CRI.
@param catalog the default catalog value, or NULL if not supported.
@param holdability the default holdability value, or 0 if not supported.
@param readOnly the default r... | [
"Initialize",
"default",
"values",
"that",
"are",
"used",
"for",
"unspecified",
"properties",
".",
"This",
"allows",
"us",
"to",
"match",
"unspecified",
"values",
"with",
"specified",
"values",
"in",
"another",
"CRI",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L704-L712 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.isCRIChangable | public boolean isCRIChangable()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "isCRIChangable :", changable);
return changable;
} | java | public boolean isCRIChangable()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(this, tc, "isCRIChangable :", changable);
return changable;
} | [
"public",
"boolean",
"isCRIChangable",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"this",
",",
"tc",
",",
"\"isCRIChangable :\"",
",",
"changa... | returns boolean indicating if cri is changable or not. | [
"returns",
"boolean",
"indicating",
"if",
"cri",
"is",
"changable",
"or",
"not",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L828-L834 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.setCatalog | public void setCatalog(String catalog) throws SQLException {
if (!changable) {
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR", new Object[]
{ "ConnectionRequestInfo cannot be modified, doing so may result in corruption: catalog, cri", catalog, this }));
}
... | java | public void setCatalog(String catalog) throws SQLException {
if (!changable) {
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR", new Object[]
{ "ConnectionRequestInfo cannot be modified, doing so may result in corruption: catalog, cri", catalog, this }));
}
... | [
"public",
"void",
"setCatalog",
"(",
"String",
"catalog",
")",
"throws",
"SQLException",
"{",
"if",
"(",
"!",
"changable",
")",
"{",
"throw",
"new",
"SQLException",
"(",
"AdapterUtil",
".",
"getNLSMessage",
"(",
"\"WS_INTERNAL_ERROR\"",
",",
"new",
"Object",
"... | Change the value of the catalog property in the connection request information.
@param catalog The new value.
@throws IllegalArgumentException if the key is incorrect.
@throws SQLException if the connection request information is not editable. | [
"Change",
"the",
"value",
"of",
"the",
"catalog",
"property",
"in",
"the",
"connection",
"request",
"information",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L844-L854 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.setHoldability | public void setHoldability(int holdability) throws SQLException {
if (!changable) {
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR", new Object[]
{ "ConnectionRequestInfo cannot be modified, doing so may result in corruption: holdability, cri", holdability, this }));... | java | public void setHoldability(int holdability) throws SQLException {
if (!changable) {
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR", new Object[]
{ "ConnectionRequestInfo cannot be modified, doing so may result in corruption: holdability, cri", holdability, this }));... | [
"public",
"void",
"setHoldability",
"(",
"int",
"holdability",
")",
"throws",
"SQLException",
"{",
"if",
"(",
"!",
"changable",
")",
"{",
"throw",
"new",
"SQLException",
"(",
"AdapterUtil",
".",
"getNLSMessage",
"(",
"\"WS_INTERNAL_ERROR\"",
",",
"new",
"Object"... | Change the value of the result set holdability property in the connection request information.
@param holdability The new value.
@throws IllegalArgumentException if the key is incorrect.
@throws SQLException if the connection request information is not editable. | [
"Change",
"the",
"value",
"of",
"the",
"result",
"set",
"holdability",
"property",
"in",
"the",
"connection",
"request",
"information",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L863-L873 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.setTransactionIsolationLevel | public void setTransactionIsolationLevel(int iso) throws SQLException {
if (!changable) {
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR",
"ConnectionRequestInfo cannot be modified, doing so may result in corruption: ... | java | public void setTransactionIsolationLevel(int iso) throws SQLException {
if (!changable) {
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR",
"ConnectionRequestInfo cannot be modified, doing so may result in corruption: ... | [
"public",
"void",
"setTransactionIsolationLevel",
"(",
"int",
"iso",
")",
"throws",
"SQLException",
"{",
"if",
"(",
"!",
"changable",
")",
"{",
"throw",
"new",
"SQLException",
"(",
"AdapterUtil",
".",
"getNLSMessage",
"(",
"\"WS_INTERNAL_ERROR\"",
",",
"\"Connecti... | sets the isolation level for this CRI. The J2C team are aware of the change and they are
ok with setting the isolation level as the values are not part of the hashCode and hence any changes
there will not affect the bucket in which the mc will reside in the connection pool
We are in need for setting the cri in case the... | [
"sets",
"the",
"isolation",
"level",
"for",
"this",
"CRI",
".",
"The",
"J2C",
"team",
"are",
"aware",
"of",
"the",
"change",
"and",
"they",
"are",
"ok",
"with",
"setting",
"the",
"isolation",
"level",
"as",
"the",
"values",
"are",
"not",
"part",
"of",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L881-L891 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.setReadOnly | public void setReadOnly(boolean readOnly) throws SQLException {
if (!changable) {
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR",
new Object[] {
... | java | public void setReadOnly(boolean readOnly) throws SQLException {
if (!changable) {
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR",
new Object[] {
... | [
"public",
"void",
"setReadOnly",
"(",
"boolean",
"readOnly",
")",
"throws",
"SQLException",
"{",
"if",
"(",
"!",
"changable",
")",
"{",
"throw",
"new",
"SQLException",
"(",
"AdapterUtil",
".",
"getNLSMessage",
"(",
"\"WS_INTERNAL_ERROR\"",
",",
"new",
"Object",
... | sets the readonly for this CRI. The J2C team are aware of the change and they are
ok with setting the readonly as the values are not part of the hashCode and hence any changes
there will not affect the bucket in which the mc will reside in the connection pool.
We are in need for setting the cri in case the application ... | [
"sets",
"the",
"readonly",
"for",
"this",
"CRI",
".",
"The",
"J2C",
"team",
"are",
"aware",
"of",
"the",
"change",
"and",
"they",
"are",
"ok",
"with",
"setting",
"the",
"readonly",
"as",
"the",
"values",
"are",
"not",
"part",
"of",
"the",
"hashCode",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L899-L912 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.setShardingKey | public void setShardingKey(Object shardingKey) throws SQLException {
if (!changable)
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR",
"ConnectionRequestInfo cannot be modified, doing so may result in corruption: shardingKey, cri", shardingKey, this));
if... | java | public void setShardingKey(Object shardingKey) throws SQLException {
if (!changable)
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR",
"ConnectionRequestInfo cannot be modified, doing so may result in corruption: shardingKey, cri", shardingKey, this));
if... | [
"public",
"void",
"setShardingKey",
"(",
"Object",
"shardingKey",
")",
"throws",
"SQLException",
"{",
"if",
"(",
"!",
"changable",
")",
"throw",
"new",
"SQLException",
"(",
"AdapterUtil",
".",
"getNLSMessage",
"(",
"\"WS_INTERNAL_ERROR\"",
",",
"\"ConnectionRequestI... | Change the value of the sharding key property in the connection request information.
@param shardingKey the new value.
@throws SQLException if the connection request information is not editable. | [
"Change",
"the",
"value",
"of",
"the",
"sharding",
"key",
"property",
"in",
"the",
"connection",
"request",
"information",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L920-L929 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.setSuperShardingKey | public void setSuperShardingKey(Object superShardingKey) throws SQLException {
if (!changable)
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR",
"ConnectionRequestInfo cannot be modified, doing so may result in corruption: superShardingKey, cri", superShardingKey,... | java | public void setSuperShardingKey(Object superShardingKey) throws SQLException {
if (!changable)
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR",
"ConnectionRequestInfo cannot be modified, doing so may result in corruption: superShardingKey, cri", superShardingKey,... | [
"public",
"void",
"setSuperShardingKey",
"(",
"Object",
"superShardingKey",
")",
"throws",
"SQLException",
"{",
"if",
"(",
"!",
"changable",
")",
"throw",
"new",
"SQLException",
"(",
"AdapterUtil",
".",
"getNLSMessage",
"(",
"\"WS_INTERNAL_ERROR\"",
",",
"\"Connecti... | Change the value of the super sharding key property in the connection request information.
@param superShardingKey the new value.
@throws SQLException if the connection request information is not editable. | [
"Change",
"the",
"value",
"of",
"the",
"super",
"sharding",
"key",
"property",
"in",
"the",
"connection",
"request",
"information",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L937-L946 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.setTypeMap | public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
if (!changable) {
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR", new Object[]
{ "ConnectionRequestInfo cannot be modified, doing so may result in corruption: type map, cri", map, this }));
... | java | public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
if (!changable) {
throw new SQLException(AdapterUtil.getNLSMessage("WS_INTERNAL_ERROR", new Object[]
{ "ConnectionRequestInfo cannot be modified, doing so may result in corruption: type map, cri", map, this }));
... | [
"public",
"void",
"setTypeMap",
"(",
"Map",
"<",
"String",
",",
"Class",
"<",
"?",
">",
">",
"map",
")",
"throws",
"SQLException",
"{",
"if",
"(",
"!",
"changable",
")",
"{",
"throw",
"new",
"SQLException",
"(",
"AdapterUtil",
".",
"getNLSMessage",
"(",
... | Change the value of the type map property in the connection request information.
@param map The new value.
@throws IllegalArgumentException if the key is incorrect.
@throws SQLException if the connection request information is not editable. | [
"Change",
"the",
"value",
"of",
"the",
"type",
"map",
"property",
"in",
"the",
"connection",
"request",
"information",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L955-L965 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java | WSConnectionRequestInfoImpl.createChangableCRIFromNon | public static WSConnectionRequestInfoImpl createChangableCRIFromNon(WSConnectionRequestInfoImpl oldCRI) {
WSConnectionRequestInfoImpl connInfo = new WSConnectionRequestInfoImpl(
oldCRI.getUserName(),
oldCRI.getPassword(),
oldCRI.getIsolatio... | java | public static WSConnectionRequestInfoImpl createChangableCRIFromNon(WSConnectionRequestInfoImpl oldCRI) {
WSConnectionRequestInfoImpl connInfo = new WSConnectionRequestInfoImpl(
oldCRI.getUserName(),
oldCRI.getPassword(),
oldCRI.getIsolatio... | [
"public",
"static",
"WSConnectionRequestInfoImpl",
"createChangableCRIFromNon",
"(",
"WSConnectionRequestInfoImpl",
"oldCRI",
")",
"{",
"WSConnectionRequestInfoImpl",
"connInfo",
"=",
"new",
"WSConnectionRequestInfoImpl",
"(",
"oldCRI",
".",
"getUserName",
"(",
")",
",",
"o... | utility to create changable CRI from non changable one.
@param oldCRI
@return | [
"utility",
"to",
"create",
"changable",
"CRI",
"from",
"non",
"changable",
"one",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSConnectionRequestInfoImpl.java#L1001-L1023 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/spi/impl/ResourceAnnotationInjectionProvider.java | ResourceAnnotationInjectionProvider.processAnnotations | @Override
protected void processAnnotations(Object instance)
throws IllegalAccessException, InvocationTargetException, NamingException
{
if (context == null)
{
// No resource injection
return;
}
checkAnnotation(instance.getClass(), instance);... | java | @Override
protected void processAnnotations(Object instance)
throws IllegalAccessException, InvocationTargetException, NamingException
{
if (context == null)
{
// No resource injection
return;
}
checkAnnotation(instance.getClass(), instance);... | [
"@",
"Override",
"protected",
"void",
"processAnnotations",
"(",
"Object",
"instance",
")",
"throws",
"IllegalAccessException",
",",
"InvocationTargetException",
",",
"NamingException",
"{",
"if",
"(",
"context",
"==",
"null",
")",
"{",
"// No resource injection",
"re... | Inject resources in specified instance. | [
"Inject",
"resources",
"in",
"specified",
"instance",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/spi/impl/ResourceAnnotationInjectionProvider.java#L89-L114 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/spi/impl/ResourceAnnotationInjectionProvider.java | ResourceAnnotationInjectionProvider.lookupMethodResource | protected static void lookupMethodResource(javax.naming.Context context,
Object instance, Method method, String name)
throws NamingException, IllegalAccessException, InvocationTargetException
{
if (!method.getName().startsWith("set")
|| method.getParameterTypes().len... | java | protected static void lookupMethodResource(javax.naming.Context context,
Object instance, Method method, String name)
throws NamingException, IllegalAccessException, InvocationTargetException
{
if (!method.getName().startsWith("set")
|| method.getParameterTypes().len... | [
"protected",
"static",
"void",
"lookupMethodResource",
"(",
"javax",
".",
"naming",
".",
"Context",
"context",
",",
"Object",
"instance",
",",
"Method",
"method",
",",
"String",
"name",
")",
"throws",
"NamingException",
",",
"IllegalAccessException",
",",
"Invocat... | Inject resources in specified method. | [
"Inject",
"resources",
"in",
"specified",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/spi/impl/ResourceAnnotationInjectionProvider.java#L202-L232 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProducerSessionProxy.java | ProducerSessionProxy._send | private void _send(SIBusMessage msg, SITransaction tran)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SILimitExceededException,
SIErrorExcepti... | java | private void _send(SIBusMessage msg, SITransaction tran)
throws SISessionUnavailableException, SISessionDroppedException,
SIConnectionUnavailableException, SIConnectionDroppedException,
SIResourceException, SIConnectionLostException, SILimitExceededException,
SIErrorExcepti... | [
"private",
"void",
"_send",
"(",
"SIBusMessage",
"msg",
",",
"SITransaction",
"tran",
")",
"throws",
"SISessionUnavailableException",
",",
"SISessionDroppedException",
",",
"SIConnectionUnavailableException",
",",
"SIConnectionDroppedException",
",",
"SIResourceException",
",... | This method performs the actual send, but does no parameter checking
and gets no locks needed to perform the send. This should be done
by a suitable 'super'-method.
@param msg
@param tran
@throws com.ibm.wsspi.sib.core.exception.SISessionUnavailableException
@throws com.ibm.wsspi.sib.core.exception.SISessionDroppedEx... | [
"This",
"method",
"performs",
"the",
"actual",
"send",
"but",
"does",
"no",
"parameter",
"checking",
"and",
"gets",
"no",
"locks",
"needed",
"to",
"perform",
"the",
"send",
".",
"This",
"should",
"be",
"done",
"by",
"a",
"suitable",
"super",
"-",
"method",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProducerSessionProxy.java#L266-L328 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProducerSessionProxy.java | ProducerSessionProxy.sendEntireMessage | private void sendEntireMessage(SITransaction tran, SIBusMessage msg,
List<DataSlice> messageSlices, boolean requireReply,
short jfapPriority)
throws SIResourceException, SISessionUnavailableException,
SINotPossibleInCurrentConfig... | java | private void sendEntireMessage(SITransaction tran, SIBusMessage msg,
List<DataSlice> messageSlices, boolean requireReply,
short jfapPriority)
throws SIResourceException, SISessionUnavailableException,
SINotPossibleInCurrentConfig... | [
"private",
"void",
"sendEntireMessage",
"(",
"SITransaction",
"tran",
",",
"SIBusMessage",
"msg",
",",
"List",
"<",
"DataSlice",
">",
"messageSlices",
",",
"boolean",
"requireReply",
",",
"short",
"jfapPriority",
")",
"throws",
"SIResourceException",
",",
"SISession... | Sends the entire message in one big JFap message. This requires the allocation of one big
area of storage for the whole message. If the messageSlices parameter is not null then the
message has already been encoded and can just be added into the buffer without encoding again.
@param tran
@param msg
@param messageSlices... | [
"Sends",
"the",
"entire",
"message",
"in",
"one",
"big",
"JFap",
"message",
".",
"This",
"requires",
"the",
"allocation",
"of",
"one",
"big",
"area",
"of",
"storage",
"for",
"the",
"whole",
"message",
".",
"If",
"the",
"messageSlices",
"parameter",
"is",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProducerSessionProxy.java#L347-L380 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProducerSessionProxy.java | ProducerSessionProxy.sendData | private void sendData(CommsByteBuffer request, short jfapPriority, boolean requireReply,
SITransaction tran, int outboundSegmentType, int outboundNoReplySegmentType,
int replySegmentType)
throws SIResourceException, SISessionUnavailableException,
... | java | private void sendData(CommsByteBuffer request, short jfapPriority, boolean requireReply,
SITransaction tran, int outboundSegmentType, int outboundNoReplySegmentType,
int replySegmentType)
throws SIResourceException, SISessionUnavailableException,
... | [
"private",
"void",
"sendData",
"(",
"CommsByteBuffer",
"request",
",",
"short",
"jfapPriority",
",",
"boolean",
"requireReply",
",",
"SITransaction",
"tran",
",",
"int",
"outboundSegmentType",
",",
"int",
"outboundNoReplySegmentType",
",",
"int",
"replySegmentType",
"... | This helper method is used to send the final or only part of a message to our peer. It takes
care of whether we should be exchanging the message and deals with the exceptions returned.
@param request The request buffer
@param jfapPriority The JFap priority to send the message
@param requireReply Whether we require a r... | [
"This",
"helper",
"method",
"is",
"used",
"to",
"send",
"the",
"final",
"or",
"only",
"part",
"of",
"a",
"message",
"to",
"our",
"peer",
".",
"It",
"takes",
"care",
"of",
"whether",
"we",
"should",
"be",
"exchanging",
"the",
"message",
"and",
"deals",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProducerSessionProxy.java#L527-L594 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProducerSessionProxy.java | ProducerSessionProxy.close | public void close()
throws SIResourceException, SIConnectionLostException,
SIErrorException, SIConnectionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close");
// Have we already been closed?
if (!isClosed())
... | java | public void close()
throws SIResourceException, SIConnectionLostException,
SIErrorException, SIConnectionDroppedException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close");
// Have we already been closed?
if (!isClosed())
... | [
"public",
"void",
"close",
"(",
")",
"throws",
"SIResourceException",
",",
"SIConnectionLostException",
",",
"SIErrorException",
",",
"SIConnectionDroppedException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabl... | Closes the ProducerSession.
@throws com.ibm.websphere.sib.exception.SIResourceException
@throws com.ibm.wsspi.sib.core.exception.SIConnectionLostException
@throws com.ibm.websphere.sib.exception.SIErrorException
@throws com.ibm.wsspi.sib.core.exception.SIConnectionDroppedException | [
"Closes",
"the",
"ProducerSession",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/ProducerSessionProxy.java#L604-L663 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java | EJSWrapperCommon.getFieldValue | private static Object getFieldValue(FieldClassValue fieldClassValue, Object obj) {
try {
return fieldClassValue.get(obj.getClass()).get(obj);
} catch (IllegalAccessException e) {
// FieldClassValueFactory returns ClassValue that make the Field
// accessible, so this s... | java | private static Object getFieldValue(FieldClassValue fieldClassValue, Object obj) {
try {
return fieldClassValue.get(obj.getClass()).get(obj);
} catch (IllegalAccessException e) {
// FieldClassValueFactory returns ClassValue that make the Field
// accessible, so this s... | [
"private",
"static",
"Object",
"getFieldValue",
"(",
"FieldClassValue",
"fieldClassValue",
",",
"Object",
"obj",
")",
"{",
"try",
"{",
"return",
"fieldClassValue",
".",
"get",
"(",
"obj",
".",
"getClass",
"(",
")",
")",
".",
"get",
"(",
"obj",
")",
";",
... | Get the value of a field from an object.
@param fieldClassValue the Field class value
@param obj the object
@return the field value | [
"Get",
"the",
"value",
"of",
"a",
"field",
"from",
"an",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java#L468-L476 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java | EJSWrapperCommon.getLocalBeanWrapperProxyState | public static WrapperProxyState getLocalBeanWrapperProxyState(LocalBeanWrapperProxy obj) { // F58064
BusinessLocalWrapperProxy proxyStateHolder = (BusinessLocalWrapperProxy) getFieldValue(svLocalBeanWrapperProxyStateFieldClassValue, obj);
return proxyStateHolder.ivState;
} | java | public static WrapperProxyState getLocalBeanWrapperProxyState(LocalBeanWrapperProxy obj) { // F58064
BusinessLocalWrapperProxy proxyStateHolder = (BusinessLocalWrapperProxy) getFieldValue(svLocalBeanWrapperProxyStateFieldClassValue, obj);
return proxyStateHolder.ivState;
} | [
"public",
"static",
"WrapperProxyState",
"getLocalBeanWrapperProxyState",
"(",
"LocalBeanWrapperProxy",
"obj",
")",
"{",
"// F58064",
"BusinessLocalWrapperProxy",
"proxyStateHolder",
"=",
"(",
"BusinessLocalWrapperProxy",
")",
"getFieldValue",
"(",
"svLocalBeanWrapperProxyStateFi... | Returns the wrapper proxy object for an object that implements
LocalBeanWrapperProxy. This operation should never fail, but if it
does, exceptions will be thrown as EJBException.
@param obj the LocalBeanWrapperProxy
@return the wrapper proxy for the local bean wrapper proxy | [
"Returns",
"the",
"wrapper",
"proxy",
"object",
"for",
"an",
"object",
"that",
"implements",
"LocalBeanWrapperProxy",
".",
"This",
"operation",
"should",
"never",
"fail",
"but",
"if",
"it",
"does",
"exceptions",
"will",
"be",
"thrown",
"as",
"EJBException",
"."
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java#L502-L505 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java | EJSWrapperCommon.registerServant | protected void registerServant()
{
if (ivRemoteObjectWrapper != null)
{
// synchronized on the remote Wrapper to set the isRemoteRegistered flag
synchronized (ivRemoteObjectWrapper)
{
if (!isRemoteRegistered)
{
... | java | protected void registerServant()
{
if (ivRemoteObjectWrapper != null)
{
// synchronized on the remote Wrapper to set the isRemoteRegistered flag
synchronized (ivRemoteObjectWrapper)
{
if (!isRemoteRegistered)
{
... | [
"protected",
"void",
"registerServant",
"(",
")",
"{",
"if",
"(",
"ivRemoteObjectWrapper",
"!=",
"null",
")",
"{",
"// synchronized on the remote Wrapper to set the isRemoteRegistered flag",
"synchronized",
"(",
"ivRemoteObjectWrapper",
")",
"{",
"if",
"(",
"!",
"isRemote... | Register the remote wrapper servant to ORB. | [
"Register",
"the",
"remote",
"wrapper",
"servant",
"to",
"ORB",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java#L593-L660 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java | EJSWrapperCommon.registerServant | private void registerServant(BusinessRemoteWrapper wrapper, int i)
{
// synchronized on the remote Wrapper to set the isRemoteRegistered flag
synchronized (wrapper)
{
if (!ivBusinessRemoteRegistered[i])
{
try
{
if (!... | java | private void registerServant(BusinessRemoteWrapper wrapper, int i)
{
// synchronized on the remote Wrapper to set the isRemoteRegistered flag
synchronized (wrapper)
{
if (!ivBusinessRemoteRegistered[i])
{
try
{
if (!... | [
"private",
"void",
"registerServant",
"(",
"BusinessRemoteWrapper",
"wrapper",
",",
"int",
"i",
")",
"{",
"// synchronized on the remote Wrapper to set the isRemoteRegistered flag",
"synchronized",
"(",
"wrapper",
")",
"{",
"if",
"(",
"!",
"ivBusinessRemoteRegistered",
"[",... | d416391 added entire method. | [
"d416391",
"added",
"entire",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java#L666-L732 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java | EJSWrapperCommon.disconnect | protected void disconnect()
{
if (localWrapperProxyState != null) // F58064
{
localWrapperProxyState.disconnect();
}
if (ivBusinessLocalWrapperProxyStates != null) // F58064
{
for (WrapperProxyState state : ivBusinessLocalWrapperProxyStates)
... | java | protected void disconnect()
{
if (localWrapperProxyState != null) // F58064
{
localWrapperProxyState.disconnect();
}
if (ivBusinessLocalWrapperProxyStates != null) // F58064
{
for (WrapperProxyState state : ivBusinessLocalWrapperProxyStates)
... | [
"protected",
"void",
"disconnect",
"(",
")",
"{",
"if",
"(",
"localWrapperProxyState",
"!=",
"null",
")",
"// F58064",
"{",
"localWrapperProxyState",
".",
"disconnect",
"(",
")",
";",
"}",
"if",
"(",
"ivBusinessLocalWrapperProxyStates",
"!=",
"null",
")",
"// F5... | Disconnect all wrappers. Unregisters the remote wrapper servant from
ORB, and disconnects local wrapper proxy states. | [
"Disconnect",
"all",
"wrappers",
".",
"Unregisters",
"the",
"remote",
"wrapper",
"servant",
"from",
"ORB",
"and",
"disconnects",
"local",
"wrapper",
"proxy",
"states",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java#L738-L822 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java | EJSWrapperCommon.getLocalObject | public EJBLocalObject getLocalObject()
{
if (localObject != null)
{
if (localWrapperProxyState != null &&
localWrapperProxyState.ivWrapper == null)
{
localWrapperProxyState.connect(ivBeanId, localWrapper);
}
return local... | java | public EJBLocalObject getLocalObject()
{
if (localObject != null)
{
if (localWrapperProxyState != null &&
localWrapperProxyState.ivWrapper == null)
{
localWrapperProxyState.connect(ivBeanId, localWrapper);
}
return local... | [
"public",
"EJBLocalObject",
"getLocalObject",
"(",
")",
"{",
"if",
"(",
"localObject",
"!=",
"null",
")",
"{",
"if",
"(",
"localWrapperProxyState",
"!=",
"null",
"&&",
"localWrapperProxyState",
".",
"ivWrapper",
"==",
"null",
")",
"{",
"localWrapperProxyState",
... | Returns a client proxy object for the local component view. | [
"Returns",
"a",
"client",
"proxy",
"object",
"for",
"the",
"local",
"component",
"view",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java#L829-L842 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java | EJSWrapperCommon.getBusinessObject | public Object getBusinessObject(String interfaceName) throws RemoteException {
int interfaceIndex = ivBMD.getLocalBusinessInterfaceIndex(interfaceName);
if (interfaceIndex != -1) {
return getLocalBusinessObject(interfaceIndex);
}
interfaceIndex = ivBMD.getRemoteBusinessInter... | java | public Object getBusinessObject(String interfaceName) throws RemoteException {
int interfaceIndex = ivBMD.getLocalBusinessInterfaceIndex(interfaceName);
if (interfaceIndex != -1) {
return getLocalBusinessObject(interfaceIndex);
}
interfaceIndex = ivBMD.getRemoteBusinessInter... | [
"public",
"Object",
"getBusinessObject",
"(",
"String",
"interfaceName",
")",
"throws",
"RemoteException",
"{",
"int",
"interfaceIndex",
"=",
"ivBMD",
".",
"getLocalBusinessInterfaceIndex",
"(",
"interfaceName",
")",
";",
"if",
"(",
"interfaceIndex",
"!=",
"-",
"1",... | Method to get a business object given the name of the interface.
@param interfaceName the interface name
@return the business object
@throws IllegalStateException if the interface name is not valid
@throws RemoteException if an error occurs obtaining a remote object | [
"Method",
"to",
"get",
"a",
"business",
"object",
"given",
"the",
"name",
"of",
"the",
"interface",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java#L874-L886 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java | EJSWrapperCommon.getLocalBusinessObject | public Object getLocalBusinessObject(int interfaceIndex)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getLocalBusinessObject : " +
ivBusinessLocalProxies[interfaceIndex].getClass().getName());
if (ivBusinessLocalWrapperProxySt... | java | public Object getLocalBusinessObject(int interfaceIndex)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "getLocalBusinessObject : " +
ivBusinessLocalProxies[interfaceIndex].getClass().getName());
if (ivBusinessLocalWrapperProxySt... | [
"public",
"Object",
"getLocalBusinessObject",
"(",
"int",
"interfaceIndex",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"getLocalBusinessOb... | Method to get the local business object, given the index of the
interface. The returned object will be a wrapper, a no-interface
wrapper, or a local wrapper proxy.
@param interfaceIndex index of the interface
@return the object at the passed in interface | [
"Method",
"to",
"get",
"the",
"local",
"business",
"object",
"given",
"the",
"index",
"of",
"the",
"interface",
".",
"The",
"returned",
"object",
"will",
"be",
"a",
"wrapper",
"a",
"no",
"-",
"interface",
"wrapper",
"or",
"a",
"local",
"wrapper",
"proxy",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java#L896-L910 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java | EJSWrapperCommon.getLocalBusinessWrapperBase | public EJSWrapperBase getLocalBusinessWrapperBase(int interfaceIndex) {
if (interfaceIndex == 0 && ivBMD.ivLocalBean) {
return getLocalBeanWrapperBase((LocalBeanWrapper) ivBusinessLocal[0]);
}
return (EJSWrapperBase) ivBusinessLocal[0];
} | java | public EJSWrapperBase getLocalBusinessWrapperBase(int interfaceIndex) {
if (interfaceIndex == 0 && ivBMD.ivLocalBean) {
return getLocalBeanWrapperBase((LocalBeanWrapper) ivBusinessLocal[0]);
}
return (EJSWrapperBase) ivBusinessLocal[0];
} | [
"public",
"EJSWrapperBase",
"getLocalBusinessWrapperBase",
"(",
"int",
"interfaceIndex",
")",
"{",
"if",
"(",
"interfaceIndex",
"==",
"0",
"&&",
"ivBMD",
".",
"ivLocalBean",
")",
"{",
"return",
"getLocalBeanWrapperBase",
"(",
"(",
"LocalBeanWrapper",
")",
"ivBusines... | Method to get the local business wrapper base. | [
"Method",
"to",
"get",
"the",
"local",
"business",
"wrapper",
"base",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java#L915-L920 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java | EJSWrapperCommon.getRemoteBusinessObject | public Object getRemoteBusinessObject(int interfaceIndex)
throws RemoteException
{
Class<?>[] bInterfaceClasses = ivBMD.ivBusinessRemoteInterfaceClasses;
BusinessRemoteWrapper wrapper = ivBusinessRemote[interfaceIndex];
if (TraceComponent.isAnyTracingEnabled() && tc.isDe... | java | public Object getRemoteBusinessObject(int interfaceIndex)
throws RemoteException
{
Class<?>[] bInterfaceClasses = ivBMD.ivBusinessRemoteInterfaceClasses;
BusinessRemoteWrapper wrapper = ivBusinessRemote[interfaceIndex];
if (TraceComponent.isAnyTracingEnabled() && tc.isDe... | [
"public",
"Object",
"getRemoteBusinessObject",
"(",
"int",
"interfaceIndex",
")",
"throws",
"RemoteException",
"{",
"Class",
"<",
"?",
">",
"[",
"]",
"bInterfaceClasses",
"=",
"ivBMD",
".",
"ivBusinessRemoteInterfaceClasses",
";",
"BusinessRemoteWrapper",
"wrapper",
"... | Method to get the remote business object, given the index of the
interface.
@param interfaceIndex index of the interface
@return the object at the passed in interface
@throws RemoteException | [
"Method",
"to",
"get",
"the",
"remote",
"business",
"object",
"given",
"the",
"index",
"of",
"the",
"interface",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java#L930-L946 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java | EJSWrapperCommon.getRemoteBusinessWrapper | public BusinessRemoteWrapper getRemoteBusinessWrapper(WrapperId wrapperId)
{
int remoteIndex = wrapperId.ivInterfaceIndex;
BusinessRemoteWrapper wrapper = null;
String wrapperInterfaceName = "";
if (remoteIndex < ivBusinessRemote.length)
{
wrapper = ivBusinessRemo... | java | public BusinessRemoteWrapper getRemoteBusinessWrapper(WrapperId wrapperId)
{
int remoteIndex = wrapperId.ivInterfaceIndex;
BusinessRemoteWrapper wrapper = null;
String wrapperInterfaceName = "";
if (remoteIndex < ivBusinessRemote.length)
{
wrapper = ivBusinessRemo... | [
"public",
"BusinessRemoteWrapper",
"getRemoteBusinessWrapper",
"(",
"WrapperId",
"wrapperId",
")",
"{",
"int",
"remoteIndex",
"=",
"wrapperId",
".",
"ivInterfaceIndex",
";",
"BusinessRemoteWrapper",
"wrapper",
"=",
"null",
";",
"String",
"wrapperInterfaceName",
"=",
"\"... | d419704 - rewrote for new WrapperId fields and remove the todo. | [
"d419704",
"-",
"rewrote",
"for",
"new",
"WrapperId",
"fields",
"and",
"remove",
"the",
"todo",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/EJSWrapperCommon.java#L1067-L1108 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ThreadIdentitySecurityHelper.java | ThreadIdentitySecurityHelper.getAliasToFinalize | private String getAliasToFinalize(CMConfigData cmConfigData) {
String alias = null;
if (cmConfigData == null)
return alias; // Not expected, but being safe
// Check for DefaultPrincipalMapping alias from res-ref:
final String DEFAULT_PRINCIPAL_MAPPING = "DefaultPrincipalMap... | java | private String getAliasToFinalize(CMConfigData cmConfigData) {
String alias = null;
if (cmConfigData == null)
return alias; // Not expected, but being safe
// Check for DefaultPrincipalMapping alias from res-ref:
final String DEFAULT_PRINCIPAL_MAPPING = "DefaultPrincipalMap... | [
"private",
"String",
"getAliasToFinalize",
"(",
"CMConfigData",
"cmConfigData",
")",
"{",
"String",
"alias",
"=",
"null",
";",
"if",
"(",
"cmConfigData",
"==",
"null",
")",
"return",
"alias",
";",
"// Not expected, but being safe",
"// Check for DefaultPrincipalMapping ... | Get the jaas alias from the config. | [
"Get",
"the",
"jaas",
"alias",
"from",
"the",
"config",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ThreadIdentitySecurityHelper.java#L639-L666 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ThreadIdentitySecurityHelper.java | ThreadIdentitySecurityHelper.getPrivateGenericCredentials | private Set getPrivateGenericCredentials(final Subject subj) throws ResourceException {
Set privateGenericCredentials = null;
if (System.getSecurityManager() != null) {
try {
privateGenericCredentials = (Set) AccessController.doPrivileged(
... | java | private Set getPrivateGenericCredentials(final Subject subj) throws ResourceException {
Set privateGenericCredentials = null;
if (System.getSecurityManager() != null) {
try {
privateGenericCredentials = (Set) AccessController.doPrivileged(
... | [
"private",
"Set",
"getPrivateGenericCredentials",
"(",
"final",
"Subject",
"subj",
")",
"throws",
"ResourceException",
"{",
"Set",
"privateGenericCredentials",
"=",
"null",
";",
"if",
"(",
"System",
".",
"getSecurityManager",
"(",
")",
"!=",
"null",
")",
"{",
"t... | Return the set of private credentials of type GenericCredential from the
given subject.
Basically this method is a wrapper around Subject.getPrivateCredentials
with Java 2 Security handling. | [
"Return",
"the",
"set",
"of",
"private",
"credentials",
"of",
"type",
"GenericCredential",
"from",
"the",
"given",
"subject",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ThreadIdentitySecurityHelper.java#L771-L798 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ThreadIdentitySecurityHelper.java | ThreadIdentitySecurityHelper.setJ2CThreadIdentity | private Object setJ2CThreadIdentity(final Subject subj) throws ResourceException {
Object retObject = null;
try {
if (System.getSecurityManager() != null) {
retObject = AccessController.doPrivileged(
new PrivilegedEx... | java | private Object setJ2CThreadIdentity(final Subject subj) throws ResourceException {
Object retObject = null;
try {
if (System.getSecurityManager() != null) {
retObject = AccessController.doPrivileged(
new PrivilegedEx... | [
"private",
"Object",
"setJ2CThreadIdentity",
"(",
"final",
"Subject",
"subj",
")",
"throws",
"ResourceException",
"{",
"Object",
"retObject",
"=",
"null",
";",
"try",
"{",
"if",
"(",
"System",
".",
"getSecurityManager",
"(",
")",
"!=",
"null",
")",
"{",
"ret... | Apply the given subject's identity to the thread.
@return The identity token that must be supplied on the subsequent call to reset
the thread identity. | [
"Apply",
"the",
"given",
"subject",
"s",
"identity",
"to",
"the",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ThreadIdentitySecurityHelper.java#L806-L844 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ThreadIdentitySecurityHelper.java | ThreadIdentitySecurityHelper.checkForUTOKENNotFoundError | private void checkForUTOKENNotFoundError(Subject subj) throws ResourceException {
// A Subject without a UTOKEN genericCredential can
// legitimately occur in the case where the resource
// adapter has indicated Thread Identity Support
// is "ALLOWED, but a valid Container-managed alias... | java | private void checkForUTOKENNotFoundError(Subject subj) throws ResourceException {
// A Subject without a UTOKEN genericCredential can
// legitimately occur in the case where the resource
// adapter has indicated Thread Identity Support
// is "ALLOWED, but a valid Container-managed alias... | [
"private",
"void",
"checkForUTOKENNotFoundError",
"(",
"Subject",
"subj",
")",
"throws",
"ResourceException",
"{",
"// A Subject without a UTOKEN genericCredential can",
"// legitimately occur in the case where the resource",
"// adapter has indicated Thread Identity Support",
"// is \"ALL... | Check for an unexpected condition when a UTOKEN is not found in the Subject.
@throws ResourceException if the condition is unexpected. | [
"Check",
"for",
"an",
"unexpected",
"condition",
"when",
"a",
"UTOKEN",
"is",
"not",
"found",
"in",
"the",
"Subject",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/ThreadIdentitySecurityHelper.java#L851-L921 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/ParserBase.java | ParserBase.copyStreams | protected void copyStreams(InputStream is, OutputStream os) throws IOException {
byte[] buffer = new byte[1024];
try {
int read;
while ((read = is.read(buffer)) != -1) {
os.write(buffer, 0, read);
buffer = new byte[1024];
}
} fi... | java | protected void copyStreams(InputStream is, OutputStream os) throws IOException {
byte[] buffer = new byte[1024];
try {
int read;
while ((read = is.read(buffer)) != -1) {
os.write(buffer, 0, read);
buffer = new byte[1024];
}
} fi... | [
"protected",
"void",
"copyStreams",
"(",
"InputStream",
"is",
",",
"OutputStream",
"os",
")",
"throws",
"IOException",
"{",
"byte",
"[",
"]",
"buffer",
"=",
"new",
"byte",
"[",
"1024",
"]",
";",
"try",
"{",
"int",
"read",
";",
"while",
"(",
"(",
"read"... | Reads from the input stream and copies to the output stream
@param is
@param os
@throws IOException | [
"Reads",
"from",
"the",
"input",
"stream",
"and",
"copies",
"to",
"the",
"output",
"stream"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/ParserBase.java#L167-L181 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/ParserBase.java | ParserBase.extractFileFromArchive | protected ExtractedFileInformation extractFileFromArchive(String fileName,
String regex) throws RepositoryArchiveException, RepositoryArchiveEntryNotFoundException, RepositoryArchiveIOException {
JarFile jarFile = null;
ExtractedFileInformat... | java | protected ExtractedFileInformation extractFileFromArchive(String fileName,
String regex) throws RepositoryArchiveException, RepositoryArchiveEntryNotFoundException, RepositoryArchiveIOException {
JarFile jarFile = null;
ExtractedFileInformat... | [
"protected",
"ExtractedFileInformation",
"extractFileFromArchive",
"(",
"String",
"fileName",
",",
"String",
"regex",
")",
"throws",
"RepositoryArchiveException",
",",
"RepositoryArchiveEntryNotFoundException",
",",
"RepositoryArchiveIOException",
"{",
"JarFile",
"jarFile",
"="... | Extract a file from a jar file to a temporary location on disk that is
deleted when the jvm exits.
@param fileName
The name of the archive file to extract the file from
@param regex
A regular expression, that is used to match the file to be
extracted from the archive. If more than one file matches the
regular expressi... | [
"Extract",
"a",
"file",
"from",
"a",
"jar",
"file",
"to",
"a",
"temporary",
"location",
"on",
"disk",
"that",
"is",
"deleted",
"when",
"the",
"jvm",
"exits",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/ParserBase.java#L231-L297 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/ParserBase.java | ParserBase.processLAandLI | protected void processLAandLI(File archive, RepositoryResourceWritable resource,
ProvisioningFeatureDefinition feature) throws IOException, RepositoryException {
String LAHeader = feature.getHeader(LA_HEADER_FEATURE);
String LIHeader = feature.getHeader(LI_HEADER_FEATUR... | java | protected void processLAandLI(File archive, RepositoryResourceWritable resource,
ProvisioningFeatureDefinition feature) throws IOException, RepositoryException {
String LAHeader = feature.getHeader(LA_HEADER_FEATURE);
String LIHeader = feature.getHeader(LI_HEADER_FEATUR... | [
"protected",
"void",
"processLAandLI",
"(",
"File",
"archive",
",",
"RepositoryResourceWritable",
"resource",
",",
"ProvisioningFeatureDefinition",
"feature",
")",
"throws",
"IOException",
",",
"RepositoryException",
"{",
"String",
"LAHeader",
"=",
"feature",
".",
"getH... | Locate and process license agreement and information files within a
feature
@param esa
@param resource
@throws IOException | [
"Locate",
"and",
"process",
"license",
"agreement",
"and",
"information",
"files",
"within",
"a",
"feature"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/ParserBase.java#L513-L518 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.