Interface ParticipantStore
- All Known Subinterfaces:
ObjectStoreAPI
- All Known Implementing Classes:
ActionStore
,CacheStore
,FileLockingStore
,FileSystemStore
,HashedActionStore
,HashedStore
,HornetqObjectStoreAdaptor
,JDBCStore
,LogStore
,NullActionStore
,ObjectStore
,ParticipantStoreProxy
,ShadowingStore
,ShadowNoFileLockStore
,SlotStoreAdaptor
,TwoPhaseVolatileStore
,VolatileStore
Transactional participants MUST use this type of ObjectStore. It allows
them to be driven through 2PC.
- Since:
- JTS 1.0.
- Version:
- $Id: ObjectStore.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark@arjuna.com)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
commit_state
(Uid u, String tn) Commit the object's state in the object store.boolean
read_committed
(Uid u, String tn) Read the object's committed state.read_uncommitted
(Uid u, String tn) Read the object's shadowed state.boolean
remove_uncommitted
(Uid u, String tn) Remove the object's uncommitted state.boolean
write_uncommitted
(Uid u, String tn, OutputObjectState buff) Write a copy of the object's uncommitted state.Methods inherited from interface com.arjuna.ats.arjuna.objectstore.BaseStore
getStoreName, start, stop
Methods inherited from interface com.arjuna.ats.arjuna.objectstore.TxLog
remove_committed, sync, write_committed
-
Method Details
-
commit_state
Commit the object's state in the object store.- Parameters:
u
- The object to work on.tn
- The type of the object to work on.- Returns:
true
if no errors occurred,false
otherwise.- Throws:
ObjectStoreException
-
read_committed
Read the object's committed state.- Parameters:
u
- The object to work on.tn
- The type of the object to work on.- Returns:
- the state of the object.
- Throws:
ObjectStoreException
-
read_uncommitted
Read the object's shadowed state.- Parameters:
u
- The object to work on.tn
- The type of the object to work on.- Returns:
- the state of the object.
- Throws:
ObjectStoreException
-
remove_uncommitted
Remove the object's uncommitted state.- Parameters:
u
- The object to work on.tn
- The type of the object to work on.- Returns:
true
if no errors occurred,false
otherwise.- Throws:
ObjectStoreException
-
write_uncommitted
Write a copy of the object's uncommitted state.- Parameters:
u
- The object to work on.tn
- The type of the object to work on.buff
- The state to write.- Returns:
true
if no errors occurred,false
otherwise.- Throws:
ObjectStoreException
-
fullCommitNeeded
boolean fullCommitNeeded()
-