|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport org.objectweb.jonas.management.ReconfigDispatcher org.objectweb.jonas.service.AbsServiceImpl org.objectweb.jonas.jtm.TransactionServiceImpl
Transaction Service implementation. This singleton class must exist in each jonas server. This class manages a unique Current object that implements both TransactionManager and UserTransaction interfaces.
Field Summary | |
static java.lang.String |
SERVICE_NAME
Service name as used to label configuration properties |
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
TransactionServiceImpl()
|
Method Summary | |
protected int |
commitXAResource(java.lang.String xatx)
|
void |
doInit(javax.naming.Context ctx)
Init the Service. |
void |
doStart()
Start the Service Initialization of the service is already done. |
void |
doStop()
Stop the transaction service Not already implementated |
protected int |
forgetXAResource(java.lang.String xatx)
|
protected java.lang.String[] |
getAllActiveTx()
Get all currently executing transactions |
protected javax.transaction.xa.Xid[] |
getAllActiveXids()
Get all currently executing Xids |
protected java.lang.String[] |
getAllRecoveryTx()
Get all transactions that require administrator recovery action |
protected java.lang.String[] |
getAllXAResource(java.lang.String xtx)
Get all XAResoures of a transaction that require administrator recovery action |
org.objectweb.jotm.Current |
getCurrent()
Gets the Current object instance |
int |
getTimeout()
|
protected int |
getTotalBegunTransactions()
Get begun transactions number |
protected int |
getTotalCommittedTransactions()
Get committed transactions number |
protected int |
getTotalCurrentTransactions()
Get current transactions number |
protected int |
getTotalExpiredTransactions()
Get expired transactions number |
protected int |
getTotalRolledbackTransactions()
Get rollebacked transactions number |
org.objectweb.jotm.TransactionFactory |
getTransactionFactory()
Gets the TransactionFactory object (JTM factory) |
org.objectweb.transaction.jta.TransactionManager |
getTransactionManager()
Gets the TransactionManager object instance |
javax.transaction.UserTransaction |
getUserTransaction()
Gets the UserTransaction object instance |
protected void |
resetAllTxTotalCounters()
Reset all transaction counters |
protected int |
rollbackXAResource(java.lang.String xatx)
|
void |
setTimeout(int t)
Sets the default transaction timeout and register Current in JNDI |
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl |
getDomainName, getJonasServerName, getName, init, isStarted, setName, start, stop |
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
handleNotification, 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.objectweb.jonas.service.Service |
getName, init, isStarted, setName, start, stop |
Field Detail |
public static final java.lang.String SERVICE_NAME
Constructor Detail |
public TransactionServiceImpl()
Method Detail |
public void doInit(javax.naming.Context ctx) throws ServiceException
doInit
in class AbsServiceImpl
ctx
- naming context containing configuration parameters
ServiceException
- if service initialization failespublic void doStart() throws ServiceException
doStart
in class AbsServiceImpl
ServiceException
- if service start failspublic void doStop() throws ServiceException
doStop
in class AbsServiceImpl
ServiceException
- if the service stop failspublic org.objectweb.jotm.Current getCurrent()
getCurrent
in interface TransactionService
public org.objectweb.transaction.jta.TransactionManager getTransactionManager()
getTransactionManager
in interface TransactionService
public javax.transaction.UserTransaction getUserTransaction()
getUserTransaction
in interface TransactionService
public org.objectweb.jotm.TransactionFactory getTransactionFactory()
getTransactionFactory
in interface TransactionService
public int getTimeout()
public void setTimeout(int t)
setTimeout
in interface TransactionService
t
- new value for time-outprotected int getTotalBegunTransactions()
protected int getTotalCommittedTransactions()
protected int getTotalCurrentTransactions()
protected int getTotalExpiredTransactions()
protected int getTotalRolledbackTransactions()
protected void resetAllTxTotalCounters()
protected javax.transaction.xa.Xid[] getAllActiveXids()
protected java.lang.String[] getAllActiveTx()
protected java.lang.String[] getAllRecoveryTx()
protected java.lang.String[] getAllXAResource(java.lang.String xtx)
protected int commitXAResource(java.lang.String xatx)
protected int rollbackXAResource(java.lang.String xatx)
protected int forgetXAResource(java.lang.String xatx)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |