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, updateCache
getSocket, name, recycle, send
protected 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)
Store
abortTransaction
in interface Store
abortTransaction
in class RemoteStore
tid
- the ID of the aborting transaction. This is assumed to specify a
top-level transaction.public void commitTransaction(long transactionID) throws TransactionCommitFailedException
Store
commitTransaction
in interface Store
commitTransaction
in class RemoteStore
transactionID
- the ID of the transaction to commitTransactionCommitFailedException
public long createOnum()
Store
createOnum
in interface Store
createOnum
in class RemoteStore
public 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
RemoteStore
prepareTransaction
in interface Store
prepareTransaction
in class RemoteStore
TransactionPrepareFailedException
public ObjectGroup readObjectFromStore(long onum) throws AccessException
RemoteStore
readObjectFromStore
in class RemoteStore
onum
- The object number to fetchAccessException
public ObjectGlob readEncryptedObjectFromStore(long onum) throws AccessException
RemoteStore
readEncryptedObjectFromStore
in class RemoteStore
onum
- The object number to fetch.AccessException
protected java.util.List<SerializedObject> getStaleObjects(LongKeyMap<java.lang.Integer> reads)
RemoteStore
getStaleObjects
in class RemoteStore