|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfabric.net.RemoteNode
fabric.worker.remote.RemoteWorker
public final class RemoteWorker
Encapsulates a remote worker. This class maintains the connection to the
remote worker and manages all communication. RemoteWorkers can only be
obtained through the RemoteCallManager.getWorker()
interface.
For each remote worker, there should be at most one RemoteWorker
object representing that worker.
Field Summary |
---|
Fields inherited from class fabric.net.RemoteNode |
---|
name |
Constructor Summary | |
---|---|
RemoteWorker(java.lang.String name)
This should only be called by fabric.worker.Worker. |
Method Summary | |
---|---|
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)
|
NodePrincipal |
getPrincipal()
|
java.lang.Object |
issueRemoteCall(Object._Proxy receiver,
java.lang.String methodName,
java.lang.Class<?>[] parameterTypes,
java.lang.Object[] args)
|
protected SocketAddress |
lookup()
|
boolean |
notifyObjectUpdate(long onum,
ObjectGroup group)
Notifies the worker that an object has been updated. |
boolean |
notifyObjectUpdate(java.lang.String store,
long onum,
Glob glob)
Notifies the dissemination node at the given worker that an object has been updated. |
void |
prepareTransaction(long tid,
long commitTime)
|
void |
readObject(TransactionID tid,
Object._Impl obj)
Reads the given object from the remote worker, updating the object's state. |
Object._Impl |
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. |
java.lang.String |
toString()
|
Methods inherited from class fabric.net.RemoteNode |
---|
cleanup, name, openStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RemoteWorker(java.lang.String name)
Method Detail |
---|
public java.lang.Object issueRemoteCall(Object._Proxy receiver, java.lang.String methodName, java.lang.Class<?>[] parameterTypes, java.lang.Object[] args) throws UnreachableNodeException, RemoteCallException
UnreachableNodeException
RemoteCallException
public void prepareTransaction(long tid, long commitTime) throws UnreachableNodeException, TransactionPrepareFailedException
UnreachableNodeException
TransactionPrepareFailedException
public void commitTransaction(long tid) throws UnreachableNodeException, TransactionCommitFailedException
UnreachableNodeException
TransactionCommitFailedException
public void abortTransaction(TransactionID tid) throws UnreachableNodeException
tid
- the tid for the transaction that is aborting.
UnreachableNodeException
public void readObject(TransactionID tid, Object._Impl obj)
tid
- the tid for the current transaction.public Object._Impl readObject(TransactionID tid, Store store, long onum)
public void takeOwnership(TransactionID tid, Store store, long onum)
tid
- the tid for the current transaction.public NodePrincipal getPrincipal()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean notifyObjectUpdate(java.lang.String store, long onum, Glob glob)
public boolean notifyObjectUpdate(long onum, ObjectGroup group)
public boolean checkForStaleObjects(TransactionID tid)
protected SocketAddress lookup() throws java.io.IOException
lookup
in class RemoteNode
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |