com.arjuna.ats.arjuna.tools.osb.api.proxy
Class TxLogProxy

java.lang.Object
  extended by com.arjuna.ats.arjuna.tools.osb.api.proxy.TxLogProxy
All Implemented Interfaces:
BaseStore, TxLog
Direct Known Subclasses:
ParticipantStoreProxy, RecoveryStoreProxy

public class TxLogProxy
extends Object
implements TxLog

Remote proxy to a TxLog Store


Constructor Summary
TxLogProxy(TxLogBeanMBean txLogProxy)
           
 
Method Summary
 String getStoreName()
           
 boolean 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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: TxLog
Remove the object's committed state.

Specified by:
remove_committed in interface TxLog
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 interface TxLog
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

public void sync()
          throws SyncFailedException,
                 ObjectStoreException
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 interface TxLog
Throws:
SyncFailedException
ObjectStoreException

getStoreName

public String getStoreName()
Specified by:
getStoreName in interface BaseStore
Returns:
the "name" of the object store. Where in the hierarchy it appears, e.g., /ObjectStore/MyName/...

start

public void start()
Specified by:
start in interface BaseStore

stop

public void stop()
Specified by:
stop in interface BaseStore


Copyright © 2011. All Rights Reserved.