|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.arjuna.ats.arjuna.objectstore.ObjectStore
public abstract class ObjectStore
The object store interface is the application's route to using a specific object store implementation. The interface dynamically binds to an implementation of the right type. This is the base class from which all object store types are derived. Note that because object store instances are stateless, to improve efficiency we try to only create one instance of each type per process. Therefore, the create and destroy methods are used instead of new and delete. If an object store is accessed via create it *must* be deleted using destroy. Of course it is still possible to make use of new directly.
Field Summary | |
---|---|
protected String |
_objectStoreRoot
|
protected int |
shareStatus
|
Constructor Summary | |
---|---|
protected |
ObjectStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean)
|
Method Summary | |
---|---|
boolean |
allObjUids(String s,
InputObjectState buff)
|
boolean |
fullCommitNeeded()
Does this store need to do the full write_uncommitted/commit protocol? |
void |
initialise(Uid u,
String tn)
Initialise the object store. |
boolean |
isType(Uid u,
String tn,
int st)
Is the current state of the object the same as that provided as the last parameter? |
String |
locateStore(String localOSRoot)
|
protected String |
revealedId(String name)
Given a type id which is possibly hidden (e.g., has a ! at the end), make it a valid Uid so we can return it. |
int |
shareState()
|
void |
start()
|
void |
stop()
|
String |
storeDir()
|
String |
storeRoot()
|
protected abstract boolean |
supressEntry(String name)
Suppress directories of the specified type from allTypes etc? |
void |
sync()
Some object store implementations may be running with automatic sync disabled. |
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.ParticipantStore |
---|
commit_state, read_committed, read_uncommitted, remove_uncommitted, write_uncommitted |
Methods inherited from interface com.arjuna.ats.arjuna.objectstore.RecoveryStore |
---|
allObjUids, allTypes, currentState, hide_state, read_committed, reveal_state |
Methods inherited from interface com.arjuna.ats.arjuna.objectstore.TxLog |
---|
remove_committed, write_committed |
Methods inherited from interface com.arjuna.ats.arjuna.objectstore.BaseStore |
---|
getStoreName |
Field Detail |
---|
protected final int shareStatus
protected final String _objectStoreRoot
Constructor Detail |
---|
protected ObjectStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException
ObjectStoreException
Method Detail |
---|
public void start()
start
in interface BaseStore
public void stop()
stop
in interface BaseStore
public boolean allObjUids(String s, InputObjectState buff) throws ObjectStoreException
allObjUids
in interface RecoveryStore
ObjectStoreException
public void sync() throws SyncFailedException, ObjectStoreException
sync
in interface TxLog
SyncFailedException
ObjectStoreException
public String locateStore(String localOSRoot) throws ObjectStoreException
localOSRoot
- the root of the store.
ObjectStoreException
public boolean fullCommitNeeded()
fullCommitNeeded
in interface ParticipantStore
true
if full commit is needed, false
otherwise.public boolean isType(Uid u, String tn, int st) throws ObjectStoreException
isType
in interface RecoveryStore
u
- The object to work on.tn
- The type of the object.st
- The expected type of the object.
true
if the current state is as expected,
false
otherwise.
ObjectStoreException
public final void initialise(Uid u, String tn)
public final int shareState()
public final String storeDir()
public final String storeRoot()
protected abstract boolean supressEntry(String name)
protected String revealedId(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |