|
||||||||||
| 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,
boolean checkorphans,
int maxActives,
boolean single_threaded_2pc)
Create a new instance, with orphan checking set. |
|
TransactionServiceImp(String name,
StateRecoveryManager recoverymanager,
UniqueIdMgr tidmgr,
long maxtimeout,
int maxActives,
boolean single_threaded_2pc)
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)
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.
public TransactionServiceImp(String name,
StateRecoveryManager recoverymanager,
UniqueIdMgr tidmgr,
long maxtimeout,
boolean checkorphans,
int maxActives,
boolean single_threaded_2pc)
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.checkorphans - If false, orphan checking is disabledmaxActives - The max number of active txs, or negative if unlimited.
even for creation requests that ask for checks. This
mode may be needed for being compatible with certain
configurations that do not support orphan detection.single_threaded_2pc - Whether 2PC commit should happen in the same thread that started the tx.| Method Detail |
|---|
protected Object getLatch(String root)
protected String createTid()
throws SysException
SysExceptionprotected StateRecoveryManager getStateRecoveryManager()
protected void recoverCoordinators()
throws SysException
SysException - For unexpected failure.public String getName()
getName in interface RecoveryServicepublic void recover()
recover in interface RecoveryServiceRecoveryServicepublic LogControl getLogControl()
public CompositeCoordinator getCompositeCoordinator(String root)
throws SysException
getCompositeCoordinator in interface TransactionServiceSysExceptionTransactionService
public void addTSListener(TSListener listener)
throws IllegalStateException
addTSListener in interface TransactionServiceIllegalStateExceptionTransactionServicepublic void removeTSListener(TSListener listener)
removeTSListener in interface TransactionServiceTransactionService
public void init(Properties properties)
throws SysException
init in interface TransactionServiceSysExceptionTransactionService
public Participant getParticipant(String root)
throws SysException
getParticipant in interface TransactionServiceSysExceptionTransactionServicepublic void entered(FSMEnterEvent<TxState> event)
entered in interface FSMEnterListener<TxState>FSMEnterListener.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 TransactionServiceSysExceptionTransactionService
public void shutdown(boolean force)
throws SysException,
IllegalStateException
shutdown in interface TransactionServiceSysException
IllegalStateExceptionTransactionService
public void finalize()
throws Throwable
finalize in class ObjectThrowablepublic RecoveryCoordinator getSuperiorRecoveryCoordinator(String root)
getSuperiorRecoveryCoordinator in interface TransactionServiceTransactionService.getSuperiorRecoveryCoordinator(java.lang.String)
public CompositeTransaction createCompositeTransaction(long timeout)
throws SysException
createCompositeTransaction in interface TransactionServiceSysException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||