public class CacheStore extends HashedStore
DEFAULT_NUMBER_DIRECTORIES, SHADOWCHAR
HIDDINGCHAR
doSync, scanZeroLengthFiles, syncWrites
_objectStoreRoot, shareStatus
Constructor and Description |
---|
CacheStore(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.
|
protected boolean |
commitState(Uid objUid,
String tName) |
protected InputObjectState |
read_state(Uid objUid,
String tName,
int ft)
Before we look at the disk let's look in the state cache first for the
state, just in case it hasn't been written out to persistent store yet.
|
protected boolean |
remove_state(Uid objUid,
String name,
int ft) |
protected boolean |
removeState(Uid objUid,
String name,
int ft) |
void |
sync()
Some object store implementations may be running with automatic
sync disabled.
|
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.
|
protected boolean |
writeState(Uid objUid,
String tName,
OutputObjectState state,
int ft) |
allObjUids, genPathName, truncate
lock, unlock
currentState, hide_state, reveal_state, revealedId
addToCache, allTypes, allTypes, closeAndUnlock, createHierarchy, exists, getStoreName, openAndLock, read_committed, read_uncommitted, remove_committed, remove_uncommitted, removeFromCache, removeFromCache, renameFromTo, renameFromToInternal, supressEntry, synchronousWrites, write_committed, write_uncommitted
allObjUids, fullCommitNeeded, initialise, isType, locateStore, shareState, start, stop, storeDir, storeRoot
public CacheStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException
ObjectStoreException
public boolean commit_state(Uid objUid, String tName) throws ObjectStoreException
ShadowingStore
commit_state
in interface ParticipantStore
commit_state
in class ShadowingStore
objUid
- The object to work on.tName
- The type of the object to work on.true
if no errors occurred, false
otherwise.ObjectStoreException
public void sync() throws SyncFailedException, ObjectStoreException
ObjectStore
sync
in interface TxLog
sync
in class ObjectStore
SyncFailedException
ObjectStoreException
protected boolean remove_state(Uid objUid, String name, int ft) throws ObjectStoreException
remove_state
in class ShadowingStore
ObjectStoreException
protected boolean write_state(Uid objUid, String tName, OutputObjectState state, int ft) throws ObjectStoreException
ShadowingStore
write_state
in class ShadowingStore
ObjectStoreException
protected InputObjectState read_state(Uid objUid, String tName, int ft) throws ObjectStoreException
read_state
in class ShadowingStore
ObjectStoreException
protected boolean commitState(Uid objUid, String tName) throws ObjectStoreException
ObjectStoreException
protected boolean removeState(Uid objUid, String name, int ft) throws ObjectStoreException
ObjectStoreException
protected boolean writeState(Uid objUid, String tName, OutputObjectState state, int ft) throws ObjectStoreException
ObjectStoreException
Copyright © 2021 JBoss by Red Hat. All rights reserved.