public class ObjectUpdateMessage extends Message<ObjectUpdateMessage.Response,Message.NoException>
| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectUpdateMessage.Response |
Message.MessageType, Message.NoException| Modifier and Type | Field and Description |
|---|---|
LongKeyMap<ObjectGlob> |
globs |
java.util.List<ObjectGroup> |
groups |
java.util.List<java.lang.Long> |
onums |
java.lang.String |
store |
exceptionClass, messageType| Modifier | Constructor and Description |
|---|---|
protected |
ObjectUpdateMessage(java.io.DataInput in) |
|
ObjectUpdateMessage(java.util.List<java.lang.Long> onums,
java.util.List<ObjectGroup> updates)
Creates an object-update notification to be sent to a worker node.
|
|
ObjectUpdateMessage(java.lang.String store,
LongKeyMap<ObjectGlob> updates)
Creates an object-update notification to be sent to a dissemination node.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectUpdateMessage.Response |
dispatch(RemoteIdentity<RemoteWorker> client,
MessageHandler h)
Visitor method.
|
protected ObjectUpdateMessage.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,
ObjectUpdateMessage.Response r)
Writes a Response message of the appropriate type using the provided
DataOutput. |
readObject, readRef, receive, respond, respond, send, writeObject, writeRefpublic final java.lang.String store
public final LongKeyMap<ObjectGlob> globs
public final java.util.List<java.lang.Long> onums
public final java.util.List<ObjectGroup> groups
public ObjectUpdateMessage(java.lang.String store,
LongKeyMap<ObjectGlob> updates)
store - the store from which the notification originated.updates - the set of encrypted object updates, keyed by the head object's
onum.public ObjectUpdateMessage(java.util.List<java.lang.Long> onums,
java.util.List<ObjectGroup> updates)
onums - the onums being updated to which the worker has subscribed.updates - the set of object updates.protected ObjectUpdateMessage(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic ObjectUpdateMessage.Response dispatch(RemoteIdentity<RemoteWorker> client, MessageHandler h) throws ProtocolError
Messagedispatch in class Message<ObjectUpdateMessage.Response,Message.NoException>client - the node that is issuing the request.h - the handler to which this message is to be dispatched.ProtocolErrorprotected void writeMessage(java.io.DataOutput out)
throws java.io.IOException
MessagewriteMessage in class Message<ObjectUpdateMessage.Response,Message.NoException>java.io.IOException - if the DataOutput fails.protected void writeResponse(java.io.DataOutput out,
ObjectUpdateMessage.Response r)
throws java.io.IOException
MessageDataOutput.writeResponse in class Message<ObjectUpdateMessage.Response,Message.NoException>java.io.IOException - if the DataOutput fails.protected ObjectUpdateMessage.Response readResponse(java.io.DataInput in) throws java.io.IOException
MessageDataOutputreadResponse in class Message<ObjectUpdateMessage.Response,Message.NoException>java.io.IOException - if the response is malformed, or if the DataInput
fails.