|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfabric.messages.Message<RemoteStore,DissemReadMessage.Response>
fabric.messages.DissemReadMessage
public final class DissemReadMessage
A 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.
| Nested Class Summary | |
|---|---|
static class |
DissemReadMessage.Response
|
| Nested classes/interfaces inherited from class fabric.messages.Message |
|---|
Message.MessageType |
| Field Summary | |
|---|---|
long |
onum
The onum of the object to read. |
| Fields inherited from class fabric.messages.Message |
|---|
messageType |
| Constructor Summary | |
|---|---|
protected |
DissemReadMessage(java.io.DataInput in)
Deserialization constructor. |
|
DissemReadMessage(long onum)
Creates a read request for a worker. |
| Method Summary | |
|---|---|
DissemReadMessage.Response |
dispatch(MessageHandlerThread w)
Calls the appropriate handle(...) method on the handler. |
DissemReadMessage.Response |
response(RemoteStore c,
java.io.DataInput in)
Creates a Response message of the appropriate type using the provided input stream. |
DissemReadMessage.Response |
send(RemoteStore store)
|
void |
write(java.io.DataOutput out)
Writes this message out on the given output stream. |
| Methods inherited from class fabric.messages.Message |
|---|
dispatch, receive, send |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final long onum
| Constructor Detail |
|---|
public DissemReadMessage(long onum)
protected DissemReadMessage(java.io.DataInput in)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public DissemReadMessage.Response dispatch(MessageHandlerThread w)
throws AccessException
Messagehandle(...) method on the handler.
dispatch in class Message<RemoteStore,DissemReadMessage.Response>AccessException
public DissemReadMessage.Response send(RemoteStore store)
throws FetchException
FetchException
public DissemReadMessage.Response response(RemoteStore c,
java.io.DataInput in)
throws java.io.IOException
Message
response in class Message<RemoteStore,DissemReadMessage.Response>c - the remote node from which the response originated.in - Input stream containing the message.
java.io.IOException
public void write(java.io.DataOutput out)
throws java.io.IOException
Message
write in class Message<RemoteStore,DissemReadMessage.Response>java.io.IOException - if the output stream throws an IOException.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||