public final class LocalStore extends java.lang.Object implements Store, java.io.Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
LocalStore()
The singleton LocalStore object is managed by the Worker class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abortTransaction(TransactionID tid)
Notifies the store that the transaction is being Aborted.
|
void |
addLocalDelegation(Principal p,
Principal q) |
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.
|
ConfPolicy |
getBottomConfidPolicy() |
IntegPolicy |
getBottomIntegPolicy() |
Label |
getEmptyLabel() |
NodePrincipal |
getPrincipal()
Returns the NodePrincipal associated with this store.
|
Label |
getPublicReadonlyLabel() |
Map |
getRoot()
Returns the root map of the Store
|
ConfPolicy |
getTopConfidPolicy() |
IntegPolicy |
getTopIntegPolicy() |
Principal |
getTopPrincipal() |
int |
hashCode() |
void |
initialize() |
boolean |
isLocalStore()
Determines whether this is the local store.
|
boolean |
localDelegatesTo(Principal p,
Principal q) |
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.
|
void |
removeLocalDelegation(Principal p,
Principal q) |
java.lang.String |
toString() |
protected LocalStore()
fabric.worker.Worker.getLocalStorepublic 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)
StoreprepareTransaction in interface Storepublic void abortTransaction(TransactionID tid)
StoreabortTransaction in interface Storetid - the ID of the aborting transaction. This is assumed to specify a
top-level transaction.public void commitTransaction(long transactionID)
StorecommitTransaction in interface StoretransactionID - the ID of the transaction to commitpublic long createOnum()
StorecreateOnum in interface Storepublic ObjectCache.Entry readObject(long onum)
StorereadObject in interface Storeonum - The identifier of the requested objectpublic ObjectCache.Entry readObjectNoDissem(long onum)
StorereadObjectNoDissem in interface Storeonum - The identifier of the requested objectpublic ObjectCache.Entry readFromCache(long onum)
StorereadFromCache in interface Storeonum - The identifier of the requested object.public boolean checkForStaleObjects(LongKeyMap<java.lang.Integer> reads)
StorecheckForStaleObjects in interface Storepublic java.lang.String toString()
toString in class java.lang.Objectpublic Map getRoot()
Storepublic Principal getTopPrincipal()
public ConfPolicy getTopConfidPolicy()
public ConfPolicy getBottomConfidPolicy()
public IntegPolicy getTopIntegPolicy()
public IntegPolicy getBottomIntegPolicy()
public Label getEmptyLabel()
public Label getPublicReadonlyLabel()
public java.lang.String name()
Storepublic NodePrincipal getPrincipal()
StoregetPrincipal in interface Storepublic boolean isLocalStore()
StoreisLocalStore in interface Storepublic int hashCode()
hashCode in class java.lang.Objectpublic void evict(long onum)
Storepublic void cache(Object._Impl impl)
Storepublic ObjectCache.Entry cache(SerializedObject obj)
Storepublic void initialize()