|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Store
Method Summary | |
---|---|
void |
abortTransaction(boolean useAuthentication,
TransactionID tid)
Notifies the store that the transaction is being Aborted. |
void |
cache(Object._Impl impl)
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(boolean useAuthentication,
long transactionID)
Notifies the Store that the transaction should be committed. |
long |
createOnum()
Obtains a new, unused object number from the Store. |
boolean |
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. |
boolean |
notifyEvict(long onum)
Notifies this Store object that an _Impl has been evicted, so that it can perform the necessary cache maintenance. |
boolean |
prepareTransaction(boolean useAuthentication,
long tid,
long commitTime,
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. |
Object._Impl |
readObject(long onum)
Returns the requested _Impl object. |
Object._Impl |
readObjectFromCache(long onum)
Returns the requested _Impl object if it exists in the object cache. |
Object._Impl |
readObjectNoDissem(long onum)
Returns the requested _Impl object, fetching it directly from the Store if it is not resident. |
Method Detail |
---|
java.lang.String name()
NodePrincipal getPrincipal()
boolean isLocalStore()
boolean prepareTransaction(boolean useAuthentication, long tid, long commitTime, java.util.Collection<Object._Impl> toCreate, LongKeyMap<java.lang.Integer> reads, java.util.Collection<Object._Impl> writes) throws UnreachableNodeException, TransactionPrepareFailedException
UnreachableNodeException
TransactionPrepareFailedException
Object._Impl readObject(long onum) throws FetchException
onum
- The identifier of the requested object
FetchException
Object._Impl readObjectNoDissem(long onum) throws FetchException
onum
- The identifier of the requested object
FetchException
Object._Impl readObjectFromCache(long onum)
onum
- The identifier of the requested object.
void abortTransaction(boolean useAuthentication, TransactionID tid)
useAuthentication
- tid
- the ID of the aborting transaction. This is assumed to specify a
top-level transaction.void commitTransaction(boolean useAuthentication, long transactionID) throws UnreachableNodeException, TransactionCommitFailedException
transactionID
- the ID of the transaction to commit
UnreachableNodeException
TransactionCommitFailedException
boolean checkForStaleObjects(LongKeyMap<java.lang.Integer> reads)
long createOnum() throws UnreachableNodeException
UnreachableNodeException
fabric.util.Map getRoot()
boolean notifyEvict(long onum)
onum
- Onum of the object that was evicted.
boolean evict(long onum)
void cache(Object._Impl impl)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |