|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rmi.PortableRemoteObject
org.objectweb.jonas_tm.SubCoordinator
This object is the local coordinator. It may be registered as sub-coordinator in case of distributed transaction, so it must be callable remotely and implement Resource
Field Summary |
Fields inherited from interface org.objectweb.jonas_tm.Resource |
VOTE_COMMIT, VOTE_READONLY, VOTE_ROLLBACK |
Method Summary | |
boolean |
addResource(javax.transaction.xa.XAResource xares)
add a XAResource to the list |
void |
addSynchronization(javax.transaction.Synchronization synchro)
add a Synchronization to the list |
void |
commit_one_phase()
commit 1 phase. |
void |
commit()
phase 2 of the 2PC. |
void |
forget()
forget heuristics about this transaction. |
int |
getStatus()
return the status of this transaction |
int |
prepare()
phase 1 of the 2PC. |
void |
rollback()
rollback transaction |
void |
setRollbackOnly()
set the transaction "rollback only" |
java.lang.String |
stringStatus()
return a string form of the transaction status (debugging) |
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 int prepare() throws java.rmi.RemoteException
prepare
in interface Resource
java.rmi.RemoteException
public void rollback() throws java.rmi.RemoteException
rollback
in interface Resource
java.rmi.RemoteException
public void commit() throws java.rmi.RemoteException
commit
in interface Resource
java.rmi.RemoteException
public void commit_one_phase() throws java.rmi.RemoteException
commit_one_phase
in interface Resource
java.rmi.RemoteException
public void forget() throws java.rmi.RemoteException
forget
in interface Resource
java.rmi.RemoteException
public void addSynchronization(javax.transaction.Synchronization synchro) throws javax.transaction.RollbackException, java.lang.IllegalStateException
synchro
- The javax.transaction.Synchronization object for the
transaction associated with the target object
javax.transaction.RollbackException
- Thrown to indicate that
the transaction has been marked for rollback only.
java.lang.IllegalStateException
- Thrown if the transaction in the
target object is in prepared state or the transaction is inactive.public boolean addResource(javax.transaction.xa.XAResource xares) throws javax.transaction.RollbackException, java.lang.IllegalStateException
javax.transaction.RollbackException
- Thrown to indicate that
the transaction has been marked for rollback only.
java.lang.IllegalStateException
- Thrown if the transaction in the
target object is in prepared state or the transaction is inactive.public int getStatus()
public void setRollbackOnly()
public java.lang.String stringStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |