Class TxLogProxy
java.lang.Object
com.arjuna.ats.arjuna.tools.osb.api.proxy.TxLogProxy
- Direct Known Subclasses:
ParticipantStoreProxy
,RecoveryStoreProxy
Remote proxy to a TxLog Store
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
remove_committed
(Uid u, String tn) Remove the object's committed state.void
start()
void
stop()
void
sync()
Some object store implementations may be running with automatic sync disabled.boolean
write_committed
(Uid u, String tn, OutputObjectState buff) Write a new copy of the object's committed state.
-
Constructor Details
-
TxLogProxy
-
-
Method Details
-
remove_committed
Description copied from interface:TxLog
Remove the object's committed state.- Specified by:
remove_committed
in interfaceTxLog
- Parameters:
u
- The object to work on.tn
- The type of the object to work on.- Returns:
true
if no errors occurred,false
otherwise.- Throws:
ObjectStoreException
-
write_committed
public boolean write_committed(Uid u, String tn, OutputObjectState buff) throws ObjectStoreException Description copied from interface:TxLog
Write a new copy of the object's committed state.- Specified by:
write_committed
in interfaceTxLog
- Parameters:
u
- The object to work on.tn
- The type of the object to work on.buff
- The state to write.- Returns:
true
if no errors occurred,false
otherwise.- Throws:
ObjectStoreException
-
sync
Description copied from interface:TxLog
Some object store implementations may be running with automatic sync disabled. Calling this method will ensure that any states are flushed to disk.- Specified by:
sync
in interfaceTxLog
- Throws:
SyncFailedException
ObjectStoreException
-
getStoreName
- Specified by:
getStoreName
in interfaceBaseStore
- Returns:
- the "name" of the object store. Where in the hierarchy it appears, e.g., /ObjectStore/MyName/...
-
start
public void start() -
stop
public void stop()
-