universal
Class NackReadMessage
java.lang.Object
|
+--universal.Message
|
+--universal.ReadMessage
|
+--universal.NackReadMessage
- All Implemented Interfaces:
- java.io.Serializable
- public class NackReadMessage
- extends ReadMessage
Used for creating NackReadMessage.
A NackReadMessage is sent during the consensus by all the replicated server
to the leader to say that they don't acknowledge the Read message that the leader has sent.
- See Also:
- Serialized Form
Constructor Summary |
NackReadMessage(int batchno,
int roundno)
The constructor |
Method Summary |
static universal.ReadMessage |
decode(java.io.DataInputStream dis)
When you want to decode a NackReadMessage you have to call the decode function
of the superclass Message. |
byte[] |
encode()
When you want to encode a NackReadMessage you should call this function. |
boolean |
equals(java.lang.Object obj)
Compares two objects for equality. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NackReadMessage
public NackReadMessage(int batchno,
int roundno)
- The constructor
- Parameters:
batchno
- the place in the total order for which the consensus is actually maderoundno
- the round number for this consensus.
decode
public static universal.ReadMessage decode(java.io.DataInputStream dis)
- When you want to decode a NackReadMessage you have to call the decode function
of the superclass Message.
encode
public byte[] encode()
- When you want to encode a NackReadMessage you should call this function.
- Overrides:
encode
in class ReadMessage
equals
public boolean equals(java.lang.Object obj)
- Compares two objects for equality. Returns a boolean that indicates
whether this object is equivalent to the specified object. This method
is used when an object is stored in a hashtable.
- Overrides:
equals
in class ReadMessage
- Parameters:
obj
- the Object to compare with
- Returns:
- true if these Objects are equal; false otherwise.
- See Also:
Hashtable
toString
public java.lang.String toString()
- Overrides:
toString
in class ReadMessage