public abstract class ObjectStore extends java.lang.Object implements ObjectStoreAPI
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
_objectStoreRoot |
protected int |
shareStatus |
| Modifier | Constructor and Description |
|---|---|
protected |
ObjectStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allObjUids(java.lang.String s,
InputObjectState buff) |
boolean |
fullCommitNeeded()
Does this store need to do the full write_uncommitted/commit protocol?
|
void |
initialise(Uid u,
java.lang.String tn)
Initialise the object store.
|
boolean |
isType(Uid u,
java.lang.String tn,
int st)
Is the current state of the object the same as that provided as the last
parameter?
|
java.lang.String |
locateStore(java.lang.String localOSRoot) |
protected java.lang.String |
revealedId(java.lang.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() |
java.lang.String |
storeDir() |
java.lang.String |
storeRoot() |
protected abstract boolean |
supressEntry(java.lang.String name)
Suppress directories of the specified type from
allTypes etc?
|
void |
sync()
Some object store implementations may be running with automatic
sync disabled.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcommit_state, read_committed, read_uncommitted, remove_uncommitted, write_uncommittedallObjUids, allTypes, currentState, hide_state, read_committed, reveal_stateremove_committed, write_committedgetStoreNameprotected final int shareStatus
protected final java.lang.String _objectStoreRoot
protected ObjectStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException
ObjectStoreExceptionpublic boolean allObjUids(java.lang.String s,
InputObjectState buff)
throws ObjectStoreException
allObjUids in interface RecoveryStoreObjectStoreExceptionpublic void sync()
throws java.io.SyncFailedException,
ObjectStoreException
sync in interface TxLogjava.io.SyncFailedExceptionObjectStoreExceptionpublic java.lang.String locateStore(java.lang.String localOSRoot)
throws ObjectStoreException
localOSRoot - the root of the store.ObjectStoreExceptionpublic boolean fullCommitNeeded()
fullCommitNeeded in interface ParticipantStoretrue if full commit is needed, false
otherwise.public boolean isType(Uid u, java.lang.String tn, int st) throws ObjectStoreException
isType in interface RecoveryStoreu - 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.ObjectStoreExceptionpublic final void initialise(Uid u, java.lang.String tn)
public final int shareState()
public final java.lang.String storeDir()
public final java.lang.String storeRoot()
protected abstract boolean supressEntry(java.lang.String name)
protected java.lang.String revealedId(java.lang.String name)