Class ParticipantStoreProxy
- java.lang.Object
-
- com.arjuna.ats.arjuna.tools.osb.api.proxy.TxLogProxy
-
- com.arjuna.ats.arjuna.tools.osb.api.proxy.ParticipantStoreProxy
-
- All Implemented Interfaces:
BaseStore,ParticipantStore,TxLog
public class ParticipantStoreProxy extends TxLogProxy implements ParticipantStore
Remote proxy to a ParticipantStore
-
-
Constructor Summary
Constructors Constructor Description ParticipantStoreProxy(ParticipantStoreBeanMBean rsProxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancommit_state(Uid u, java.lang.String tn)Commit the object's state in the object store.booleanfullCommitNeeded()InputObjectStateread_committed(Uid u, java.lang.String tn)Read the object's committed state.InputObjectStateread_uncommitted(Uid u, java.lang.String tn)Read the object's shadowed state.booleanremove_uncommitted(Uid u, java.lang.String tn)Remove the object's uncommitted state.booleanwrite_uncommitted(Uid u, java.lang.String tn, OutputObjectState buff)Write a copy of the object's uncommitted state.-
Methods inherited from class com.arjuna.ats.arjuna.tools.osb.api.proxy.TxLogProxy
getStoreName, remove_committed, start, stop, sync, write_committed
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.arjuna.ats.arjuna.objectstore.BaseStore
getStoreName, start, stop
-
Methods inherited from interface com.arjuna.ats.arjuna.objectstore.TxLog
remove_committed, sync, write_committed
-
-
-
-
Constructor Detail
-
ParticipantStoreProxy
public ParticipantStoreProxy(ParticipantStoreBeanMBean rsProxy)
-
-
Method Detail
-
commit_state
public boolean commit_state(Uid u, java.lang.String tn) throws ObjectStoreException
Description copied from interface:ParticipantStoreCommit the object's state in the object store.- Specified by:
commit_statein interfaceParticipantStore- Parameters:
u- The object to work on.tn- The type of the object to work on.- Returns:
trueif no errors occurred,falseotherwise.- Throws:
ObjectStoreException
-
read_committed
public InputObjectState read_committed(Uid u, java.lang.String tn) throws ObjectStoreException
Description copied from interface:ParticipantStoreRead the object's committed state.- Specified by:
read_committedin interfaceParticipantStore- Parameters:
u- The object to work on.tn- The type of the object to work on.- Returns:
- the state of the object.
- Throws:
ObjectStoreException
-
read_uncommitted
public InputObjectState read_uncommitted(Uid u, java.lang.String tn) throws ObjectStoreException
Description copied from interface:ParticipantStoreRead the object's shadowed state.- Specified by:
read_uncommittedin interfaceParticipantStore- Parameters:
u- The object to work on.tn- The type of the object to work on.- Returns:
- the state of the object.
- Throws:
ObjectStoreException
-
remove_uncommitted
public boolean remove_uncommitted(Uid u, java.lang.String tn) throws ObjectStoreException
Description copied from interface:ParticipantStoreRemove the object's uncommitted state.- Specified by:
remove_uncommittedin interfaceParticipantStore- Parameters:
u- The object to work on.tn- The type of the object to work on.- Returns:
trueif no errors occurred,falseotherwise.- Throws:
ObjectStoreException
-
write_uncommitted
public boolean write_uncommitted(Uid u, java.lang.String tn, OutputObjectState buff) throws ObjectStoreException
Description copied from interface:ParticipantStoreWrite a copy of the object's uncommitted state.- Specified by:
write_uncommittedin interfaceParticipantStore- Parameters:
u- The object to work on.tn- The type of the object to work on.buff- The state to write.- Returns:
trueif no errors occurred,falseotherwise.- Throws:
ObjectStoreException
-
fullCommitNeeded
public boolean fullCommitNeeded()
- Specified by:
fullCommitNeededin interfaceParticipantStore
-
-