fabric.messages
Class ObjectUpdateMessage

java.lang.Object
  extended by fabric.messages.Message<RemoteWorker,ObjectUpdateMessage.Response>
      extended by fabric.messages.ObjectUpdateMessage

public class ObjectUpdateMessage
extends Message<RemoteWorker,ObjectUpdateMessage.Response>

Represents push notification that an object has been updated.


Nested Class Summary
static class ObjectUpdateMessage.Response
           
 
Nested classes/interfaces inherited from class fabric.messages.Message
Message.MessageType
 
Field Summary
 Glob glob
           
 ObjectGroup group
           
 long onum
           
 java.lang.String store
           
 
Fields inherited from class fabric.messages.Message
messageType
 
Constructor Summary
protected ObjectUpdateMessage(java.io.DataInput in)
          Deserialization constructor.
  ObjectUpdateMessage(long onum, ObjectGroup update)
           
  ObjectUpdateMessage(java.lang.String store, long onum, Glob update)
           
 
Method Summary
 ObjectUpdateMessage.Response dispatch(MessageHandlerThread w)
          Calls the appropriate handle(...) method on the handler.
 ObjectUpdateMessage.Response response(RemoteWorker node, java.io.DataInput in)
          Creates a Response message of the appropriate type using the provided input stream.
 ObjectUpdateMessage.Response send(RemoteWorker worker)
           
 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

store

public final java.lang.String store

onum

public final long onum

glob

public final Glob glob

group

public final ObjectGroup group
Constructor Detail

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
Method Detail

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.