Class TxLogProxy
- java.lang.Object
-
- com.arjuna.ats.arjuna.tools.osb.api.proxy.TxLogProxy
-
- Direct Known Subclasses:
ParticipantStoreProxy,RecoveryStoreProxy
public class TxLogProxy extends Object implements TxLog
Remote proxy to a TxLog Store
-
-
Constructor Summary
Constructors Constructor Description TxLogProxy(TxLogBeanMBean txLogProxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetStoreName()booleanremove_committed(Uid u, String tn)Remove the object's committed state.voidstart()voidstop()voidsync()Some object store implementations may be running with automatic sync disabled.booleanwrite_committed(Uid u, String tn, OutputObjectState buff)Write a new copy of the object's committed state.
-
-
-
Constructor Detail
-
TxLogProxy
public TxLogProxy(TxLogBeanMBean txLogProxy)
-
-
Method Detail
-
remove_committed
public boolean remove_committed(Uid u, String tn) throws ObjectStoreException
Description copied from interface:TxLogRemove the object's committed state.- Specified by:
remove_committedin interfaceTxLog- 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_committed
public boolean write_committed(Uid u, String tn, OutputObjectState buff) throws ObjectStoreException
Description copied from interface:TxLogWrite a new copy of the object's committed state.- Specified by:
write_committedin interfaceTxLog- 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
-
sync
public void sync() throws SyncFailedException, ObjectStoreExceptionDescription copied from interface:TxLogSome object store implementations may be running with automatic sync disabled. Calling this method will ensure that any states are flushed to disk.- Specified by:
syncin interfaceTxLog- Throws:
SyncFailedExceptionObjectStoreException
-
getStoreName
public String getStoreName()
- Specified by:
getStoreNamein interfaceBaseStore- Returns:
- the "name" of the object store. Where in the hierarchy it appears, e.g., /ObjectStore/MyName/...
-
-