Save This Page
Home » JBoss-5.1.0 » org » jboss » resource » connectionmanager » [javadoc | source]
org.jboss.resource.connectionmanager
public class: CachedConnectionManager [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.resource.connectionmanager.CachedConnectionManager

All Implemented Interfaces:
    UserTransactionStartedListener, UserTransactionListener, ComponentStack, CachedConnectionManagerMBean, KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

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.
Field Summary
protected  boolean trace     
protected  boolean error     
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Constructor:
 public CachedConnectionManager() 
Method from org.jboss.resource.connectionmanager.CachedConnectionManager Summary:
getInUseConnections,   getInstance,   getTransactionManager,   isDebug,   isError,   isSpecCompliant,   listInUseConnections,   peekMetaAwareObject,   popMetaAwareObject,   pushMetaAwareObject,   registerConnection,   setDebug,   setError,   setSpecCompliant,   setTransactionManager,   unregisterConnection,   unregisterConnectionCacheListener,   userTransactionStarted
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.resource.connectionmanager.CachedConnectionManager Detail:
 public int getInUseConnections() 
 public CachedConnectionManager getInstance() 
 public TransactionManager getTransactionManager() 
 public boolean isDebug() 
 public boolean isError() 
 public boolean isSpecCompliant() 
 public Map listInUseConnections() 
 KeyConnectionAssociation peekMetaAwareObject() 
 public  void popMetaAwareObject(Set unsharableResources) throws ResourceException 
    Describe popMetaAwareObject method here.
 public  void pushMetaAwareObject(Object rawKey,
    Set unsharableResources) throws ResourceException 
    Describe pushMetaAwareObject method here.
  void registerConnection(ConnectionCacheListener cm,
    ConnectionListener cl,
    Object connection,
    ConnectionRequestInfo cri) 
 public  void setDebug(boolean value) 
 public  void setError(boolean value) 
 public  void setSpecCompliant(boolean specCompliant) 
 public  void setTransactionManager(TransactionManager tm) 
  void unregisterConnection(ConnectionCacheListener cm,
    Object c) 
  void unregisterConnectionCacheListener(ConnectionCacheListener cm) 
    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.
 public  void userTransactionStarted() throws SystemException