|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.rmi.PortableRemoteObject
org.objectweb.jotm.ControlImpl
Implementation of the object that represents a transaction. This remote object has been created by a TransactionFactory. It extends The RemoteControl Remote Interface
TransactionFactory| Field Summary |
| Fields inherited from interface org.objectweb.jotm.Resource |
VOTE_COMMIT, VOTE_READONLY, VOTE_ROLLBACK |
| Method Summary | |
void |
commit_one_phase()
Sub-coordinator received commit_one_phase from its superior. |
void |
commit()
Sub-coordinator received commit from its superior. |
void |
commit(boolean report_heuristics)
Commits this transaction |
void |
forget()
forget transaction |
Coordinator |
get_coordinator()
Gets the Coordinator object for this transaction |
int |
get_status()
Gets the current status of this transaction |
Terminator |
get_terminator()
Gets the Terminator object for this transaction |
String |
get_transaction_name()
Gets a String that represents the transaction name. |
boolean |
is_same_transaction(Coordinator tc)
Tests if the given coordinator represents this transaction |
int |
prepare()
Sub-coordinator has received prepare from its superior. |
RecoveryCoordinator |
register_resource(Resource res)
Registers a Resource object for this transaction |
void |
register_synchronization(RemoteSynchro sync)
Registers a Synchronization object for this transaction |
int |
replay_completion(Resource res)
Asks the status of this transaction, after recovery of a Resource |
void |
rollback_only()
Asks to rollback the transaction |
void |
rollback()
Rolls back this transaction branch. |
void |
timeoutExpired(Object arg)
The transaction timeout has expired Do not synchronize this method to avoid deadlocks! |
| Methods inherited from class javax.rmi.PortableRemoteObject |
connect, exportObject, narrow, toStub, unexportObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public Terminator get_terminator()
throws RemoteException
get_terminator in interface ControlRemoteException - if a remote exception occurs
public Coordinator get_coordinator()
throws RemoteException
get_coordinator in interface ControlRemoteException - if a remote exception occurs
public int get_status()
throws RemoteException
get_status in interface CoordinatorRemoteException - if a remote exception occurs
public boolean is_same_transaction(Coordinator tc)
throws RemoteException
is_same_transaction in interface Coordinatortc - Coordinator
RemoteException - if a remote exception occurs
public RecoveryCoordinator register_resource(Resource res)
throws RemoteException
register_resource in interface Coordinatorres - Resource to be registered
RemoteException - if a remote exception occurs
public void register_synchronization(RemoteSynchro sync)
throws RemoteException
register_synchronization in interface Coordinatorsync - RemoteSynchro to be registered
RemoteException - if a remote exception occurs
public void rollback_only()
throws RemoteException
rollback_only in interface CoordinatorRemoteException - if a remote exception occurs
public String get_transaction_name()
throws RemoteException
get_transaction_name in interface CoordinatorRemoteException - if a remote exception occurs
public void commit(boolean report_heuristics)
throws RemoteException
commit in interface Terminatorreport_heuristics - want to report heuristics if any
TransactionRolledbackException - the transaction has been rolled back
HeuristicMixed - Resources have rolled back
HeuristicHazard - Resources may have rolled back
RemoteException - if a remote exception occurs
public void rollback()
throws RemoteException
rollback in interface ResourceRemoteException
public int prepare()
throws RemoteException
prepare in interface ResourceRemoteException
public void commit()
throws RemoteException
commit in interface ResourceRemoteException
public void commit_one_phase()
throws RemoteException
commit_one_phase in interface ResourceRemoteException
public void forget()
throws RemoteException
forget in interface ResourceRemoteException
public int replay_completion(Resource res)
throws RemoteException
replay_completion in interface RecoveryCoordinatorres - Resource recovering
RemoteExceptionpublic void timeoutExpired(Object arg)
timeoutExpired in interface TimerEventListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||