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.
|
toStringgetSocket, name, recycle, sendpublic 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 RemoteWorkerUnreachableNodeExceptionRemoteCallExceptionpublic void prepareTransaction(long tid)
throws UnreachableNodeException,
TransactionPrepareFailedException
prepareTransaction in class RemoteWorkerUnreachableNodeExceptionTransactionPrepareFailedExceptionpublic void commitTransaction(long tid)
throws UnreachableNodeException,
TransactionCommitFailedException
commitTransaction in class RemoteWorkerUnreachableNodeExceptionTransactionCommitFailedExceptionpublic void abortTransaction(TransactionID tid) throws AccessException, UnreachableNodeException
RemoteWorkerabortTransaction in class RemoteWorkertid - the tid for the transaction that is aborting.AccessExceptionUnreachableNodeExceptionpublic void readObject(TransactionID tid, Object._Impl obj)
RemoteWorkerreadObject in class RemoteWorkertid - the tid for the current transaction.public Pair<Store,SerializedObject> readObject(TransactionID tid, Store store, long onum) throws AccessException
readObject in class RemoteWorkerAccessExceptionpublic void takeOwnership(TransactionID tid, Store store, long onum)
RemoteWorkertakeOwnership in class RemoteWorkertid - the tid for the current transaction.public Principal getPrincipal()
getPrincipal in class RemoteWorkerpublic java.util.List<java.lang.Long> notifyObjectUpdates(java.lang.String storeName,
LongKeyMap<ObjectGlob> updates)
RemoteWorkernotifyObjectUpdates in class RemoteWorkerpublic java.util.List<java.lang.Long> notifyObjectUpdates(java.util.List<java.lang.Long> updatedOnums,
java.util.List<ObjectGroup> updates)
RemoteWorkernotifyObjectUpdates in class RemoteWorkerpublic boolean checkForStaleObjects(TransactionID tid)
RemoteWorkercheckForStaleObjects in class RemoteWorker