fabric.messages
Class ObjectUpdateMessage
java.lang.Object
fabric.messages.Message<RemoteWorker,ObjectUpdateMessage.Response>
fabric.messages.ObjectUpdateMessage
public class ObjectUpdateMessage
- extends Message<RemoteWorker,ObjectUpdateMessage.Response>
Represents push notification that an object has been updated.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
store
public final java.lang.String store
onum
public final long onum
glob
public final Glob glob
group
public final ObjectGroup group
ObjectUpdateMessage
public ObjectUpdateMessage(java.lang.String store,
long onum,
Glob update)
ObjectUpdateMessage
public ObjectUpdateMessage(long onum,
ObjectGroup update)
ObjectUpdateMessage
protected ObjectUpdateMessage(java.io.DataInput in)
throws java.io.IOException,
BadSignatureException
- Deserialization constructor.
- Throws:
java.io.IOException
BadSignatureException
dispatch
public ObjectUpdateMessage.Response dispatch(MessageHandlerThread w)
- Description copied from class:
Message
- Calls the appropriate
handle(...)
method on the handler.
- Overrides:
dispatch
in class Message<RemoteWorker,ObjectUpdateMessage.Response>
- Returns:
- the result computed by the handler
send
public ObjectUpdateMessage.Response send(RemoteWorker worker)
response
public ObjectUpdateMessage.Response response(RemoteWorker node,
java.io.DataInput in)
throws java.io.IOException
- Description copied from class:
Message
- Creates a Response message of the appropriate type using the provided input
stream.
- Specified by:
response
in class Message<RemoteWorker,ObjectUpdateMessage.Response>
- Parameters:
node
- the remote node from which the response originated.in
- Input stream containing the message.
- Returns:
- A Response message with the appropriate type.
- Throws:
java.io.IOException
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Description copied from class:
Message
- Writes this message out on the given output stream. Only used by the
worker.
- Specified by:
write
in class Message<RemoteWorker,ObjectUpdateMessage.Response>
- Throws:
java.io.IOException
- if the output stream throws an IOException.