repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
OpenLiberty/open-liberty
dev/com.ibm.ws.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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
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
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.getSQLJConnectionContext
public final Object getSQLJConnectionContext(Class<?> DefaultContext, WSConnectionManager cm) throws SQLException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getSQLJConnectionContext"); if (sqljContext ...
java
public final Object getSQLJConnectionContext(Class<?> DefaultContext, WSConnectionManager cm) throws SQLException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getSQLJConnectionContext"); if (sqljContext ...
[ "public", "final", "Object", "getSQLJConnectionContext", "(", "Class", "<", "?", ">", "DefaultContext", ",", "WSConnectionManager", "cm", ")", "throws", "SQLException", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")"...
This method returns the SQLJ ConnectionContext. This method is only called by the WSJccConnection class. The ConnectionContext caches all the RTStatements @param DefaultContext the sqlj.runtime.ref.DefaultContext class @return sqlj.runtime.ref.DefaultContext @exception SQLException - failed to create SQLJ Connection C...
[ "This", "method", "returns", "the", "SQLJ", "ConnectionContext", ".", "This", "method", "is", "only", "called", "by", "the", "WSJccConnection", "class", ".", "The", "ConnectionContext", "caches", "all", "the", "RTStatements" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4202-L4222
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.setClaimedVictim
public void setClaimedVictim() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "marking this mc as _claimedVictim"); _claimedVictim = true; }
java
public void setClaimedVictim() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "marking this mc as _claimedVictim"); _claimedVictim = true; }
[ "public", "void", "setClaimedVictim", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "this", ",", "tc", ",", "\"marking this mc as _claimedVictim\"", ...
Claim the unused managed connection as a victim connection, which can then be reauthenticated and reused.
[ "Claim", "the", "unused", "managed", "connection", "as", "a", "victim", "connection", "which", "can", "then", "be", "reauthenticated", "and", "reused", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4349-L4354
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.setSchema
public void setSchema(String schema) throws SQLException { Transaction suspendTx = null; if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_1)) throw new SQLFeatureNotSupportedException(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(thi...
java
public void setSchema(String schema) throws SQLException { Transaction suspendTx = null; if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_1)) throw new SQLFeatureNotSupportedException(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(thi...
[ "public", "void", "setSchema", "(", "String", "schema", ")", "throws", "SQLException", "{", "Transaction", "suspendTx", "=", "null", ";", "if", "(", "mcf", ".", "beforeJDBCVersion", "(", "JDBCRuntimeVersion", ".", "VERSION_4_1", ")", ")", "throw", "new", "SQLF...
Set a schema for this managed connection. @param schema The schema to set on the connection.
[ "Set", "a", "schema", "for", "this", "managed", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4375-L4397
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java
WSRdbManagedConnectionImpl.getSchema
public String getSchema() throws SQLException { Transaction suspendTx = null; if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_1)) return null; // Global trans must be suspended for jdbc-4.1 getters and setters on zOS if (AdapterUtil.isZOS() && isGlobalTransactionActiv...
java
public String getSchema() throws SQLException { Transaction suspendTx = null; if (mcf.beforeJDBCVersion(JDBCRuntimeVersion.VERSION_4_1)) return null; // Global trans must be suspended for jdbc-4.1 getters and setters on zOS if (AdapterUtil.isZOS() && isGlobalTransactionActiv...
[ "public", "String", "getSchema", "(", ")", "throws", "SQLException", "{", "Transaction", "suspendTx", "=", "null", ";", "if", "(", "mcf", ".", "beforeJDBCVersion", "(", "JDBCRuntimeVersion", ".", "VERSION_4_1", ")", ")", "return", "null", ";", "// Global trans m...
Retrieve the schema being used by this managed connection. @return The schema used by this managed connection. <BR> NOTE: If this method is called below JDBC version 4.1, null will be returned.
[ "Retrieve", "the", "schema", "being", "used", "by", "this", "managed", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbManagedConnectionImpl.java#L4404-L4422
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java
TaggedFileOutputStream.setFileTag
void setFileTag(File file) throws IOException { if (initialized && fileEncodingCcsid != 0) { int returnCode = setFileTag(file.getAbsolutePath(), fileEncodingCcsid); if (returnCode != 0) { issueTaggingFailedMessage(returnCode); } } }
java
void setFileTag(File file) throws IOException { if (initialized && fileEncodingCcsid != 0) { int returnCode = setFileTag(file.getAbsolutePath(), fileEncodingCcsid); if (returnCode != 0) { issueTaggingFailedMessage(returnCode); } } }
[ "void", "setFileTag", "(", "File", "file", ")", "throws", "IOException", "{", "if", "(", "initialized", "&&", "fileEncodingCcsid", "!=", "0", ")", "{", "int", "returnCode", "=", "setFileTag", "(", "file", ".", "getAbsolutePath", "(", ")", ",", "fileEncodingC...
Tag the specified file as ISO8859-1 text. @param file the file to tag as ISO8859-1 text
[ "Tag", "the", "specified", "file", "as", "ISO8859", "-", "1", "text", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java#L63-L70
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java
TaggedFileOutputStream.issueTaggingFailedMessage
private synchronized void issueTaggingFailedMessage(int returnCode) { if (taggingFailedIssued) { return; } System.err.println(MessageFormat.format(BootstrapConstants.messages.getString("warn.unableTagFile"), returnCode)); taggingFailedIssued = true; }
java
private synchronized void issueTaggingFailedMessage(int returnCode) { if (taggingFailedIssued) { return; } System.err.println(MessageFormat.format(BootstrapConstants.messages.getString("warn.unableTagFile"), returnCode)); taggingFailedIssued = true; }
[ "private", "synchronized", "void", "issueTaggingFailedMessage", "(", "int", "returnCode", ")", "{", "if", "(", "taggingFailedIssued", ")", "{", "return", ";", "}", "System", ".", "err", ".", "println", "(", "MessageFormat", ".", "format", "(", "BootstrapConstant...
Issue the tagging failed message.
[ "Issue", "the", "tagging", "failed", "message", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java#L87-L94
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java
TaggedFileOutputStream.registerNatives
private static boolean registerNatives() { try { final String methodDescriptor = "zJNIBOOT_" + TaggedFileOutputStream.class.getCanonicalName().replaceAll("\\.", "_"); long dllHandle = NativeMethodHelper.registerNatives(TaggedFileOutputStream.class, methodDescriptor, null); if...
java
private static boolean registerNatives() { try { final String methodDescriptor = "zJNIBOOT_" + TaggedFileOutputStream.class.getCanonicalName().replaceAll("\\.", "_"); long dllHandle = NativeMethodHelper.registerNatives(TaggedFileOutputStream.class, methodDescriptor, null); if...
[ "private", "static", "boolean", "registerNatives", "(", ")", "{", "try", "{", "final", "String", "methodDescriptor", "=", "\"zJNIBOOT_\"", "+", "TaggedFileOutputStream", ".", "class", ".", "getCanonicalName", "(", ")", ".", "replaceAll", "(", "\"\\\\.\"", ",", "...
Register the native method needed for file tagging. @return true if the methods were successfully registered
[ "Register", "the", "native", "method", "needed", "for", "file", "tagging", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java#L101-L119
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java
TaggedFileOutputStream.acquireFileEncodingCcsid
private static int acquireFileEncodingCcsid() { // Get the charset represented by file.encoding Charset charset = null; String fileEncoding = System.getProperty("file.encoding"); try { charset = Charset.forName(fileEncoding); } catch (Throwable t) { // Pro...
java
private static int acquireFileEncodingCcsid() { // Get the charset represented by file.encoding Charset charset = null; String fileEncoding = System.getProperty("file.encoding"); try { charset = Charset.forName(fileEncoding); } catch (Throwable t) { // Pro...
[ "private", "static", "int", "acquireFileEncodingCcsid", "(", ")", "{", "// Get the charset represented by file.encoding", "Charset", "charset", "=", "null", ";", "String", "fileEncoding", "=", "System", ".", "getProperty", "(", "\"file.encoding\"", ")", ";", "try", "{...
Get the character code set identifier that represents the JVM's file encoding. This should only be called by the class static initializer. @return the character code set id or 0 if the code set ID could not be determined
[ "Get", "the", "character", "code", "set", "identifier", "that", "represents", "the", "JVM", "s", "file", "encoding", ".", "This", "should", "only", "be", "called", "by", "the", "class", "static", "initializer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.core/src/com/ibm/ws/kernel/boot/logging/TaggedFileOutputStream.java#L128-L143
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.parse
public static ParsedScheduleExpression parse(ScheduleExpression expr) { ParsedScheduleExpression parsedExpr = new ParsedScheduleExpression(expr); parse(parsedExpr); return parsedExpr; }
java
public static ParsedScheduleExpression parse(ScheduleExpression expr) { ParsedScheduleExpression parsedExpr = new ParsedScheduleExpression(expr); parse(parsedExpr); return parsedExpr; }
[ "public", "static", "ParsedScheduleExpression", "parse", "(", "ScheduleExpression", "expr", ")", "{", "ParsedScheduleExpression", "parsedExpr", "=", "new", "ParsedScheduleExpression", "(", "expr", ")", ";", "parse", "(", "parsedExpr", ")", ";", "return", "parsedExpr",...
Parses the specified schedule expression and returns the result. @param expr the expression to parse @return the parsed schedule expression @throws ScheduleExpressionParserException if the expression contains an invalid attribute value
[ "Parses", "the", "specified", "schedule", "expression", "and", "returns", "the", "result", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L242-L247
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.parse
static void parse(ParsedScheduleExpression parsedExpr) // d639610 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "parse: " + toString(parsedExpr.getSchedule())); ScheduleExpression expr = parsedExpr.getSchedul...
java
static void parse(ParsedScheduleExpression parsedExpr) // d639610 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "parse: " + toString(parsedExpr.getSchedule())); ScheduleExpression expr = parsedExpr.getSchedul...
[ "static", "void", "parse", "(", "ParsedScheduleExpression", "parsedExpr", ")", "// d639610", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", "...
Parses the schedule expression contained within the ParsedScheduleExpression object and store the results in that object. @param parsedExpr the parsed schedule expression to populate @throws ScheduleExpressionParserException if the expression contains an invalid attribute value
[ "Parses", "the", "schedule", "expression", "contained", "within", "the", "ParsedScheduleExpression", "object", "and", "store", "the", "results", "in", "that", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L257-L289
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.parseTimeZone
private void parseTimeZone(ParsedScheduleExpression parsedExpr, String string) { if (parsedExpr.timeZone == null) // d639610 { if (string == null) { parsedExpr.timeZone = TimeZone.getDefault(); // d639610 } else { ...
java
private void parseTimeZone(ParsedScheduleExpression parsedExpr, String string) { if (parsedExpr.timeZone == null) // d639610 { if (string == null) { parsedExpr.timeZone = TimeZone.getDefault(); // d639610 } else { ...
[ "private", "void", "parseTimeZone", "(", "ParsedScheduleExpression", "parsedExpr", ",", "String", "string", ")", "{", "if", "(", "parsedExpr", ".", "timeZone", "==", "null", ")", "// d639610", "{", "if", "(", "string", "==", "null", ")", "{", "parsedExpr", "...
Parses the time zone ID and stores the result in parsedExpr. If the parsed schedule already has a time zone, then it is kept. If the time zone ID is null, then the default time zone is used. @param parsedExpr the object in which to store the result @param string the time zone ID @throws ScheduleExpressionParserExcepti...
[ "Parses", "the", "time", "zone", "ID", "and", "stores", "the", "result", "in", "parsedExpr", ".", "If", "the", "parsed", "schedule", "already", "has", "a", "time", "zone", "then", "it", "is", "kept", ".", "If", "the", "time", "zone", "ID", "is", "null"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L301-L322
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.parseDate
private long parseDate(Date date, long defaultValue) // d666295 { if (date == null) { return defaultValue; } long value = date.getTime(); if (value > 0) { // Round up to the nearest second. long remainder = value % 1000; ...
java
private long parseDate(Date date, long defaultValue) // d666295 { if (date == null) { return defaultValue; } long value = date.getTime(); if (value > 0) { // Round up to the nearest second. long remainder = value % 1000; ...
[ "private", "long", "parseDate", "(", "Date", "date", ",", "long", "defaultValue", ")", "// d666295", "{", "if", "(", "date", "==", "null", ")", "{", "return", "defaultValue", ";", "}", "long", "value", "=", "date", ".", "getTime", "(", ")", ";", "if", ...
Parses the date to milliseconds and rounds up to the nearest second. @param date the date to parse @param defaultValue the default value if the date is null @return the rounded milliseconds
[ "Parses", "the", "date", "to", "milliseconds", "and", "rounds", "up", "to", "the", "nearest", "second", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L331-L353
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.error
private void error(ScheduleExpressionParserException.Error error) // F743-506 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "parse error in " + ivAttr + " at " + ivPos); throw new ScheduleExpressionParserException(error, ivAttr.getDisplayName(), ivStrin...
java
private void error(ScheduleExpressionParserException.Error error) // F743-506 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "parse error in " + ivAttr + " at " + ivPos); throw new ScheduleExpressionParserException(error, ivAttr.getDisplayName(), ivStrin...
[ "private", "void", "error", "(", "ScheduleExpressionParserException", ".", "Error", "error", ")", "// F743-506", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", ...
Issues a lexical analysis or parsing error. @param message the error message @throws ScheduleExpressionParserException
[ "Issues", "a", "lexical", "analysis", "or", "parsing", "error", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L361-L367
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.parseAttribute
private void parseAttribute(ParsedScheduleExpression parsedExpr, Attribute attr, String string) { // Reset state. ivAttr = attr; ivString = string; ivPos = 0; if (string == null) { // d660135...
java
private void parseAttribute(ParsedScheduleExpression parsedExpr, Attribute attr, String string) { // Reset state. ivAttr = attr; ivString = string; ivPos = 0; if (string == null) { // d660135...
[ "private", "void", "parseAttribute", "(", "ParsedScheduleExpression", "parsedExpr", ",", "Attribute", "attr", ",", "String", "string", ")", "{", "// Reset state.", "ivAttr", "=", "attr", ";", "ivString", "=", "string", ";", "ivPos", "=", "0", ";", "if", "(", ...
Parses the specified attribute of this parsers schedule expression and stores the result in parsedExpr. This method sets the ivAttr, ivString, and ivPos member variables that are accessed by other parsing methods. Only ivPos should be modified by those other methods. @param parsedExpr the object in which to store the ...
[ "Parses", "the", "specified", "attribute", "of", "this", "parsers", "schedule", "expression", "and", "stores", "the", "result", "in", "parsedExpr", ".", "This", "method", "sets", "the", "ivAttr", "ivString", "and", "ivPos", "member", "variables", "that", "are", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L381-L494
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.skipWhitespace
private void skipWhitespace() { while (ivPos < ivString.length() && Character.isWhitespace(ivString.charAt(ivPos))) { ivPos++; } }
java
private void skipWhitespace() { while (ivPos < ivString.length() && Character.isWhitespace(ivString.charAt(ivPos))) { ivPos++; } }
[ "private", "void", "skipWhitespace", "(", ")", "{", "while", "(", "ivPos", "<", "ivString", ".", "length", "(", ")", "&&", "Character", ".", "isWhitespace", "(", "ivString", ".", "charAt", "(", "ivPos", ")", ")", ")", "{", "ivPos", "++", ";", "}", "}...
Skip any whitespace at the current position in the parse string.
[ "Skip", "any", "whitespace", "at", "the", "current", "position", "in", "the", "parse", "string", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L499-L505
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.scanToken
private int scanToken() { int begin = ivPos; if (ivPos < ivString.length()) { if (ivString.charAt(ivPos) == '-') { // dayOfWeek allows tokens to begin with "-" (e.g., "-7"). We // cannot add "-" to isTokenChar or else "1-2" would be p...
java
private int scanToken() { int begin = ivPos; if (ivPos < ivString.length()) { if (ivString.charAt(ivPos) == '-') { // dayOfWeek allows tokens to begin with "-" (e.g., "-7"). We // cannot add "-" to isTokenChar or else "1-2" would be p...
[ "private", "int", "scanToken", "(", ")", "{", "int", "begin", "=", "ivPos", ";", "if", "(", "ivPos", "<", "ivString", ".", "length", "(", ")", ")", "{", "if", "(", "ivString", ".", "charAt", "(", "ivPos", ")", "==", "'", "'", ")", "{", "// dayOfW...
Skip the minimum number of characters necessary to form a single unit of information within a value. Whitespace before the value is not skipped. @return the position in the parse string before skipping; if no atom was found, this value will be the same as <tt>ivPos</tt>
[ "Skip", "the", "minimum", "number", "of", "characters", "necessary", "to", "form", "a", "single", "unit", "of", "information", "within", "a", "value", ".", "Whitespace", "before", "the", "value", "is", "not", "skipped", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L607-L628
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java
ScheduleExpressionParser.findNamedValue
private int findNamedValue(int begin, String[] namedValues, int min) { int length = ivPos - begin; for (int i = 0; i < namedValues.length; i++) { String namedValue = namedValues[i]; if (length == namedValue.length() && ivString.regionMatches(true, begin, namedValue,...
java
private int findNamedValue(int begin, String[] namedValues, int min) { int length = ivPos - begin; for (int i = 0; i < namedValues.length; i++) { String namedValue = namedValues[i]; if (length == namedValue.length() && ivString.regionMatches(true, begin, namedValue,...
[ "private", "int", "findNamedValue", "(", "int", "begin", ",", "String", "[", "]", "namedValues", ",", "int", "min", ")", "{", "int", "length", "=", "ivPos", "-", "begin", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "namedValues", ".", "le...
Case-insensitively search the specified list of named values for a substring of the parse string. The substring of the parse string is the range [begin, ivPos). @param begin the beginning index of the substring, inclusive @param namedValues the values to search @param min the non-negative adjustment for the return val...
[ "Case", "-", "insensitively", "search", "the", "specified", "list", "of", "named", "values", "for", "a", "substring", "of", "the", "parse", "string", ".", "The", "substring", "of", "the", "parse", "string", "is", "the", "range", "[", "begin", "ivPos", ")",...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/util/ScheduleExpressionParser.java#L655-L670
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordHashGenerator.java
PasswordHashGenerator.generateSalt
public static byte[] generateSalt(String saltString) { byte[] output = null; if (saltString == null || saltString.length() < 1) { // use randomly generated value output = new byte[SEED_LENGTH]; SecureRandom rand = new SecureRandom(); rand.setSeed(rand.gene...
java
public static byte[] generateSalt(String saltString) { byte[] output = null; if (saltString == null || saltString.length() < 1) { // use randomly generated value output = new byte[SEED_LENGTH]; SecureRandom rand = new SecureRandom(); rand.setSeed(rand.gene...
[ "public", "static", "byte", "[", "]", "generateSalt", "(", "String", "saltString", ")", "{", "byte", "[", "]", "output", "=", "null", ";", "if", "(", "saltString", "==", "null", "||", "saltString", ".", "length", "(", ")", "<", "1", ")", "{", "// use...
generate salt value by using given string. salt was generated as following format String format of current time + given string + hostname
[ "generate", "salt", "value", "by", "using", "given", "string", ".", "salt", "was", "generated", "as", "following", "format", "String", "format", "of", "current", "time", "+", "given", "string", "+", "hostname" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordHashGenerator.java#L36-L53
train
OpenLiberty/open-liberty
dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordHashGenerator.java
PasswordHashGenerator.digest
public static byte[] digest(char[] plainBytes, byte[] salt, String algorithm, int iteration, int length) throws InvalidPasswordCipherException { if (logger.isLoggable(Level.FINE)) { logger.fine("algorithm : " + algorithm + " iteration : " + iteration); logger.fine("input length: " + plai...
java
public static byte[] digest(char[] plainBytes, byte[] salt, String algorithm, int iteration, int length) throws InvalidPasswordCipherException { if (logger.isLoggable(Level.FINE)) { logger.fine("algorithm : " + algorithm + " iteration : " + iteration); logger.fine("input length: " + plai...
[ "public", "static", "byte", "[", "]", "digest", "(", "char", "[", "]", "plainBytes", ",", "byte", "[", "]", "salt", ",", "String", "algorithm", ",", "int", "iteration", ",", "int", "length", ")", "throws", "InvalidPasswordCipherException", "{", "if", "(", ...
perform message digest and then append a salt at the end.
[ "perform", "message", "digest", "and", "then", "append", "a", "salt", "at", "the", "end", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.crypto.passwordutil/src/com/ibm/ws/crypto/util/PasswordHashGenerator.java#L82-L115
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/ObjectDigestInfo.java
ObjectDigestInfo.toASN1Object
public DERObject toASN1Object() { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(digestedObjectType); if (otherObjectTypeID != null) { v.add(otherObjectTypeID); } v.add(digestAlgorithm); v.add(objectDigest); return new DERSequ...
java
public DERObject toASN1Object() { ASN1EncodableVector v = new ASN1EncodableVector(); v.add(digestedObjectType); if (otherObjectTypeID != null) { v.add(otherObjectTypeID); } v.add(digestAlgorithm); v.add(objectDigest); return new DERSequ...
[ "public", "DERObject", "toASN1Object", "(", ")", "{", "ASN1EncodableVector", "v", "=", "new", "ASN1EncodableVector", "(", ")", ";", "v", ".", "add", "(", "digestedObjectType", ")", ";", "if", "(", "otherObjectTypeID", "!=", "null", ")", "{", "v", ".", "add...
Produce an object suitable for an ASN1OutputStream. <pre> ObjectDigestInfo ::= SEQUENCE { digestedObjectType ENUMERATED { publicKey (0), publicKeyCert (1), otherObjectTypes (2) }, -- otherObjectTypes MUST NOT -- be used in this profile otherObjectTypeID OBJECT IDENTIFIER OPTIONAL, digestAlgor...
[ "Produce", "an", "object", "suitable", "for", "an", "ASN1OutputStream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.csiv2.common/src/com/ibm/ws/transport/iiop/asn1/x509/ObjectDigestInfo.java#L119-L134
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListFastStr.java
FilterListFastStr.findInList
private boolean findInList(Entry oEntry) { return findInList(oEntry.getHashcodes(), oEntry.getLengths(), firstCell, oEntry.getCurrentSize() - 1); }
java
private boolean findInList(Entry oEntry) { return findInList(oEntry.getHashcodes(), oEntry.getLengths(), firstCell, oEntry.getCurrentSize() - 1); }
[ "private", "boolean", "findInList", "(", "Entry", "oEntry", ")", "{", "return", "findInList", "(", "oEntry", ".", "getHashcodes", "(", ")", ",", "oEntry", ".", "getLengths", "(", ")", ",", "firstCell", ",", "oEntry", ".", "getCurrentSize", "(", ")", "-", ...
Determine if an address represented by an Entry object is in the address tree @param oEntry Entry object for the address to look for @return true if this address is found in the address tree, false if it is not.
[ "Determine", "if", "an", "address", "represented", "by", "an", "Entry", "object", "is", "in", "the", "address", "tree" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListFastStr.java#L102-L104
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListFastStr.java
FilterListFastStr.putInList
private boolean putInList(Entry entry) { FilterCellFastStr currentCell = firstCell; FilterCellFastStr nextCell = null; int[] hashcodes = entry.getHashcodes(); int[] lengths = entry.getLengths(); // work from back to front int lastIndex = entry.getCurrentSize() - 1; ...
java
private boolean putInList(Entry entry) { FilterCellFastStr currentCell = firstCell; FilterCellFastStr nextCell = null; int[] hashcodes = entry.getHashcodes(); int[] lengths = entry.getLengths(); // work from back to front int lastIndex = entry.getCurrentSize() - 1; ...
[ "private", "boolean", "putInList", "(", "Entry", "entry", ")", "{", "FilterCellFastStr", "currentCell", "=", "firstCell", ";", "FilterCellFastStr", "nextCell", "=", "null", ";", "int", "[", "]", "hashcodes", "=", "entry", ".", "getHashcodes", "(", ")", ";", ...
Add and new address to the address tree, where the new address is represented by an Entry object. @param entry @return boolean
[ "Add", "and", "new", "address", "to", "the", "address", "tree", "where", "the", "new", "address", "is", "represented", "by", "an", "Entry", "object", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListFastStr.java#L157-L195
train
OpenLiberty/open-liberty
dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListFastStr.java
FilterListFastStr.convertToEntries
private Entry convertToEntries(String newAddress) { byte[] ba = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "convertToEntries"); } try { ba = newAddress.getBytes("ISO-8859-1"); } catch (UnsupportedEncodingExcepti...
java
private Entry convertToEntries(String newAddress) { byte[] ba = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "convertToEntries"); } try { ba = newAddress.getBytes("ISO-8859-1"); } catch (UnsupportedEncodingExcepti...
[ "private", "Entry", "convertToEntries", "(", "String", "newAddress", ")", "{", "byte", "[", "]", "ba", "=", "null", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "Tr", ".", ...
Convert a single URL address to an Entry object. The entry object will contain the hashcode array and length array of the substrings of this address @param newAddress address to convert @return the Entry object created from this address.
[ "Convert", "a", "single", "URL", "address", "to", "an", "Entry", "object", ".", "The", "entry", "object", "will", "contain", "the", "hashcode", "array", "and", "length", "array", "of", "the", "substrings", "of", "this", "address" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/FilterListFastStr.java#L206-L277
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/CryptoHash.java
CryptoHash.hash
public static void hash(byte[] data, byte[] output) { int len = output.length; if (len == 0) return; int[] code = calculate(data); for (int outIndex = 0, codeIndex = 0, shift = 24; outIndex < len && codeIndex < 5; ++outIndex, shift -= 8) { output[outIndex] = (byte...
java
public static void hash(byte[] data, byte[] output) { int len = output.length; if (len == 0) return; int[] code = calculate(data); for (int outIndex = 0, codeIndex = 0, shift = 24; outIndex < len && codeIndex < 5; ++outIndex, shift -= 8) { output[outIndex] = (byte...
[ "public", "static", "void", "hash", "(", "byte", "[", "]", "data", ",", "byte", "[", "]", "output", ")", "{", "int", "len", "=", "output", ".", "length", ";", "if", "(", "len", "==", "0", ")", "return", ";", "int", "[", "]", "code", "=", "calcu...
Calculates the SHA-1 hash code of the input data and writes up to 20 bytes of it in the output byte array parameter. @param data the byte array to be hashed @param output output parameter for the calculated hash code
[ "Calculates", "the", "SHA", "-", "1", "hash", "code", "of", "the", "input", "data", "and", "writes", "up", "to", "20", "bytes", "of", "it", "in", "the", "output", "byte", "array", "parameter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.utils/src/com/ibm/ws/sib/utils/CryptoHash.java#L43-L57
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/view/ViewDeclarationLanguageBase.java
ViewDeclarationLanguageBase.createView
public UIViewRoot createView(FacesContext context, String viewId) { checkNull(context, "context"); //checkNull(viewId, "viewId"); try { viewId = calculateViewId(context, viewId); Application application = context.getApplication(); //...
java
public UIViewRoot createView(FacesContext context, String viewId) { checkNull(context, "context"); //checkNull(viewId, "viewId"); try { viewId = calculateViewId(context, viewId); Application application = context.getApplication(); //...
[ "public", "UIViewRoot", "createView", "(", "FacesContext", "context", ",", "String", "viewId", ")", "{", "checkNull", "(", "context", ",", "\"context\"", ")", ";", "//checkNull(viewId, \"viewId\");", "try", "{", "viewId", "=", "calculateViewId", "(", "context", ",...
Process the specification required algorithm that is generic to all PDL. @param context @param viewId
[ "Process", "the", "specification", "required", "algorithm", "that", "is", "generic", "to", "all", "PDL", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/view/ViewDeclarationLanguageBase.java#L41-L87
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.getDestinationName
private Object getDestinationName(String destinationType, Object destination) throws Exception { String methodName; if ("javax.jms.Queue".equals(destinationType)) methodName = "getQueueName"; else if ("javax.jms.Topic".equals(destinationType)) methodName = "getTopicName";...
java
private Object getDestinationName(String destinationType, Object destination) throws Exception { String methodName; if ("javax.jms.Queue".equals(destinationType)) methodName = "getQueueName"; else if ("javax.jms.Topic".equals(destinationType)) methodName = "getTopicName";...
[ "private", "Object", "getDestinationName", "(", "String", "destinationType", ",", "Object", "destination", ")", "throws", "Exception", "{", "String", "methodName", ";", "if", "(", "\"javax.jms.Queue\"", ".", "equals", "(", "destinationType", ")", ")", "methodName", ...
Returns the name of the queue or topic. @param destinationType type of destination (javax.jms.Queue or javax.jms.Topic). @param value instance of the above type. @return name of the queue or topic. @throws Exception if unable to obtain the destination name.
[ "Returns", "the", "name", "of", "the", "queue", "or", "topic", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L801-L815
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.getJCAContextProvider
JCAContextProvider getJCAContextProvider(Class<?> workContextClass) { JCAContextProvider provider = null; for (Class<?> cl = workContextClass; provider == null && cl != null; cl = cl.getSuperclass()) provider = contextProviders.getService(cl.getName()); return provider; }
java
JCAContextProvider getJCAContextProvider(Class<?> workContextClass) { JCAContextProvider provider = null; for (Class<?> cl = workContextClass; provider == null && cl != null; cl = cl.getSuperclass()) provider = contextProviders.getService(cl.getName()); return provider; }
[ "JCAContextProvider", "getJCAContextProvider", "(", "Class", "<", "?", ">", "workContextClass", ")", "{", "JCAContextProvider", "provider", "=", "null", ";", "for", "(", "Class", "<", "?", ">", "cl", "=", "workContextClass", ";", "provider", "==", "null", "&&"...
Returns the JCAContextProvider for the specified work context class. @param workContextClass a WorkContext implementation class or ExecutionContext. @return the JCAContextProvider for the specified work context class.
[ "Returns", "the", "JCAContextProvider", "for", "the", "specified", "work", "context", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L823-L829
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.getJCAContextProviderName
String getJCAContextProviderName(Class<?> workContextClass) { ServiceReference<JCAContextProvider> ref = null; for (Class<?> cl = workContextClass; ref == null && cl != null; cl = cl.getSuperclass()) ref = contextProviders.getReference(cl.getName()); String name = ref == null ? null...
java
String getJCAContextProviderName(Class<?> workContextClass) { ServiceReference<JCAContextProvider> ref = null; for (Class<?> cl = workContextClass; ref == null && cl != null; cl = cl.getSuperclass()) ref = contextProviders.getReference(cl.getName()); String name = ref == null ? null...
[ "String", "getJCAContextProviderName", "(", "Class", "<", "?", ">", "workContextClass", ")", "{", "ServiceReference", "<", "JCAContextProvider", ">", "ref", "=", "null", ";", "for", "(", "Class", "<", "?", ">", "cl", "=", "workContextClass", ";", "ref", "=="...
Returns the component name of the JCAContextProvider for the specified work context class. @param workContextClass a WorkContext implementation class or ExecutionContext. @return the component name of the JCAContextProvider.
[ "Returns", "the", "component", "name", "of", "the", "JCAContextProvider", "for", "the", "specified", "work", "context", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L837-L846
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.loadClass
public Class<?> loadClass(final String className) throws ClassNotFoundException, UnableToAdaptException, MalformedURLException { ClassLoader raClassLoader = resourceAdapterSvc.getClassLoader(); if (raClassLoader != null) { return Utils.priv.loadClass(raClassLoader, className); } else...
java
public Class<?> loadClass(final String className) throws ClassNotFoundException, UnableToAdaptException, MalformedURLException { ClassLoader raClassLoader = resourceAdapterSvc.getClassLoader(); if (raClassLoader != null) { return Utils.priv.loadClass(raClassLoader, className); } else...
[ "public", "Class", "<", "?", ">", "loadClass", "(", "final", "String", "className", ")", "throws", "ClassNotFoundException", ",", "UnableToAdaptException", ",", "MalformedURLException", "{", "ClassLoader", "raClassLoader", "=", "resourceAdapterSvc", ".", "getClassLoader...
Load a resource adapter class. If the resource adapter file that is specified in <resourceAdapter> exists, then classes will be loaded from the file. If the file does not exist, then classes will be loaded from the bundle of the component context. @param className name of the class. @return the class. @throws ClassN...
[ "Load", "a", "resource", "adapter", "class", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L914-L959
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.setContextProvider
protected void setContextProvider(ServiceReference<JCAContextProvider> ref) { contextProviders.putReference((String) ref.getProperty(JCAContextProvider.TYPE), ref); }
java
protected void setContextProvider(ServiceReference<JCAContextProvider> ref) { contextProviders.putReference((String) ref.getProperty(JCAContextProvider.TYPE), ref); }
[ "protected", "void", "setContextProvider", "(", "ServiceReference", "<", "JCAContextProvider", ">", "ref", ")", "{", "contextProviders", ".", "putReference", "(", "(", "String", ")", "ref", ".", "getProperty", "(", "JCAContextProvider", ".", "TYPE", ")", ",", "r...
Declarative Services method for setting a JCAContextProvider service reference @param ref reference to the service
[ "Declarative", "Services", "method", "for", "setting", "a", "JCAContextProvider", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L987-L989
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.stopResourceAdapter
private void stopResourceAdapter() { if (resourceAdapter != null) try { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "stop", resourceAdapter); ArrayList<ThreadContext> threadContext = startTask(raThreadContext...
java
private void stopResourceAdapter() { if (resourceAdapter != null) try { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "stop", resourceAdapter); ArrayList<ThreadContext> threadContext = startTask(raThreadContext...
[ "private", "void", "stopResourceAdapter", "(", ")", "{", "if", "(", "resourceAdapter", "!=", "null", ")", "try", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", ...
Stop the resource adapter if it has started.
[ "Stop", "the", "resource", "adapter", "if", "it", "has", "started", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L1067-L1109
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.captureRaThreadContext
@SuppressWarnings("unchecked") private ThreadContextDescriptor captureRaThreadContext(WSContextService contextSvc) { Map<String, String> execProps = new HashMap<String, String>(); execProps.put(WSContextService.DEFAULT_CONTEXT, WSContextService.ALL_CONTEXT_TYPES); execProps.put(WSContextServ...
java
@SuppressWarnings("unchecked") private ThreadContextDescriptor captureRaThreadContext(WSContextService contextSvc) { Map<String, String> execProps = new HashMap<String, String>(); execProps.put(WSContextService.DEFAULT_CONTEXT, WSContextService.ALL_CONTEXT_TYPES); execProps.put(WSContextServ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "ThreadContextDescriptor", "captureRaThreadContext", "(", "WSContextService", "contextSvc", ")", "{", "Map", "<", "String", ",", "String", ">", "execProps", "=", "new", "HashMap", "<", "String", ",", "...
Capture current thread context of the context service. @param contextSvc @return ThreadContextDescriptor
[ "Capture", "current", "thread", "context", "of", "the", "context", "service", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L1117-L1124
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.startTask
private ArrayList<ThreadContext> startTask(ThreadContextDescriptor raThreadContextDescriptor) { return raThreadContextDescriptor == null ? null : raThreadContextDescriptor.taskStarting(); }
java
private ArrayList<ThreadContext> startTask(ThreadContextDescriptor raThreadContextDescriptor) { return raThreadContextDescriptor == null ? null : raThreadContextDescriptor.taskStarting(); }
[ "private", "ArrayList", "<", "ThreadContext", ">", "startTask", "(", "ThreadContextDescriptor", "raThreadContextDescriptor", ")", "{", "return", "raThreadContextDescriptor", "==", "null", "?", "null", ":", "raThreadContextDescriptor", ".", "taskStarting", "(", ")", ";",...
Start task if there is a resource adapter context descriptor. @param raThreadContextDescriptor @return array of thread context, if any
[ "Start", "task", "if", "there", "is", "a", "resource", "adapter", "context", "descriptor", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L1132-L1134
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.stopTask
private void stopTask(ThreadContextDescriptor raThreadContextDescriptor, ArrayList<ThreadContext> threadContext) { if (raThreadContextDescriptor != null) raThreadContextDescriptor.taskStopping(threadContext); }
java
private void stopTask(ThreadContextDescriptor raThreadContextDescriptor, ArrayList<ThreadContext> threadContext) { if (raThreadContextDescriptor != null) raThreadContextDescriptor.taskStopping(threadContext); }
[ "private", "void", "stopTask", "(", "ThreadContextDescriptor", "raThreadContextDescriptor", ",", "ArrayList", "<", "ThreadContext", ">", "threadContext", ")", "{", "if", "(", "raThreadContextDescriptor", "!=", "null", ")", "raThreadContextDescriptor", ".", "taskStopping",...
Stop the resource adapter context descriptor task if one was started. @param raThreadContextDescriptor @param threadContext
[ "Stop", "the", "resource", "adapter", "context", "descriptor", "task", "if", "one", "was", "started", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L1142-L1145
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java
BootstrapContextImpl.unsetContextProvider
protected void unsetContextProvider(ServiceReference<JCAContextProvider> ref) { contextProviders.removeReference((String) ref.getProperty(JCAContextProvider.TYPE), ref); }
java
protected void unsetContextProvider(ServiceReference<JCAContextProvider> ref) { contextProviders.removeReference((String) ref.getProperty(JCAContextProvider.TYPE), ref); }
[ "protected", "void", "unsetContextProvider", "(", "ServiceReference", "<", "JCAContextProvider", ">", "ref", ")", "{", "contextProviders", ".", "removeReference", "(", "(", "String", ")", "ref", ".", "getProperty", "(", "JCAContextProvider", ".", "TYPE", ")", ",",...
Declarative Services method for unsetting a JCAContextProvider service reference @param ref reference to the service
[ "Declarative", "Services", "method", "for", "unsetting", "a", "JCAContextProvider", "service", "reference" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca/src/com/ibm/ws/jca/internal/BootstrapContextImpl.java#L1213-L1215
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java
WebAuthenticatorProxy.getAuthenticatorForFailOver
private WebAuthenticator getAuthenticatorForFailOver(String authType, WebRequest webRequest) { WebAuthenticator authenticator = null; if (LoginConfiguration.FORM.equals(authType)) { authenticator = createFormLoginAuthenticator(webRequest); } else if (LoginConfiguration.BASIC.equals(a...
java
private WebAuthenticator getAuthenticatorForFailOver(String authType, WebRequest webRequest) { WebAuthenticator authenticator = null; if (LoginConfiguration.FORM.equals(authType)) { authenticator = createFormLoginAuthenticator(webRequest); } else if (LoginConfiguration.BASIC.equals(a...
[ "private", "WebAuthenticator", "getAuthenticatorForFailOver", "(", "String", "authType", ",", "WebRequest", "webRequest", ")", "{", "WebAuthenticator", "authenticator", "=", "null", ";", "if", "(", "LoginConfiguration", ".", "FORM", ".", "equals", "(", "authType", "...
Get the appropriate Authenticator based on the authType @param authType the auth type, either FORM or BASIC @param the WebRequest @return The WebAuthenticator or {@code null} if the authType is unknown
[ "Get", "the", "appropriate", "Authenticator", "based", "on", "the", "authType" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java#L115-L123
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java
WebAuthenticatorProxy.appHasWebXMLFormLogin
private boolean appHasWebXMLFormLogin(WebRequest webRequest) { return webRequest.getFormLoginConfiguration() != null && webRequest.getFormLoginConfiguration().getLoginPage() != null && webRequest.getFormLoginConfiguration().getErrorPage() != null; }
java
private boolean appHasWebXMLFormLogin(WebRequest webRequest) { return webRequest.getFormLoginConfiguration() != null && webRequest.getFormLoginConfiguration().getLoginPage() != null && webRequest.getFormLoginConfiguration().getErrorPage() != null; }
[ "private", "boolean", "appHasWebXMLFormLogin", "(", "WebRequest", "webRequest", ")", "{", "return", "webRequest", ".", "getFormLoginConfiguration", "(", ")", "!=", "null", "&&", "webRequest", ".", "getFormLoginConfiguration", "(", ")", ".", "getLoginPage", "(", ")",...
Determines if the application has a FORM login configuration in its web.xml @param webRequest @return {@code true} if the application's web.xml has a valid form login configuration.
[ "Determines", "if", "the", "application", "has", "a", "FORM", "login", "configuration", "in", "its", "web", ".", "xml" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java#L132-L136
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java
WebAuthenticatorProxy.globalWebAppSecurityConfigHasFormLogin
private boolean globalWebAppSecurityConfigHasFormLogin() { WebAppSecurityConfig globalConfig = WebAppSecurityCollaboratorImpl.getGlobalWebAppSecurityConfig(); return globalConfig != null && globalConfig.getLoginFormURL() != null; }
java
private boolean globalWebAppSecurityConfigHasFormLogin() { WebAppSecurityConfig globalConfig = WebAppSecurityCollaboratorImpl.getGlobalWebAppSecurityConfig(); return globalConfig != null && globalConfig.getLoginFormURL() != null; }
[ "private", "boolean", "globalWebAppSecurityConfigHasFormLogin", "(", ")", "{", "WebAppSecurityConfig", "globalConfig", "=", "WebAppSecurityCollaboratorImpl", ".", "getGlobalWebAppSecurityConfig", "(", ")", ";", "return", "globalConfig", "!=", "null", "&&", "globalConfig", "...
Determine if the global WebAppSecurityConfig has a form login page. @return {@code true} if the global FORM login page is set
[ "Determine", "if", "the", "global", "WebAppSecurityConfig", "has", "a", "form", "login", "page", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java#L143-L147
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java
WebAuthenticatorProxy.getWebAuthenticator
public WebAuthenticator getWebAuthenticator(WebRequest webRequest) { String authMech = webAppSecurityConfig.getOverrideHttpAuthMethod(); if (authMech != null && authMech.equals("CLIENT_CERT")) { return createCertificateLoginAuthenticator(); } SecurityMetadata securityMetadata...
java
public WebAuthenticator getWebAuthenticator(WebRequest webRequest) { String authMech = webAppSecurityConfig.getOverrideHttpAuthMethod(); if (authMech != null && authMech.equals("CLIENT_CERT")) { return createCertificateLoginAuthenticator(); } SecurityMetadata securityMetadata...
[ "public", "WebAuthenticator", "getWebAuthenticator", "(", "WebRequest", "webRequest", ")", "{", "String", "authMech", "=", "webAppSecurityConfig", ".", "getOverrideHttpAuthMethod", "(", ")", ";", "if", "(", "authMech", "!=", "null", "&&", "authMech", ".", "equals", ...
Determine the correct WebAuthenticator to use based on the authentication method. If there authentication method is not specified in the web.xml file, then we will use BasicAuth as default. @param webRequest @return The correct WebAuthenticator to handle the webRequest, or {@code null} if it could not be created.
[ "Determine", "the", "correct", "WebAuthenticator", "to", "use", "based", "on", "the", "authentication", "method", ".", "If", "there", "authentication", "method", "is", "not", "specified", "in", "the", "web", ".", "xml", "file", "then", "we", "will", "use", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java#L192-L209
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java
WebAuthenticatorProxy.getBasicAuthAuthenticator
public BasicAuthAuthenticator getBasicAuthAuthenticator() { try { return createBasicAuthenticator(); } catch (RegistryException e) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "RegistryException while trying to create BasicAuth...
java
public BasicAuthAuthenticator getBasicAuthAuthenticator() { try { return createBasicAuthenticator(); } catch (RegistryException e) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "RegistryException while trying to create BasicAuth...
[ "public", "BasicAuthAuthenticator", "getBasicAuthAuthenticator", "(", ")", "{", "try", "{", "return", "createBasicAuthenticator", "(", ")", ";", "}", "catch", "(", "RegistryException", "e", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")...
Create an instance of BasicAuthAuthenticator. @return A BasicAuthAuthenticator or {@code null} if the it could not be created.
[ "Create", "an", "instance", "of", "BasicAuthAuthenticator", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/WebAuthenticatorProxy.java#L216-L225
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javaee.ddmodel.wsbnd/src/com/ibm/ws/javaee/ddmodel/wsbnd/impl/HttpPublishingType.java
HttpPublishingType.handleAttribute
@Override public boolean handleAttribute(DDParser parser, String nsURI, String localName, int index) throws ParseException { boolean result = false; if (nsURI != null) { return result; } if (CONTEXT_ROOT_ATTRIBUTE_NAME.equals(localName)) { this.contextRoot =...
java
@Override public boolean handleAttribute(DDParser parser, String nsURI, String localName, int index) throws ParseException { boolean result = false; if (nsURI != null) { return result; } if (CONTEXT_ROOT_ATTRIBUTE_NAME.equals(localName)) { this.contextRoot =...
[ "@", "Override", "public", "boolean", "handleAttribute", "(", "DDParser", "parser", ",", "String", "nsURI", ",", "String", "localName", ",", "int", "index", ")", "throws", "ParseException", "{", "boolean", "result", "=", "false", ";", "if", "(", "nsURI", "!=...
parse the context-root attribute defined in the element.
[ "parse", "the", "context", "-", "root", "attribute", "defined", "in", "the", "element", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmodel.wsbnd/src/com/ibm/ws/javaee/ddmodel/wsbnd/impl/HttpPublishingType.java#L47-L62
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimer.java
PersistentTimer.isPersistent
@Override public boolean isPersistent() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "isPersistent: " + this); // Determine if the calling bean is in a state that allows timer service // method acce...
java
@Override public boolean isPersistent() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "isPersistent: " + this); // Determine if the calling bean is in a state that allows timer service // method acce...
[ "@", "Override", "public", "boolean", "isPersistent", "(", ")", "{", "final", "boolean", "isTraceOn", "=", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", ";", "if", "(", "isTraceOn", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "en...
Query whether this timer has persistent semantics. @return true if this timer has persistent guarantees. @throws IllegalStateException If this method is invoked while the instance is in a state that does not allow access to this method. @throws NoSuchObjectLocalException If invoked on a timer that has expired or has b...
[ "Query", "whether", "this", "timer", "has", "persistent", "semantics", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/PersistentTimer.java#L275-L292
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java
Entry.getNext
public Entry getNext() { checkEntryParent(); Entry entry = null; if(!isLast()) { entry = next; } return entry; }
java
public Entry getNext() { checkEntryParent(); Entry entry = null; if(!isLast()) { entry = next; } return entry; }
[ "public", "Entry", "getNext", "(", ")", "{", "checkEntryParent", "(", ")", ";", "Entry", "entry", "=", "null", ";", "if", "(", "!", "isLast", "(", ")", ")", "{", "entry", "=", "next", ";", "}", "return", "entry", ";", "}" ]
Unsynchronized. Get the next entry in the list. @return the next entry in the list
[ "Unsynchronized", ".", "Get", "the", "next", "entry", "in", "the", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java#L70-L82
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java
Entry.insertAfter
Entry insertAfter(Entry newEntry) { if (tc.isEntryEnabled()) SibTr.entry( tc, "insertAfter", new Object[] { newEntry }); checkEntryParent(); //make sure that the new entry is not already in a list if(newEntry.parentList == null) { //get the next entry ...
java
Entry insertAfter(Entry newEntry) { if (tc.isEntryEnabled()) SibTr.entry( tc, "insertAfter", new Object[] { newEntry }); checkEntryParent(); //make sure that the new entry is not already in a list if(newEntry.parentList == null) { //get the next entry ...
[ "Entry", "insertAfter", "(", "Entry", "newEntry", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"insertAfter\"", ",", "new", "Object", "[", "]", "{", "newEntry", "}", ")", ";", "checkEntryPare...
Unsynchronized. Insert a new entry in after this one. @param newEntry The entry to be inserted after this one
[ "Unsynchronized", ".", "Insert", "a", "new", "entry", "in", "after", "this", "one", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java#L89-L155
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java
Entry.remove
Entry remove() { if (tc.isEntryEnabled()) SibTr.entry(tc, "remove"); checkEntryParent(); Entry removedEntry = null; Entry prevEntry = getPrevious(); if(prevEntry != null) { //link the previous entry to the next one prevEntry.next = next; } Entry nextEntry =...
java
Entry remove() { if (tc.isEntryEnabled()) SibTr.entry(tc, "remove"); checkEntryParent(); Entry removedEntry = null; Entry prevEntry = getPrevious(); if(prevEntry != null) { //link the previous entry to the next one prevEntry.next = next; } Entry nextEntry =...
[ "Entry", "remove", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"remove\"", ")", ";", "checkEntryParent", "(", ")", ";", "Entry", "removedEntry", "=", "null", ";", "Entry", "prevEntry", ...
Unsynchronized. Removes this entry from the list.
[ "Unsynchronized", ".", "Removes", "this", "entry", "from", "the", "list", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java#L160-L206
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java
Entry.checkEntryParent
void checkEntryParent() { if(parentList == null) { SIErrorException e = new SIErrorException( nls.getFormattedMessage( "INTERNAL_MESSAGING_ERROR_CWSIP0001", new Object[] { "com.ibm.ws.sib.processor.utils.linkedlist.Entry", "1:239:1.3" }, null...
java
void checkEntryParent() { if(parentList == null) { SIErrorException e = new SIErrorException( nls.getFormattedMessage( "INTERNAL_MESSAGING_ERROR_CWSIP0001", new Object[] { "com.ibm.ws.sib.processor.utils.linkedlist.Entry", "1:239:1.3" }, null...
[ "void", "checkEntryParent", "(", ")", "{", "if", "(", "parentList", "==", "null", ")", "{", "SIErrorException", "e", "=", "new", "SIErrorException", "(", "nls", ".", "getFormattedMessage", "(", "\"INTERNAL_MESSAGING_ERROR_CWSIP0001\"", ",", "new", "Object", "[", ...
Unsynchronized. Check that the parent list is not null and therefore the entry is still valid. Otherwise, throw a runtime exception
[ "Unsynchronized", ".", "Check", "that", "the", "parent", "list", "is", "not", "null", "and", "therefore", "the", "entry", "is", "still", "valid", ".", "Otherwise", "throw", "a", "runtime", "exception" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/linkedlist2/Entry.java#L212-L242
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2Map.java
H2Map.put
@Override public Object put(Object key, Object value) { return localMap.put(key, value); }
java
@Override public Object put(Object key, Object value) { return localMap.put(key, value); }
[ "@", "Override", "public", "Object", "put", "(", "Object", "key", ",", "Object", "value", ")", "{", "return", "localMap", ".", "put", "(", "key", ",", "value", ")", ";", "}" ]
2. As with the "put", may need methods that use the common map for any of these other methods below, but assume not for now
[ "2", ".", "As", "with", "the", "put", "may", "need", "methods", "that", "use", "the", "common", "map", "for", "any", "of", "these", "other", "methods", "below", "but", "assume", "not", "for", "now" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/h2internal/H2Map.java#L54-L57
train
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_SharedRendererUtils.java
_SharedRendererUtils.getValueTypeConverter
static Converter getValueTypeConverter(FacesContext facesContext, UISelectMany component) { Converter converter = null; Object valueTypeAttr = component.getAttributes().get(VALUE_TYPE_KEY); if (valueTypeAttr != null) { // treat the valueType attribute exactly lik...
java
static Converter getValueTypeConverter(FacesContext facesContext, UISelectMany component) { Converter converter = null; Object valueTypeAttr = component.getAttributes().get(VALUE_TYPE_KEY); if (valueTypeAttr != null) { // treat the valueType attribute exactly lik...
[ "static", "Converter", "getValueTypeConverter", "(", "FacesContext", "facesContext", ",", "UISelectMany", "component", ")", "{", "Converter", "converter", "=", "null", ";", "Object", "valueTypeAttr", "=", "component", ".", "getAttributes", "(", ")", ".", "get", "(...
Uses the valueType attribute of the given UISelectMany component to get a by-type converter. @param facesContext @param component @return
[ "Uses", "the", "valueType", "attribute", "of", "the", "given", "UISelectMany", "component", "to", "get", "a", "by", "-", "type", "converter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/component/_SharedRendererUtils.java#L404-L438
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/MQSITopicSyntaxChecker.java
MQSITopicSyntaxChecker.checkTopicNotNull
private final void checkTopicNotNull(String topic) throws InvalidTopicSyntaxException { if (topic == null) throw new InvalidTopicSyntaxException( NLS.format( "INVALID_TOPIC_ERROR_CWSIH0005", new Object[] { topic })); }
java
private final void checkTopicNotNull(String topic) throws InvalidTopicSyntaxException { if (topic == null) throw new InvalidTopicSyntaxException( NLS.format( "INVALID_TOPIC_ERROR_CWSIH0005", new Object[] { topic })); }
[ "private", "final", "void", "checkTopicNotNull", "(", "String", "topic", ")", "throws", "InvalidTopicSyntaxException", "{", "if", "(", "topic", "==", "null", ")", "throw", "new", "InvalidTopicSyntaxException", "(", "NLS", ".", "format", "(", "\"INVALID_TOPIC_ERROR_C...
null topic check @param topic The topic to be checked. @throws InvalidTopicSyntaxException if the topic is null
[ "null", "topic", "check" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/MQSITopicSyntaxChecker.java#L100-L108
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieHeaderByteParser.java
CookieHeaderByteParser.matchAndParse
private CookieData matchAndParse(byte[] data, HeaderKeys hdr) { int pos = this.bytePosition; int start = -1; int stop = -1; for (; pos < data.length; pos++) { byte b = data[pos]; // found the delimiter for the name */ if ('=' == b) { ...
java
private CookieData matchAndParse(byte[] data, HeaderKeys hdr) { int pos = this.bytePosition; int start = -1; int stop = -1; for (; pos < data.length; pos++) { byte b = data[pos]; // found the delimiter for the name */ if ('=' == b) { ...
[ "private", "CookieData", "matchAndParse", "(", "byte", "[", "]", "data", ",", "HeaderKeys", "hdr", ")", "{", "int", "pos", "=", "this", ".", "bytePosition", ";", "int", "start", "=", "-", "1", ";", "int", "stop", "=", "-", "1", ";", "for", "(", ";"...
This method matches the cookie attribute header with the pre-established Cookie header types. If a match is established the appropriate Cookie header data type is returned. @param data The header-value byte array passed down by parse @param hdr @return The appropriate CookieData type if a match is found for the header...
[ "This", "method", "matches", "the", "cookie", "attribute", "header", "with", "the", "pre", "-", "established", "Cookie", "header", "types", ".", "If", "a", "match", "is", "established", "the", "appropriate", "Cookie", "header", "data", "type", "is", "returned"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieHeaderByteParser.java#L151-L237
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieHeaderByteParser.java
CookieHeaderByteParser.parseValue
private void parseValue(byte[] data, CookieData token) { int start = -1; int stop = -1; int pos = this.bytePosition; int num_quotes = 0; // cycle through each byte until we hit a delimiter or end of data for (; pos < data.length; pos++) { byte b = data[pos];...
java
private void parseValue(byte[] data, CookieData token) { int start = -1; int stop = -1; int pos = this.bytePosition; int num_quotes = 0; // cycle through each byte until we hit a delimiter or end of data for (; pos < data.length; pos++) { byte b = data[pos];...
[ "private", "void", "parseValue", "(", "byte", "[", "]", "data", ",", "CookieData", "token", ")", "{", "int", "start", "=", "-", "1", ";", "int", "stop", "=", "-", "1", ";", "int", "pos", "=", "this", ".", "bytePosition", ";", "int", "num_quotes", "...
This method parses the cookie attribute value. @param data The value byte array passed down by parse method @param token The type of the CookieData attribute
[ "This", "method", "parses", "the", "cookie", "attribute", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieHeaderByteParser.java#L247-L321
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/client/jose4j/util/Jose4jUtil.java
Jose4jUtil.parseJwtWithoutValidation
protected static JwtContext parseJwtWithoutValidation(String jwtString) throws Exception { JwtConsumer firstPassJwtConsumer = new JwtConsumerBuilder() .setSkipAllValidators() .setDisableRequireSignature() .setSkipSignatureVerification() .build(); ...
java
protected static JwtContext parseJwtWithoutValidation(String jwtString) throws Exception { JwtConsumer firstPassJwtConsumer = new JwtConsumerBuilder() .setSkipAllValidators() .setDisableRequireSignature() .setSkipSignatureVerification() .build(); ...
[ "protected", "static", "JwtContext", "parseJwtWithoutValidation", "(", "String", "jwtString", ")", "throws", "Exception", "{", "JwtConsumer", "firstPassJwtConsumer", "=", "new", "JwtConsumerBuilder", "(", ")", ".", "setSkipAllValidators", "(", ")", ".", "setDisableRequi...
Just parse without validation for now
[ "Just", "parse", "without", "validation", "for", "now" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/client/jose4j/util/Jose4jUtil.java#L283-L294
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/admin/JsAdminService.java
JsAdminService.isValidJmxPropertyValue
public static boolean isValidJmxPropertyValue(String s) { if ((s.indexOf(":") >= 0) || (s.indexOf("*") >= 0) || (s.indexOf('"') >= 0) || (s.indexOf("?") >= 0) || (s.indexOf(",") >= 0) || (s.indexOf("=") >= 0)) { return false; } else...
java
public static boolean isValidJmxPropertyValue(String s) { if ((s.indexOf(":") >= 0) || (s.indexOf("*") >= 0) || (s.indexOf('"') >= 0) || (s.indexOf("?") >= 0) || (s.indexOf(",") >= 0) || (s.indexOf("=") >= 0)) { return false; } else...
[ "public", "static", "boolean", "isValidJmxPropertyValue", "(", "String", "s", ")", "{", "if", "(", "(", "s", ".", "indexOf", "(", "\":\"", ")", ">=", "0", ")", "||", "(", "s", ".", "indexOf", "(", "\"*\"", ")", ">=", "0", ")", "||", "(", "s", "."...
Does the specified string contain characters valid in a JMX key property? @param s the string to be checked @return boolean if true, indicates the string is valid, otherwise false
[ "Does", "the", "specified", "string", "contain", "characters", "valid", "in", "a", "JMX", "key", "property?" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/admin/JsAdminService.java#L38-L48
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/MethodResult.java
MethodResult.success
public static <R> MethodResult<R> success(R result) { return new MethodResult<>(result, null, false); }
java
public static <R> MethodResult<R> success(R result) { return new MethodResult<>(result, null, false); }
[ "public", "static", "<", "R", ">", "MethodResult", "<", "R", ">", "success", "(", "R", "result", ")", "{", "return", "new", "MethodResult", "<>", "(", "result", ",", "null", ",", "false", ")", ";", "}" ]
Create a MethodResult for a method which returned a value @param result the value returned by the method @return the new MethodResult
[ "Create", "a", "MethodResult", "for", "a", "method", "which", "returned", "a", "value" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/MethodResult.java#L34-L36
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/MethodResult.java
MethodResult.failure
public static <R> MethodResult<R> failure(Throwable failure) { return new MethodResult<>(null, failure, false); }
java
public static <R> MethodResult<R> failure(Throwable failure) { return new MethodResult<>(null, failure, false); }
[ "public", "static", "<", "R", ">", "MethodResult", "<", "R", ">", "failure", "(", "Throwable", "failure", ")", "{", "return", "new", "MethodResult", "<>", "(", "null", ",", "failure", ",", "false", ")", ";", "}" ]
Create a MethodResult for a method which threw an exception @param failure the exception thrown by the method @return the new MethodResult
[ "Create", "a", "MethodResult", "for", "a", "method", "which", "threw", "an", "exception" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/MethodResult.java#L44-L46
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/MethodResult.java
MethodResult.internalFailure
public static <R> MethodResult<R> internalFailure(Throwable failure) { return new MethodResult<R>(null, failure, true); }
java
public static <R> MethodResult<R> internalFailure(Throwable failure) { return new MethodResult<R>(null, failure, true); }
[ "public", "static", "<", "R", ">", "MethodResult", "<", "R", ">", "internalFailure", "(", "Throwable", "failure", ")", "{", "return", "new", "MethodResult", "<", "R", ">", "(", "null", ",", "failure", ",", "true", ")", ";", "}" ]
Create a MethodResult for an internal exception which occurred while trying to run a method @param failure the internal exception @return the new MethodResult
[ "Create", "a", "MethodResult", "for", "an", "internal", "exception", "which", "occurred", "while", "trying", "to", "run", "a", "method" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/impl/MethodResult.java#L54-L56
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/WeakValueHashMap.java
WeakValueHashMap.clearUnreferencedEntries
private final void clearUnreferencedEntries() { for (WeakEntry entry = (WeakEntry) queue.poll(); entry != null; entry = (WeakEntry) queue.poll()) { WeakEntry removedEntry = (WeakEntry) super.remove(entry.key); // The entry for this key may have been replaced with another one after it...
java
private final void clearUnreferencedEntries() { for (WeakEntry entry = (WeakEntry) queue.poll(); entry != null; entry = (WeakEntry) queue.poll()) { WeakEntry removedEntry = (WeakEntry) super.remove(entry.key); // The entry for this key may have been replaced with another one after it...
[ "private", "final", "void", "clearUnreferencedEntries", "(", ")", "{", "for", "(", "WeakEntry", "entry", "=", "(", "WeakEntry", ")", "queue", ".", "poll", "(", ")", ";", "entry", "!=", "null", ";", "entry", "=", "(", "WeakEntry", ")", "queue", ".", "po...
Remove the unreferenced Entries from the map.
[ "Remove", "the", "unreferenced", "Entries", "from", "the", "map", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/WeakValueHashMap.java#L34-L44
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl.attachBifurcatedConsumer
protected void attachBifurcatedConsumer(BifurcatedConsumerSessionImpl consumer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "attachBifurcatedConsumer", consumer); // Create a bifurcated list if required if (_bifurcatedConsumers == null) ...
java
protected void attachBifurcatedConsumer(BifurcatedConsumerSessionImpl consumer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "attachBifurcatedConsumer", consumer); // Create a bifurcated list if required if (_bifurcatedConsumers == null) ...
[ "protected", "void", "attachBifurcatedConsumer", "(", "BifurcatedConsumerSessionImpl", "consumer", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",...
Adds the bifurcated consumer to the list of associated consumers. @param consumer
[ "Adds", "the", "bifurcated", "consumer", "to", "the", "list", "of", "associated", "consumers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L349-L371
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl.removeBifurcatedConsumer
protected void removeBifurcatedConsumer(BifurcatedConsumerSessionImpl consumer) throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeBifurcatedConsumer", consumer); synchronized (_bifurcatedConsum...
java
protected void removeBifurcatedConsumer(BifurcatedConsumerSessionImpl consumer) throws SIResourceException, SISessionDroppedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeBifurcatedConsumer", consumer); synchronized (_bifurcatedConsum...
[ "protected", "void", "removeBifurcatedConsumer", "(", "BifurcatedConsumerSessionImpl", "consumer", ")", "throws", "SIResourceException", ",", "SISessionDroppedException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnab...
Removes the bifurcated consumer to the list of associated consumers. @param consumer @throws SISessionDroppedException
[ "Removes", "the", "bifurcated", "consumer", "to", "the", "list", "of", "associated", "consumers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L379-L394
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl._close
void _close() throws SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "_close"); try { //close the LCP _localConsume...
java
void _close() throws SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "_close"); try { //close the LCP _localConsume...
[ "void", "_close", "(", ")", "throws", "SIResourceException", ",", "SIConnectionLostException", ",", "SIErrorException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry...
Performs any operations required to close this consumer session, but it does not modify any references which the connection might have.
[ "Performs", "any", "operations", "required", "to", "close", "this", "consumer", "session", "but", "it", "does", "not", "modify", "any", "references", "which", "the", "connection", "might", "have", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L444-L467
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl.checkNotClosed
void checkNotClosed() throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkNotClosed"); try { synchronized (_localConsumerPoint) { _localConsumerPoint.checkNotClosed(...
java
void checkNotClosed() throws SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkNotClosed"); try { synchronized (_localConsumerPoint) { _localConsumerPoint.checkNotClosed(...
[ "void", "checkNotClosed", "(", ")", "throws", "SISessionUnavailableException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"checkNotClosed\"", ...
Check that this consumer session is not closed. @throws SIObjectClosedException
[ "Check", "that", "this", "consumer", "session", "is", "not", "closed", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L474-L498
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl.getConnectionInternal
protected SICoreConnection getConnectionInternal() { if (TraceComponent.isAnyTracingEnabled() && CoreSPIConsumerSession.tc.isEntryEnabled()) { SibTr.entry(CoreSPIConsumerSession.tc, "getConnectionInternal", this); SibTr.exit(CoreSPIConsumerSession.tc, "getConnectionInternal",...
java
protected SICoreConnection getConnectionInternal() { if (TraceComponent.isAnyTracingEnabled() && CoreSPIConsumerSession.tc.isEntryEnabled()) { SibTr.entry(CoreSPIConsumerSession.tc, "getConnectionInternal", this); SibTr.exit(CoreSPIConsumerSession.tc, "getConnectionInternal",...
[ "protected", "SICoreConnection", "getConnectionInternal", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "CoreSPIConsumerSession", ".", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "CoreSPI...
Internal getter method which bypasses the not closed check. @return
[ "Internal", "getter", "method", "which", "bypasses", "the", "not", "closed", "check", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L664-L673
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl.getIdInternal
public long getIdInternal() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getIdInternal"); SibTr.exit(tc, "getIdInternal", new Long(_consumerId)); } return _consumerId; }
java
public long getIdInternal() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getIdInternal"); SibTr.exit(tc, "getIdInternal", new Long(_consumerId)); } return _consumerId; }
[ "public", "long", "getIdInternal", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getIdInternal\"", ")", ";", "SibTr", "."...
Gets the id for the consumer without any checking. @return the id for this consumer session
[ "Gets", "the", "id", "for", "the", "consumer", "without", "any", "checking", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L895-L903
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java
ConsumerSessionImpl.setId
void setId(long id) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setId", new Long(id)); _consumerId = id; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setId"); }
java
void setId(long id) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setId", new Long(id)); _consumerId = id; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "setId"); }
[ "void", "setId", "(", "long", "id", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"setId\"", ",", "new", "Long", "(", "id", ")",...
Sets the id for this consumer. @param id
[ "Sets", "the", "id", "for", "this", "consumer", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/ConsumerSessionImpl.java#L945-L954
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/Matching.java
Matching.createFactoryInstance
private static void createFactoryInstance() { if (tc.isEntryEnabled()) tc.entry(cclass, "createFactoryInstance"); try { Class cls = Class.forName(MATCHING_CLASS_NAME); instance = (Matching) cls.newInstance(); } catch (Exception e) { // No FFDC Code Needed. // FFD...
java
private static void createFactoryInstance() { if (tc.isEntryEnabled()) tc.entry(cclass, "createFactoryInstance"); try { Class cls = Class.forName(MATCHING_CLASS_NAME); instance = (Matching) cls.newInstance(); } catch (Exception e) { // No FFDC Code Needed. // FFD...
[ "private", "static", "void", "createFactoryInstance", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "tc", ".", "entry", "(", "cclass", ",", "\"createFactoryInstance\"", ")", ";", "try", "{", "Class", "cls", "=", "Class", ".", "for...
Create the Matching instance.
[ "Create", "the", "Matching", "instance", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/Matching.java#L62-L88
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/Matching.java
Matching.getInstance
public static Matching getInstance() throws Exception { if (tc.isEntryEnabled()) tc.entry(cclass, "getInstance"); if (instance == null) throw createException; if (tc.isEntryEnabled()) tc.exit(cclass, "getInstance", "instance=" + instance); return instance; }
java
public static Matching getInstance() throws Exception { if (tc.isEntryEnabled()) tc.entry(cclass, "getInstance"); if (instance == null) throw createException; if (tc.isEntryEnabled()) tc.exit(cclass, "getInstance", "instance=" + instance); return instance; }
[ "public", "static", "Matching", "getInstance", "(", ")", "throws", "Exception", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "tc", ".", "entry", "(", "cclass", ",", "\"getInstance\"", ")", ";", "if", "(", "instance", "==", "null", ")", "...
Obtain a reference to the singleton Matching instance @return The singleton instance of the factory class
[ "Obtain", "a", "reference", "to", "the", "singleton", "Matching", "instance" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/Matching.java#L96-L108
train
OpenLiberty/open-liberty
dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/PolicyTaskFutureImpl.java
PolicyTaskFutureImpl.abort
final boolean abort(boolean removeFromQueue, Throwable cause) { if (removeFromQueue && executor.queue.remove(this)) executor.maxQueueSizeConstraint.release(); if (nsAcceptEnd == nsAcceptBegin - 1) // currently unset nsRunEnd = nsQueueEnd = nsAcceptEnd = System.nanoTime(); ...
java
final boolean abort(boolean removeFromQueue, Throwable cause) { if (removeFromQueue && executor.queue.remove(this)) executor.maxQueueSizeConstraint.release(); if (nsAcceptEnd == nsAcceptBegin - 1) // currently unset nsRunEnd = nsQueueEnd = nsAcceptEnd = System.nanoTime(); ...
[ "final", "boolean", "abort", "(", "boolean", "removeFromQueue", ",", "Throwable", "cause", ")", "{", "if", "(", "removeFromQueue", "&&", "executor", ".", "queue", ".", "remove", "(", "this", ")", ")", "executor", ".", "maxQueueSizeConstraint", ".", "release", ...
Invoked to abort a task. @param removeFromQueue indicates whether we should first remove the task from the executor's queue. @param cause the cause of the abort. @return true if the future transitioned to ABORTED state.
[ "Invoked", "to", "abort", "a", "task", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/PolicyTaskFutureImpl.java#L394-L423
train
OpenLiberty/open-liberty
dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/PolicyTaskFutureImpl.java
PolicyTaskFutureImpl.accept
@Trivial final void accept(boolean runOnSubmitter) { long time; nsAcceptEnd = time = System.nanoTime(); if (runOnSubmitter) nsQueueEnd = time; state.setSubmitted(); }
java
@Trivial final void accept(boolean runOnSubmitter) { long time; nsAcceptEnd = time = System.nanoTime(); if (runOnSubmitter) nsQueueEnd = time; state.setSubmitted(); }
[ "@", "Trivial", "final", "void", "accept", "(", "boolean", "runOnSubmitter", ")", "{", "long", "time", ";", "nsAcceptEnd", "=", "time", "=", "System", ".", "nanoTime", "(", ")", ";", "if", "(", "runOnSubmitter", ")", "nsQueueEnd", "=", "time", ";", "stat...
Invoked to indicate the task was successfully submitted. @param runOnSubmitter true if accepted to run immediately on the submitter's thread. False if accepted to the queue.
[ "Invoked", "to", "indicate", "the", "task", "was", "successfully", "submitted", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/PolicyTaskFutureImpl.java#L430-L437
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.config.1.4/src/com/ibm/ws/microprofile/config14/impl/PropertyResolverUtil.java
PropertyResolverUtil.resolve
public static String resolve(WebSphereConfig14 config, String raw) { String resolved = raw; StringCharacterIterator itr = new StringCharacterIterator(resolved); int startCount = 0; //how many times have we encountered the start token (EVAL_START_TOKEN) without it being matched by the end token (...
java
public static String resolve(WebSphereConfig14 config, String raw) { String resolved = raw; StringCharacterIterator itr = new StringCharacterIterator(resolved); int startCount = 0; //how many times have we encountered the start token (EVAL_START_TOKEN) without it being matched by the end token (...
[ "public", "static", "String", "resolve", "(", "WebSphereConfig14", "config", ",", "String", "raw", ")", "{", "String", "resolved", "=", "raw", ";", "StringCharacterIterator", "itr", "=", "new", "StringCharacterIterator", "(", "resolved", ")", ";", "int", "startC...
This method takes a raw value which may contain nested properties and resolves those properties into their actual values. e.g. given the following properties in the config greeting = hello text = my name is ${name} name = bob if the raw string was "${greeting}, ${text}" then the resulting string would be "hello, my ...
[ "This", "method", "takes", "a", "raw", "value", "which", "may", "contain", "nested", "properties", "and", "resolves", "those", "properties", "into", "their", "actual", "values", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.4/src/com/ibm/ws/microprofile/config14/impl/PropertyResolverUtil.java#L36-L112
train