Class HashedActionStore
java.lang.Object
com.arjuna.ats.arjuna.objectstore.ObjectStore
com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore
com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore
com.arjuna.ats.internal.arjuna.objectstore.ShadowNoFileLockStore
com.arjuna.ats.internal.arjuna.objectstore.HashedStore
com.arjuna.ats.internal.arjuna.objectstore.HashedActionStore
- All Implemented Interfaces:
BaseStore
,ObjectStoreAPI
,ParticipantStore
,RecoveryStore
,TxLog
The basic action store implementations store the object states in a separate
file within the same directory in the object store, determined by the
object's type. However, as the number of file entries within the directory
increases, so does the search time for finding a specific file. The HashStore
implementation hashes object states over many different sub-directories to
attempt to keep the number of files in a given directory low, thus improving
performance as the number of object states grows. Currently the hash number
is set for both user hashed stores and action hashed stores.
- Since:
- JTS 2.1.
- Version:
- $Id: HashedActionStore.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com)
-
Field Summary
Fields inherited from class com.arjuna.ats.internal.arjuna.objectstore.HashedStore
DEFAULT_NUMBER_DIRECTORIES, SHADOWCHAR
Fields inherited from class com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore
HIDDINGCHAR
Fields inherited from class com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore
doSync, scanZeroLengthFiles, syncWrites
Fields inherited from class com.arjuna.ats.arjuna.objectstore.ObjectStore
_objectStoreRoot, shareStatus
-
Constructor Summary
-
Method Summary
Methods inherited from class com.arjuna.ats.internal.arjuna.objectstore.HashedStore
allObjUids, genPathName, truncate
Methods inherited from class com.arjuna.ats.internal.arjuna.objectstore.ShadowNoFileLockStore
lock, unlock
Methods inherited from class com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore
commit_state, currentState, hide_state, read_state, remove_state, reveal_state, revealedId, write_state
Methods inherited from class com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore
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
Methods inherited from class com.arjuna.ats.arjuna.objectstore.ObjectStore
allObjUids, fullCommitNeeded, initialise, isType, locateStore, shareState, start, stop, storeDir, storeRoot, sync
-
Constructor Details
-
HashedActionStore
public HashedActionStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException - Throws:
ObjectStoreException
-