public final class DissemReadMessage extends Message<DissemReadMessage.Response,AccessException>
DissemReadMessage
represents a request from a dissemination
node to read an object at a store. This implicitly subscribes the worker to
receive the next update to the object.Modifier and Type | Class and Description |
---|---|
static class |
DissemReadMessage.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 |
DissemReadMessage(java.io.DataInput in) |
|
DissemReadMessage(long onum) |
Modifier and Type | Method and Description |
---|---|
DissemReadMessage.Response |
dispatch(RemoteIdentity<RemoteWorker> client,
MessageHandler h)
Visitor method.
|
protected DissemReadMessage.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,
DissemReadMessage.Response r)
Writes a Response message of the appropriate type using the provided
DataOutput . |
readObject, readRef, receive, respond, respond, send, writeObject, writeRef
public DissemReadMessage(long onum)
protected DissemReadMessage(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public DissemReadMessage.Response dispatch(RemoteIdentity<RemoteWorker> client, MessageHandler h) throws ProtocolError, AccessException
Message
dispatch
in class Message<DissemReadMessage.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<DissemReadMessage.Response,AccessException>
java.io.IOException
- if the DataOutput
fails.protected DissemReadMessage.Response readResponse(java.io.DataInput in) throws java.io.IOException
Message
DataOutput
readResponse
in class Message<DissemReadMessage.Response,AccessException>
java.io.IOException
- if the response is malformed, or if the DataInput
fails.protected void writeResponse(java.io.DataOutput out, DissemReadMessage.Response r) throws java.io.IOException
Message
DataOutput
.writeResponse
in class Message<DissemReadMessage.Response,AccessException>
java.io.IOException
- if the DataOutput
fails.