|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.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 Control
RemoteException
- if a remote exception occurspublic Coordinator get_coordinator() throws RemoteException
get_coordinator
in interface Control
RemoteException
- if a remote exception occurspublic int get_status() throws RemoteException
get_status
in interface Coordinator
RemoteException
- if a remote exception occurspublic boolean is_same_transaction(Coordinator tc) throws RemoteException
is_same_transaction
in interface Coordinator
tc
- Coordinator
RemoteException
- if a remote exception occurspublic RecoveryCoordinator register_resource(Resource res) throws RemoteException
register_resource
in interface Coordinator
res
- Resource to be registered
RemoteException
- if a remote exception occurspublic void register_synchronization(RemoteSynchro sync) throws RemoteException
register_synchronization
in interface Coordinator
sync
- RemoteSynchro to be registered
RemoteException
- if a remote exception occurspublic void rollback_only() throws RemoteException
rollback_only
in interface Coordinator
RemoteException
- if a remote exception occurspublic String get_transaction_name() throws RemoteException
get_transaction_name
in interface Coordinator
RemoteException
- if a remote exception occurspublic void commit(boolean report_heuristics) throws RemoteException
commit
in interface Terminator
report_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 occurspublic void rollback() throws RemoteException
rollback
in interface Resource
RemoteException
- if a remote exception occurspublic int prepare() throws RemoteException
prepare
in interface Resource
RemoteException
public void commit() throws RemoteException
commit
in interface Resource
RemoteException
public void commit_one_phase() throws RemoteException
commit_one_phase
in interface Resource
RemoteException
public void forget() throws RemoteException
forget
in interface Resource
RemoteException
public int replay_completion(Resource res) throws RemoteException
replay_completion
in interface RecoveryCoordinator
res
- Resource recovering
RemoteException
public void timeoutExpired(Object arg)
timeoutExpired
in interface org.objectweb.jonas_timer.TimerEventListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |