|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atomikos.icatch.imp.AbstractCompositeTransaction
com.atomikos.icatch.imp.CompositeTransactionAdaptor
public class CompositeTransactionAdaptor
A composite transaction adaptor for inter-position on an imported instance. This allows substitution of the recovery coordinator adaptor.
Field Summary |
---|
Fields inherited from class com.atomikos.icatch.imp.AbstractCompositeTransaction |
---|
lineage_, properties_, serial_, tag_, tid_ |
Constructor Summary | |
---|---|
CompositeTransactionAdaptor(Stack lineage,
String tid,
boolean serial,
RecoveryCoordinator adaptor,
Boolean isRecoverableWhileActive)
Create a new instance. |
|
CompositeTransactionAdaptor(String root,
boolean serial,
RecoveryCoordinator adaptor)
Constructor for testin. |
|
CompositeTransactionAdaptor(String root,
boolean serial,
RecoveryCoordinator adaptor,
Properties properties)
Constructs a new instance for an imported ROOT. |
Method Summary | |
---|---|
CompositeCoordinator |
getCompositeCoordinator()
|
String |
getCoordinatorId()
|
RecoveryCoordinator |
getRecoveryCoordinator()
|
HeuristicMessage[] |
getTags()
|
Boolean |
isRecoverableWhileActive()
Checks whether the instance is recoverable in the active state. |
void |
setRecoverableWhileActive()
Sets this coordinator to be recoverable while active. |
Methods inherited from class com.atomikos.icatch.imp.AbstractCompositeTransaction |
---|
addParticipant, addSubTxAwareParticipant, commit, createSubTransaction, equals, getExtent, getLineage, getLocalSubTxCount, getProperties, getProperty, getState, getTid, getTimeout, getTransactionControl, hashCode, isAncestorOf, isDescendantOf, isLocal, isRelatedTransaction, isRoot, isSameTransaction, isSerial, registerSynchronization, rollback, setProperty, setRollbackOnly, setSerial, setTag |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeTransactionAdaptor(Stack lineage, String tid, boolean serial, RecoveryCoordinator adaptor, Boolean isRecoverableWhileActive)
lineage
- The parent info, not including the instance being
constructed here!serial
- True if serial.adaptor
- The adaptor for replay requests.isRecoverableWhileActive
- Whether recoverable in active state or not. Null if not known.public CompositeTransactionAdaptor(String root, boolean serial, RecoveryCoordinator adaptor)
root
- serial
- adaptor
- public CompositeTransactionAdaptor(String root, boolean serial, RecoveryCoordinator adaptor, Properties properties)
root
- The root URI.serial
- Flag for serial mode.adaptor
- The adaptor for recovery.Method Detail |
---|
public CompositeCoordinator getCompositeCoordinator() throws SysException
getCompositeCoordinator
in interface CompositeTransaction
getCompositeCoordinator
in class AbstractCompositeTransaction
SysException
CompositeCoordinator.
public String getCoordinatorId()
getCoordinatorId
in interface CompositeCoordinator
CompositeCoordinator.
public HeuristicMessage[] getTags()
getTags
in interface CompositeCoordinator
CompositeCoordinator.
public RecoveryCoordinator getRecoveryCoordinator()
getRecoveryCoordinator
in interface CompositeCoordinator
CompositeCoordinator.
public Boolean isRecoverableWhileActive()
CompositeCoordinator
isRecoverableWhileActive
in interface CompositeCoordinator
public void setRecoverableWhileActive()
CompositeCoordinator
setRecoverableWhileActive
in interface CompositeCoordinator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |