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, wait
commit_state, read_committed, read_uncommitted, remove_uncommitted, write_uncommitted
allObjUids, allTypes, currentState, hide_state, read_committed, reveal_state
remove_committed, write_committed
getStoreName
protected final int shareStatus
protected final String _objectStoreRoot
protected ObjectStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException
ObjectStoreException
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 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.