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

java.lang.Object
  extended by com.arjuna.ats.arjuna.tools.osb.api.proxy.TxLogProxy
      extended by 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
ParticipantStoreProxy(ParticipantStoreBeanMBean rsProxy)
           
 
Method Summary
 boolean commit_state(Uid u, String tn)
          Commit the object's state in the object store.
 boolean fullCommitNeeded()
           
 InputObjectState read_committed(Uid u, String tn)
          Read the object's committed state.
 InputObjectState read_uncommitted(Uid u, String tn)
          Read the object's shadowed state.
 boolean remove_uncommitted(Uid u, String tn)
          Remove the object's uncommitted state.
 boolean write_uncommitted(Uid u, 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.TxLog
remove_committed, sync, write_committed
 
Methods inherited from interface com.arjuna.ats.arjuna.objectstore.BaseStore
getStoreName, start, stop
 

Constructor Detail

ParticipantStoreProxy

public ParticipantStoreProxy(ParticipantStoreBeanMBean rsProxy)
Method Detail

commit_state

public boolean commit_state(Uid u,
                            String tn)
                     throws ObjectStoreException
Description copied from interface: ParticipantStore
Commit the object's state in the object store.

Specified by:
commit_state in interface ParticipantStore
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

read_committed

public InputObjectState read_committed(Uid u,
                                       String tn)
                                throws ObjectStoreException
Description copied from interface: ParticipantStore
Read the object's committed state.

Specified by:
read_committed in interface ParticipantStore
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,
                                         String tn)
                                  throws ObjectStoreException
Description copied from interface: ParticipantStore
Read the object's shadowed state.

Specified by:
read_uncommitted in interface ParticipantStore
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,
                                  String tn)
                           throws ObjectStoreException
Description copied from interface: ParticipantStore
Remove the object's uncommitted state.

Specified by:
remove_uncommitted in interface ParticipantStore
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_uncommitted

public boolean write_uncommitted(Uid u,
                                 String tn,
                                 OutputObjectState buff)
                          throws ObjectStoreException
Description copied from interface: ParticipantStore
Write a copy of the object's uncommitted state.

Specified by:
write_uncommitted in interface ParticipantStore
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

fullCommitNeeded

public boolean fullCommitNeeded()
Specified by:
fullCommitNeeded in interface ParticipantStore


Copyright © 2011. All Rights Reserved.