fabric.messages
Class AbortTransactionMessage

java.lang.Object
  extended by fabric.messages.Message<RemoteNode,AbortTransactionMessage.Response>
      extended by fabric.messages.AbortTransactionMessage

public class AbortTransactionMessage
extends Message<RemoteNode,AbortTransactionMessage.Response>


Nested Class Summary
static class AbortTransactionMessage.Response
           
 
Nested classes/interfaces inherited from class fabric.messages.Message
Message.MessageType
 
Field Summary
 TransactionID tid
          The tid for the transaction that is aborting.
 
Fields inherited from class fabric.messages.Message
messageType
 
Constructor Summary
protected AbortTransactionMessage(java.io.DataInput in)
          Deserialization constructor.
  AbortTransactionMessage(TransactionID tid)
           
 
Method Summary
 AbortTransactionMessage.Response dispatch(MessageHandlerThread w)
          Calls the appropriate handle(...) method on the handler.
 AbortTransactionMessage.Response dispatch(MessageHandlerThread handler)
          Calls the appropriate handle(...) method on the handler.
 AbortTransactionMessage.Response response(RemoteNode node, java.io.DataInput in)
          Creates a Response message of the appropriate type using the provided input stream.
 AbortTransactionMessage.Response send(RemoteNode node)
           
 void write(java.io.DataOutput out)
          Writes this message out on the given output stream.
 
Methods inherited from class fabric.messages.Message
receive, send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tid

public final TransactionID tid
The tid for the transaction that is aborting.

Constructor Detail

AbortTransactionMessage

public AbortTransactionMessage(TransactionID tid)

AbortTransactionMessage

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

Throws:
java.io.IOException
Method Detail

dispatch

public AbortTransactionMessage.Response dispatch(MessageHandlerThread w)
                                          throws AccessException,
                                                 ProtocolError
Description copied from class: Message
Calls the appropriate handle(...) method on the handler.

Overrides:
dispatch in class Message<RemoteNode,AbortTransactionMessage.Response>
Returns:
the result computed by the handler
Throws:
AccessException
ProtocolError

dispatch

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

Overrides:
dispatch in class Message<RemoteNode,AbortTransactionMessage.Response>
Returns:
the result computed by the handler
Throws:
ProtocolError

send

public AbortTransactionMessage.Response send(RemoteNode node)

response

public AbortTransactionMessage.Response response(RemoteNode node,
                                                 java.io.DataInput in)
Description copied from class: Message
Creates a Response message of the appropriate type using the provided input stream.

Specified by:
response in class Message<RemoteNode,AbortTransactionMessage.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.

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<RemoteNode,AbortTransactionMessage.Response>
Throws:
java.io.IOException - if the output stream throws an IOException.