| org.jboss.resource.connectionmanager.CachedConnectionManager
CachedConnectionManager | public class CachedConnectionManager extends ServiceMBeanSupport implements ServerVMClientUserTransaction.UserTransactionStartedListener,CachedConnectionManagerMBean(Code) | | The CachedConnectionManager mbean manages associations between meta-aware objects
(those accessed through interceptor chains) and connection handles, and between
user transactions and connection handles. Normally there should only be one
such mbean. It is called by CachedConnectionInterceptor, UserTransaction,
and all BaseConnectionManager2 instances.
author: David Jencks author: Erwin Guib author: Adrian Brock version: $Revision: 57189 $ |
Field Summary | |
protected boolean | error | protected boolean | trace |
Constructor Summary | |
public | CachedConnectionManager() Default CachedConnectionManager managed constructor for mbeans. |
error | protected boolean error(Code) | | |
trace | protected boolean trace(Code) | | |
CachedConnectionManager | public CachedConnectionManager()(Code) | | Default CachedConnectionManager managed constructor for mbeans.
Remember that this mbean should be a singleton.
|
getInUseConnections | public int getInUseConnections()(Code) | | |
getTransactionManagerServiceName | public ObjectName getTransactionManagerServiceName()(Code) | | |
isDebug | public boolean isDebug()(Code) | | |
isError | public boolean isError()(Code) | | |
isSpecCompliant | public boolean isSpecCompliant()(Code) | | |
listInUseConnections | public Map listInUseConnections()(Code) | | |
peekMetaAwareObject | KeyConnectionAssociation peekMetaAwareObject()(Code) | | |
popMetaAwareObject | public void popMetaAwareObject(Set unsharableResources) throws ResourceException(Code) | | Describe popMetaAwareObject method here.
PUBLIC for TESTING PURPOSES ONLY!
exception: ResourceException - if an error occurs |
pushMetaAwareObject | public void pushMetaAwareObject(Object rawKey, Set unsharableResources) throws ResourceException(Code) | | Describe pushMetaAwareObject method here.
PUBLIC for TESTING PURPOSES ONLY!
Parameters: rawKey - an Object value Parameters: unsharableResources - the unsharable resources exception: ResourceException - if an error occurs |
setDebug | public void setDebug(boolean value)(Code) | | |
setError | public void setError(boolean value)(Code) | | |
setSpecCompliant | public void setSpecCompliant(boolean specCompliant)(Code) | | |
setTransactionManagerServiceName | public void setTransactionManagerServiceName(ObjectName transactionManagerServiceName)(Code) | | |
unregisterConnectionCacheListener | void unregisterConnectionCacheListener(ConnectionCacheListener cm)(Code) | | Describe unregisterConnectionCacheListener method here.
This is a shutdown method called by a connection manager. It will remove all reference
to that connection manager from the cache, so cached connections from that manager
will never be recoverable.
Possibly this method should not exist.
Parameters: cm - a ConnectionCacheListener value |
userTransactionStarted | public void userTransactionStarted() throws SystemException(Code) | | |
|
|