|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.resource.connectionmanager.CachedConnectionManager
public class CachedConnectionManager
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 |
error
|
protected boolean |
trace
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
---|
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.resource.connectionmanager.CachedConnectionManagerMBean |
---|
OBJECT_NAME |
Fields inherited from interface org.jboss.system.ServiceMBean |
---|
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
---|---|
CachedConnectionManager()
Default CachedConnectionManager managed constructor for mbeans. |
Method Summary | |
---|---|
CachedConnectionManager |
getInstance()
The Instance attribute simply holds the current instance, which is normally the only instance of CachedConnectionManager. |
int |
getInUseConnections()
Get the inuse connections |
javax.management.ObjectName |
getTransactionManagerServiceName()
Get the TransactionManagerServiceName value. |
boolean |
isDebug()
Get the debug value. |
boolean |
isError()
Get the error value. |
boolean |
isSpecCompliant()
Get the SpecCompliant value. |
Map |
listInUseConnections()
List the inuse connections |
void |
popMetaAwareObject(Set unsharableResources)
Describe popMetaAwareObject method here. |
void |
pushMetaAwareObject(Object rawKey,
Set unsharableResources)
Describe pushMetaAwareObject method here. |
void |
setDebug(boolean value)
Set the Debug value. |
void |
setError(boolean value)
Set the error value. |
void |
setSpecCompliant(boolean specCompliant)
Set the SpecCompliant value. |
void |
setTransactionManagerServiceName(javax.management.ObjectName transactionManagerServiceName)
Set the TransactionManagerServiceName value. |
protected void |
startService()
|
protected void |
stopService()
|
void |
userTransactionStarted()
|
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
---|
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.ServiceMBean |
---|
getName, getState, getStateString, jbossInternalLifecycle |
Methods inherited from interface org.jboss.system.Service |
---|
create, destroy, start, stop |
Field Detail |
---|
protected boolean trace
protected boolean error
Constructor Detail |
---|
public CachedConnectionManager()
Method Detail |
---|
public boolean isSpecCompliant()
CachedConnectionManagerMBean
isSpecCompliant
in interface CachedConnectionManagerMBean
public void setSpecCompliant(boolean specCompliant)
CachedConnectionManagerMBean
setSpecCompliant
in interface CachedConnectionManagerMBean
specCompliant
- The new SpecCompliant value.public boolean isDebug()
CachedConnectionManagerMBean
isDebug
in interface CachedConnectionManagerMBean
public void setDebug(boolean value)
CachedConnectionManagerMBean
setDebug
in interface CachedConnectionManagerMBean
value
- The new debug value.public boolean isError()
CachedConnectionManagerMBean
isError
in interface CachedConnectionManagerMBean
public void setError(boolean value)
CachedConnectionManagerMBean
setError
in interface CachedConnectionManagerMBean
value
- The new error value.public javax.management.ObjectName getTransactionManagerServiceName()
CachedConnectionManagerMBean
getTransactionManagerServiceName
in interface CachedConnectionManagerMBean
public void setTransactionManagerServiceName(javax.management.ObjectName transactionManagerServiceName)
CachedConnectionManagerMBean
setTransactionManagerServiceName
in interface CachedConnectionManagerMBean
transactionManagerServiceName
- The new TransactionManagerServiceName value.public CachedConnectionManager getInstance()
CachedConnectionManagerMBean
getInstance
in interface CachedConnectionManagerMBean
CachedConnectionManager
valuepublic int getInUseConnections()
CachedConnectionManagerMBean
getInUseConnections
in interface CachedConnectionManagerMBean
public Map listInUseConnections()
CachedConnectionManagerMBean
listInUseConnections
in interface CachedConnectionManagerMBean
protected void startService() throws Exception
startService
in class org.jboss.system.ServiceMBeanSupport
Exception
protected void stopService() throws Exception
stopService
in class org.jboss.system.ServiceMBeanSupport
Exception
public void pushMetaAwareObject(Object rawKey, Set unsharableResources) throws javax.resource.ResourceException
pushMetaAwareObject
method here.
PUBLIC for TESTING PURPOSES ONLY!
rawKey
- an Object
valueunsharableResources
- the unsharable resources
javax.resource.ResourceException
- if an error occurspublic void popMetaAwareObject(Set unsharableResources) throws javax.resource.ResourceException
popMetaAwareObject
method here.
PUBLIC for TESTING PURPOSES ONLY!
javax.resource.ResourceException
- if an error occurspublic void userTransactionStarted() throws SystemException
userTransactionStarted
in interface org.jboss.tm.usertx.client.ServerVMClientUserTransaction.UserTransactionStartedListener
SystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |