|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.tm.TransactionManagerService
This is a JMX service which manages the TransactionManager. The service creates it and binds a Reference to it into JNDI.
TxManager
Field Summary | |
static String |
JNDI_EXPORTER
|
static String |
JNDI_IMPORTER
|
static String |
JNDI_NAME
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
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 | |
TransactionManagerService()
|
Method Summary | |
long |
getCommitCount()
The number of commits. |
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable environment)
|
long |
getRollbackCount()
The number of rollbacks. |
long |
getTransactionCount()
Counts the number of transactions |
TransactionManager |
getTransactionManager()
mbean get-set pair for field transactionManager Get the value of transactionManager |
int |
getTransactionTimeout()
Describe getTransactionTimeout method here. |
javax.management.ObjectName |
getXidFactory()
mbean get-set pair for field xidFactory Get the value of xidFactory |
void |
registerXAExceptionFormatter(Class clazz,
XAExceptionFormatter formatter)
The registerXAExceptionFormatter method |
void |
setTransactionTimeout(int timeout)
Describe setTransactionTimeout method here. |
void |
setXidFactory(javax.management.ObjectName xidFactory)
Set the value of xidFactory |
protected void |
startService()
|
protected void |
stopService()
|
void |
unregisterXAExceptionFormatter(Class clazz)
The unregisterXAExceptionFormatter method |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
create, createService, destroy, destroyService, 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, 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 |
public static String JNDI_NAME
public static String JNDI_IMPORTER
public static String JNDI_EXPORTER
Constructor Detail |
public TransactionManagerService()
Method Detail |
protected void startService() throws Exception
Exception
protected void stopService()
public int getTransactionTimeout()
getTransactionTimeout
method here.
getTransactionTimeout
in interface TransactionManagerServiceMBean
int
valuepublic void setTransactionTimeout(int timeout)
setTransactionTimeout
method here.
setTransactionTimeout
in interface TransactionManagerServiceMBean
timeout
- an int
valuepublic javax.management.ObjectName getXidFactory()
getXidFactory
in interface TransactionManagerServiceMBean
public void setXidFactory(javax.management.ObjectName xidFactory)
setXidFactory
in interface TransactionManagerServiceMBean
xidFactory
- Value to assign to xidFactorypublic TransactionManager getTransactionManager()
getTransactionManager
in interface TransactionManagerServiceMBean
public long getTransactionCount()
getTransactionCount
in interface TransactionManagerServiceMBean
public long getCommitCount()
getCommitCount
in interface TransactionManagerServiceMBean
public long getRollbackCount()
getRollbackCount
in interface TransactionManagerServiceMBean
public void registerXAExceptionFormatter(Class clazz, XAExceptionFormatter formatter)
registerXAExceptionFormatter
method
registerXAExceptionFormatter
in interface TransactionManagerServiceMBean
clazz
- a Class
valueformatter
- a XAExceptionFormatter
valuepublic void unregisterXAExceptionFormatter(Class clazz)
unregisterXAExceptionFormatter
method
unregisterXAExceptionFormatter
in interface TransactionManagerServiceMBean
clazz
- a Class
valuepublic Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception
getObjectInstance
in interface ObjectFactory
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |