public class InProcessStore extends RemoteStore
RemoteStore.SerializationProxy| Modifier and Type | Field and Description |
|---|---|
protected RemoteIdentity<RemoteWorker> |
localWorkerIdentity |
protected SurrogateManager |
sm |
protected TransactionManager |
tm |
name| Constructor and Description |
|---|
InProcessStore(java.lang.String name,
fabric.store.Store c) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortTransaction(TransactionID tid)
Notifies the store that the transaction is being Aborted.
|
void |
commitTransaction(long transactionID)
Notifies the Store that the transaction should be committed.
|
long |
createOnum()
Obtains a new, unused object number from the Store.
|
protected java.util.List<SerializedObject> |
getStaleObjects(LongKeyMap<java.lang.Integer> reads)
Helper for checkForStaleObjects.
|
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)
Sends a PREPARE message to the store.
|
ObjectGlob |
readEncryptedObjectFromStore(long onum)
Called by dissemination to fetch an encrypted object from the store.
|
ObjectGroup |
readObjectFromStore(long onum)
Goes to the store to get object.
|
cache, cache, checkForStaleObjects, clearCache, evict, getPrincipal, getPublicKey, getRoot, hashCode, isLocalStore, makeWorkerPrincipal, readFromCache, readObject, readObjectNoDissem, readResolve, reserve, toString, updateCachegetSocket, name, recycle, sendprotected final TransactionManager tm
protected final SurrogateManager sm
protected RemoteIdentity<RemoteWorker> localWorkerIdentity
public InProcessStore(java.lang.String name,
fabric.store.Store c)
public void abortTransaction(TransactionID tid)
StoreabortTransaction in interface StoreabortTransaction in class RemoteStoretid - the ID of the aborting transaction. This is assumed to specify a
top-level transaction.public void commitTransaction(long transactionID)
throws TransactionCommitFailedException
StorecommitTransaction in interface StorecommitTransaction in class RemoteStoretransactionID - the ID of the transaction to commitTransactionCommitFailedExceptionpublic long createOnum()
StorecreateOnum in interface StorecreateOnum in class RemoteStorepublic 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 TransactionPrepareFailedException
RemoteStoreprepareTransaction in interface StoreprepareTransaction in class RemoteStoreTransactionPrepareFailedExceptionpublic ObjectGroup readObjectFromStore(long onum) throws AccessException
RemoteStorereadObjectFromStore in class RemoteStoreonum - The object number to fetchAccessExceptionpublic ObjectGlob readEncryptedObjectFromStore(long onum) throws AccessException
RemoteStorereadEncryptedObjectFromStore in class RemoteStoreonum - The object number to fetch.AccessExceptionprotected java.util.List<SerializedObject> getStaleObjects(LongKeyMap<java.lang.Integer> reads)
RemoteStoregetStaleObjects in class RemoteStore