|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfabric.worker.LocalStore
public final class LocalStore
| Constructor Summary | |
|---|---|
protected |
LocalStore()
The singleton LocalStore object is managed by the Worker class. |
| Method Summary | |
|---|---|
void |
abortTransaction(boolean useAuthentication,
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. |
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. |
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. |
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. |
void |
removeLocalDelegation(Principal p,
Principal q)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected LocalStore()
fabric.worker.Worker.getLocalStore| Method Detail |
|---|
public 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)
Store
prepareTransaction in interface Store
public void abortTransaction(boolean useAuthentication,
TransactionID tid)
Store
abortTransaction in interface Storetid - the ID of the aborting transaction. This is assumed to specify a
top-level transaction.
public void commitTransaction(boolean useAuthentication,
long transactionID)
Store
commitTransaction in interface StoretransactionID - the ID of the transaction to commitpublic long createOnum()
Store
createOnum in interface Storepublic Object._Impl readObject(long onum)
Store
readObject in interface Storeonum - The identifier of the requested object
public Object._Impl readObjectNoDissem(long onum)
Store
readObjectNoDissem in interface Storeonum - The identifier of the requested object
public Object._Impl readObjectFromCache(long onum)
Store
readObjectFromCache in interface Storeonum - The identifier of the requested object.
public boolean checkForStaleObjects(LongKeyMap<java.lang.Integer> reads)
Store
checkForStaleObjects in interface Storepublic java.lang.String toString()
toString in class java.lang.Objectpublic Map getRoot()
Store
getRoot in interface Store
public void addLocalDelegation(Principal p,
Principal q)
public void removeLocalDelegation(Principal p,
Principal q)
public boolean localDelegatesTo(Principal p,
Principal q)
public 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()
Store
name in interface Storepublic NodePrincipal getPrincipal()
Store
getPrincipal in interface Storepublic boolean isLocalStore()
Store
isLocalStore in interface Storepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean notifyEvict(long onum)
Store
notifyEvict in interface Storeonum - Onum of the object that was evicted.
public boolean evict(long onum)
Store
evict in interface Storepublic void cache(Object._Impl impl)
Store
cache in interface Storepublic void initialize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||