|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
|
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 |
Current |
getCurrent()
Gets the Current object instance |
java.lang.Integer |
getCurrentTimeOut()
MBean method get the default timeout |
java.lang.String |
getJTMHostName()
MBean method |
java.lang.Boolean |
getJTMLocal()
MBean method |
java.lang.Integer |
getJTMPortNumber()
MBean method |
TransactionFactory |
getTransactionFactory()
Gets the TransactionFactory object (JTM factory) |
javax.transaction.TransactionManager |
getTransactionManager()
Gets the TransactionManager object instance |
java.lang.Integer[] |
getTxCounters()
MBean method: |
javax.transaction.UserTransaction |
getUserTransaction()
Gets the UserTransaction object instance |
void |
resetAllTxTotalCounters()
MBean method: reset all tx counter |
void |
saveConfig()
MBean method: save updated configuration |
void |
setCurrentTimeOut(java.lang.Integer t)
MBean method Reconfiguration operation: set new value for timeout. |
void |
setTimeout(int t)
Sets the default transaction timeout and register Current in JNDI |
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl |
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 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 Current getCurrent()
getCurrent
in interface TransactionService
public javax.transaction.TransactionManager getTransactionManager()
getTransactionManager
in interface TransactionService
public javax.transaction.UserTransaction getUserTransaction()
getUserTransaction
in interface TransactionService
public TransactionFactory getTransactionFactory()
getTransactionFactory
in interface TransactionService
public void setTimeout(int t)
setTimeout
in interface TransactionService
t
- new value for time-outpublic void setCurrentTimeOut(java.lang.Integer t)
setCurrentTimeOut
in interface TransactionServiceImplMBean
t
- new value for time-outpublic java.lang.Integer getCurrentTimeOut()
getCurrentTimeOut
in interface TransactionServiceImplMBean
public java.lang.Boolean getJTMLocal()
getJTMLocal
in interface TransactionServiceImplMBean
public java.lang.Integer getJTMPortNumber()
getJTMPortNumber
in interface TransactionServiceImplMBean
public java.lang.String getJTMHostName()
getJTMHostName
in interface TransactionServiceImplMBean
public java.lang.Integer[] getTxCounters()
getTxCounters
in interface TransactionServiceImplMBean
public void resetAllTxTotalCounters()
resetAllTxTotalCounters
in interface TransactionServiceImplMBean
public void saveConfig()
saveConfig
in interface TransactionServiceImplMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |