public class TakeOwnershipMessage extends Message<TakeOwnershipMessage.Response,TakeOwnershipFailedException>
Modifier and Type | Class and Description |
---|---|
static class |
TakeOwnershipMessage.Response |
Message.MessageType, Message.NoException
Modifier and Type | Field and Description |
---|---|
long |
onum |
Store |
store |
TransactionID |
tid |
exceptionClass, messageType
Modifier | Constructor and Description |
---|---|
protected |
TakeOwnershipMessage(java.io.DataInput in) |
|
TakeOwnershipMessage(TransactionID tid,
Store store,
long onum) |
Modifier and Type | Method and Description |
---|---|
TakeOwnershipMessage.Response |
dispatch(RemoteIdentity<RemoteWorker> worker,
MessageHandler h)
Visitor method.
|
protected TakeOwnershipMessage.Response |
readResponse(java.io.DataInput in)
Creates a Response message of the appropriate type using the provided
DataOutput |
protected void |
writeMessage(java.io.DataOutput out)
Writes this message out on the given output stream.
|
void |
writeResponse(java.io.DataOutput out,
TakeOwnershipMessage.Response r)
Writes a Response message of the appropriate type using the provided
DataOutput . |
readObject, readRef, receive, respond, respond, send, writeObject, writeRef
public final TransactionID tid
public final Store store
public final long onum
public TakeOwnershipMessage(TransactionID tid, Store store, long onum)
protected TakeOwnershipMessage(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public TakeOwnershipMessage.Response dispatch(RemoteIdentity<RemoteWorker> worker, MessageHandler h) throws ProtocolError, TakeOwnershipFailedException
Message
dispatch
in class Message<TakeOwnershipMessage.Response,TakeOwnershipFailedException>
worker
- the node that is issuing the request.h
- the handler to which this message is to be dispatched.ProtocolError
TakeOwnershipFailedException
protected void writeMessage(java.io.DataOutput out) throws java.io.IOException
Message
writeMessage
in class Message<TakeOwnershipMessage.Response,TakeOwnershipFailedException>
java.io.IOException
- if the DataOutput
fails.public void writeResponse(java.io.DataOutput out, TakeOwnershipMessage.Response r) throws java.io.IOException
Message
DataOutput
.writeResponse
in class Message<TakeOwnershipMessage.Response,TakeOwnershipFailedException>
java.io.IOException
- if the DataOutput
fails.protected TakeOwnershipMessage.Response readResponse(java.io.DataInput in) throws java.io.IOException
Message
DataOutput
readResponse
in class Message<TakeOwnershipMessage.Response,TakeOwnershipFailedException>
java.io.IOException
- if the response is malformed, or if the DataInput
fails.