|
||||||||||
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. |
boolean |
getGlobalIdsEnabled()
Describe getGlobalIdsEnabled method here. |
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. |
JBossXATerminator |
getXATerminator()
Get the xa terminator |
javax.management.ObjectName |
getXidFactory()
mbean get-set pair for field xidFactory Get the value of xidFactory |
boolean |
isInterruptThreads()
Is thread interruption enabled at transaction timeout |
void |
registerXAExceptionFormatter(Class clazz,
XAExceptionFormatter formatter)
The registerXAExceptionFormatter method |
void |
setGlobalIdsEnabled(boolean newValue)
Describe setGlobalIdsEnabled method here. |
void |
setInterruptThreads(boolean interruptThreads)
Enable/disable thread interruption at transaction timeout. |
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 boolean getGlobalIdsEnabled()
getGlobalIdsEnabled
method here.
getGlobalIdsEnabled
in interface TransactionManagerServiceMBean
boolean
valuepublic void setGlobalIdsEnabled(boolean newValue)
setGlobalIdsEnabled
method here.
setGlobalIdsEnabled
in interface TransactionManagerServiceMBean
newValue
- an boolean
valuepublic boolean isInterruptThreads()
isInterruptThreads
in interface TransactionManagerServiceMBean
public void setInterruptThreads(boolean interruptThreads)
setInterruptThreads
in interface TransactionManagerServiceMBean
interruptThreads
- pass true to interrupt threads, false otherwisepublic 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 JBossXATerminator getXATerminator()
getXATerminator
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 |