public class ReadMessage extends Message<ReadMessage.Response,AccessException>
ReadMessage
represents a request from a worker to read an
object at a store.Modifier and Type | Class and Description |
---|---|
static class |
ReadMessage.Response |
Message.MessageType, Message.NoException
Modifier and Type | Field and Description |
---|---|
long |
onum
The onum of the object to read.
|
exceptionClass, messageType
Modifier | Constructor and Description |
---|---|
protected |
ReadMessage(java.io.DataInput in) |
|
ReadMessage(long onum) |
Modifier and Type | Method and Description |
---|---|
ReadMessage.Response |
dispatch(RemoteIdentity<RemoteWorker> client,
MessageHandler h)
Visitor method.
|
protected ReadMessage.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,
ReadMessage.Response r)
Writes a Response message of the appropriate type using the provided
DataOutput . |
readObject, readRef, receive, respond, respond, send, writeObject, writeRef
public ReadMessage(long onum)
protected ReadMessage(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public ReadMessage.Response dispatch(RemoteIdentity<RemoteWorker> client, MessageHandler h) throws ProtocolError, AccessException
Message
dispatch
in class Message<ReadMessage.Response,AccessException>
client
- the node that is issuing the request.h
- the handler to which this message is to be dispatched.ProtocolError
AccessException
protected void writeMessage(java.io.DataOutput out) throws java.io.IOException
Message
writeMessage
in class Message<ReadMessage.Response,AccessException>
java.io.IOException
- if the DataOutput
fails.protected void writeResponse(java.io.DataOutput out, ReadMessage.Response r) throws java.io.IOException
Message
DataOutput
.writeResponse
in class Message<ReadMessage.Response,AccessException>
java.io.IOException
- if the DataOutput
fails.protected ReadMessage.Response readResponse(java.io.DataInput in) throws java.io.IOException
Message
DataOutput
readResponse
in class Message<ReadMessage.Response,AccessException>
java.io.IOException
- if the response is malformed, or if the DataInput
fails.