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, renameFromToInternal, supressEntry, synchronousWrites, truncate, unlock, write_committed, write_uncommitted
allObjUids, fullCommitNeeded, initialise, isType, locateStore, shareState, start, stop, storeDir, storeRoot, sync
public static final char HIDDINGCHAR
public static final char SHADOWCHAR
public ShadowingStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException
ObjectStoreException
public int currentState(Uid objUid, String tName) throws ObjectStoreException
objUid
- The object to query.tName
- The type of the object to query.ObjectStoreException
public 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.ObjectStoreException
public 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.ObjectStoreException
public boolean reveal_state(Uid objUid, String tName) throws ObjectStoreException
RecoveryStore
objUid
- The object to work on.tName
- The type of the object to work on.true
if no errors occurred, false
otherwise.ObjectStoreException
protected String genPathName(Uid objUid, String tName, int ft) throws ObjectStoreException
genPathName
in class FileSystemStore
ObjectStoreException
protected String revealedId(String name)
ObjectStore
revealedId
in class ObjectStore
protected InputObjectState read_state(Uid objUid, String tName, int ft) throws ObjectStoreException
read_state
in class FileSystemStore
ObjectStoreException
protected boolean remove_state(Uid objUid, String name, int ft) throws ObjectStoreException
remove_state
in class FileSystemStore
ObjectStoreException
protected boolean write_state(Uid objUid, String tName, OutputObjectState state, int ft) throws ObjectStoreException
write_state
in class FileSystemStore
ObjectStoreException
Copyright © 2021 JBoss by Red Hat. All rights reserved.