Class FileLockingStore
java.lang.Object
com.arjuna.ats.arjuna.objectstore.ObjectStore
com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore
com.arjuna.ats.internal.arjuna.objectstore.FileLockingStore
- All Implemented Interfaces:
BaseStore
,ObjectStoreAPI
,ParticipantStore
,RecoveryStore
,TxLog
An refinement of the basic FileSystemStore which provides file-level locking.
- Since:
- JTS 1.0.
- Version:
- $Id: FileLockingStore.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.FileSystemStore
doSync, scanZeroLengthFiles, syncWrites
Fields inherited from class com.arjuna.ats.arjuna.objectstore.ObjectStore
_objectStoreRoot, shareStatus
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Lock files as we would do on a Unix system.protected abstract InputObjectState
read_state
(Uid u, String tn, int s) protected abstract boolean
remove_state
(Uid u, String tn, int s) protected boolean
Unlock the file in the object store.protected abstract boolean
write_state
(Uid u, String tn, OutputObjectState buff, int s) Methods inherited from class com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore
addToCache, allObjUids, allTypes, allTypes, closeAndUnlock, createHierarchy, exists, genPathName, getStoreName, openAndLock, read_committed, read_uncommitted, remove_committed, remove_uncommitted, removeFromCache, removeFromCache, renameFromTo, renameFromToInternal, supressEntry, synchronousWrites, truncate, write_committed, write_uncommitted
Methods inherited from class com.arjuna.ats.arjuna.objectstore.ObjectStore
allObjUids, fullCommitNeeded, initialise, isType, locateStore, revealedId, shareState, start, stop, storeDir, storeRoot, sync
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.arjuna.ats.arjuna.objectstore.ParticipantStore
commit_state
Methods inherited from interface com.arjuna.ats.arjuna.objectstore.RecoveryStore
currentState, hide_state, reveal_state
-
Constructor Details
-
FileLockingStore
public FileLockingStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException - Throws:
ObjectStoreException
-
-
Method Details
-
read_state
- Specified by:
read_state
in classFileSystemStore
- Throws:
ObjectStoreException
-
remove_state
- Specified by:
remove_state
in classFileSystemStore
- Throws:
ObjectStoreException
-
write_state
protected abstract boolean write_state(Uid u, String tn, OutputObjectState buff, int s) throws ObjectStoreException - Specified by:
write_state
in classFileSystemStore
- Throws:
ObjectStoreException
-
lock
Lock files as we would do on a Unix system.- Overrides:
lock
in classFileSystemStore
-
unlock
Description copied from class:FileSystemStore
Unlock the file in the object store.- Overrides:
unlock
in classFileSystemStore
-