|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atomikos.icatch.imp.TransactionServiceImp
public class TransactionServiceImp
General implementation of Transaction Service.
| Constructor Summary | |
|---|---|
TransactionServiceImp(String name,
StateRecoveryManager recoverymanager,
UniqueIdMgr tidmgr,
long maxtimeout,
int maxActives,
boolean single_threaded_2pc,
RecoveryLog recoveryLog)
Create a new instance, with orphan checking set. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionServiceImp(String name,
StateRecoveryManager recoverymanager,
UniqueIdMgr tidmgr,
long maxtimeout,
int maxActives,
boolean single_threaded_2pc,
RecoveryLog recoveryLog)
name - The unique name of this TM.recoverymanager - The recovery manager to use.tidmgr - The String manager to use.console - The console to use. Null if none.maxtimeout - The max timeout for new or imported txs.maxActives - The max number of active txs, or negative if unlimited.single_threaded_2pc - Whether 2PC commit should happen in the same thread that started the tx.| Method Detail |
|---|
public String getName()
getName in interface RecoveryServicepublic LogControl getLogControl()
getLogControl in interface TransactionServiceProvider
public CompositeCoordinator getCompositeCoordinator(String root)
throws SysException
getCompositeCoordinator in interface TransactionServiceSysExceptionTransactionService
public void addTSListener(TransactionServicePlugin listener)
throws IllegalStateException
addTSListener in interface TransactionServiceIllegalStateExceptionTransactionServicepublic void removeTSListener(TransactionServicePlugin listener)
removeTSListener in interface TransactionServiceTransactionService
public void init(Properties properties)
throws SysException
init in interface TransactionServiceProviderSysExceptionTransactionService
public Participant getParticipant(String root)
throws SysException
getParticipant in interface TransactionServiceSysExceptionTransactionServicepublic void entered(FSMEnterEvent event)
FSMEnterListener
entered in interface FSMEnterListenerFSMEnterListener.public void committed(CompositeTransaction tx)
committed in interface SubTxAwareParticipantSubTxAwareParticipantpublic void rolledback(CompositeTransaction tx)
rolledback in interface SubTxAwareParticipantSubTxAwareParticipantpublic CompositeTransaction getCompositeTransaction(String tid)
getCompositeTransaction in interface TransactionServiceTransactionService
public CompositeTransaction recreateCompositeTransaction(Propagation context,
boolean orphancheck,
boolean heur_commit)
throws SysException
recreateCompositeTransaction in interface TransactionServiceSysExceptionTransactionServicepublic void shutdown(boolean force)
shutdown in interface TransactionServiceTransactionServicepublic void shutdown(long maxWaitTime)
shutdown in interface TransactionServiceProvider
public void finalize()
throws Throwable
finalize in class ObjectThrowablepublic RecoveryCoordinator getSuperiorRecoveryCoordinator(String root)
com.atomikos.icatch.TransactionService#getSuperiorRecoveryCoordinator(java.lang.String)
public CompositeTransaction createCompositeTransaction(long timeout)
throws SysException
createCompositeTransaction in interface TransactionServiceSysExceptionpublic RecoveryService getRecoveryService()
getRecoveryService in interface TransactionServiceProviderpublic CoordinatorLogEntry[] getCoordinatorLogEntries()
getCoordinatorLogEntries in interface AdminLogpublic void remove(String coordinatorId)
remove in interface AdminLogpublic RecoveryLog getRecoveryLog()
getRecoveryLog in interface RecoveryService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||