|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--org.objectweb.common.RemoteObject
|
+--org.objectweb.jonas_tm.ControlImpl
Implementation of the object that represents a transaction. This remote object has been created by a TransactionFactory.
TransactionFactory, Serialized Form| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Fields inherited from interface org.objectweb.jonas_tm.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 org.objectweb.common.RemoteObject |
getPort, setPort |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public Terminator get_terminator()
throws java.rmi.RemoteException
get_terminator in interface Control
public Coordinator get_coordinator()
throws java.rmi.RemoteException
get_coordinator in interface Control
public int get_status()
throws java.rmi.RemoteException
get_status in interface Coordinator
public boolean is_same_transaction(Coordinator tc)
throws java.rmi.RemoteException
is_same_transaction in interface CoordinatorCoordinator - Coordinator to be compared to this transaction
public RecoveryCoordinator register_resource(Resource res)
throws java.rmi.RemoteException
register_resource in interface Coordinatorres - Resource to be registered
public void register_synchronization(RemoteSynchro sync)
throws java.rmi.RemoteException
register_synchronization in interface Coordinatorsync - RemoteSynchro to be registered
public void rollback_only()
throws java.rmi.RemoteException
rollback_only in interface Coordinator
public java.lang.String get_transaction_name()
throws java.rmi.RemoteException
get_transaction_name in interface Coordinator
public void commit(boolean report_heuristics)
throws java.rmi.RemoteException
commit in interface Terminatorreport_heuristics - want to report heuristics if anyjavax.transaction.TransactionRolledbackException - the transaction has been rolled backHeuristicMixed - Resources have rolled backHeuristicHazard - Resources may have rolled back
public void rollback()
throws java.rmi.RemoteException
rollback in interface Terminator
public int prepare()
throws java.rmi.RemoteException
prepare in interface Resource
public void commit()
throws java.rmi.RemoteException
commit in interface Resource
public void commit_one_phase()
throws java.rmi.RemoteException
commit_one_phase in interface Resource
public void forget()
throws java.rmi.RemoteException
forget in interface Resource
public int replay_completion(Resource res)
throws java.rmi.RemoteException
replay_completion in interface RecoveryCoordinatorres - Resource recoveringpublic void timeoutExpired(java.lang.Object arg)
timeoutExpired in interface TimerEventListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||