|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jca.core.connectionmanager.AbstractConnectionManager
public abstract class AbstractConnectionManager

AbstractConnectionManager.
| Field Summary | |
|---|---|
protected boolean |
trace
Log trace |
| Constructor Summary | |
|---|---|
protected |
AbstractConnectionManager()
Creates a new instance of connection manager. |
| Method Summary | |
|---|---|
Object |
allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf,
javax.resource.spi.ConnectionRequestInfo cri)
|
void |
disconnect(Collection<ConnectionRecord> conRecords,
Set<String> unsharableResources)
Notification to disconnect connections |
protected void |
disconnectManagedConnection(ConnectionListener cl)
Invoked when a managed connection is no longer associated |
int |
getAllocationRetry()
Get the number of allocation retries |
long |
getAllocationRetryWaitMillis()
Get the wait time between each allocation retry |
org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager |
getCachedConnectionManager()
Gets cached connection manager. |
org.jboss.jca.common.api.metadata.common.FlushStrategy |
getFlushStrategy()
Get the flush strategy |
String |
getJndiName()
Gets jndi name. |
protected abstract CoreLogger |
getLogger()
Get the logger. |
ConnectionListener |
getManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Public for use in testing pooling functionality by itself. |
protected ConnectionListener |
getManagedConnection(Transaction transaction,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Get the managed connection from the pool. |
javax.resource.spi.ManagedConnectionFactory |
getManagedConnectionFactory()
Gets managed connection factory. |
Pool |
getPool()
Get the pool. |
String |
getSecurityDomain()
Get the security domain. |
org.jboss.security.SubjectFactory |
getSubjectFactory()
Get the subject factory |
abstract org.jboss.jca.core.spi.transaction.TransactionIntegration |
getTransactionIntegration()
Get the transaction integration. |
abstract boolean |
isTransactional()
Determine whether there connection is a transactional. |
protected void |
managedConnectionDisconnected(ConnectionListener cl)
For polymorphism. |
protected void |
managedConnectionReconnected(ConnectionListener cl)
For polymorphism. |
void |
reconnect(Collection<ConnectionRecord> conns,
Set<String> unsharableResources)
Notification to reconnect connections |
protected void |
reconnectManagedConnection(ConnectionListener cl)
Invoked to reassociate a managed connection. |
void |
returnManagedConnection(org.jboss.jca.core.api.connectionmanager.listener.ConnectionListener bcl,
boolean kill)
Kill given connection listener wrapped connection instance. |
void |
setAllocationRetry(int number)
Set the number of allocation retries |
void |
setAllocationRetryWaitMillis(long millis)
Set the wait time between each allocation retry |
void |
setCachedConnectionManager(org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager cachedConnectionManager)
Sets cached connection manager. |
void |
setFlushStrategy(org.jboss.jca.common.api.metadata.common.FlushStrategy v)
Set the flush strategy |
void |
setJndiName(String jndiName)
Sets jndi name. |
void |
setPool(Pool pool)
Set the pool. |
void |
setSecurityDomain(String securityDomain)
Sets security domain |
void |
setSubjectFactory(org.jboss.security.SubjectFactory subjectFactory)
Sets subject factory. |
void |
shutdown()
Shutdown |
abstract void |
transactionStarted(Collection<ConnectionRecord> conns)
Notification of transaction started |
void |
unregisterAssociation(ConnectionListener cl,
Object c)
Unregister association. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.jca.core.connectionmanager.listener.ConnectionListenerFactory |
|---|
createConnectionListener |
| Field Detail |
|---|
protected boolean trace
| Constructor Detail |
|---|
protected AbstractConnectionManager()
| Method Detail |
|---|
protected abstract CoreLogger getLogger()
public void setPool(Pool pool)
pool - the poolpublic Pool getPool()
public void setCachedConnectionManager(org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager cachedConnectionManager)
cachedConnectionManager - cached connection managerpublic org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager getCachedConnectionManager()
public void shutdown()
public String getJndiName()
public void setJndiName(String jndiName)
jndiName - jndi namepublic String getSecurityDomain()
public void setSecurityDomain(String securityDomain)
securityDomain - security domainpublic org.jboss.security.SubjectFactory getSubjectFactory()
public void setSubjectFactory(org.jboss.security.SubjectFactory subjectFactory)
subjectFactory - subject factorypublic org.jboss.jca.common.api.metadata.common.FlushStrategy getFlushStrategy()
public void setFlushStrategy(org.jboss.jca.common.api.metadata.common.FlushStrategy v)
v - The valuepublic javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
public void setAllocationRetry(int number)
number - retry numberpublic int getAllocationRetry()
public void setAllocationRetryWaitMillis(long millis)
millis - wait in mspublic long getAllocationRetryWaitMillis()
public ConnectionListener getManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
throws javax.resource.ResourceException
subject - a Subject valuecri - a ConnectionRequestInfo value
ManagedConnection value
javax.resource.ResourceException - if an error occurs
protected ConnectionListener getManagedConnection(Transaction transaction,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
throws javax.resource.ResourceException
transaction - the transaction for track by transactionsubject - the subjectcri - the ConnectionRequestInfo
javax.resource.ResourceException - if an error occurs
public void returnManagedConnection(org.jboss.jca.core.api.connectionmanager.listener.ConnectionListener bcl,
boolean kill)
bcl - connection listener that wraps connectionkill - kill connection or not
public Object allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf,
javax.resource.spi.ConnectionRequestInfo cri)
throws javax.resource.ResourceException
allocateConnection in interface javax.resource.spi.ConnectionManagerjavax.resource.ResourceException
public void disconnect(Collection<ConnectionRecord> conRecords,
Set<String> unsharableResources)
throws javax.resource.ResourceException
conRecords - the connectionsunsharableResources - the unshareable resources
javax.resource.ResourceException - for any error
public void reconnect(Collection<ConnectionRecord> conns,
Set<String> unsharableResources)
throws javax.resource.ResourceException
conns - the connectionsunsharableResources - unshareable resources
javax.resource.ResourceException - for any error
public void unregisterAssociation(ConnectionListener cl,
Object c)
cl - connection listenerc - connection
protected void reconnectManagedConnection(ConnectionListener cl)
throws javax.resource.ResourceException
cl - the managed connection
javax.resource.ResourceException - for exceptionprotected void disconnectManagedConnection(ConnectionListener cl)
cl - the managed connection
protected void managedConnectionReconnected(ConnectionListener cl)
throws javax.resource.ResourceException
Do not invoke directly, use reconnectManagedConnection which does the relevent exception handling
cl - connection listener
javax.resource.ResourceException - for exception
protected void managedConnectionDisconnected(ConnectionListener cl)
throws javax.resource.ResourceException
Do not invoke directly, use disconnectManagedConnection which does the relevent exception handling
cl - connection listener
javax.resource.ResourceException - for exception
public abstract void transactionStarted(Collection<ConnectionRecord> conns)
throws SystemException
conns - the connections
SystemException - for any errorpublic abstract boolean isTransactional()
isTransactional in interface ConnectionListenerFactorypublic abstract org.jboss.jca.core.spi.transaction.TransactionIntegration getTransactionIntegration()
getTransactionIntegration in interface ConnectionListenerFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||