org.objectweb.jotm.btp.tm
Class SOAPResource
java.lang.Object
|
+--org.objectweb.jotm.btp.tm.SOAPResource
- All Implemented Interfaces:
- Remote, org.objectweb.jotm.Resource
- public class SOAPResource
- extends Object
- implements org.objectweb.jotm.Resource
Fields inherited from interface org.objectweb.jotm.Resource |
VOTE_COMMIT, VOTE_READONLY, VOTE_ROLLBACK |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOAPResource
public SOAPResource(BtpMessage msg,
Actor from)
prepare
public int prepare()
throws RemoteException
- Specified by:
prepare
in interface org.objectweb.jotm.Resource
RemoteException
rollback
public void rollback()
throws RemoteException
- rollback transaction
- Specified by:
rollback
in interface org.objectweb.jotm.Resource
RemoteException
commit
public void commit()
throws RemoteException
- phase 2 of the 2PC.
- Specified by:
commit
in interface org.objectweb.jotm.Resource
RemoteException
commit_one_phase
public void commit_one_phase()
throws RemoteException
- commit 1 phase.
- Specified by:
commit_one_phase
in interface org.objectweb.jotm.Resource
RemoteException
forget
public void forget()
throws RemoteException
- forget heuristics about this transaction.
- Specified by:
forget
in interface org.objectweb.jotm.Resource
RemoteException
stringStatus
public String stringStatus()
stringStatus
public static String stringStatus(int status)
setCohesion
public void setCohesion(boolean coh)