fabric.messages
Class UnauthenticatedCommitTransactionMessage

java.lang.Object
  extended by fabric.messages.Message<RemoteStore,UnauthenticatedCommitTransactionMessage.Response>
      extended by fabric.messages.UnauthenticatedCommitTransactionMessage

public class UnauthenticatedCommitTransactionMessage
extends Message<RemoteStore,UnauthenticatedCommitTransactionMessage.Response>


Nested Class Summary
static class UnauthenticatedCommitTransactionMessage.Response
           
 
Nested classes/interfaces inherited from class fabric.messages.Message
Message.MessageType
 
Field Summary
 long transactionID
           
 
Fields inherited from class fabric.messages.Message
messageType
 
Constructor Summary
protected UnauthenticatedCommitTransactionMessage(java.io.DataInput in)
          Deserialization constructor.
  UnauthenticatedCommitTransactionMessage(long transactionID)
           
 
Method Summary
 UnauthenticatedCommitTransactionMessage.Response dispatch(MessageHandlerThread w)
          Calls the appropriate handle(...) method on the handler.
 UnauthenticatedCommitTransactionMessage.Response response(RemoteStore store, java.io.DataInput in)
          Creates a Response message of the appropriate type using the provided input stream.
 UnauthenticatedCommitTransactionMessage.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

transactionID

public final long transactionID
Constructor Detail

UnauthenticatedCommitTransactionMessage

public UnauthenticatedCommitTransactionMessage(long transactionID)

UnauthenticatedCommitTransactionMessage

protected UnauthenticatedCommitTransactionMessage(java.io.DataInput in)
                                           throws java.io.IOException
Deserialization constructor.

Throws:
java.io.IOException
Method Detail

dispatch

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

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

send

public UnauthenticatedCommitTransactionMessage.Response send(RemoteStore store)
                                                      throws UnreachableNodeException
Throws:
UnreachableNodeException

response

public UnauthenticatedCommitTransactionMessage.Response response(RemoteStore store,
                                                                 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<RemoteStore,UnauthenticatedCommitTransactionMessage.Response>
Parameters:
store - 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<RemoteStore,UnauthenticatedCommitTransactionMessage.Response>
Throws:
java.io.IOException - if the output stream throws an IOException.