Class BasicPersistentLockStore
java.lang.Object
com.arjuna.ats.txoj.lockstore.LockStore
com.arjuna.ats.internal.txoj.lockstore.BasicPersistentLockStore
An implementation of the lock store which saves locks into files on the local
machine. Thus, multiple JVMs may share locks by reading and writing to the
same files.
- Since:
- JTS 1.0.
- Version:
- $Id: BasicPersistentLockStore.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com)
-
Constructor Summary
ConstructorDescriptionBasicPersistentLockStore
(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) -
Method Summary
Modifier and TypeMethodDescriptionread_state
(Uid u, String tName) boolean
remove_state
(Uid u, String tName) Remove the state from the lock store.boolean
write_committed
(Uid u, String tName, OutputObjectState state) Write the state to the lock store.
-
Constructor Details
-
BasicPersistentLockStore
public BasicPersistentLockStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException - Throws:
ObjectStoreException
-
-
Method Details
-
read_state
- Specified by:
read_state
in classLockStore
- Throws:
LockStoreException
-
remove_state
Description copied from class:LockStore
Remove the state from the lock store.- Specified by:
remove_state
in classLockStore
-
write_committed
Description copied from class:LockStore
Write the state to the lock store.- Specified by:
write_committed
in classLockStore
-