|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.icatch.imp.AbstractCompositeTransaction com.atomikos.icatch.imp.CompositeTransactionAdaptor
public class CompositeTransactionAdaptor
A composite transaction adaptor for interposition 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()
Get the coordinator for this tx. |
String |
getCoordinatorId()
Get the identifier for this coordinator. |
RecoveryCoordinator |
getRecoveryCoordinator()
Get the recovery coordinator instance for this one. |
HeuristicMessage[] |
getTags()
Get the tags that were set for this coordinator. |
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
CompositeTransaction
getCompositeCoordinator
in interface CompositeTransaction
getCompositeCoordinator
in class AbstractCompositeTransaction
SysException
- On failure.CompositeCoordinator.
public String getCoordinatorId()
CompositeCoordinator
getCoordinatorId
in interface CompositeCoordinator
CompositeCoordinator.
public HeuristicMessage[] getTags()
CompositeCoordinator
getTags
in interface CompositeCoordinator
CompositeCoordinator.
public RecoveryCoordinator getRecoveryCoordinator()
CompositeCoordinator
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 |