|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfabric.net.RemoteNode
fabric.worker.RemoteStore
fabric.store.InProcessStore
public class InProcessStore
In-process implementation of the Store interface for use when a worker is running in-process with a Store. The operations work directly on the Store's TransactionManager object.
Field Summary | |
---|---|
protected SurrogateManager |
sm
|
protected TransactionManager |
tm
|
Fields inherited from class fabric.net.RemoteNode |
---|
name |
Constructor Summary | |
---|---|
InProcessStore(java.lang.String name,
Node.Store c)
|
Method Summary | |
---|---|
void |
abortTransaction(boolean useAuthentication,
TransactionID tid)
Notifies the store that the transaction is being Aborted. |
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. |
protected java.util.List<SerializedObject> |
getStaleObjects(LongKeyMap<java.lang.Integer> reads)
Helper for checkForStaleObjects. |
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)
Sends a PREPARE message to the store. |
ObjectGroup |
readObjectFromStore(long onum)
Goes to the store to get object. |
Methods inherited from class fabric.worker.RemoteStore |
---|
cache, checkForStaleObjects, cleanup, clearCache, evict, getPrincipal, getPublicKey, getRoot, hashCode, isLocalStore, lookup, notifyEvict, readEncryptedObjectFromStore, readObject, readObjectFromCache, readObjectNoDissem, readResolve, reserve, toString, updateCache |
Methods inherited from class fabric.net.RemoteNode |
---|
name, openStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface fabric.worker.Store |
---|
name |
Field Detail |
---|
protected final TransactionManager tm
protected final SurrogateManager sm
Constructor Detail |
---|
public InProcessStore(java.lang.String name, Node.Store c)
Method Detail |
---|
public void abortTransaction(boolean useAuthentication, 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(boolean useAuthentication, long transactionID) throws TransactionCommitFailedException
Store
commitTransaction
in interface Store
commitTransaction
in class RemoteStore
transactionID
- the ID of the transaction to commit
TransactionCommitFailedException
public long createOnum()
Store
createOnum
in interface Store
createOnum
in class RemoteStore
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) throws TransactionPrepareFailedException
RemoteStore
prepareTransaction
in interface Store
prepareTransaction
in class RemoteStore
TransactionPrepareFailedException
public ObjectGroup readObjectFromStore(long onum) throws FetchException
RemoteStore
readObjectFromStore
in class RemoteStore
onum
- The object number to fetch
FetchException
- if there was an error while fetching the object from the store.protected java.util.List<SerializedObject> getStaleObjects(LongKeyMap<java.lang.Integer> reads)
RemoteStore
getStaleObjects
in class RemoteStore
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |