org.objectweb.jonas_tm
Class TransactionContextRMI

java.lang.Object
  |
  +--org.objectweb.jonas_tm.TransactionContextRMI
All Implemented Interfaces:
java.io.Serializable, TransactionContext

public class TransactionContextRMI
extends java.lang.Object
implements TransactionContext

The propagation context is the context that should be propagated between programs. The structure is defined in OTS specs. In case of RMI and JEREMIE, We use a simplified structure because we do not have nested transactions.

Author:
Philippe Durieux
See Also:
Serialized Form

Constructor Summary
TransactionContextRMI(int t, Coordinator c, javax.transaction.xa.Xid x)
          Build a new TransactionContext (from JTA layer)
 
Method Summary
 Control getControl()
          Get the control associated with the transaction
 Coordinator getCoordinator()
          Get the coordinator associated with the transaction
 Terminator getTerminator()
          Get the Terminator associated with the transaction
 int getTimeout()
          Get the timeout associated with the transaction
 javax.transaction.xa.Xid getXid()
          Get the Xid associated with the transaction
 void setCoordinator(Coordinator coord)
          Set the coordinator associated with the transaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionContextRMI

public TransactionContextRMI(int t,
                             Coordinator c,
                             javax.transaction.xa.Xid x)
Build a new TransactionContext (from JTA layer)
Method Detail

getTimeout

public int getTimeout()
Get the timeout associated with the transaction
Specified by:
getTimeout in interface TransactionContext

getCoordinator

public Coordinator getCoordinator()
Get the coordinator associated with the transaction
Specified by:
getCoordinator in interface TransactionContext

setCoordinator

public void setCoordinator(Coordinator coord)
Set the coordinator associated with the transaction
Specified by:
setCoordinator in interface TransactionContext

getTerminator

public Terminator getTerminator()
Get the Terminator associated with the transaction
Specified by:
getTerminator in interface TransactionContext

getControl

public Control getControl()
Get the control associated with the transaction
Specified by:
getControl in interface TransactionContext

getXid

public javax.transaction.xa.Xid getXid()
Get the Xid associated with the transaction
Specified by:
getXid in interface TransactionContext