public class RemoteCallMessage extends Message<RemoteCallMessage.Response,RemoteCallException>
Modifier and Type | Class and Description |
---|---|
static class |
RemoteCallMessage.Response |
Message.MessageType, Message.NoException
Modifier and Type | Field and Description |
---|---|
java.lang.Object[] |
args |
java.lang.String |
methodName |
java.lang.Class<?>[] |
parameterTypes |
Object._Proxy |
receiver |
ClassRef |
receiverType |
TransactionID |
tid |
WriterMap |
writerMap |
exceptionClass, messageType
Modifier | Constructor and Description |
---|---|
protected |
RemoteCallMessage(java.io.DataInput in) |
|
RemoteCallMessage(TransactionID tid,
WriterMap writerMap,
ClassRef receiverType,
Object._Proxy receiver,
java.lang.String methodName,
java.lang.Class<?>[] parameterTypes,
java.lang.Object[] args) |
Modifier and Type | Method and Description |
---|---|
RemoteCallMessage.Response |
dispatch(RemoteIdentity<RemoteWorker> client,
MessageHandler h)
Visitor method.
|
java.lang.reflect.Method |
getMethod() |
protected RemoteCallMessage.Response |
readResponse(java.io.DataInput in)
Creates a Response message of the appropriate type using the provided
DataOutput |
protected void |
writeMessage(java.io.DataOutput out)
Writes this message out on the given output stream.
|
protected void |
writeResponse(java.io.DataOutput out,
RemoteCallMessage.Response r)
Writes a Response message of the appropriate type using the provided
DataOutput . |
readObject, readRef, receive, respond, respond, send, writeObject, writeRef
public final TransactionID tid
public final WriterMap writerMap
public final ClassRef receiverType
public final Object._Proxy receiver
public final java.lang.String methodName
public final java.lang.Class<?>[] parameterTypes
public final java.lang.Object[] args
public RemoteCallMessage(TransactionID tid, WriterMap writerMap, ClassRef receiverType, Object._Proxy receiver, java.lang.String methodName, java.lang.Class<?>[] parameterTypes, java.lang.Object[] args)
tid
- The identifier for the transaction that is making the remote call.receiver
- The object that is receiving the call.methodName
- The name of the method to be called.args
- The arguments to the method.protected RemoteCallMessage(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public RemoteCallMessage.Response dispatch(RemoteIdentity<RemoteWorker> client, MessageHandler h) throws ProtocolError, RemoteCallException
Message
dispatch
in class Message<RemoteCallMessage.Response,RemoteCallException>
client
- the node that is issuing the request.h
- the handler to which this message is to be dispatched.ProtocolError
RemoteCallException
protected void writeMessage(java.io.DataOutput out) throws java.io.IOException
Message
writeMessage
in class Message<RemoteCallMessage.Response,RemoteCallException>
java.io.IOException
- if the DataOutput
fails.public java.lang.reflect.Method getMethod() throws java.lang.SecurityException, java.lang.NoSuchMethodException
java.lang.SecurityException
java.lang.NoSuchMethodException
protected RemoteCallMessage.Response readResponse(java.io.DataInput in) throws java.io.IOException
Message
DataOutput
readResponse
in class Message<RemoteCallMessage.Response,RemoteCallException>
java.io.IOException
- if the response is malformed, or if the DataInput
fails.protected void writeResponse(java.io.DataOutput out, RemoteCallMessage.Response r) throws java.io.IOException
Message
DataOutput
.writeResponse
in class Message<RemoteCallMessage.Response,RemoteCallException>
java.io.IOException
- if the DataOutput
fails.