public class NullActionStore extends ShadowNoFileLockStore
HIDDINGCHAR, SHADOWCHAR
doSync, scanZeroLengthFiles, syncWrites
_objectStoreRoot, shareStatus
Constructor and Description |
---|
NullActionStore(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.
|
int |
currentState(Uid objUid,
String tName) |
boolean |
hide_state(Uid u,
String tn)
Hide/reveal an object regardless of state.
|
InputObjectState |
read_committed(Uid storeUid,
String tName)
Read the object's committed state.
|
InputObjectState |
read_uncommitted(Uid u,
String tn)
Read the object's shadowed state.
|
boolean |
remove_committed(Uid storeUid,
String tName)
Remove the object's committed state.
|
boolean |
remove_uncommitted(Uid u,
String tn)
Remove the object's uncommitted state.
|
boolean |
reveal_state(Uid u,
String tn)
Reveal a hidden object's state.
|
boolean |
write_committed(Uid storeUid,
String tName,
OutputObjectState state)
Write a new copy of the object's committed state.
|
boolean |
write_uncommitted(Uid u,
String tn,
OutputObjectState s)
Write a copy of the object's uncommitted state.
|
lock, unlock
genPathName, read_state, remove_state, revealedId, write_state
addToCache, allObjUids, allTypes, allTypes, closeAndUnlock, createHierarchy, exists, getStoreName, openAndLock, removeFromCache, removeFromCache, renameFromTo, renameFromToInternal, supressEntry, synchronousWrites, truncate
allObjUids, fullCommitNeeded, initialise, isType, locateStore, shareState, start, stop, storeDir, storeRoot, sync
public NullActionStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException
ObjectStoreException
public int currentState(Uid objUid, String tName) throws ObjectStoreException
currentState
in interface RecoveryStore
currentState
in class ShadowingStore
objUid
- The object to query.tName
- The type of the object to query.ObjectStoreException
public boolean commit_state(Uid objUid, String tName) throws ObjectStoreException
commit_state
in interface ParticipantStore
commit_state
in class ShadowingStore
objUid
- The object to work on.tName
- The type of the object to work on.true
if no errors occurred, false
otherwise.ObjectStoreException
public boolean hide_state(Uid u, String tn) throws ObjectStoreException
ShadowingStore
hide_state
in interface RecoveryStore
hide_state
in class ShadowingStore
u
- The object to work on.tn
- The type of the object to work on.true
if no errors occurred, false
otherwise.ObjectStoreException
public boolean reveal_state(Uid u, String tn) throws ObjectStoreException
RecoveryStore
reveal_state
in interface RecoveryStore
reveal_state
in class ShadowingStore
u
- The object to work on.tn
- The type of the object to work on.true
if no errors occurred, false
otherwise.ObjectStoreException
public InputObjectState read_committed(Uid storeUid, String tName) throws ObjectStoreException
ParticipantStore
read_committed
in interface ParticipantStore
read_committed
in interface RecoveryStore
read_committed
in class FileSystemStore
storeUid
- The object to work on.tName
- The type of the object to work on.ObjectStoreException
public InputObjectState read_uncommitted(Uid u, String tn) throws ObjectStoreException
ParticipantStore
read_uncommitted
in interface ParticipantStore
read_uncommitted
in class FileSystemStore
u
- The object to work on.tn
- The type of the object to work on.ObjectStoreException
public boolean remove_committed(Uid storeUid, String tName) throws ObjectStoreException
TxLog
remove_committed
in interface TxLog
remove_committed
in class FileSystemStore
storeUid
- The object to work on.tName
- The type of the object to work on.true
if no errors occurred, false
otherwise.ObjectStoreException
public boolean remove_uncommitted(Uid u, String tn) throws ObjectStoreException
ParticipantStore
remove_uncommitted
in interface ParticipantStore
remove_uncommitted
in class FileSystemStore
u
- The object to work on.tn
- The type of the object to work on.true
if no errors occurred, false
otherwise.ObjectStoreException
public boolean write_committed(Uid storeUid, String tName, OutputObjectState state) throws ObjectStoreException
TxLog
write_committed
in interface TxLog
write_committed
in class FileSystemStore
storeUid
- The object to work on.tName
- The type of the object to work on.state
- The state to write.true
if no errors occurred, false
otherwise.ObjectStoreException
public boolean write_uncommitted(Uid u, String tn, OutputObjectState s) throws ObjectStoreException
ParticipantStore
write_uncommitted
in interface ParticipantStore
write_uncommitted
in class FileSystemStore
u
- The object to work on.tn
- The type of the object to work on.s
- The state to write.true
if no errors occurred, false
otherwise.ObjectStoreException
Copyright © 2021 JBoss by Red Hat. All rights reserved.