public class TwoPhaseVolatileStore extends ObjectStore
_objectStoreRoot, shareStatus
Constructor and Description |
---|
TwoPhaseVolatileStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) |
Modifier and Type | Method and Description |
---|---|
boolean |
allObjUids(String s,
InputObjectState buff,
int m)
Obtain all of the Uids for a specified type.
|
boolean |
allTypes(InputObjectState buff)
Obtain all types of objects stored in the object store.
|
boolean |
commit_state(Uid u,
String tn)
Commit the object's state in the object store.
|
int |
currentState(Uid u,
String tn) |
String |
getStoreName() |
boolean |
hide_state(Uid u,
String tn)
Hide the object's state in the object store.
|
InputObjectState |
read_committed(Uid u,
String tn)
Read the object's committed state.
|
InputObjectState |
read_uncommitted(Uid u,
String tn)
Read the object's shadowed state.
|
boolean |
remove_committed(Uid u,
String tn)
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.
|
protected boolean |
supressEntry(String name)
Suppress directories of the specified type from
allTypes etc?
|
boolean |
write_committed(Uid u,
String tn,
OutputObjectState buff)
Write a new copy of the object's committed state.
|
boolean |
write_uncommitted(Uid u,
String tn,
OutputObjectState buff)
Write a copy of the object's uncommitted state.
|
allObjUids, fullCommitNeeded, initialise, isType, locateStore, revealedId, shareState, start, stop, storeDir, storeRoot, sync
public TwoPhaseVolatileStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException
ObjectStoreException
public boolean allObjUids(String s, InputObjectState buff, int m) throws ObjectStoreException
s
- The type to scan for.buff
- The object state in which to store the Uidsm
- The file type to look for (e.g., committed, shadowed).true
if no errors occurred, false
otherwise.ObjectStoreException
public boolean allTypes(InputObjectState buff) throws ObjectStoreException
buff
- The state in which to store the types.true
if no errors occurred, false
otherwise.ObjectStoreException
public int currentState(Uid u, String tn) throws ObjectStoreException
u
- The object to query.tn
- The type of the object to query.ObjectStoreException
public String getStoreName()
public boolean commit_state(Uid u, String tn) throws ObjectStoreException
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 hide_state(Uid u, String tn) throws ObjectStoreException
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
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 u, String tn) throws ObjectStoreException
u
- The object to work on.tn
- The type of the object to work on.ObjectStoreException
public InputObjectState read_uncommitted(Uid u, String tn) throws ObjectStoreException
u
- The object to work on.tn
- The type of the object to work on.ObjectStoreException
public boolean remove_committed(Uid u, String tn) throws ObjectStoreException
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 remove_uncommitted(Uid u, String tn) throws ObjectStoreException
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 u, String tn, OutputObjectState buff) throws ObjectStoreException
u
- The object to work on.tn
- The type of the object to work on.buff
- The state to write.true
if no errors occurred, false
otherwise.ObjectStoreException
public boolean write_uncommitted(Uid u, String tn, OutputObjectState buff) throws ObjectStoreException
u
- The object to work on.tn
- The type of the object to work on.buff
- The state to write.true
if no errors occurred, false
otherwise.ObjectStoreException
protected boolean supressEntry(String name)
supressEntry
in class ObjectStore
Copyright © 2021 JBoss by Red Hat. All rights reserved.