public interface Store
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
abortTransaction(TransactionID tid)
Notifies the store that the transaction is being Aborted.
|
void |
cache(Object._Impl impl)
Adds the given object to the cache.
|
ObjectCache.Entry |
cache(SerializedObject obj)
Adds the given object to the cache.
|
boolean |
checkForStaleObjects(LongKeyMap<java.lang.Integer> reads)
Determines whether the given set of objects are stale.
|
void |
commitTransaction(long transactionID)
Notifies the Store that the transaction should be committed.
|
long |
createOnum()
Obtains a new, unused object number from the Store.
|
void |
evict(long onum)
Evicts the object with the given onum from cache.
|
NodePrincipal |
getPrincipal()
Returns the NodePrincipal associated with this store.
|
fabric.util.Map |
getRoot()
Returns the root map of the Store
|
boolean |
isLocalStore()
Determines whether this is the local store.
|
java.lang.String |
name()
Returns this store's host name.
|
void |
prepareTransaction(long tid,
boolean singleStore,
boolean readOnly,
java.util.Collection<Object._Impl> toCreate,
LongKeyMap<java.lang.Integer> reads,
java.util.Collection<Object._Impl> writes)
Notifies the store that the transaction is entering the Prepare phase.
|
ObjectCache.Entry |
readFromCache(long onum)
Returns the cache entry for the given onum.
|
ObjectCache.Entry |
readObject(long onum)
Returns the cache entry for the given onum.
|
ObjectCache.Entry |
readObjectNoDissem(long onum)
Returns the cache entry for the requested object.
|
java.lang.String name()
NodePrincipal getPrincipal()
boolean isLocalStore()
void prepareTransaction(long tid, boolean singleStore, boolean readOnly, java.util.Collection<Object._Impl> toCreate, LongKeyMap<java.lang.Integer> reads, java.util.Collection<Object._Impl> writes) throws UnreachableNodeException, TransactionPrepareFailedException
ObjectCache.Entry readObject(long onum) throws AccessException
onum
- The identifier of the requested objectAccessException
ObjectCache.Entry readObjectNoDissem(long onum) throws AccessException
onum
- The identifier of the requested objectAccessException
ObjectCache.Entry readFromCache(long onum)
onum
- The identifier of the requested object.void abortTransaction(TransactionID tid) throws AccessException
tid
- the ID of the aborting transaction. This is assumed to specify a
top-level transaction.AccessException
void commitTransaction(long transactionID) throws UnreachableNodeException, TransactionCommitFailedException
transactionID
- the ID of the transaction to commitUnreachableNodeException
TransactionCommitFailedException
boolean checkForStaleObjects(LongKeyMap<java.lang.Integer> reads)
long createOnum() throws UnreachableNodeException
UnreachableNodeException
fabric.util.Map getRoot()
void evict(long onum)
void cache(Object._Impl impl)
ObjectCache.Entry cache(SerializedObject obj)