public class CacheStore extends HashedStore
DEFAULT_NUMBER_DIRECTORIES, SHADOWCHARHIDDINGCHARdoSync, 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, truncatelock, unlockcurrentState, hide_state, reveal_state, revealedIdaddToCache, allTypes, allTypes, closeAndUnlock, createHierarchy, exists, getStoreName, openAndLock, read_committed, read_uncommitted, remove_committed, remove_uncommitted, removeFromCache, removeFromCache, renameFromTo, supressEntry, synchronousWrites, write_committed, write_uncommittedallObjUids, fullCommitNeeded, initialise, isType, locateStore, shareState, start, stop, storeDir, storeRootpublic CacheStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException
ObjectStoreExceptionpublic boolean commit_state(Uid objUid, String tName) throws ObjectStoreException
ShadowingStorecommit_state in interface ParticipantStorecommit_state in class ShadowingStoreobjUid - The object to work on.tName - The type of the object to work on.true if no errors occurred, false
otherwise.ObjectStoreExceptionpublic void sync()
throws SyncFailedException,
ObjectStoreException
ObjectStoresync in interface TxLogsync in class ObjectStoreSyncFailedExceptionObjectStoreExceptionprotected boolean remove_state(Uid objUid, String name, int ft) throws ObjectStoreException
remove_state in class ShadowingStoreObjectStoreExceptionprotected boolean write_state(Uid objUid, String tName, OutputObjectState state, int ft) throws ObjectStoreException
ShadowingStorewrite_state in class ShadowingStoreObjectStoreExceptionprotected InputObjectState read_state(Uid objUid, String tName, int ft) throws ObjectStoreException
read_state in class ShadowingStoreObjectStoreExceptionprotected boolean commitState(Uid objUid, String tName) throws ObjectStoreException
ObjectStoreExceptionprotected boolean removeState(Uid objUid, String name, int ft) throws ObjectStoreException
ObjectStoreExceptionprotected boolean writeState(Uid objUid, String tName, OutputObjectState state, int ft) throws ObjectStoreException
ObjectStoreExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.