public class InProcessRemoteWorker extends RemoteWorker
name
Constructor and Description |
---|
InProcessRemoteWorker(Worker worker) |
Modifier and Type | Method and Description |
---|---|
void |
abortTransaction(TransactionID tid)
Informs the remote worker that a transaction is aborting.
|
boolean |
checkForStaleObjects(TransactionID tid)
Asks the worker to check that the objects used in a given transaction are
up-to-date.
|
void |
commitTransaction(long tid) |
Principal |
getPrincipal() |
java.lang.Object |
issueRemoteCall(Object._Proxy receiver,
java.lang.String methodName,
java.lang.Class<?>[] parameterTypes,
java.lang.Object[] args) |
java.util.List<java.lang.Long> |
notifyObjectUpdates(java.util.List<java.lang.Long> updatedOnums,
java.util.List<ObjectGroup> updates)
Notifies the worker that a set of objects has been updated.
|
java.util.List<java.lang.Long> |
notifyObjectUpdates(java.lang.String storeName,
LongKeyMap<ObjectGlob> updates)
Notifies the dissemination node at the given worker that an object has been
updated.
|
void |
prepareTransaction(long tid) |
void |
readObject(TransactionID tid,
Object._Impl obj)
Reads the given object from the remote worker, updating the object's state.
|
Pair<Store,SerializedObject> |
readObject(TransactionID tid,
Store store,
long onum) |
void |
takeOwnership(TransactionID tid,
Store store,
long onum)
Unsets the ownership bit for the given object at the remote worker.
|
toString
getSocket, name, recycle, send
public InProcessRemoteWorker(Worker worker)
public java.lang.Object issueRemoteCall(Object._Proxy receiver, java.lang.String methodName, java.lang.Class<?>[] parameterTypes, java.lang.Object[] args) throws UnreachableNodeException, RemoteCallException
issueRemoteCall
in class RemoteWorker
UnreachableNodeException
RemoteCallException
public void prepareTransaction(long tid) throws UnreachableNodeException, TransactionPrepareFailedException
prepareTransaction
in class RemoteWorker
UnreachableNodeException
TransactionPrepareFailedException
public void commitTransaction(long tid) throws UnreachableNodeException, TransactionCommitFailedException
commitTransaction
in class RemoteWorker
UnreachableNodeException
TransactionCommitFailedException
public void abortTransaction(TransactionID tid) throws AccessException, UnreachableNodeException
RemoteWorker
abortTransaction
in class RemoteWorker
tid
- the tid for the transaction that is aborting.AccessException
UnreachableNodeException
public void readObject(TransactionID tid, Object._Impl obj)
RemoteWorker
readObject
in class RemoteWorker
tid
- the tid for the current transaction.public Pair<Store,SerializedObject> readObject(TransactionID tid, Store store, long onum) throws AccessException
readObject
in class RemoteWorker
AccessException
public void takeOwnership(TransactionID tid, Store store, long onum)
RemoteWorker
takeOwnership
in class RemoteWorker
tid
- the tid for the current transaction.public Principal getPrincipal()
getPrincipal
in class RemoteWorker
public java.util.List<java.lang.Long> notifyObjectUpdates(java.lang.String storeName, LongKeyMap<ObjectGlob> updates)
RemoteWorker
notifyObjectUpdates
in class RemoteWorker
public java.util.List<java.lang.Long> notifyObjectUpdates(java.util.List<java.lang.Long> updatedOnums, java.util.List<ObjectGroup> updates)
RemoteWorker
notifyObjectUpdates
in class RemoteWorker
public boolean checkForStaleObjects(TransactionID tid)
RemoteWorker
checkForStaleObjects
in class RemoteWorker