|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.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 | |
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 |
org.objectweb.jotm.Current |
getCurrent()
Gets the Current object instance |
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 |
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 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |