id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
69,200
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureDefinitionUtils.java
FeatureDefinitionUtils.loadAttributes
static ImmutableAttributes loadAttributes(String line, ImmutableAttributes cachedAttributes) { // Builder pattern for Immutable attributes // This parses a cache line that looks like this: // repoType|symbolicName=Lots;of;attribtues int ind...
java
static ImmutableAttributes loadAttributes(String line, ImmutableAttributes cachedAttributes) { // Builder pattern for Immutable attributes // This parses a cache line that looks like this: // repoType|symbolicName=Lots;of;attribtues int ind...
[ "static", "ImmutableAttributes", "loadAttributes", "(", "String", "line", ",", "ImmutableAttributes", "cachedAttributes", ")", "{", "// Builder pattern for Immutable attributes", "// This parses a cache line that looks like this: ", "// repoType|symbolicName=Lots;of;attribtues", "int", ...
Create the ImmutableAttributes based on an line in a cache file. There is no validation or warnings in this load path, as it is assumed the definition would not have been added to the cache if it were invalid. @param line Line containing feature information from the cache file @param cachedEntry the previous attribute...
[ "Create", "the", "ImmutableAttributes", "based", "on", "an", "line", "in", "a", "cache", "file", ".", "There", "is", "no", "validation", "or", "warnings", "in", "this", "load", "path", "as", "it", "is", "assumed", "the", "definition", "would", "not", "have...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.feature.core/src/com/ibm/ws/kernel/feature/internal/subsystem/FeatureDefinitionUtils.java#L332-L408
69,201
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/links/ItemLink.java
ItemLink.commitDecrementReferenceCount
public final synchronized void commitDecrementReferenceCount(PersistentTransaction transaction) throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "commitDecrementReferenceCount"); if (_referenceCount < 1) { ...
java
public final synchronized void commitDecrementReferenceCount(PersistentTransaction transaction) throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "commitDecrementReferenceCount"); if (_referenceCount < 1) { ...
[ "public", "final", "synchronized", "void", "commitDecrementReferenceCount", "(", "PersistentTransaction", "transaction", ")", "throws", "SevereMessageStoreException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled"...
This method is called when committing the removal of a reference. It should only be called by the message store code. @param transaction The transaction @throws SevereMessageStoreException
[ "This", "method", "is", "called", "when", "committing", "the", "removal", "of", "a", "reference", ".", "It", "should", "only", "be", "called", "by", "the", "message", "store", "code", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/links/ItemLink.java#L98-L122
69,202
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/links/ItemLink.java
ItemLink.incrementReferenceCount
public final synchronized void incrementReferenceCount() throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "incrementReferenceCount"); if (_referenceCountIsDecreasing) { if (TraceComponent.isAnyTracingEnabled...
java
public final synchronized void incrementReferenceCount() throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "incrementReferenceCount"); if (_referenceCountIsDecreasing) { if (TraceComponent.isAnyTracingEnabled...
[ "public", "final", "synchronized", "void", "incrementReferenceCount", "(", ")", "throws", "SevereMessageStoreException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry"...
This method is called when a reference is being added by an active transaction and when a reference is being restored. It should only be called by the message store code. @throws SevereMessageStoreException
[ "This", "method", "is", "called", "when", "a", "reference", "is", "being", "added", "by", "an", "active", "transaction", "and", "when", "a", "reference", "is", "being", "restored", ".", "It", "should", "only", "be", "called", "by", "the", "message", "store...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/links/ItemLink.java#L143-L156
69,203
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/links/ItemLink.java
ItemLink.rollbackIncrementReferenceCount
public final synchronized void rollbackIncrementReferenceCount(PersistentTransaction transaction) throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "rollbackIncrementReferenceCount"); if (_referenceCount < 1) { ...
java
public final synchronized void rollbackIncrementReferenceCount(PersistentTransaction transaction) throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "rollbackIncrementReferenceCount"); if (_referenceCount < 1) { ...
[ "public", "final", "synchronized", "void", "rollbackIncrementReferenceCount", "(", "PersistentTransaction", "transaction", ")", "throws", "SevereMessageStoreException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnable...
This method is called when rolling back the addition of a reference. It should only be called by the message store code. @param transaction The transaction @throws SevereMessageStoreException
[ "This", "method", "is", "called", "when", "rolling", "back", "the", "addition", "of", "a", "reference", ".", "It", "should", "only", "be", "called", "by", "the", "message", "store", "code", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/sib/msgstore/cache/links/ItemLink.java#L179-L194
69,204
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java
KeystoreConfigurationFactory.performFileBasedAction
@Override public void performFileBasedAction(Collection<File> modifiedFiles) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "performFileBasedAction", new Object[] { modifiedFiles }); try { com.ibm.ws.ssl.config.KeyStoreManager.getInstance().c...
java
@Override public void performFileBasedAction(Collection<File> modifiedFiles) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "performFileBasedAction", new Object[] { modifiedFiles }); try { com.ibm.ws.ssl.config.KeyStoreManager.getInstance().c...
[ "@", "Override", "public", "void", "performFileBasedAction", "(", "Collection", "<", "File", ">", "modifiedFiles", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "entr...
The specified files have been modified and we need to clear the SSLContext caches and keystore caches. This will cause the new keystore file to get loaded on the next use of the ssl context. If the keystore associated with the SSLContext that the process is using then the process SSLContext needs to be reloaded.
[ "The", "specified", "files", "have", "been", "modified", "and", "we", "need", "to", "clear", "the", "SSLContext", "caches", "and", "keystore", "caches", ".", "This", "will", "cause", "the", "new", "keystore", "file", "to", "get", "loaded", "on", "the", "ne...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java#L187-L204
69,205
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java
KeystoreConfigurationFactory.unsetFileMonitorRegistration
protected void unsetFileMonitorRegistration() { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "unsetFileMonitorRegistration"); } if (keyStoreFileMonitorRegistration != null) { keyStoreFileMonitorRegistration.unregister(); ...
java
protected void unsetFileMonitorRegistration() { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "unsetFileMonitorRegistration"); } if (keyStoreFileMonitorRegistration != null) { keyStoreFileMonitorRegistration.unregister(); ...
[ "protected", "void", "unsetFileMonitorRegistration", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "{", "Tr", ".", "event", "(", "this", ",", "tc", ",", "\"unsetFileMonitor...
Remove the reference to the file monitor.
[ "Remove", "the", "reference", "to", "the", "file", "monitor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java#L251-L259
69,206
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java
KeystoreConfigurationFactory.setFileMonitorRegistration
protected void setFileMonitorRegistration(ServiceRegistration<FileMonitor> keyStoreFileMonitorRegistration) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "setFileMonitorRegistration"); } this.keyStoreFileMonitorRegistration = keyStoreFileMoni...
java
protected void setFileMonitorRegistration(ServiceRegistration<FileMonitor> keyStoreFileMonitorRegistration) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "setFileMonitorRegistration"); } this.keyStoreFileMonitorRegistration = keyStoreFileMoni...
[ "protected", "void", "setFileMonitorRegistration", "(", "ServiceRegistration", "<", "FileMonitor", ">", "keyStoreFileMonitorRegistration", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", ...
Sets the keystore file monitor registration. @param keyStoreFileMonitorRegistration
[ "Sets", "the", "keystore", "file", "monitor", "registration", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java#L266-L271
69,207
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java
KeystoreConfigurationFactory.createFileMonitor
private void createFileMonitor(String ID, String keyStoreLocation, String trigger, long interval) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "createFileMonitor", new Object[] { ID, keyStoreLocation, trigger, interval }); try { keyStoreFileMoni...
java
private void createFileMonitor(String ID, String keyStoreLocation, String trigger, long interval) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "createFileMonitor", new Object[] { ID, keyStoreLocation, trigger, interval }); try { keyStoreFileMoni...
[ "private", "void", "createFileMonitor", "(", "String", "ID", ",", "String", "keyStoreLocation", ",", "String", "trigger", ",", "long", "interval", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "...
Handles the creation of the keystore file monitor.
[ "Handles", "the", "creation", "of", "the", "keystore", "file", "monitor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java#L276-L290
69,208
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java
KeystoreConfigurationFactory.unsetKeyringMonitorRegistration
protected void unsetKeyringMonitorRegistration() { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "unsetKeyringMonitorRegistration"); } if (keyringMonitorRegistration != null) { keyringMonitorRegistration.unregister(); ke...
java
protected void unsetKeyringMonitorRegistration() { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "unsetKeyringMonitorRegistration"); } if (keyringMonitorRegistration != null) { keyringMonitorRegistration.unregister(); ke...
[ "protected", "void", "unsetKeyringMonitorRegistration", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "{", "Tr", ".", "event", "(", "this", ",", "tc", ",", "\"unsetKeyringM...
Remove the reference to the keyRing monitor.
[ "Remove", "the", "reference", "to", "the", "keyRing", "monitor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java#L295-L303
69,209
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java
KeystoreConfigurationFactory.setKeyringMonitorRegistration
protected void setKeyringMonitorRegistration(ServiceRegistration<KeyringMonitor> keyringMonitorRegistration) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "setKeyringMonitorRegistration"); } this.keyringMonitorRegistration = keyringMonitorReg...
java
protected void setKeyringMonitorRegistration(ServiceRegistration<KeyringMonitor> keyringMonitorRegistration) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(this, tc, "setKeyringMonitorRegistration"); } this.keyringMonitorRegistration = keyringMonitorReg...
[ "protected", "void", "setKeyringMonitorRegistration", "(", "ServiceRegistration", "<", "KeyringMonitor", ">", "keyringMonitorRegistration", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", ...
Sets the keyring monitor registration. @param keyringMonitorRegistration
[ "Sets", "the", "keyring", "monitor", "registration", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java#L310-L315
69,210
OpenLiberty/open-liberty
dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java
KeystoreConfigurationFactory.createKeyringMonitor
private void createKeyringMonitor(String ID, String trigger, String keyStoreLocation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "createKeyringMonitor", new Object[] { ID, trigger }); try { KeyringMonitor = new KeyringMonitorImpl(this); ...
java
private void createKeyringMonitor(String ID, String trigger, String keyStoreLocation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "createKeyringMonitor", new Object[] { ID, trigger }); try { KeyringMonitor = new KeyringMonitorImpl(this); ...
[ "private", "void", "createKeyringMonitor", "(", "String", "ID", ",", "String", "trigger", ",", "String", "keyStoreLocation", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ...
Handles the creation of the keyring monitor.
[ "Handles", "the", "creation", "of", "the", "keyring", "monitor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ssl/src/com/ibm/ws/ssl/internal/KeystoreConfigurationFactory.java#L320-L334
69,211
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/util/Util.java
Util.encodeDN
public static byte[] encodeDN(Codec codec, String distinguishedName) throws Exception { X500Principal issuer = new X500Principal(distinguishedName); X509CertSelector certSelector = new X509CertSelector(); certSelector.setIssuer(issuer); byte[] asnX501DN = certSelector.getIssuerAsBytes();...
java
public static byte[] encodeDN(Codec codec, String distinguishedName) throws Exception { X500Principal issuer = new X500Principal(distinguishedName); X509CertSelector certSelector = new X509CertSelector(); certSelector.setIssuer(issuer); byte[] asnX501DN = certSelector.getIssuerAsBytes();...
[ "public", "static", "byte", "[", "]", "encodeDN", "(", "Codec", "codec", ",", "String", "distinguishedName", ")", "throws", "Exception", "{", "X500Principal", "issuer", "=", "new", "X500Principal", "(", "distinguishedName", ")", ";", "X509CertSelector", "certSelec...
Encode a distinguished name into a codec encoded ASN.1 X501 encoded Distinguished Name. @param codec The codec to do the encoding of the Any. @param distinguishedName The distinguished name. @return the codec encoded ASN.1 X501 encoded Distinguished Name. @throws Exception
[ "Encode", "a", "distinguished", "name", "into", "a", "codec", "encoded", "ASN", ".", "1", "X501", "encoded", "Distinguished", "Name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/util/Util.java#L692-L701
69,212
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/util/Util.java
Util.decodeDN
public static String decodeDN(Codec codec, byte[] encodedDN) throws SASException { String dn = null; try { Any any = codec.decode_value(encodedDN, X501DistinguishedNameHelper.type()); byte[] asnX501DN = X501DistinguishedNameHelper.extract(any); X500Principal x500Pri...
java
public static String decodeDN(Codec codec, byte[] encodedDN) throws SASException { String dn = null; try { Any any = codec.decode_value(encodedDN, X501DistinguishedNameHelper.type()); byte[] asnX501DN = X501DistinguishedNameHelper.extract(any); X500Principal x500Pri...
[ "public", "static", "String", "decodeDN", "(", "Codec", "codec", ",", "byte", "[", "]", "encodedDN", ")", "throws", "SASException", "{", "String", "dn", "=", "null", ";", "try", "{", "Any", "any", "=", "codec", ".", "decode_value", "(", "encodedDN", ",",...
Decode a distinguished name from an ASN.1 X501 encoded Distinguished Name @param codec The codec to do the decoding of the Any. @param encodedDN The codec encoded byte[] containing the ASN.1 X501 encoded Distinguished Name. @return the distinguished name. @throws SASException
[ "Decode", "a", "distinguished", "name", "from", "an", "ASN", ".", "1", "X501", "encoded", "Distinguished", "Name" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/util/Util.java#L711-L726
69,213
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/util/Util.java
Util.upperCaseIndexString
private static String upperCaseIndexString(String iiopName) { StringBuilder StringBuilder = new StringBuilder(); for (int i = 0; i < iiopName.length(); i++) { char c = iiopName.charAt(i); if (Character.isUpperCase(c)) { StringBuilder.append('_').append(i); ...
java
private static String upperCaseIndexString(String iiopName) { StringBuilder StringBuilder = new StringBuilder(); for (int i = 0; i < iiopName.length(); i++) { char c = iiopName.charAt(i); if (Character.isUpperCase(c)) { StringBuilder.append('_').append(i); ...
[ "private", "static", "String", "upperCaseIndexString", "(", "String", "iiopName", ")", "{", "StringBuilder", "StringBuilder", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "iiopName", ".", "length", "(", ")", ...
Return the a string containing an underscore '_' index of each uppercase character in the iiop name. This is used for distinction of names that only differ by case, since corba does not support case sensitive names.
[ "Return", "the", "a", "string", "containing", "an", "underscore", "_", "index", "of", "each", "uppercase", "character", "in", "the", "iiop", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/util/Util.java#L1235-L1244
69,214
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/util/Util.java
Util.replace
private static String replace(String source, char oldChar, String newString) { StringBuilder StringBuilder = new StringBuilder(source.length()); for (int i = 0; i < source.length(); i++) { char c = source.charAt(i); if (c == oldChar) { StringBuilder.append(newStri...
java
private static String replace(String source, char oldChar, String newString) { StringBuilder StringBuilder = new StringBuilder(source.length()); for (int i = 0; i < source.length(); i++) { char c = source.charAt(i); if (c == oldChar) { StringBuilder.append(newStri...
[ "private", "static", "String", "replace", "(", "String", "source", ",", "char", "oldChar", ",", "String", "newString", ")", "{", "StringBuilder", "StringBuilder", "=", "new", "StringBuilder", "(", "source", ".", "length", "(", ")", ")", ";", "for", "(", "i...
Replaces any occurnace of the specified "oldChar" with the nes string. This is used to replace occurances if '$' in corba names since '$' is a special character
[ "Replaces", "any", "occurnace", "of", "the", "specified", "oldChar", "with", "the", "nes", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/util/Util.java#L1251-L1262
69,215
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/util/Util.java
Util.buildOverloadParameterString
private static String buildOverloadParameterString(Class<?> parameterType) { String name = "_"; int arrayDimensions = 0; while (parameterType.isArray()) { arrayDimensions++; parameterType = parameterType.getComponentType(); } // arrays start with org_omg...
java
private static String buildOverloadParameterString(Class<?> parameterType) { String name = "_"; int arrayDimensions = 0; while (parameterType.isArray()) { arrayDimensions++; parameterType = parameterType.getComponentType(); } // arrays start with org_omg...
[ "private", "static", "String", "buildOverloadParameterString", "(", "Class", "<", "?", ">", "parameterType", ")", "{", "String", "name", "=", "\"_\"", ";", "int", "arrayDimensions", "=", "0", ";", "while", "(", "parameterType", ".", "isArray", "(", ")", ")",...
Returns a single parameter type encoded using the Java to IDL rules.
[ "Returns", "a", "single", "parameter", "type", "encoded", "using", "the", "Java", "to", "IDL", "rules", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/util/Util.java#L1289-L1330
69,216
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/util/Util.java
Util.buildClassName
private static String buildClassName(Class<?> type) { if (type.isArray()) { throw new IllegalArgumentException("type is an array: " + type); } // get the classname String typeName = type.getName(); int endIndex = typeName.lastIndexOf('.'); if (endIndex < 0) {...
java
private static String buildClassName(Class<?> type) { if (type.isArray()) { throw new IllegalArgumentException("type is an array: " + type); } // get the classname String typeName = type.getName(); int endIndex = typeName.lastIndexOf('.'); if (endIndex < 0) {...
[ "private", "static", "String", "buildClassName", "(", "Class", "<", "?", ">", "type", ")", "{", "if", "(", "type", ".", "isArray", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"type is an array: \"", "+", "type", ")", ";", "}", ...
Returns a string contianing an encoded class name.
[ "Returns", "a", "string", "contianing", "an", "encoded", "class", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/security/util/Util.java#L1335-L1361
69,217
OpenLiberty/open-liberty
dev/com.ibm.ws.jpa.container.ormdiagnostics/src/com/ibm/ws/jpa/diagnostics/puparser/jaxb/puxml10/Persistence.java
Persistence.getPersistenceUnit
public List<Persistence.PersistenceUnit> getPersistenceUnit() { if (persistenceUnit == null) { persistenceUnit = new ArrayList<Persistence.PersistenceUnit>(); } return this.persistenceUnit; }
java
public List<Persistence.PersistenceUnit> getPersistenceUnit() { if (persistenceUnit == null) { persistenceUnit = new ArrayList<Persistence.PersistenceUnit>(); } return this.persistenceUnit; }
[ "public", "List", "<", "Persistence", ".", "PersistenceUnit", ">", "getPersistenceUnit", "(", ")", "{", "if", "(", "persistenceUnit", "==", "null", ")", "{", "persistenceUnit", "=", "new", "ArrayList", "<", "Persistence", ".", "PersistenceUnit", ">", "(", ")",...
Gets the value of the persistenceUnit property. <p> This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a <CODE>set</CODE> method for the persistenceUnit property. <p> For e...
[ "Gets", "the", "value", "of", "the", "persistenceUnit", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jpa.container.ormdiagnostics/src/com/ibm/ws/jpa/diagnostics/puparser/jaxb/puxml10/Persistence.java#L137-L142
69,218
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/PersistenceType.java
PersistenceType.getPersistenceType
public final static PersistenceType getPersistenceType(Byte aValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue); return set[aValue.intValue()]; }
java
public final static PersistenceType getPersistenceType(Byte aValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(tc,"Value = " + aValue); return set[aValue.intValue()]; }
[ "public", "final", "static", "PersistenceType", "getPersistenceType", "(", "Byte", "aValue", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "SibTr", ".", "debug", "(", "tc", ",",...
Returns the corresponding PersistenceType for a given Byte. This method should NOT be called by any code outside the MFP component. It is only public so that it can be accessed by sub-packages. @param aValue The Byte for which an PersistenceType is required. @return The corresponding PersistenceType
[ "Returns", "the", "corresponding", "PersistenceType", "for", "a", "given", "Byte", ".", "This", "method", "should", "NOT", "be", "called", "by", "any", "code", "outside", "the", "MFP", "component", ".", "It", "is", "only", "public", "so", "that", "it", "ca...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/PersistenceType.java#L59-L62
69,219
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java
SibDiagnosticModule.register
protected void register(String[] specificPackageList) { if (TraceComponent.isAnyTracingEnabled() && _tc.isEntryEnabled()) SibTr.entry(_tc, "register", new Object[] { this, specificPackageList }); synchronized(SibDiagnosticModule.class) { if (!_registeredMasterDiagnosticModule) { SibDi...
java
protected void register(String[] specificPackageList) { if (TraceComponent.isAnyTracingEnabled() && _tc.isEntryEnabled()) SibTr.entry(_tc, "register", new Object[] { this, specificPackageList }); synchronized(SibDiagnosticModule.class) { if (!_registeredMasterDiagnosticModule) { SibDi...
[ "protected", "void", "register", "(", "String", "[", "]", "specificPackageList", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "_tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "_tc", ",", "\"regi...
Register a subclass of this diagnostic module with FFDC @param specificPackageList The package list for which it is being registered
[ "Register", "a", "subclass", "of", "this", "diagnostic", "module", "with", "FFDC" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java#L126-L143
69,220
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java
SibDiagnosticModule.captureDefaultInformation
protected void captureDefaultInformation(IncidentStream is, Throwable th) { is.writeLine("Platform Messaging :: Messaging engine:", SibTr.getMEName(null)); // is.writeLine("Platform Messaging :: Release name: ", BuildInfo.getBuildRelease()); // is.writeLine("Platform Messaging :: Level name: ", Buil...
java
protected void captureDefaultInformation(IncidentStream is, Throwable th) { is.writeLine("Platform Messaging :: Messaging engine:", SibTr.getMEName(null)); // is.writeLine("Platform Messaging :: Release name: ", BuildInfo.getBuildRelease()); // is.writeLine("Platform Messaging :: Level name: ", Buil...
[ "protected", "void", "captureDefaultInformation", "(", "IncidentStream", "is", ",", "Throwable", "th", ")", "{", "is", ".", "writeLine", "(", "\"Platform Messaging :: Messaging engine:\"", ",", "SibTr", ".", "getMEName", "(", "null", ")", ")", ";", "// is.writeLin...
Capture the default information about the messaging engine, exception etc. @param is The incident stream into which to place the information @param th The Throwable that caused the FFDC (may be null)
[ "Capture", "the", "default", "information", "about", "the", "messaging", "engine", "exception", "etc", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java#L165-L206
69,221
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java
SibDiagnosticModule.ffdcDumpDefault
public void ffdcDumpDefault(Throwable t, IncidentStream is, Object callerThis, Object[] objs, String sourceId) { is.writeLine("SIB FFDC dump for:", t); captureDefaultInformation(is,t); if (callerThis != null) { is.writeLine("SibDiagnosticModule :: Dump of callerThis (DiagnosticModule)", toFFDC...
java
public void ffdcDumpDefault(Throwable t, IncidentStream is, Object callerThis, Object[] objs, String sourceId) { is.writeLine("SIB FFDC dump for:", t); captureDefaultInformation(is,t); if (callerThis != null) { is.writeLine("SibDiagnosticModule :: Dump of callerThis (DiagnosticModule)", toFFDC...
[ "public", "void", "ffdcDumpDefault", "(", "Throwable", "t", ",", "IncidentStream", "is", ",", "Object", "callerThis", ",", "Object", "[", "]", "objs", ",", "String", "sourceId", ")", "{", "is", ".", "writeLine", "(", "\"SIB FFDC dump for:\"", ",", "t", ")", ...
Capture information about this problem into the incidentStream @param t The exception which triggered the FFDC capture process. @param is The IncidentStream. Data to be captured is written to this stream. @param callerThis The 'this' pointer for the object which invoked the filter. The value will be n...
[ "Capture", "information", "about", "this", "problem", "into", "the", "incidentStream" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java#L255-L277
69,222
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java
SibDiagnosticModule.toFFDCString
public final String toFFDCString(Object obj) { if (obj instanceof Map) { return toFFDCString((Map) obj); } else if (obj instanceof Collection) { return toFFDCString((Collection) obj); } else if (obj instanceof Object[]) { return toFFDCString((Obj...
java
public final String toFFDCString(Object obj) { if (obj instanceof Map) { return toFFDCString((Map) obj); } else if (obj instanceof Collection) { return toFFDCString((Collection) obj); } else if (obj instanceof Object[]) { return toFFDCString((Obj...
[ "public", "final", "String", "toFFDCString", "(", "Object", "obj", ")", "{", "if", "(", "obj", "instanceof", "Map", ")", "{", "return", "toFFDCString", "(", "(", "Map", ")", "obj", ")", ";", "}", "else", "if", "(", "obj", "instanceof", "Collection", ")...
Generates a string representation of the object for FFDC. If the object is an Object Array, Collection or Map the elements are inspected individually up to a maximum of multiple_object_count_to_ffdc @param obj Object to generate a string representation of @return The string representation of the object
[ "Generates", "a", "string", "representation", "of", "the", "object", "for", "FFDC", ".", "If", "the", "object", "is", "an", "Object", "Array", "Collection", "or", "Map", "the", "elements", "are", "inspected", "individually", "up", "to", "a", "maximum", "of",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java#L291-L306
69,223
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java
SibDiagnosticModule.toFFDCStringSingleObject
protected String toFFDCStringSingleObject(Object obj) { if (obj == null) { return "<null>"; } else if (obj instanceof Traceable) { return ((Traceable) obj).toTraceString(); } else if (obj instanceof String) { return ((String) obj); } else if (obj instanceof by...
java
protected String toFFDCStringSingleObject(Object obj) { if (obj == null) { return "<null>"; } else if (obj instanceof Traceable) { return ((Traceable) obj).toTraceString(); } else if (obj instanceof String) { return ((String) obj); } else if (obj instanceof by...
[ "protected", "String", "toFFDCStringSingleObject", "(", "Object", "obj", ")", "{", "if", "(", "obj", "==", "null", ")", "{", "return", "\"<null>\"", ";", "}", "else", "if", "(", "obj", "instanceof", "Traceable", ")", "{", "return", "(", "(", "Traceable", ...
Generates a string representation of an object for FFDC. @param obj Object to generate a string representation of @return The string representation of the object
[ "Generates", "a", "string", "representation", "of", "an", "object", "for", "FFDC", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java#L317-L339
69,224
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java
SibDiagnosticModule.toFFDCString
public final String toFFDCString(Collection aCollection) { StringBuffer buffer = new StringBuffer(); buffer.append('{'); if (aCollection == null) { buffer.append("<null>"); } else { Iterator i = aCollection.iterator(); boolean hasNext = i.hasNext(); int ctr = 0; ...
java
public final String toFFDCString(Collection aCollection) { StringBuffer buffer = new StringBuffer(); buffer.append('{'); if (aCollection == null) { buffer.append("<null>"); } else { Iterator i = aCollection.iterator(); boolean hasNext = i.hasNext(); int ctr = 0; ...
[ "public", "final", "String", "toFFDCString", "(", "Collection", "aCollection", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "buffer", ".", "append", "(", "'", "'", ")", ";", "if", "(", "aCollection", "==", "null", ")", "...
Generates a String representation of a Collection, calling toFFDCStringObject for the first multiple_object_count_to_ffdc elements @param aCollection @return the string representation of a Collection.
[ "Generates", "a", "String", "representation", "of", "a", "Collection", "calling", "toFFDCStringObject", "for", "the", "first", "multiple_object_count_to_ffdc", "elements" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java#L468-L498
69,225
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java
SibDiagnosticModule.toFFDCString
public final String toFFDCString(Map aMap) { StringBuffer buffer = new StringBuffer(); buffer.append('{'); if (aMap == null) { buffer.append("<null>"); } else { Iterator i = aMap.entrySet().iterator(); boolean hasNext = i.hasNext(); int ctr = 0; while (hasNext...
java
public final String toFFDCString(Map aMap) { StringBuffer buffer = new StringBuffer(); buffer.append('{'); if (aMap == null) { buffer.append("<null>"); } else { Iterator i = aMap.entrySet().iterator(); boolean hasNext = i.hasNext(); int ctr = 0; while (hasNext...
[ "public", "final", "String", "toFFDCString", "(", "Map", "aMap", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "buffer", ".", "append", "(", "'", "'", ")", ";", "if", "(", "aMap", "==", "null", ")", "{", "buffer", "."...
Generates a String representation of a Map, calling toFFDCStringObject for the first multiple_object_count_to_ffdc elements @param aMap @return the string representation of the map.
[ "Generates", "a", "String", "representation", "of", "a", "Map", "calling", "toFFDCStringObject", "for", "the", "first", "multiple_object_count_to_ffdc", "elements" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/ffdc/SibDiagnosticModule.java#L543-L576
69,226
OpenLiberty/open-liberty
dev/com.ibm.ws.http.plugin.merge/src/com/ibm/ws/http/plugin/merge/internal/PluginMergeToolImpl.java
PluginMergeToolImpl.removeComments
private boolean removeComments(DocumentBuilder parser, Document doc) { try { // Check for the traversal module DOMImplementation impl = parser.getDOMImplementation(); if (!impl.hasFeature("traversal", "2.0")) { // DOM implementation does not support traversal ...
java
private boolean removeComments(DocumentBuilder parser, Document doc) { try { // Check for the traversal module DOMImplementation impl = parser.getDOMImplementation(); if (!impl.hasFeature("traversal", "2.0")) { // DOM implementation does not support traversal ...
[ "private", "boolean", "removeComments", "(", "DocumentBuilder", "parser", ",", "Document", "doc", ")", "{", "try", "{", "// Check for the traversal module", "DOMImplementation", "impl", "=", "parser", ".", "getDOMImplementation", "(", ")", ";", "if", "(", "!", "im...
Removes all comments from the document except for the Properties comment All exceptions are suppressed because this is just a nicety to improve human readability. @param parser @param doc @return
[ "Removes", "all", "comments", "from", "the", "document", "except", "for", "the", "Properties", "comment", "All", "exceptions", "are", "suppressed", "because", "this", "is", "just", "a", "nicety", "to", "improve", "human", "readability", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.http.plugin.merge/src/com/ibm/ws/http/plugin/merge/internal/PluginMergeToolImpl.java#L120-L143
69,227
OpenLiberty/open-liberty
dev/com.ibm.ws.http.plugin.merge/src/com/ibm/ws/http/plugin/merge/internal/PluginMergeToolImpl.java
PluginMergeToolImpl.nodeListRemoveAll
public static void nodeListRemoveAll(Element xEml, NodeList nodes) { int cnt = nodes.getLength(); for (int i = 0; i < cnt; i++) xEml.removeChild(nodes.item(0)); }
java
public static void nodeListRemoveAll(Element xEml, NodeList nodes) { int cnt = nodes.getLength(); for (int i = 0; i < cnt; i++) xEml.removeChild(nodes.item(0)); }
[ "public", "static", "void", "nodeListRemoveAll", "(", "Element", "xEml", ",", "NodeList", "nodes", ")", "{", "int", "cnt", "=", "nodes", ".", "getLength", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "cnt", ";", "i", "++", ")", ...
Removes all nodes contained in the NodeList from the Element. Convenience method because NodeList objects in the DOM are live. @param xEml @param nodes
[ "Removes", "all", "nodes", "contained", "in", "the", "NodeList", "from", "the", "Element", ".", "Convenience", "method", "because", "NodeList", "objects", "in", "the", "DOM", "are", "live", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.http.plugin.merge/src/com/ibm/ws/http/plugin/merge/internal/PluginMergeToolImpl.java#L432-L436
69,228
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.j2ee.mbeans/src/com/ibm/ws/messaging/jms/j2ee/mbeans/internal/JMSMbeansActivator.java
JMSMbeansActivator.registerMBeanService
private ServiceRegistration<?> registerMBeanService(String jmsResourceName, BundleContext bundleContext) { Dictionary<String, String> props = new Hashtable<String, String>(); props.put(KEY_SERVICE_VENDOR, "IBM"); JmsServiceProviderMBeanImpl jmsProviderMBean = new JmsServiceProviderMBeanImpl(get...
java
private ServiceRegistration<?> registerMBeanService(String jmsResourceName, BundleContext bundleContext) { Dictionary<String, String> props = new Hashtable<String, String>(); props.put(KEY_SERVICE_VENDOR, "IBM"); JmsServiceProviderMBeanImpl jmsProviderMBean = new JmsServiceProviderMBeanImpl(get...
[ "private", "ServiceRegistration", "<", "?", ">", "registerMBeanService", "(", "String", "jmsResourceName", ",", "BundleContext", "bundleContext", ")", "{", "Dictionary", "<", "String", ",", "String", ">", "props", "=", "new", "Hashtable", "<", "String", ",", "St...
Registers MBean for JMSServiceProvider .. in future can be made generic. @param jmsResourceName @param bundleContext @return
[ "Registers", "MBean", "for", "JMSServiceProvider", "..", "in", "future", "can", "be", "made", "generic", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.j2ee.mbeans/src/com/ibm/ws/messaging/jms/j2ee/mbeans/internal/JMSMbeansActivator.java#L105-L116
69,229
OpenLiberty/open-liberty
dev/com.ibm.ws.org.apache.cxf.cxf.rt.rs.client.3.2/src/org/apache/cxf/jaxrs/client/ClientProxyImpl.java
ClientProxyImpl.invokeDefaultMethodUsingPrivateLookup
private static Object invokeDefaultMethodUsingPrivateLookup(Class<?> declaringClass, Object o, Method m, Object[] params) throws WrappedException, NoSuchMethodException { try { final Method privateLookup = MethodHandles .class .getDeclaredMethod("privateL...
java
private static Object invokeDefaultMethodUsingPrivateLookup(Class<?> declaringClass, Object o, Method m, Object[] params) throws WrappedException, NoSuchMethodException { try { final Method privateLookup = MethodHandles .class .getDeclaredMethod("privateL...
[ "private", "static", "Object", "invokeDefaultMethodUsingPrivateLookup", "(", "Class", "<", "?", ">", "declaringClass", ",", "Object", "o", ",", "Method", "m", ",", "Object", "[", "]", "params", ")", "throws", "WrappedException", ",", "NoSuchMethodException", "{", ...
For JDK 9+, we could use MethodHandles.privateLookupIn, which is not available in JDK 8.
[ "For", "JDK", "9", "+", "we", "could", "use", "MethodHandles", ".", "privateLookupIn", "which", "is", "not", "available", "in", "JDK", "8", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.rs.client.3.2/src/org/apache/cxf/jaxrs/client/ClientProxyImpl.java#L237-L254
69,230
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/frames/FrameData.java
FrameData.buildFrameForWrite
@Override public WsByteBuffer buildFrameForWrite() { WsByteBuffer[] output = buildFrameArrayForWrite(); int size = 0; for (WsByteBuffer b : output) { if (b != null) { size += b.remaining(); } } WsByteBuffer singleBuffer = this.getBuffe...
java
@Override public WsByteBuffer buildFrameForWrite() { WsByteBuffer[] output = buildFrameArrayForWrite(); int size = 0; for (WsByteBuffer b : output) { if (b != null) { size += b.remaining(); } } WsByteBuffer singleBuffer = this.getBuffe...
[ "@", "Override", "public", "WsByteBuffer", "buildFrameForWrite", "(", ")", "{", "WsByteBuffer", "[", "]", "output", "=", "buildFrameArrayForWrite", "(", ")", ";", "int", "size", "=", "0", ";", "for", "(", "WsByteBuffer", "b", ":", "output", ")", "{", "if",...
The test code expects a single buffer instead of an array of buffers, as returned by buildFrameArrayForWrite
[ "The", "test", "code", "expects", "a", "single", "buffer", "instead", "of", "an", "array", "of", "buffers", "as", "returned", "by", "buildFrameArrayForWrite" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/frames/FrameData.java#L149-L163
69,231
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java
HomeOfHomes.create
public EJSHome create(BeanMetaData beanMetaData) throws RemoteException { J2EEName name = beanMetaData.j2eeName; HomeRecord hr = beanMetaData.homeRecord; StatelessBeanO homeBeanO = null; EJSHome result = null; try { result = (EJSHome) beanMeta...
java
public EJSHome create(BeanMetaData beanMetaData) throws RemoteException { J2EEName name = beanMetaData.j2eeName; HomeRecord hr = beanMetaData.homeRecord; StatelessBeanO homeBeanO = null; EJSHome result = null; try { result = (EJSHome) beanMeta...
[ "public", "EJSHome", "create", "(", "BeanMetaData", "beanMetaData", ")", "throws", "RemoteException", "{", "J2EEName", "name", "=", "beanMetaData", ".", "j2eeName", ";", "HomeRecord", "hr", "=", "beanMetaData", ".", "homeRecord", ";", "StatelessBeanO", "homeBeanO", ...
Create a new EJSHome instance.
[ "Create", "a", "new", "EJSHome", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java#L99-L124
69,232
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java
HomeOfHomes.addHome
public void addHome(BeanMetaData bmd) // F743-26072 throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "addHome : " + bmd.j2eeName); if (homesByName.get(bmd.j2eeName) != null) { ...
java
public void addHome(BeanMetaData bmd) // F743-26072 throws RemoteException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "addHome : " + bmd.j2eeName); if (homesByName.get(bmd.j2eeName) != null) { ...
[ "public", "void", "addHome", "(", "BeanMetaData", "bmd", ")", "// F743-26072", "throws", "RemoteException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryE...
LIDB859-4 d429866.2
[ "LIDB859", "-", "4", "d429866", ".", "2" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java#L134-L189
69,233
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java
HomeOfHomes.updateAppLinkData
private void updateAppLinkData(AppLinkData linkData, boolean add, J2EEName j2eeName, BeanMetaData bmd) // F743-26072 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "updateAppLinkData: " + j2eeName + ", add=" + add); ...
java
private void updateAppLinkData(AppLinkData linkData, boolean add, J2EEName j2eeName, BeanMetaData bmd) // F743-26072 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "updateAppLinkData: " + j2eeName + ", add=" + add); ...
[ "private", "void", "updateAppLinkData", "(", "AppLinkData", "linkData", ",", "boolean", "add", ",", "J2EEName", "j2eeName", ",", "BeanMetaData", "bmd", ")", "// F743-26072", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "("...
Updates the EJB-link and auto-link data for a bean. @param linkData @param add <tt>true</tt> if data for the bean should be added, or <tt>false</tt> if data should be removed @param bmd
[ "Updates", "the", "EJB", "-", "link", "and", "auto", "-", "link", "data", "for", "a", "bean", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java#L918-L951
69,234
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java
HomeOfHomes.updateAppLinkDataTable
private static <T> void updateAppLinkDataTable(Map<String, Set<T>> table, boolean add, String key, T value, String t...
java
private static <T> void updateAppLinkDataTable(Map<String, Set<T>> table, boolean add, String key, T value, String t...
[ "private", "static", "<", "T", ">", "void", "updateAppLinkDataTable", "(", "Map", "<", "String", ",", "Set", "<", "T", ">", ">", "table", ",", "boolean", "add", ",", "String", "key", ",", "T", "value", ",", "String", "tracePrefix", ")", "// F743-26072", ...
Updates a map from name to set of values. @param table the table to update @param add <tt>true</tt> if data should be added, or <tt>false</tt> if data should be removed @param key the key to add or remove @param value the value to add
[ "Updates", "a", "map", "from", "name", "to", "set", "of", "values", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java#L979-L1022
69,235
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java
HomeOfHomes.updateAutoLink
private void updateAutoLink(AppLinkData linkData, boolean add, J2EEName j2eeName, BeanMetaData bmd) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "updateAutoLink"); String module = j2eeName.getModule(); ...
java
private void updateAutoLink(AppLinkData linkData, boolean add, J2EEName j2eeName, BeanMetaData bmd) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "updateAutoLink"); String module = j2eeName.getModule(); ...
[ "private", "void", "updateAutoLink", "(", "AppLinkData", "linkData", ",", "boolean", "add", ",", "J2EEName", "j2eeName", ",", "BeanMetaData", "bmd", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if"...
d429866.2
[ "d429866", ".", "2" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java#L1035-L1114
69,236
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java
HomeOfHomes.createBeanO
@Override public BeanO createBeanO(EJBThreadData threadData, ContainerTx tx, BeanId id) throws RemoteException { J2EEName homeKey = id.getJ2EEName(); // d366845.3 HomeRecord hr = homesByName.get(homeKey); // d366845.3 BeanO result = null; // d199071 if (hr !=...
java
@Override public BeanO createBeanO(EJBThreadData threadData, ContainerTx tx, BeanId id) throws RemoteException { J2EEName homeKey = id.getJ2EEName(); // d366845.3 HomeRecord hr = homesByName.get(homeKey); // d366845.3 BeanO result = null; // d199071 if (hr !=...
[ "@", "Override", "public", "BeanO", "createBeanO", "(", "EJBThreadData", "threadData", ",", "ContainerTx", "tx", ",", "BeanId", "id", ")", "throws", "RemoteException", "{", "J2EEName", "homeKey", "=", "id", ".", "getJ2EEName", "(", ")", ";", "// d366845.3", "H...
Added ContainerTx d168509
[ "Added", "ContainerTx", "d168509" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java#L1223-L1258
69,237
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java
HomeOfHomes.getEnterpriseBeanClassName
@Override public String getEnterpriseBeanClassName(Object homeKey) { HomeRecord hr = homesByName.get(homeKey); // d366845.3 return hr.homeInternal.getEnterpriseBeanClassName(homeKey); }
java
@Override public String getEnterpriseBeanClassName(Object homeKey) { HomeRecord hr = homesByName.get(homeKey); // d366845.3 return hr.homeInternal.getEnterpriseBeanClassName(homeKey); }
[ "@", "Override", "public", "String", "getEnterpriseBeanClassName", "(", "Object", "homeKey", ")", "{", "HomeRecord", "hr", "=", "homesByName", ".", "get", "(", "homeKey", ")", ";", "// d366845.3", "return", "hr", ".", "homeInternal", ".", "getEnterpriseBeanClassNa...
Return the name of the class that implements the bean's owned by the given home.
[ "Return", "the", "name", "of", "the", "class", "that", "implements", "the", "bean", "s", "owned", "by", "the", "given", "home", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java#L1404-L1409
69,238
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/JspContextWrapper.java
JspContextWrapper.resolveVariable
public Object resolveVariable(String pName) throws ELException { ELContext ctx = this.getELContext(); return ctx.getELResolver().getValue(ctx, null, pName); }
java
public Object resolveVariable(String pName) throws ELException { ELContext ctx = this.getELContext(); return ctx.getELResolver().getValue(ctx, null, pName); }
[ "public", "Object", "resolveVariable", "(", "String", "pName", ")", "throws", "ELException", "{", "ELContext", "ctx", "=", "this", ".", "getELContext", "(", ")", ";", "return", "ctx", ".", "getELResolver", "(", ")", ".", "getValue", "(", "ctx", ",", "null"...
LIDB4147-9 Begin - modified for JSP 2.1
[ "LIDB4147", "-", "9", "Begin", "-", "modified", "for", "JSP", "2", ".", "1" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/JspContextWrapper.java#L369-L372
69,239
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/JspContextWrapper.java
JspContextWrapper.copyTagToPageScope
private void copyTagToPageScope(int scope) { Iterator iter = null; switch (scope) { case VariableInfo.NESTED: if (nestedVars != null) { iter = nestedVars.iterator(); } break; case VariableInfo.AT_BEGIN: if (atBeginVars != null) { iter = atBeginVars.iterator(); } break; case Varia...
java
private void copyTagToPageScope(int scope) { Iterator iter = null; switch (scope) { case VariableInfo.NESTED: if (nestedVars != null) { iter = nestedVars.iterator(); } break; case VariableInfo.AT_BEGIN: if (atBeginVars != null) { iter = atBeginVars.iterator(); } break; case Varia...
[ "private", "void", "copyTagToPageScope", "(", "int", "scope", ")", "{", "Iterator", "iter", "=", "null", ";", "switch", "(", "scope", ")", "{", "case", "VariableInfo", ".", "NESTED", ":", "if", "(", "nestedVars", "!=", "null", ")", "{", "iter", "=", "n...
Copies the variables of the given scope from the virtual page scope of this JSP context wrapper to the page scope of the invoking JSP context. @param scope variable scope (one of NESTED, AT_BEGIN, or AT_END)
[ "Copies", "the", "variables", "of", "the", "given", "scope", "from", "the", "virtual", "page", "scope", "of", "this", "JSP", "context", "wrapper", "to", "the", "page", "scope", "of", "the", "invoking", "JSP", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/JspContextWrapper.java#L405-L436
69,240
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/JspContextWrapper.java
JspContextWrapper.saveNestedVariables
private void saveNestedVariables() { if (nestedVars != null) { Iterator iter = nestedVars.iterator(); while (iter.hasNext()) { String varName = (String) iter.next(); varName = findAlias(varName); Object obj = invokingJspCtxt.getAttribute(varName); if (obj != null) { originalNestedVars.put(varNa...
java
private void saveNestedVariables() { if (nestedVars != null) { Iterator iter = nestedVars.iterator(); while (iter.hasNext()) { String varName = (String) iter.next(); varName = findAlias(varName); Object obj = invokingJspCtxt.getAttribute(varName); if (obj != null) { originalNestedVars.put(varNa...
[ "private", "void", "saveNestedVariables", "(", ")", "{", "if", "(", "nestedVars", "!=", "null", ")", "{", "Iterator", "iter", "=", "nestedVars", ".", "iterator", "(", ")", ";", "while", "(", "iter", ".", "hasNext", "(", ")", ")", "{", "String", "varNam...
Saves the values of any NESTED variables that are present in the invoking JSP context, so they can later be restored.
[ "Saves", "the", "values", "of", "any", "NESTED", "variables", "that", "are", "present", "in", "the", "invoking", "JSP", "context", "so", "they", "can", "later", "be", "restored", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/JspContextWrapper.java#L442-L454
69,241
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/JspContextWrapper.java
JspContextWrapper.restoreNestedVariables
private void restoreNestedVariables() { if (nestedVars != null) { Iterator iter = nestedVars.iterator(); while (iter.hasNext()) { String varName = (String) iter.next(); varName = findAlias(varName); Object obj = originalNestedVars.get(varName); if (obj != null) { invokingJspCtxt.setAttribute(va...
java
private void restoreNestedVariables() { if (nestedVars != null) { Iterator iter = nestedVars.iterator(); while (iter.hasNext()) { String varName = (String) iter.next(); varName = findAlias(varName); Object obj = originalNestedVars.get(varName); if (obj != null) { invokingJspCtxt.setAttribute(va...
[ "private", "void", "restoreNestedVariables", "(", ")", "{", "if", "(", "nestedVars", "!=", "null", ")", "{", "Iterator", "iter", "=", "nestedVars", ".", "iterator", "(", ")", ";", "while", "(", "iter", ".", "hasNext", "(", ")", ")", "{", "String", "var...
Restores the values of any NESTED variables in the invoking JSP context.
[ "Restores", "the", "values", "of", "any", "NESTED", "variables", "in", "the", "invoking", "JSP", "context", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/org/apache/jasper/runtime/JspContextWrapper.java#L460-L474
69,242
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/ARangeList.java
ARangeList.getNext
public RangeObject getNext() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getNext", Integer.valueOf(cursor)); int curr = cursor; cursor = cursor < (blockVector.size() - 1) ? cursor + 1 : cursor; if (TraceComponent.isAnyTracingEnabled() && tc.isEntry...
java
public RangeObject getNext() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getNext", Integer.valueOf(cursor)); int curr = cursor; cursor = cursor < (blockVector.size() - 1) ? cursor + 1 : cursor; if (TraceComponent.isAnyTracingEnabled() && tc.isEntry...
[ "public", "RangeObject", "getNext", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getNext\"", ",", "Integer", "."...
Returns the next range object
[ "Returns", "the", "next", "range", "object" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/ARangeList.java#L119-L131
69,243
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/ARangeList.java
ARangeList.replacePrefix
public void replacePrefix(RangeObject w) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "replacePrefix", w); long lstamp = w.endstamp; // Set index to position of lstamp. int lindex; RangeObject lastro; for (lindex = 0;; lindex++) { l...
java
public void replacePrefix(RangeObject w) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "replacePrefix", w); long lstamp = w.endstamp; // Set index to position of lstamp. int lindex; RangeObject lastro; for (lindex = 0;; lindex++) { l...
[ "public", "void", "replacePrefix", "(", "RangeObject", "w", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"replacePrefix\...
return a list of RangeObjects that are removed
[ "return", "a", "list", "of", "RangeObjects", "that", "are", "removed" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/ARangeList.java#L338-L384
69,244
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/ARangeList.java
ARangeList.getIndex
protected final int getIndex(long stamp) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getIndex", Long.valueOf(stamp)); int first = 0; int last = blockVector.size(); int index = linearSearch(stamp, first, last - 1); if (TraceComponent.isAnyT...
java
protected final int getIndex(long stamp) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getIndex", Long.valueOf(stamp)); int first = 0; int last = blockVector.size(); int index = linearSearch(stamp, first, last - 1); if (TraceComponent.isAnyT...
[ "protected", "final", "int", "getIndex", "(", "long", "stamp", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getIndex\...
gets the index in blockVector for the RangeObject containing stamp
[ "gets", "the", "index", "in", "blockVector", "for", "the", "RangeObject", "containing", "stamp" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/gd/ARangeList.java#L585-L599
69,245
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/web/JwtEndpointServices.java
JwtEndpointServices.handleJwtRequest
protected void handleJwtRequest(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext, JwtConfig jwtConfig, EndpointType endpointType) throws IOException { if (jwtConfig == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "No JwtConfig object provided"); } return; } ...
java
protected void handleJwtRequest(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext, JwtConfig jwtConfig, EndpointType endpointType) throws IOException { if (jwtConfig == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "No JwtConfig object provided"); } return; } ...
[ "protected", "void", "handleJwtRequest", "(", "HttpServletRequest", "request", ",", "HttpServletResponse", "response", ",", "ServletContext", "servletContext", ",", "JwtConfig", "jwtConfig", ",", "EndpointType", "endpointType", ")", "throws", "IOException", "{", "if", "...
Handle the request for the respective endpoint to which the request was directed. @param request @param response @param servletContext @param jwtConfig @param endpointType @throws IOException
[ "Handle", "the", "request", "for", "the", "respective", "endpoint", "to", "which", "the", "request", "was", "directed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/web/JwtEndpointServices.java#L149-L191
69,246
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/web/JwtEndpointServices.java
JwtEndpointServices.isTransportSecure
private boolean isTransportSecure(HttpServletRequest req) { String url = req.getRequestURL().toString(); if (req.getScheme().equals("https")) { return true; } String value = req.getHeader("X-Forwarded-Proto"); if (value != null && value.toLowerCase().equals("https")) { return true; } return false; ...
java
private boolean isTransportSecure(HttpServletRequest req) { String url = req.getRequestURL().toString(); if (req.getScheme().equals("https")) { return true; } String value = req.getHeader("X-Forwarded-Proto"); if (value != null && value.toLowerCase().equals("https")) { return true; } return false; ...
[ "private", "boolean", "isTransportSecure", "(", "HttpServletRequest", "req", ")", "{", "String", "url", "=", "req", ".", "getRequestURL", "(", ")", ".", "toString", "(", ")", ";", "if", "(", "req", ".", "getScheme", "(", ")", ".", "equals", "(", "\"https...
determine if transport is secure. Either the protocol must be https or we must see a forwarding header that indicates it was https upstream of a proxy. Use of a configuration property to allow plain http was rejected in review. @param req @return
[ "determine", "if", "transport", "is", "secure", ".", "Either", "the", "protocol", "must", "be", "https", "or", "we", "must", "see", "a", "forwarding", "header", "that", "indicates", "it", "was", "https", "upstream", "of", "a", "proxy", ".", "Use", "of", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/web/JwtEndpointServices.java#L202-L213
69,247
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/web/JwtEndpointServices.java
JwtEndpointServices.processTokenRequest
private void processTokenRequest(HttpServletResponse response, JwtConfig jwtConfig) throws IOException { String tokenString = new TokenBuilder().createTokenString(jwtConfig); addNoCacheHeaders(response); response.setStatus(200); if (tokenString == null) { return; } try { PrintWriter pw = response.ge...
java
private void processTokenRequest(HttpServletResponse response, JwtConfig jwtConfig) throws IOException { String tokenString = new TokenBuilder().createTokenString(jwtConfig); addNoCacheHeaders(response); response.setStatus(200); if (tokenString == null) { return; } try { PrintWriter pw = response.ge...
[ "private", "void", "processTokenRequest", "(", "HttpServletResponse", "response", ",", "JwtConfig", "jwtConfig", ")", "throws", "IOException", "{", "String", "tokenString", "=", "new", "TokenBuilder", "(", ")", ".", "createTokenString", "(", "jwtConfig", ")", ";", ...
produces a JWT token based upon the jwt Configuration, and the security credentials of the authenticated user that called this method. Returns the token as JSON in the response. @param response @param jwtConfig @throws IOException
[ "produces", "a", "JWT", "token", "based", "upon", "the", "jwt", "Configuration", "and", "the", "security", "credentials", "of", "the", "authenticated", "user", "that", "called", "this", "method", ".", "Returns", "the", "token", "as", "JSON", "in", "the", "re...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/web/JwtEndpointServices.java#L224-L244
69,248
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/web/JwtEndpointServices.java
JwtEndpointServices.processJWKRequest
private void processJWKRequest(HttpServletResponse response, JwtConfig jwtConfig) throws IOException { /* * if (!jwtConfig.isJwkEnabled()) { String errorMsg = * Tr.formatMessage(tc, "JWK_ENDPOINT_JWK_NOT_ENABLED", new Object[] { * jwtConfig.getId() }); Tr.error(tc, errorMsg); * response.sendError(HttpSer...
java
private void processJWKRequest(HttpServletResponse response, JwtConfig jwtConfig) throws IOException { /* * if (!jwtConfig.isJwkEnabled()) { String errorMsg = * Tr.formatMessage(tc, "JWK_ENDPOINT_JWK_NOT_ENABLED", new Object[] { * jwtConfig.getId() }); Tr.error(tc, errorMsg); * response.sendError(HttpSer...
[ "private", "void", "processJWKRequest", "(", "HttpServletResponse", "response", ",", "JwtConfig", "jwtConfig", ")", "throws", "IOException", "{", "/*\n\t\t * if (!jwtConfig.isJwkEnabled()) { String errorMsg =\n\t\t * Tr.formatMessage(tc, \"JWK_ENDPOINT_JWK_NOT_ENABLED\", new Object[] {\n\t...
Obtains the JWK string that is active in the specified config and prints it in JSON format in the response. If a JWK is not found, the response will be empty. @param response @param jwtConfig @throws IOException
[ "Obtains", "the", "JWK", "string", "that", "is", "active", "in", "the", "specified", "config", "and", "prints", "it", "in", "JSON", "format", "in", "the", "response", ".", "If", "a", "JWK", "is", "not", "found", "the", "response", "will", "be", "empty", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/web/JwtEndpointServices.java#L255-L293
69,249
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/web/JwtEndpointServices.java
JwtEndpointServices.addNoCacheHeaders
protected void addNoCacheHeaders(HttpServletResponse response) { String cacheControlValue = response.getHeader(WebConstants.HEADER_CACHE_CONTROL); if (cacheControlValue != null && !cacheControlValue.isEmpty()) { cacheControlValue = cacheControlValue + ", " + WebConstants.CACHE_CONTROL_NO_STORE; } else { ca...
java
protected void addNoCacheHeaders(HttpServletResponse response) { String cacheControlValue = response.getHeader(WebConstants.HEADER_CACHE_CONTROL); if (cacheControlValue != null && !cacheControlValue.isEmpty()) { cacheControlValue = cacheControlValue + ", " + WebConstants.CACHE_CONTROL_NO_STORE; } else { ca...
[ "protected", "void", "addNoCacheHeaders", "(", "HttpServletResponse", "response", ")", "{", "String", "cacheControlValue", "=", "response", ".", "getHeader", "(", "WebConstants", ".", "HEADER_CACHE_CONTROL", ")", ";", "if", "(", "cacheControlValue", "!=", "null", "&...
Adds header values to avoid caching of the provided response. @param response
[ "Adds", "header", "values", "to", "avoid", "caching", "of", "the", "provided", "response", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/web/JwtEndpointServices.java#L300-L311
69,250
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java
MonitoringProxyActivator.activate
protected void activate() throws Exception { // If the ProbeProxy class is available, check it's version String runtimeVersion = getRuntimeClassVersion(); if (runtimeVersion != null && !runtimeVersion.equals(getCurrentVersion())) { // TODO: Use a compatibility check instead ...
java
protected void activate() throws Exception { // If the ProbeProxy class is available, check it's version String runtimeVersion = getRuntimeClassVersion(); if (runtimeVersion != null && !runtimeVersion.equals(getCurrentVersion())) { // TODO: Use a compatibility check instead ...
[ "protected", "void", "activate", "(", ")", "throws", "Exception", "{", "// If the ProbeProxy class is available, check it's version", "String", "runtimeVersion", "=", "getRuntimeClassVersion", "(", ")", ";", "if", "(", "runtimeVersion", "!=", "null", "&&", "!", "runtime...
Activate this declarative services component. Bundles that are currently active will be examined for monitoring metadata and registered as appropriate. @throws Exception if an error occurs during proxy setup
[ "Activate", "this", "declarative", "services", "component", ".", "Bundles", "that", "are", "currently", "active", "will", "be", "examined", "for", "monitoring", "metadata", "and", "registered", "as", "appropriate", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java#L135-L155
69,251
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java
MonitoringProxyActivator.getRuntimeClassVersion
@FFDCIgnore(Exception.class) String getRuntimeClassVersion() { String runtimeVersion = null; try { Class<?> clazz = Class.forName(PROBE_PROXY_CLASS_NAME); Field version = ReflectionHelper.getDeclaredField(clazz, VERSION_FIELD_NAME); runtimeVersion = (String) versi...
java
@FFDCIgnore(Exception.class) String getRuntimeClassVersion() { String runtimeVersion = null; try { Class<?> clazz = Class.forName(PROBE_PROXY_CLASS_NAME); Field version = ReflectionHelper.getDeclaredField(clazz, VERSION_FIELD_NAME); runtimeVersion = (String) versi...
[ "@", "FFDCIgnore", "(", "Exception", ".", "class", ")", "String", "getRuntimeClassVersion", "(", ")", "{", "String", "runtimeVersion", "=", "null", ";", "try", "{", "Class", "<", "?", ">", "clazz", "=", "Class", ".", "forName", "(", "PROBE_PROXY_CLASS_NAME",...
Determine if the boot delegated proxy is already available and, if so, what its version is. @return the runtime version of the emitter proxy or null if the class is not currently available
[ "Determine", "if", "the", "boot", "delegated", "proxy", "is", "already", "available", "and", "if", "so", "what", "its", "version", "is", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java#L178-L188
69,252
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java
MonitoringProxyActivator.getBootProxyJarIfCurrent
JarFile getBootProxyJarIfCurrent() { File dataFile = bundleContext.getDataFile("boot-proxy.jar"); if (!dataFile.exists()) { return null; } JarFile jarFile = null; try { jarFile = new JarFile(dataFile); Manifest manifest = jarFile.getManifest()...
java
JarFile getBootProxyJarIfCurrent() { File dataFile = bundleContext.getDataFile("boot-proxy.jar"); if (!dataFile.exists()) { return null; } JarFile jarFile = null; try { jarFile = new JarFile(dataFile); Manifest manifest = jarFile.getManifest()...
[ "JarFile", "getBootProxyJarIfCurrent", "(", ")", "{", "File", "dataFile", "=", "bundleContext", ".", "getDataFile", "(", "\"boot-proxy.jar\"", ")", ";", "if", "(", "!", "dataFile", ".", "exists", "(", ")", ")", "{", "return", "null", ";", "}", "JarFile", "...
Get the boot proxy jar from the current data area if the code matches the current bundle version. @return the proxy jar iff the proxy jar exits and matches this bundle's version
[ "Get", "the", "boot", "proxy", "jar", "from", "the", "current", "data", "area", "if", "the", "code", "matches", "the", "current", "bundle", "version", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java#L197-L217
69,253
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java
MonitoringProxyActivator.createBootProxyJar
JarFile createBootProxyJar() throws IOException { File dataFile = bundleContext.getDataFile("boot-proxy.jar"); // Create the file if it doesn't already exist if (!dataFile.exists()) { dataFile.createNewFile(); } // Generate a manifest Manifest manifest = cre...
java
JarFile createBootProxyJar() throws IOException { File dataFile = bundleContext.getDataFile("boot-proxy.jar"); // Create the file if it doesn't already exist if (!dataFile.exists()) { dataFile.createNewFile(); } // Generate a manifest Manifest manifest = cre...
[ "JarFile", "createBootProxyJar", "(", ")", "throws", "IOException", "{", "File", "dataFile", "=", "bundleContext", ".", "getDataFile", "(", "\"boot-proxy.jar\"", ")", ";", "// Create the file if it doesn't already exist", "if", "(", "!", "dataFile", ".", "exists", "("...
Create a jar file that contains the proxy code that will live in the boot delegation package. @return the jar file containing the proxy code to append to the boot class path @throws IOException if a file I/O error occurs
[ "Create", "a", "jar", "file", "that", "contains", "the", "proxy", "code", "that", "will", "live", "in", "the", "boot", "delegation", "package", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java#L228-L261
69,254
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java
MonitoringProxyActivator.createDirectoryEntries
public void createDirectoryEntries(JarOutputStream jarStream, String packageName) throws IOException { StringBuilder entryName = new StringBuilder(packageName.length()); for (String str : packageName.split("\\.")) { entryName.append(str).append("/"); JarEntry jarEntry = new JarEn...
java
public void createDirectoryEntries(JarOutputStream jarStream, String packageName) throws IOException { StringBuilder entryName = new StringBuilder(packageName.length()); for (String str : packageName.split("\\.")) { entryName.append(str).append("/"); JarEntry jarEntry = new JarEn...
[ "public", "void", "createDirectoryEntries", "(", "JarOutputStream", "jarStream", ",", "String", "packageName", ")", "throws", "IOException", "{", "StringBuilder", "entryName", "=", "new", "StringBuilder", "(", "packageName", ".", "length", "(", ")", ")", ";", "for...
Create the jar directory entries corresponding to the specified package name. @param jarStream the target jar's output stream @param packageName the target package name @throws IOException if an IO exception raised while creating the entries
[ "Create", "the", "jar", "directory", "entries", "corresponding", "to", "the", "specified", "package", "name", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java#L272-L279
69,255
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java
MonitoringProxyActivator.writeRemappedClass
private void writeRemappedClass(URL classUrl, JarOutputStream jarStream, String targetPackage) throws IOException { InputStream inputStream = classUrl.openStream(); String sourceInternalName = getClassInternalName(classUrl); String targetInternalName = getTargetInternalName(sourceInternalName, t...
java
private void writeRemappedClass(URL classUrl, JarOutputStream jarStream, String targetPackage) throws IOException { InputStream inputStream = classUrl.openStream(); String sourceInternalName = getClassInternalName(classUrl); String targetInternalName = getTargetInternalName(sourceInternalName, t...
[ "private", "void", "writeRemappedClass", "(", "URL", "classUrl", ",", "JarOutputStream", "jarStream", ",", "String", "targetPackage", ")", "throws", "IOException", "{", "InputStream", "inputStream", "=", "classUrl", ".", "openStream", "(", ")", ";", "String", "sou...
Transform the proxy template class that's in this package into a class that's in a package on the framework boot delegation package list. @return the byte array containing the updated class @throws IOException if an IO exception raised while processing the class
[ "Transform", "the", "proxy", "template", "class", "that", "s", "in", "this", "package", "into", "a", "class", "that", "s", "in", "a", "package", "on", "the", "framework", "boot", "delegation", "package", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java#L289-L304
69,256
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java
MonitoringProxyActivator.getTargetInternalName
String getTargetInternalName(String sourceInternalName, String targetPackage) { StringBuilder targetInternalName = new StringBuilder(); targetInternalName.append(targetPackage.replaceAll("\\.", "/")); int lastSlashIndex = sourceInternalName.lastIndexOf('/'); targetInternalName.append(so...
java
String getTargetInternalName(String sourceInternalName, String targetPackage) { StringBuilder targetInternalName = new StringBuilder(); targetInternalName.append(targetPackage.replaceAll("\\.", "/")); int lastSlashIndex = sourceInternalName.lastIndexOf('/'); targetInternalName.append(so...
[ "String", "getTargetInternalName", "(", "String", "sourceInternalName", ",", "String", "targetPackage", ")", "{", "StringBuilder", "targetInternalName", "=", "new", "StringBuilder", "(", ")", ";", "targetInternalName", ".", "append", "(", "targetPackage", ".", "replac...
Get the class internal name that should be used where moving the internal class across packages. @param sourceInternalName the internal name of the template class @param targetPackage the package to move the class to @return the target class name
[ "Get", "the", "class", "internal", "name", "that", "should", "be", "used", "where", "moving", "the", "internal", "class", "across", "packages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java#L335-L343
69,257
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java
MonitoringProxyActivator.activateProbeProxyTarget
void activateProbeProxyTarget() throws Exception { Method method = ReflectionHelper.getDeclaredMethod( probeManagerImpl.getClass(), ProbeMethodAdapter.FIRE_PROBE_METHOD_NAME, ...
java
void activateProbeProxyTarget() throws Exception { Method method = ReflectionHelper.getDeclaredMethod( probeManagerImpl.getClass(), ProbeMethodAdapter.FIRE_PROBE_METHOD_NAME, ...
[ "void", "activateProbeProxyTarget", "(", ")", "throws", "Exception", "{", "Method", "method", "=", "ReflectionHelper", ".", "getDeclaredMethod", "(", "probeManagerImpl", ".", "getClass", "(", ")", ",", "ProbeMethodAdapter", ".", "FIRE_PROBE_METHOD_NAME", ",", "long", ...
Hook up the monitoring boot proxy delegate. @throws Exception the method invocation exception
[ "Hook", "up", "the", "monitoring", "boot", "proxy", "delegate", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/monitor/internal/MonitoringProxyActivator.java#L394-L404
69,258
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/webapp/WebAppConfiguration.java
WebAppConfiguration.setWebApp
@Override public void setWebApp(com.ibm.ws.webcontainer.webapp.WebApp webApp) { super.setWebApp((WebApp)webApp); }
java
@Override public void setWebApp(com.ibm.ws.webcontainer.webapp.WebApp webApp) { super.setWebApp((WebApp)webApp); }
[ "@", "Override", "public", "void", "setWebApp", "(", "com", ".", "ibm", ".", "ws", ".", "webcontainer", ".", "webapp", ".", "WebApp", "webApp", ")", "{", "super", ".", "setWebApp", "(", "(", "WebApp", ")", "webApp", ")", ";", "}" ]
Override to ensure all WebApp are osgi.WebApp.
[ "Override", "to", "ensure", "all", "WebApp", "are", "osgi", ".", "WebApp", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/osgi/webapp/WebAppConfiguration.java#L62-L66
69,259
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/validator/_ExternalSpecifications.java
_ExternalSpecifications.isBeanValidationAvailable
public static boolean isBeanValidationAvailable() { if (beanValidationAvailable == null) { try { try { beanValidationAvailable = (Class.forName("javax.validation.Validation") != null); } catch...
java
public static boolean isBeanValidationAvailable() { if (beanValidationAvailable == null) { try { try { beanValidationAvailable = (Class.forName("javax.validation.Validation") != null); } catch...
[ "public", "static", "boolean", "isBeanValidationAvailable", "(", ")", "{", "if", "(", "beanValidationAvailable", "==", "null", ")", "{", "try", "{", "try", "{", "beanValidationAvailable", "=", "(", "Class", ".", "forName", "(", "\"javax.validation.Validation\"", "...
This method determines if Bean Validation is present. Eager initialization is used for performance. This means Bean Validation binaries should not be added at runtime after this variable has been set. @return true if Bean Validation is available, false otherwise.
[ "This", "method", "determines", "if", "Bean", "Validation", "is", "present", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/validator/_ExternalSpecifications.java#L50-L90
69,260
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/NeighbourProxyListener.java
NeighbourProxyListener.handleRollback
void handleRollback(SubscriptionMessage subMessage, LocalTransaction transaction) { if (tc.isEntryEnabled()) SibTr.entry(tc, "handleRollback", new Object[] { subMessage, transaction }); try { if (transaction != null) { try { transaction.r...
java
void handleRollback(SubscriptionMessage subMessage, LocalTransaction transaction) { if (tc.isEntryEnabled()) SibTr.entry(tc, "handleRollback", new Object[] { subMessage, transaction }); try { if (transaction != null) { try { transaction.r...
[ "void", "handleRollback", "(", "SubscriptionMessage", "subMessage", ",", "LocalTransaction", "transaction", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"handleRollback\"", ",", "new", "Object", "[",...
Rolls back and readds the proxy subscriptions that may have been removed. @param subMessage
[ "Rolls", "back", "and", "readds", "the", "proxy", "subscriptions", "that", "may", "have", "been", "removed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/NeighbourProxyListener.java#L290-L378
69,261
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/NeighbourProxyListener.java
NeighbourProxyListener.handleDeleteProxySubscription
void handleDeleteProxySubscription(SubscriptionMessage deleteMessage, Transaction transaction) throws SIResourceException { if (tc.isEntryEnabled()) SibTr.entry(tc, "handleDeleteProxySubscription", new Object[] { deleteMessage, transaction }); // Get the iterators that we require for thi...
java
void handleDeleteProxySubscription(SubscriptionMessage deleteMessage, Transaction transaction) throws SIResourceException { if (tc.isEntryEnabled()) SibTr.entry(tc, "handleDeleteProxySubscription", new Object[] { deleteMessage, transaction }); // Get the iterators that we require for thi...
[ "void", "handleDeleteProxySubscription", "(", "SubscriptionMessage", "deleteMessage", ",", "Transaction", "transaction", ")", "throws", "SIResourceException", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"han...
Used to remove a proxy subscription on this Neighbour There can be more than one Subscription to be removed in this message so the list of topics needs to be iterated through. The message can also be empty indicating that this Neighbour can now be removed. @param deleteMessage This is the message containing the del...
[ "Used", "to", "remove", "a", "proxy", "subscription", "on", "this", "Neighbour" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/proxyhandler/NeighbourProxyListener.java#L665-L690
69,262
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.setKerberosConnection
public void setKerberosConnection() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "setting this mc to indicate it was gotten using kerberos"); kerberosConnection = true; }
java
public void setKerberosConnection() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "setting this mc to indicate it was gotten using kerberos"); kerberosConnection = true; }
[ "public", "void", "setKerberosConnection", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "this", ",", "tc", ",", "\"setting this mc to indicate it wa...
new code RRS
[ "new", "code", "RRS" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L185-L190
69,263
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.markStale
public void markStale() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "mark mc stale"); _mcStale = true; }
java
public void markStale() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "mark mc stale"); _mcStale = true; }
[ "public", "void", "markStale", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "this", ",", "tc", ",", "\"mark mc stale\"", ")", ";", "_mcStale",...
Marks the managed connection as stale.
[ "Marks", "the", "managed", "connection", "as", "stale", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L210-L214
69,264
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.addHandle
private final void addHandle(WSJdbcConnection handle) throws ResourceException { (numHandlesInUse < handlesInUse.length - 1 ? handlesInUse : resizeHandleList())[numHandlesInUse++] = handle; if (!inRequest && dsConfig.get().enableBeginEndRequest) try { inRequest = true; ...
java
private final void addHandle(WSJdbcConnection handle) throws ResourceException { (numHandlesInUse < handlesInUse.length - 1 ? handlesInUse : resizeHandleList())[numHandlesInUse++] = handle; if (!inRequest && dsConfig.get().enableBeginEndRequest) try { inRequest = true; ...
[ "private", "final", "void", "addHandle", "(", "WSJdbcConnection", "handle", ")", "throws", "ResourceException", "{", "(", "numHandlesInUse", "<", "handlesInUse", ".", "length", "-", "1", "?", "handlesInUse", ":", "resizeHandleList", "(", ")", ")", "[", "numHandl...
Add a handle to this ManagedConnection's list of handles. Signal the JDBC 4.3+ driver that a request is starting. @param handle the handle to add. @throws ResourceException if a JDBC 4.3+ driver rejects the beginRequest operation
[ "Add", "a", "handle", "to", "this", "ManagedConnection", "s", "list", "of", "handles", ".", "Signal", "the", "JDBC", "4", ".", "3", "+", "driver", "that", "a", "request", "is", "starting", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L547-L557
69,265
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.connectionClosed
public void connectionClosed(javax.sql.ConnectionEvent event) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) Tr.event(this, tc, "connectionClosed", "Notification of connection closed received from the JDBC driver", AdapterUtil.toString(event.getSource())); // We have int...
java
public void connectionClosed(javax.sql.ConnectionEvent event) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) Tr.event(this, tc, "connectionClosed", "Notification of connection closed received from the JDBC driver", AdapterUtil.toString(event.getSource())); // We have int...
[ "public", "void", "connectionClosed", "(", "javax", ".", "sql", ".", "ConnectionEvent", "event", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "Tr", ".", "event", "(", "this",...
Invoked by the JDBC driver when the java.sql.Connection is closed. @param event a data structure containing information about the event.
[ "Invoked", "by", "the", "JDBC", "driver", "when", "the", "java", ".", "sql", ".", "Connection", "is", "closed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L577-L591
69,266
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.destroyStatement
private void destroyStatement(Object unwantedStatement) { try { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Statement cache at capacity. Discarding a statement.", AdapterUtil.toString(unwanted...
java
private void destroyStatement(Object unwantedStatement) { try { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Statement cache at capacity. Discarding a statement.", AdapterUtil.toString(unwanted...
[ "private", "void", "destroyStatement", "(", "Object", "unwantedStatement", ")", "{", "try", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "this", ",", "tc"...
Destroy an unwanted statement. This method should close the statement. @param unwantedStatement a statement we don't want in the cache anymore.
[ "Destroy", "an", "unwanted", "statement", ".", "This", "method", "should", "close", "the", "statement", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L682-L697
69,267
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.detectMultithreadedAccess
final void detectMultithreadedAccess() { Thread currentThreadID = Thread.currentThread(); if (currentThreadID == threadID) return; if (threadID == null) threadID = currentThreadID; else { mcf.detectedMultithreadedAccess = true; java.io.S...
java
final void detectMultithreadedAccess() { Thread currentThreadID = Thread.currentThread(); if (currentThreadID == threadID) return; if (threadID == null) threadID = currentThreadID; else { mcf.detectedMultithreadedAccess = true; java.io.S...
[ "final", "void", "detectMultithreadedAccess", "(", ")", "{", "Thread", "currentThreadID", "=", "Thread", ".", "currentThread", "(", ")", ";", "if", "(", "currentThreadID", "==", "threadID", ")", "return", ";", "if", "(", "threadID", "==", "null", ")", "threa...
Detect multithreaded access. This method is called only if detection is enabled. The method ensures that the current thread id matches the saved thread id for this MC. If the MC was just taken out the pool, the thread id may not have been recorded yet. In this case, we save the current thread id. Otherwise, if the thre...
[ "Detect", "multithreaded", "access", ".", "This", "method", "is", "called", "only", "if", "detection", "is", "enabled", ".", "The", "method", "ensures", "that", "the", "current", "thread", "id", "matches", "the", "saved", "thread", "id", "for", "this", "MC",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L706-L727
69,268
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.dissociateConnections
public void dissociateConnections() throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "dissociateConnections"); // The first exception to occur while dissociating connection hand...
java
public void dissociateConnections() throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "dissociateConnections"); // The first exception to occur while dissociating connection hand...
[ "public", "void", "dissociateConnections", "(", ")", "throws", "ResourceException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", ...
Dissociate all connection handles from this ManagedConnection, transitioning the handles to an inactive state where are not associated with any ManagedConnection. Processing continues when errors occur. All errors are logged, and the first error is saved to be thrown when processing completes. @throws ResourceExceptio...
[ "Dissociate", "all", "connection", "handles", "from", "this", "ManagedConnection", "transitioning", "the", "handles", "to", "an", "inactive", "state", "where", "are", "not", "associated", "with", "any", "ManagedConnection", ".", "Processing", "continues", "when", "e...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L737-L789
69,269
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.enforceAutoCommit
public final void enforceAutoCommit(boolean autoCommit) throws SQLException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "enforceAutoCommit", autoCommit); // Only set values if the requested value is d...
java
public final void enforceAutoCommit(boolean autoCommit) throws SQLException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "enforceAutoCommit", autoCommit); // Only set values if the requested value is d...
[ "public", "final", "void", "enforceAutoCommit", "(", "boolean", "autoCommit", ")", "throws", "SQLException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntry...
Enforce the autoCommit setting in the underlying database and update the current value on the MC. This method must be invoked by the Connection handle before doing any work on the database. @param autoCommit Indicates if the autoCommit is true or false. @throws SQLException if an error occurs setting the AutoCommit. ...
[ "Enforce", "the", "autoCommit", "setting", "in", "the", "underlying", "database", "and", "update", "the", "current", "value", "on", "the", "MC", ".", "This", "method", "must", "be", "invoked", "by", "the", "Connection", "handle", "before", "doing", "any", "w...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L801-L823
69,270
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.getStatementCache
private CacheMap getStatementCache() { int newSize = dsConfig.get().statementCacheSize; // Check if statement cache is dynamically enabled if (statementCache == null && newSize > 0) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc...
java
private CacheMap getStatementCache() { int newSize = dsConfig.get().statementCacheSize; // Check if statement cache is dynamically enabled if (statementCache == null && newSize > 0) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc...
[ "private", "CacheMap", "getStatementCache", "(", ")", "{", "int", "newSize", "=", "dsConfig", ".", "get", "(", ")", ".", "statementCacheSize", ";", "// Check if statement cache is dynamically enabled", "if", "(", "statementCache", "==", "null", "&&", "newSize", ">",...
Processes any dynamic updates to the statement cache size and then returns the statement cache. @return the statement cache. Null if caching is not enabled.
[ "Processes", "any", "dynamic", "updates", "to", "the", "statement", "cache", "size", "and", "then", "returns", "the", "statement", "cache", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L912-L936
69,271
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.isGlobalTransactionActive
public final boolean isGlobalTransactionActive() { UOWCurrent uow = (UOWCurrent) mcf.connectorSvc.getTransactionManager(); UOWCoordinator coord = uow == null ? null : uow.getUOWCoord(); return coord != null && coord.isGlobal(); }
java
public final boolean isGlobalTransactionActive() { UOWCurrent uow = (UOWCurrent) mcf.connectorSvc.getTransactionManager(); UOWCoordinator coord = uow == null ? null : uow.getUOWCoord(); return coord != null && coord.isGlobal(); }
[ "public", "final", "boolean", "isGlobalTransactionActive", "(", ")", "{", "UOWCurrent", "uow", "=", "(", "UOWCurrent", ")", "mcf", ".", "connectorSvc", ".", "getTransactionManager", "(", ")", ";", "UOWCoordinator", "coord", "=", "uow", "==", "null", "?", "null...
Returns true if a global transaction is active on the thread, otherwise false. @return true if a global transaction is active on the thread, otherwise false.
[ "Returns", "true", "if", "a", "global", "transaction", "is", "active", "on", "the", "thread", "otherwise", "false", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L1197-L1201
69,272
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.isTransactional
public final boolean isTransactional() { // Take a snapshot of the value with first use (or reuse from pool) of the managed connection. // This value will be cleared when the managed connection is returned to the pool. if (transactional == null) { transactional = mcf.dsConfig.get().t...
java
public final boolean isTransactional() { // Take a snapshot of the value with first use (or reuse from pool) of the managed connection. // This value will be cleared when the managed connection is returned to the pool. if (transactional == null) { transactional = mcf.dsConfig.get().t...
[ "public", "final", "boolean", "isTransactional", "(", ")", "{", "// Take a snapshot of the value with first use (or reuse from pool) of the managed connection.", "// This value will be cleared when the managed connection is returned to the pool.", "if", "(", "transactional", "==", "null", ...
This method checks if transaction enlistment is enabled on the MC @return true if transaction enlistment is enabled and supported, false otherwise.
[ "This", "method", "checks", "if", "transaction", "enlistment", "is", "enabled", "on", "the", "MC" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L1208-L1218
69,273
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.processConnectionClosedEvent
public void processConnectionClosedEvent(WSJdbcConnection handle) throws ResourceException { //A connection handle was closed - must notify the connection manager // of the close on the handle. JDBC connection handles // which are closed are not allowed to be reused because there is no ...
java
public void processConnectionClosedEvent(WSJdbcConnection handle) throws ResourceException { //A connection handle was closed - must notify the connection manager // of the close on the handle. JDBC connection handles // which are closed are not allowed to be reused because there is no ...
[ "public", "void", "processConnectionClosedEvent", "(", "WSJdbcConnection", "handle", ")", "throws", "ResourceException", "{", "//A connection handle was closed - must notify the connection manager", "// of the close on the handle. JDBC connection handles", "// which are closed are not allow...
Process request for a CONNECTION_CLOSED event. @param handle the Connection handle requesting to fire the event. @throws ResourceException if an error occurs processing the request.
[ "Process", "request", "for", "a", "CONNECTION_CLOSED", "event", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L1245-L1309
69,274
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.processLocalTransactionStartedEvent
public void processLocalTransactionStartedEvent(Object handle) throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn) { if (tc.isEntryEnabled()) Tr.entry(this, tc, "processLocalTransactionStartedEvent", handle); ...
java
public void processLocalTransactionStartedEvent(Object handle) throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn) { if (tc.isEntryEnabled()) Tr.entry(this, tc, "processLocalTransactionStartedEvent", handle); ...
[ "public", "void", "processLocalTransactionStartedEvent", "(", "Object", "handle", ")", "throws", "ResourceException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", ")", "{", "if", "(...
Process request for a LOCAL_TRANSACTION_STARTED event. @param handle the Connection handle requesting the event. @throws ResourceException if an error occurs starting the local transaction, or if the state is not valid.
[ "Process", "request", "for", "a", "LOCAL_TRANSACTION_STARTED", "event", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L1383-L1465
69,275
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.processLocalTransactionCommittedEvent
public void processLocalTransactionCommittedEvent(Object handle) throws ResourceException { // A application level local transaction has been committed. final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn) { if (tc.isEntryEnabled()) ...
java
public void processLocalTransactionCommittedEvent(Object handle) throws ResourceException { // A application level local transaction has been committed. final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn) { if (tc.isEntryEnabled()) ...
[ "public", "void", "processLocalTransactionCommittedEvent", "(", "Object", "handle", ")", "throws", "ResourceException", "{", "// A application level local transaction has been committed.", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ...
Process request for a LOCAL_TRANSACTION_COMMITTED event. @param handle the Connection handle requesting to send an event. @throws ResourceException if an error occurs committing the transaction or the state is not valid.
[ "Process", "request", "for", "a", "LOCAL_TRANSACTION_COMMITTED", "event", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L1475-L1557
69,276
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.processConnectionErrorOccurredEvent
public void processConnectionErrorOccurredEvent(Object handle, Exception ex, boolean logEvent) { // Method is not synchronized because of the contract that add/remove event // listeners will only be used on ManagedConnection create/destroy, when the // ManagedConnection is not used by any other ...
java
public void processConnectionErrorOccurredEvent(Object handle, Exception ex, boolean logEvent) { // Method is not synchronized because of the contract that add/remove event // listeners will only be used on ManagedConnection create/destroy, when the // ManagedConnection is not used by any other ...
[ "public", "void", "processConnectionErrorOccurredEvent", "(", "Object", "handle", ",", "Exception", "ex", ",", "boolean", "logEvent", ")", "{", "// Method is not synchronized because of the contract that add/remove event", "// listeners will only be used on ManagedConnection create/des...
Process request for a CONNECTION_ERROR_OCCURRED event. @param event the Connection handle requesting to send the event. @param ex the exception which indicates the connection error, or null if no exception. @param logEvent fire a logging or non-logging event to be interpreted by the connection manager.
[ "Process", "request", "for", "a", "CONNECTION_ERROR_OCCURRED", "event", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L1674-L1764
69,277
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.statementClosed
public void statementClosed(javax.sql.StatementEvent event) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) Tr.event(this, tc, "statementClosed", "Notification of statement closed received from the JDBC driver", AdapterUtil.toString(even...
java
public void statementClosed(javax.sql.StatementEvent event) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) Tr.event(this, tc, "statementClosed", "Notification of statement closed received from the JDBC driver", AdapterUtil.toString(even...
[ "public", "void", "statementClosed", "(", "javax", ".", "sql", ".", "StatementEvent", "event", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "Tr", ".", "event", "(", "this", ...
Invoked by the JDBC driver when a prepared statement is closed. @param event a data structure containing information about the event.
[ "Invoked", "by", "the", "JDBC", "driver", "when", "a", "prepared", "statement", "is", "closed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L1772-L1781
69,278
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.statementErrorOccurred
public void statementErrorOccurred(StatementEvent event) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "statementErrorOccurred", "Notification of a fatal statement error received from the JDBC...
java
public void statementErrorOccurred(StatementEvent event) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "statementErrorOccurred", "Notification of a fatal statement error received from the JDBC...
[ "public", "void", "statementErrorOccurred", "(", "StatementEvent", "event", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "...
Invoked by the JDBC driver when a fatal statement error occurs. @param event a data structure containing information about the event.
[ "Invoked", "by", "the", "JDBC", "driver", "when", "a", "fatal", "statement", "error", "occurs", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L1789-L1805
69,279
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.lazyEnlistInGlobalTran
public void lazyEnlistInGlobalTran(LazyEnlistableConnectionManager lazyEnlistableConnectionManager) throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn) { if (tc.isEntryEnabled()) Tr.entry(this, tc, "la...
java
public void lazyEnlistInGlobalTran(LazyEnlistableConnectionManager lazyEnlistableConnectionManager) throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn) { if (tc.isEntryEnabled()) Tr.entry(this, tc, "la...
[ "public", "void", "lazyEnlistInGlobalTran", "(", "LazyEnlistableConnectionManager", "lazyEnlistableConnectionManager", ")", "throws", "ResourceException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "i...
Signal the Application Server for lazy enlistment if we aren't already enlisted in a transaction. The lazy enlistment signal should only be sent once for a transaction. Connection handles will always invoke this method when doing work in the database, regardless of whether we are already enlisted. In the case where we ...
[ "Signal", "the", "Application", "Server", "for", "lazy", "enlistment", "if", "we", "aren", "t", "already", "enlisted", "in", "a", "transaction", ".", "The", "lazy", "enlistment", "signal", "should", "only", "be", "sent", "once", "for", "a", "transaction", "....
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L1818-L1865
69,280
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.refreshCachedAutoCommit
void refreshCachedAutoCommit() { try { boolean autoCommit = sqlConn.getAutoCommit(); if (currentAutoCommit != autoCommit) { currentAutoCommit = autoCommit; for (int i = 0; i < numHandlesInUse; i++) handlesInUse[i].setCurrentAutoCommit(...
java
void refreshCachedAutoCommit() { try { boolean autoCommit = sqlConn.getAutoCommit(); if (currentAutoCommit != autoCommit) { currentAutoCommit = autoCommit; for (int i = 0; i < numHandlesInUse; i++) handlesInUse[i].setCurrentAutoCommit(...
[ "void", "refreshCachedAutoCommit", "(", ")", "{", "try", "{", "boolean", "autoCommit", "=", "sqlConn", ".", "getAutoCommit", "(", ")", ";", "if", "(", "currentAutoCommit", "!=", "autoCommit", ")", "{", "currentAutoCommit", "=", "autoCommit", ";", "for", "(", ...
After XAResource.end, Oracle resets the autocommit value to whatever it was before the transaction instead of leaving it as the value that the application set during the transaction. Refresh our cached copy of the autocommit value to be consistent with the JDBC driver's behavior.
[ "After", "XAResource", ".", "end", "Oracle", "resets", "the", "autocommit", "value", "to", "whatever", "it", "was", "before", "the", "transaction", "instead", "of", "leaving", "it", "as", "the", "value", "that", "the", "application", "set", "during", "the", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L1872-L1884
69,281
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.removeHandle
private final boolean removeHandle(WSJdbcConnection handle) { // Find the handle in the list and remove it. for (int i = numHandlesInUse; i > 0;) if (handle == handlesInUse[--i]) { // Once found, the handle is removed by replacing it with the last handle in the ...
java
private final boolean removeHandle(WSJdbcConnection handle) { // Find the handle in the list and remove it. for (int i = numHandlesInUse; i > 0;) if (handle == handlesInUse[--i]) { // Once found, the handle is removed by replacing it with the last handle in the ...
[ "private", "final", "boolean", "removeHandle", "(", "WSJdbcConnection", "handle", ")", "{", "// Find the handle in the list and remove it.", "for", "(", "int", "i", "=", "numHandlesInUse", ";", "i", ">", "0", ";", ")", "if", "(", "handle", "==", "handlesInUse", ...
Remove a handle from the list of handles associated with this ManagedConnection. @param handle the handle to remove from the list. @return true if we removed the requested handle, otherwise false.
[ "Remove", "a", "handle", "from", "the", "list", "of", "handles", "associated", "with", "this", "ManagedConnection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L1894-L1910
69,282
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.replaceCRI
private void replaceCRI(WSConnectionRequestInfoImpl newCRI) throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "replaceCRI", "Current:", cri, "New:", newCRI); if (numHandlesInUse > 0 ||...
java
private void replaceCRI(WSConnectionRequestInfoImpl newCRI) throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "replaceCRI", "Current:", cri, "New:", newCRI); if (numHandlesInUse > 0 ||...
[ "private", "void", "replaceCRI", "(", "WSConnectionRequestInfoImpl", "newCRI", ")", "throws", "ResourceException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isE...
Replace the CRI of this ManagedConnection with the new CRI. @param newCRI the new CRI. @throws ResourceException if handles already exist on the ManagedConnection or if the requested CRI contains a different user, password, or DataSource configuration than the existing CRI.
[ "Replace", "the", "CRI", "of", "this", "ManagedConnection", "with", "the", "new", "CRI", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L1921-L1969
69,283
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.resizeHandleList
private WSJdbcConnection[] resizeHandleList() { System.arraycopy(handlesInUse, 0, handlesInUse = new WSJdbcConnection[ maxHandlesInUse > numHandlesInUse ? maxHandle...
java
private WSJdbcConnection[] resizeHandleList() { System.arraycopy(handlesInUse, 0, handlesInUse = new WSJdbcConnection[ maxHandlesInUse > numHandlesInUse ? maxHandle...
[ "private", "WSJdbcConnection", "[", "]", "resizeHandleList", "(", ")", "{", "System", ".", "arraycopy", "(", "handlesInUse", ",", "0", ",", "handlesInUse", "=", "new", "WSJdbcConnection", "[", "maxHandlesInUse", ">", "numHandlesInUse", "?", "maxHandlesInUse", ":",...
Increase the size of the array that keeps track of handles associated with this ManagedConnection. @return the resized handle list.
[ "Increase", "the", "size", "of", "the", "array", "that", "keeps", "track", "of", "handles", "associated", "with", "this", "ManagedConnection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L2020-L2035
69,284
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.handleCleanReuse
private void handleCleanReuse() throws ResourceException { // moved clearing the cache to before we issue the reuse connection //Now since a reuse was issued, the connection is restored to its orginal properties, so make sure // that you match the cri. try { currentTransact...
java
private void handleCleanReuse() throws ResourceException { // moved clearing the cache to before we issue the reuse connection //Now since a reuse was issued, the connection is restored to its orginal properties, so make sure // that you match the cri. try { currentTransact...
[ "private", "void", "handleCleanReuse", "(", ")", "throws", "ResourceException", "{", "// moved clearing the cache to before we issue the reuse connection", "//Now since a reuse was issued, the connection is restored to its orginal properties, so make sure", "// that you match the cri.", "try",...
used to do some cleanup after a reuse of connection @param sqConn @throws ResourceException @throws Exception
[ "used", "to", "do", "some", "cleanup", "after", "a", "reuse", "of", "connection" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L2190-L2211
69,285
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.getStatement
public final Object getStatement(StatementCacheKey key) { Object stmt = statementCache.remove(key); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { if (stmt == null) { Tr.debug(this, tc, "No Matching Prepared Statement found in cache"); } ...
java
public final Object getStatement(StatementCacheKey key) { Object stmt = statementCache.remove(key); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { if (stmt == null) { Tr.debug(this, tc, "No Matching Prepared Statement found in cache"); } ...
[ "public", "final", "Object", "getStatement", "(", "StatementCacheKey", "key", ")", "{", "Object", "stmt", "=", "statementCache", ".", "remove", "(", "key", ")", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebug...
Return a statement from the cache matching the key provided. Null is returned if no statement matches. @param key the statement cache key. @return a matching statement from the cache or null if none is found. @throws SQLException if an error occurs obtaining a new statement.
[ "Return", "a", "statement", "from", "the", "cache", "matching", "the", "key", "provided", ".", "Null", "is", "returned", "if", "no", "statement", "matches", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L2223-L2234
69,286
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.cacheStatement
public final void cacheStatement(Statement statement, StatementCacheKey key) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) Tr.event(this, tc, "cacheStatement", AdapterUtil.toString(statement), key); // Add the statement to the cache. If there is no room in the cache, a...
java
public final void cacheStatement(Statement statement, StatementCacheKey key) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) Tr.event(this, tc, "cacheStatement", AdapterUtil.toString(statement), key); // Add the statement to the cache. If there is no room in the cache, a...
[ "public", "final", "void", "cacheStatement", "(", "Statement", "statement", ",", "StatementCacheKey", "key", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEventEnabled", "(", ")", ")", "Tr", ".", "event", "(...
Returns the statement into the cache. The statement is closed if an error occurs attempting to cache it. This method will only called if statement caching was enabled at some point, although it might not be enabled anymore. @param statement the statement to return to the cache. @param key the statement cache key.
[ "Returns", "the", "statement", "into", "the", "cache", ".", "The", "statement", "is", "closed", "if", "an", "error", "occurs", "attempting", "to", "cache", "it", ".", "This", "method", "will", "only", "called", "if", "statement", "caching", "was", "enabled",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L2244-L2257
69,287
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.dissociateHandle
public void dissociateHandle(WSJdbcConnection connHandle) { if (!cleaningUpHandles && !removeHandle(connHandle)) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Unable to dissociate Connection handle with current Mana...
java
public void dissociateHandle(WSJdbcConnection connHandle) { if (!cleaningUpHandles && !removeHandle(connHandle)) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Unable to dissociate Connection handle with current Mana...
[ "public", "void", "dissociateHandle", "(", "WSJdbcConnection", "connHandle", ")", "{", "if", "(", "!", "cleaningUpHandles", "&&", "!", "removeHandle", "(", "connHandle", ")", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "t...
This method is invoked by the connection handle during dissociation to signal the ManagedConnection to remove all references to the handle. If the ManagedConnection is not associated with the specified handle, this method is a no-op and a warning message is traced. @param the connection handle.
[ "This", "method", "is", "invoked", "by", "the", "connection", "handle", "during", "dissociation", "to", "signal", "the", "ManagedConnection", "to", "remove", "all", "references", "to", "the", "handle", ".", "If", "the", "ManagedConnection", "is", "not", "associa...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L2648-L2658
69,288
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.clearStatementCache
public final void clearStatementCache() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // The closing of cached statements is now separated from the removing of statements // from the cache to avoid synchronization during the closing of statements. if (statementCach...
java
public final void clearStatementCache() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // The closing of cached statements is now separated from the removing of statements // from the cache to avoid synchronization during the closing of statements. if (statementCach...
[ "public", "final", "void", "clearStatementCache", "(", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "// The closing of cached statements is now separated from the removing of statements", "// from the cache to avoid ...
Removes and closes all statements in the statement cache for this ManagedConnection.
[ "Removes", "and", "closes", "all", "statements", "in", "the", "statement", "cache", "for", "this", "ManagedConnection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L3429-L3460
69,289
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.closeHandles
private ResourceException closeHandles() { ResourceException firstX = null; Object conn = null; // Indicate that we are cleaning up handles, so we know not to send events for // operations done in the cleanup. cleaningUpHandles = true; for (int i = numHandlesInUse; i >...
java
private ResourceException closeHandles() { ResourceException firstX = null; Object conn = null; // Indicate that we are cleaning up handles, so we know not to send events for // operations done in the cleanup. cleaningUpHandles = true; for (int i = numHandlesInUse; i >...
[ "private", "ResourceException", "closeHandles", "(", ")", "{", "ResourceException", "firstX", "=", "null", ";", "Object", "conn", "=", "null", ";", "// Indicate that we are cleaning up handles, so we know not to send events for", "// operations done in the cleanup. ", "cleaningUp...
Closes all handles associated with this ManagedConnection. Processing continues even if close fails on a handle. All errors are logged, and the first error is saved to be returned when processing completes. @return the first error to occur closing a handle, or null if none.
[ "Closes", "all", "handles", "associated", "with", "this", "ManagedConnection", ".", "Processing", "continues", "even", "if", "close", "fails", "on", "a", "handle", ".", "All", "errors", "are", "logged", "and", "the", "first", "error", "is", "saved", "to", "b...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L3469-L3504
69,290
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.getXAResource
public XAResource getXAResource() throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getXAResource"); if (xares != null) { if (isTraceOn && tc.isEventEnabled()) ...
java
public XAResource getXAResource() throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getXAResource"); if (xares != null) { if (isTraceOn && tc.isEventEnabled()) ...
[ "public", "XAResource", "getXAResource", "(", ")", "throws", "ResourceException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", ...
Returns a javax.transaction.xa.XAresource instance. An application server enlists this XAResource instance with the Transaction Manager if the ManagedConnection instance is being used in a JTA transaction that is being coordinated by the Transaction Manager. @return a XAResource - if the dataSource specified for this ...
[ "Returns", "a", "javax", ".", "transaction", ".", "xa", ".", "XAresource", "instance", ".", "An", "application", "server", "enlists", "this", "XAResource", "instance", "with", "the", "Transaction", "Manager", "if", "the", "ManagedConnection", "instance", "is", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L3776-L3807
69,291
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.getLocalTransaction
public final LocalTransaction getLocalTransaction() throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getLocalTransaction"); localTran = localTran == null ? n...
java
public final LocalTransaction getLocalTransaction() throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getLocalTransaction"); localTran = localTran == null ? n...
[ "public", "final", "LocalTransaction", "getLocalTransaction", "(", ")", "throws", "ResourceException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", ...
Returns an javax.resource.spi.LocalTransaction instance. The LocalTransaction interface is used by the container to manage local transactions for a RM instance. @return a LocalTransaction instance @exception ResourceException - There should not be an exception thrown in this case. We just need to declare it as it is p...
[ "Returns", "an", "javax", ".", "resource", ".", "spi", ".", "LocalTransaction", "instance", ".", "The", "LocalTransaction", "interface", "is", "used", "by", "the", "container", "to", "manage", "local", "transactions", "for", "a", "RM", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L3819-L3832
69,292
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.setTransactionIsolation
public final void setTransactionIsolation(int isoLevel) throws SQLException { if (currentTransactionIsolation != isoLevel) { // Reject switching to an isolation level of TRANSACTION_NONE if (isoLevel == Connection.TRANSACTION_NONE) { throw new SQLExce...
java
public final void setTransactionIsolation(int isoLevel) throws SQLException { if (currentTransactionIsolation != isoLevel) { // Reject switching to an isolation level of TRANSACTION_NONE if (isoLevel == Connection.TRANSACTION_NONE) { throw new SQLExce...
[ "public", "final", "void", "setTransactionIsolation", "(", "int", "isoLevel", ")", "throws", "SQLException", "{", "if", "(", "currentTransactionIsolation", "!=", "isoLevel", ")", "{", "// Reject switching to an isolation level of TRANSACTION_NONE", "if", "(", "isoLevel", ...
Set the transactionIsolation level to the requested Isolation Level. If the requested and current are the same, then do not drive it to the database If they are different, drive it all the way to the database.
[ "Set", "the", "transactionIsolation", "level", "to", "the", "requested", "Isolation", "Level", ".", "If", "the", "requested", "and", "current", "are", "the", "same", "then", "do", "not", "drive", "it", "to", "the", "database", "If", "they", "are", "different...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L3975-L3995
69,293
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.getTransactionIsolation
public final int getTransactionIsolation() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { try { Tr.debug(this, tc, "The current isolation level from our tracking is: ", currentTransactionIsolation); Tr.debug(this, tc, "Isolation rep...
java
public final int getTransactionIsolation() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { try { Tr.debug(this, tc, "The current isolation level from our tracking is: ", currentTransactionIsolation); Tr.debug(this, tc, "Isolation rep...
[ "public", "final", "int", "getTransactionIsolation", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "try", "{", "Tr", ".", "debug", "(", "this", ",", "tc", ",", "...
Get the transactionIsolation level
[ "Get", "the", "transactionIsolation", "level" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4000-L4014
69,294
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.setHoldability
public final void setHoldability(int holdability) throws SQLException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "setHoldability", "Set Holdability to " + AdapterUtil.getCursorHoldabilityString(holdability)...
java
public final void setHoldability(int holdability) throws SQLException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "setHoldability", "Set Holdability to " + AdapterUtil.getCursorHoldabilityString(holdability)...
[ "public", "final", "void", "setHoldability", "(", "int", "holdability", ")", "throws", "SQLException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "this", ...
Set the cursor holdability value to the request value @param holdability the cursor holdability
[ "Set", "the", "cursor", "holdability", "value", "to", "the", "request", "value" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4021-L4028
69,295
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.setCatalog
public final void setCatalog(String catalog) throws SQLException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Set Catalog to " + catalog); sqlConn.setCatalog(catalog); connectionPropertyChanged = true; }
java
public final void setCatalog(String catalog) throws SQLException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Set Catalog to " + catalog); sqlConn.setCatalog(catalog); connectionPropertyChanged = true; }
[ "public", "final", "void", "setCatalog", "(", "String", "catalog", ")", "throws", "SQLException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "this", ","...
Updates the value of the catalog property. @param catalog the new catalog.
[ "Updates", "the", "value", "of", "the", "catalog", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4062-L4068
69,296
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.setReadOnly
public final void setReadOnly(boolean isReadOnly) throws SQLException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Set readOnly to " + isReadOnly); sqlConn.setReadOnly(isReadOnly); connectionPropertyChanged = true; }
java
public final void setReadOnly(boolean isReadOnly) throws SQLException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Set readOnly to " + isReadOnly); sqlConn.setReadOnly(isReadOnly); connectionPropertyChanged = true; }
[ "public", "final", "void", "setReadOnly", "(", "boolean", "isReadOnly", ")", "throws", "SQLException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "this", ...
Updates the value of the readOnly property. @param readOnly the new isReadOnly value.
[ "Updates", "the", "value", "of", "the", "readOnly", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4075-L4081
69,297
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.setShardingKeys
public final void setShardingKeys(Object shardingKey, Object superShardingKey) throws SQLException { if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_3)) throw new SQLFeatureNotSupportedException(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(...
java
public final void setShardingKeys(Object shardingKey, Object superShardingKey) throws SQLException { if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_3)) throw new SQLFeatureNotSupportedException(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(...
[ "public", "final", "void", "setShardingKeys", "(", "Object", "shardingKey", ",", "Object", "superShardingKey", ")", "throws", "SQLException", "{", "if", "(", "mcf", ".", "beforeJDBCVersion", "(", "JDBCRuntimeVersion", ".", "VERSION_4_3", ")", ")", "throw", "new", ...
Updates the value of the sharding keys. @param shardingKey the new sharding key. @param superShardingKey the new super sharding key. The 'unchanged' constant can be used to avoid changing it.
[ "Updates", "the", "value", "of", "the", "sharding", "keys", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4097-L4109
69,298
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.setShardingKeysIfValid
public final boolean setShardingKeysIfValid(Object shardingKey, Object superShardingKey, int timeout) throws SQLException { if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_3)) throw new SQLFeatureNotSupportedException(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()...
java
public final boolean setShardingKeysIfValid(Object shardingKey, Object superShardingKey, int timeout) throws SQLException { if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_3)) throw new SQLFeatureNotSupportedException(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()...
[ "public", "final", "boolean", "setShardingKeysIfValid", "(", "Object", "shardingKey", ",", "Object", "superShardingKey", ",", "int", "timeout", ")", "throws", "SQLException", "{", "if", "(", "mcf", ".", "beforeJDBCVersion", "(", "JDBCRuntimeVersion", ".", "VERSION_4...
Updates the value of the sharding keys after validating them. @param shardingKey the new sharding key. @param superShardingKey the new super sharding key. The 'unchanged' constant can be used to avoid changing it. @param timeout number of seconds within which validation must be done. 0 indicates no timeout. @return tr...
[ "Updates", "the", "value", "of", "the", "sharding", "keys", "after", "validating", "them", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4119-L4138
69,299
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.setTypeMap
public final void setTypeMap(Map<String, Class<?>> typeMap) throws SQLException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Set TypeMap to " + typeMap); try{ sqlConn.setTypeMap(typeMap); } catch(SQLFeatureNotSupportedExcept...
java
public final void setTypeMap(Map<String, Class<?>> typeMap) throws SQLException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "Set TypeMap to " + typeMap); try{ sqlConn.setTypeMap(typeMap); } catch(SQLFeatureNotSupportedExcept...
[ "public", "final", "void", "setTypeMap", "(", "Map", "<", "String", ",", "Class", "<", "?", ">", ">", "typeMap", ")", "throws", "SQLException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ...
Updates the value of the typeMap property. @param typeMap the new type map.
[ "Updates", "the", "value", "of", "the", "typeMap", "property", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4174-L4192