public class ShadowingStore extends FileSystemStore
| Modifier and Type | Field and Description |
|---|---|
static char |
HIDDINGCHAR |
static char |
SHADOWCHAR |
doSync, scanZeroLengthFiles, syncWrites_objectStoreRoot, shareStatus| Constructor and Description |
|---|
ShadowingStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
commit_state(Uid objUid,
String tName)
Commit a previous write_state operation which was made with the SHADOW
StateType argument.
|
int |
currentState(Uid objUid,
String tName) |
protected String |
genPathName(Uid objUid,
String tName,
int ft) |
boolean |
hide_state(Uid objUid,
String tName)
Hide/reveal an object regardless of state.
|
protected InputObjectState |
read_state(Uid objUid,
String tName,
int ft) |
protected boolean |
remove_state(Uid objUid,
String name,
int ft) |
boolean |
reveal_state(Uid objUid,
String tName)
Reveal a hidden object's state.
|
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.
|
protected boolean |
write_state(Uid objUid,
String tName,
OutputObjectState state,
int ft)
write_state saves the ObjectState in a file named by the type and Uid of
the ObjectState.
|
addToCache, allObjUids, allTypes, allTypes, closeAndUnlock, createHierarchy, exists, getStoreName, lock, openAndLock, read_committed, read_uncommitted, remove_committed, remove_uncommitted, removeFromCache, removeFromCache, renameFromTo, supressEntry, synchronousWrites, truncate, unlock, write_committed, write_uncommittedallObjUids, fullCommitNeeded, initialise, isType, locateStore, shareState, start, stop, storeDir, storeRoot, syncpublic static final char HIDDINGCHAR
public static final char SHADOWCHAR
public ShadowingStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException
ObjectStoreExceptionpublic int currentState(Uid objUid, String tName) throws ObjectStoreException
objUid - The object to query.tName - The type of the object to query.ObjectStoreExceptionpublic boolean commit_state(Uid objUid, String tName) throws ObjectStoreException
objUid - The object to work on.tName - The type of the object to work on.true if no errors occurred, false
otherwise.ObjectStoreExceptionpublic boolean hide_state(Uid objUid, String tName) throws ObjectStoreException
objUid - The object to work on.tName - The type of the object to work on.true if no errors occurred, false
otherwise.ObjectStoreExceptionpublic boolean reveal_state(Uid objUid, String tName) throws ObjectStoreException
RecoveryStoreobjUid - The object to work on.tName - The type of the object to work on.true if no errors occurred, false
otherwise.ObjectStoreExceptionprotected String genPathName(Uid objUid, String tName, int ft) throws ObjectStoreException
genPathName in class FileSystemStoreObjectStoreExceptionprotected String revealedId(String name)
ObjectStorerevealedId in class ObjectStoreprotected InputObjectState read_state(Uid objUid, String tName, int ft) throws ObjectStoreException
read_state in class FileSystemStoreObjectStoreExceptionprotected boolean remove_state(Uid objUid, String name, int ft) throws ObjectStoreException
remove_state in class FileSystemStoreObjectStoreExceptionprotected boolean write_state(Uid objUid, String tName, OutputObjectState state, int ft) throws ObjectStoreException
write_state in class FileSystemStoreObjectStoreExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.