fabric.worker.remote.messages
Class GetPrincipalMessage

java.lang.Object
  extended by fabric.messages.Message<RemoteWorker,R>
      extended by fabric.worker.remote.messages.InterWorkerMessage<GetPrincipalMessage.Response>
          extended by fabric.worker.remote.messages.GetPrincipalMessage

public class GetPrincipalMessage
extends InterWorkerMessage<GetPrincipalMessage.Response>


Nested Class Summary
static class GetPrincipalMessage.Response
           
 
Nested classes/interfaces inherited from class fabric.messages.Message
Message.MessageType
 
Field Summary
 
Fields inherited from class fabric.messages.Message
messageType
 
Constructor Summary
GetPrincipalMessage()
           
GetPrincipalMessage(java.io.DataInput in)
           
 
Method Summary
 GetPrincipalMessage.Response dispatch(MessageHandlerThread handler)
          Calls the appropriate handle(...) method on the handler.
 GetPrincipalMessage.Response response(RemoteWorker worker, java.io.DataInput in)
          Creates a Response message of the appropriate type using the provided input stream.
 GetPrincipalMessage.Response send(RemoteWorker remoteWorker)
           
 void write(java.io.DataOutput out)
          Writes this message out on the given output stream.
 
Methods inherited from class fabric.worker.remote.messages.InterWorkerMessage
readRef, writeRef
 
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
 

Constructor Detail

GetPrincipalMessage

public GetPrincipalMessage()

GetPrincipalMessage

public GetPrincipalMessage(java.io.DataInput in)
Method Detail

dispatch

public GetPrincipalMessage.Response dispatch(MessageHandlerThread handler)
Description copied from class: Message
Calls the appropriate handle(...) method on the handler.

Overrides:
dispatch in class Message<RemoteWorker,GetPrincipalMessage.Response>
Returns:
the result computed by the handler

send

public GetPrincipalMessage.Response send(RemoteWorker remoteWorker)
                                  throws UnreachableNodeException
Throws:
UnreachableNodeException

response

public GetPrincipalMessage.Response response(RemoteWorker worker,
                                             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,GetPrincipalMessage.Response>
Parameters:
worker - 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)
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,GetPrincipalMessage.Response>