| |
|
| java.lang.Object javax.rmi.PortableRemoteObject org.objectweb.jotm.ControlImpl
ControlImpl | ControlImpl(int timeout, Xid x, Object supco) throws RemoteException(Code) | | Constructor for create or recreate
Parameters: timeout - Timeout in seconds for this transaction Parameters: x - Xid allocated to this transaction Parameters: supco - Superior coordinator (null if create); must be aorg.objectweb.jotm.Coordinator or a org.omg.CosTransactions.Coordinator |
commit | public synchronized void commit() throws RemoteException(Code) | | Sub-coordinator received commit from its superior.
It must more or less do the same things that the phase 2 of the 2PC.
|
commit_one_phase | public void commit_one_phase() throws RemoteException(Code) | | Sub-coordinator received commit_one_phase from its superior.
It is more or less a Terminator.commit().
|
ding | void ding()(Code) | | timeout expired on this transaction.
This method is not private, because it's used by Timers
|
get_coordinator | public Coordinator get_coordinator() throws RemoteException(Code) | | Gets the Coordinator object for this transaction
Coordinator for this transaction |
get_status | public int get_status() throws RemoteException(Code) | | Gets the current status of this transaction
current transaction status |
get_terminator | public Terminator get_terminator() throws RemoteException(Code) | | Gets the Terminator object for this transaction
Terminator for this transaction |
get_transaction_name | public String get_transaction_name() throws RemoteException(Code) | | Gets a String that represents the transaction name.
Only the Format Id and the Global Id are used to build it :
The Branch Qualifier is not used.
Transaction Name |
is_same_transaction | public boolean is_same_transaction(Coordinator tc) throws RemoteException(Code) | | Tests if the given coordinator represents this transaction
Parameters: tc - Coordinator to be compared to this transaction true if it is the same transaction |
prepare | public synchronized int prepare() throws RemoteException(Code) | | Sub-coordinator has received prepare from its superior.
It must more or less do the same things that the phase 1 of the 2PC.
Vote : commit, roollback or read-only. |
register_resource | public synchronized RecoveryCoordinator register_resource(Resource res) throws RemoteException(Code) | | Registers a Resource object for this transaction
Parameters: res - Resource to be registered RecoveryCoordinator used for replay_completion |
register_synchronization | public synchronized void register_synchronization(RemoteSynchro sync) throws RemoteException(Code) | | Registers a Synchronization object for this transaction
Parameters: sync - RemoteSynchro to be registered |
replay_completion | public int replay_completion(Resource res) throws RemoteException(Code) | | Asks the status of this transaction, after recovery of a Resource
Parameters: res - Resource recovering |
rollback | public synchronized void rollback() throws RemoteException(Code) | | Rolls back this transaction branch. Can be a sub-coordinator or
a normal coordinator.
|
rollback_only | public synchronized void rollback_only() throws RemoteException(Code) | | Asks to rollback the transaction
|
timeoutExpired | public void timeoutExpired(Object arg)(Code) | | The transaction timeout has expired
Do not synchronize this method to avoid deadlocks!
|
|
|
|