Class RecoveryStoreProxy
- java.lang.Object
-
- com.arjuna.ats.arjuna.tools.osb.api.proxy.TxLogProxy
-
- com.arjuna.ats.arjuna.tools.osb.api.proxy.RecoveryStoreProxy
-
- All Implemented Interfaces:
BaseStore,RecoveryStore,TxLog
public class RecoveryStoreProxy extends TxLogProxy implements RecoveryStore
Remote proxy to a RecoveryStore
-
-
Constructor Summary
Constructors Constructor Description RecoveryStoreProxy(RecoveryStoreBeanMBean rsProxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallObjUids(java.lang.String type, InputObjectState buff)Obtain all of the Uids for a specified type, regardless of their state.booleanallObjUids(java.lang.String type, InputObjectState buff, int match)Obtain all of the Uids for a specified type.booleanallTypes(InputObjectState buff)Obtain all types of objects stored in the object store.intcurrentState(Uid u, java.lang.String tn)booleanhide_state(Uid u, java.lang.String tn)Hide the object's state in the object store.booleanisType(Uid u, java.lang.String tn, int st)Is the current state of the object the same as that provided as the last parameter?InputObjectStateread_committed(Uid u, java.lang.String tn)Read the object's committed state.booleanreveal_state(Uid u, java.lang.String tn)Reveal a hidden object's 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
-
RecoveryStoreProxy
public RecoveryStoreProxy(RecoveryStoreBeanMBean rsProxy)
-
-
Method Detail
-
allObjUids
public boolean allObjUids(java.lang.String type, InputObjectState buff, int match) throws ObjectStoreExceptionDescription copied from interface:RecoveryStoreObtain all of the Uids for a specified type.- Specified by:
allObjUidsin interfaceRecoveryStore- Parameters:
type- The type to scan for.buff- The object state in which to store the Uidsmatch- The file type to look for (e.g., committed, shadowed). [StateStatus] Note: m=OS_UNKNOWN matches any state.- Returns:
trueif no errors occurred,falseotherwise.- Throws:
ObjectStoreException
-
allObjUids
public boolean allObjUids(java.lang.String type, InputObjectState buff) throws ObjectStoreExceptionDescription copied from interface:RecoveryStoreObtain all of the Uids for a specified type, regardless of their state.- Specified by:
allObjUidsin interfaceRecoveryStore- Parameters:
type- The type to scan for.buff- The object state in which to store the Uids- Returns:
trueif no errors occurred,falseotherwise.- Throws:
ObjectStoreException
-
allTypes
public boolean allTypes(InputObjectState buff) throws ObjectStoreException
Description copied from interface:RecoveryStoreObtain all types of objects stored in the object store.- Specified by:
allTypesin interfaceRecoveryStore- Parameters:
buff- The state in which to store the types.- Returns:
trueif no errors occurred,falseotherwise.- Throws:
ObjectStoreException
-
currentState
public int currentState(Uid u, java.lang.String tn) throws ObjectStoreException
- Specified by:
currentStatein interfaceRecoveryStore- Parameters:
u- The object to query.tn- The type of the object to query.- Returns:
- the current state of the object's state (e.g., shadowed, committed ...) [StateStatus]
- Throws:
ObjectStoreException
-
hide_state
public boolean hide_state(Uid u, java.lang.String tn) throws ObjectStoreException
Description copied from interface:RecoveryStoreHide the object's state in the object store. Used by crash recovery.- Specified by:
hide_statein interfaceRecoveryStore- Parameters:
u- The object to work on.tn- The type of the object to work on.- Returns:
trueif no errors occurred,falseotherwise.- Throws:
ObjectStoreException
-
reveal_state
public boolean reveal_state(Uid u, java.lang.String tn) throws ObjectStoreException
Description copied from interface:RecoveryStoreReveal a hidden object's state.- Specified by:
reveal_statein interfaceRecoveryStore- 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:RecoveryStoreRead the object's committed state.- Specified by:
read_committedin interfaceRecoveryStore- Parameters:
u- The object to work on.tn- The type of the object to work on.- Returns:
- the state of the object.
- Throws:
ObjectStoreException
-
isType
public boolean isType(Uid u, java.lang.String tn, int st) throws ObjectStoreException
Description copied from interface:RecoveryStoreIs the current state of the object the same as that provided as the last parameter?- Specified by:
isTypein interfaceRecoveryStore- Parameters:
u- The object to work on.tn- The type of the object.st- The expected type of the object. [StateType]- Returns:
trueif the current state is as expected,falseotherwise.- Throws:
ObjectStoreException
-
-