|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--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 |
CLASS
|
static java.lang.String |
JONAS
|
static java.lang.String |
REMOTE
|
static java.lang.String |
SERVER
|
static java.lang.String |
TIMEOUT
|
| 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: saves the updated server configuration. |
void |
setCurrentTimeOut(java.lang.Integer t)
MBean method set the default timeout mark the transaction service as reconfigured |
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 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 TIMEOUT
public static final java.lang.String REMOTE
public static final java.lang.String CLASS
public static final java.lang.String SERVER
public static final java.lang.String JONAS
| Constructor Detail |
public TransactionServiceImpl()
| Method Detail |
public void doInit(javax.naming.Context ctx)
throws ServiceException
doInit in class AbsServiceImpl
public void doStart()
throws ServiceException
doStart in class AbsServiceImpl
public void doStop()
throws ServiceException
doStop in class AbsServiceImplpublic Current getCurrent()
getCurrent in interface TransactionServicepublic javax.transaction.TransactionManager getTransactionManager()
getTransactionManager in interface TransactionServicepublic javax.transaction.UserTransaction getUserTransaction()
getUserTransaction in interface TransactionServicepublic TransactionFactory getTransactionFactory()
getTransactionFactory in interface TransactionServicepublic void setTimeout(int t)
setTimeout in interface TransactionServicepublic void setCurrentTimeOut(java.lang.Integer t)
setCurrentTimeOut in interface TransactionServiceImplMBeanorg.objectweb.jonas.jtm.TransactionServiceImplMBeannew - time out for transactionpublic java.lang.Integer getCurrentTimeOut()
getCurrentTimeOut in interface TransactionServiceImplMBeanorg.objectweb.jonas.jtm.TransactionServiceImplMBeanpublic java.lang.Boolean getJTMLocal()
getJTMLocal in interface TransactionServiceImplMBeanpublic java.lang.Integer getJTMPortNumber()
getJTMPortNumber in interface TransactionServiceImplMBeanpublic java.lang.String getJTMHostName()
getJTMHostName in interface TransactionServiceImplMBeanpublic java.lang.Integer[] getTxCounters()
getTxCounters in interface TransactionServiceImplMBeanpublic void resetAllTxTotalCounters()
resetAllTxTotalCounters in interface TransactionServiceImplMBeanpublic void saveConfig()
jonas.name
configuration property.
Currently, this location sould not be used because the JOnAS server bootstrap
was not modified to take into account this location for config files.
saveConfig in interface TransactionServiceImplMBean
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||