|
|||||||||||
| 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 |
java.lang.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(java.lang.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 java.rmi.RemoteException
get_terminator in interface Controljava.rmi.RemoteException - if a remote exception occurs
public Coordinator get_coordinator()
throws java.rmi.RemoteException
get_coordinator in interface Controljava.rmi.RemoteException - if a remote exception occurs
public int get_status()
throws java.rmi.RemoteException
get_status in interface Coordinatorjava.rmi.RemoteException - if a remote exception occurs
public boolean is_same_transaction(Coordinator tc)
throws java.rmi.RemoteException
is_same_transaction in interface Coordinatortc - Coordinator to be compared to this transaction
java.rmi.RemoteException - if a remote exception occurs
public RecoveryCoordinator register_resource(Resource res)
throws java.rmi.RemoteException
register_resource in interface Coordinatorres - Resource to be registered
java.rmi.RemoteException - if a remote exception occurs
public void register_synchronization(RemoteSynchro sync)
throws java.rmi.RemoteException
register_synchronization in interface Coordinatorsync - RemoteSynchro to be registered
java.rmi.RemoteException - if a remote exception occurs
public void rollback_only()
throws java.rmi.RemoteException
rollback_only in interface Coordinatorjava.rmi.RemoteException - if a remote exception occurs
public java.lang.String get_transaction_name()
throws java.rmi.RemoteException
get_transaction_name in interface Coordinatorjava.rmi.RemoteException - if a remote exception occurs
public void commit(boolean report_heuristics)
throws java.rmi.RemoteException
commit in interface Terminatorreport_heuristics - want to report heuristics if any
javax.transaction.TransactionRolledbackException - the transaction has been rolled back
HeuristicMixed - Resources have rolled back
HeuristicHazard - Resources may have rolled back
java.rmi.RemoteException - if a remote exception occurs
public void rollback()
throws java.rmi.RemoteException
rollback in interface Resourcejava.rmi.RemoteException
public int prepare()
throws java.rmi.RemoteException
prepare in interface Resourcejava.rmi.RemoteException
public void commit()
throws java.rmi.RemoteException
commit in interface Resourcejava.rmi.RemoteException
public void commit_one_phase()
throws java.rmi.RemoteException
commit_one_phase in interface Resourcejava.rmi.RemoteException
public void forget()
throws java.rmi.RemoteException
forget in interface Resourcejava.rmi.RemoteException
public int replay_completion(Resource res)
throws java.rmi.RemoteException
replay_completion in interface RecoveryCoordinatorres - Resource recovering
java.rmi.RemoteExceptionpublic void timeoutExpired(java.lang.Object arg)
timeoutExpired in interface TimerEventListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||