public abstract class ObjectStore extends Object implements ObjectStoreAPI
| Modifier and Type | Field and Description |
|---|---|
protected String |
_objectStoreRoot |
protected int |
shareStatus |
| Modifier | Constructor and Description |
|---|---|
protected |
ObjectStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 String _objectStoreRoot
protected ObjectStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException
ObjectStoreExceptionpublic boolean allObjUids(String s, InputObjectState buff) throws ObjectStoreException
allObjUids in interface RecoveryStoreObjectStoreExceptionpublic void sync()
throws SyncFailedException,
ObjectStoreException
sync in interface TxLogSyncFailedExceptionObjectStoreExceptionpublic String locateStore(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, 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 int shareState()
public final String storeDir()
public final String storeRoot()
protected abstract boolean supressEntry(String name)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.