|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--universal.Message | +--universal.ReadMessage | +--universal.AckReadMessage
Field Summary | |
int |
lastwrite
The last round number it has written for the place in the total order for which it has received the read message |
universal.Outcome |
value
The last value read for the place in the total order for which it has received the read message |
Fields inherited from class universal.ReadMessage |
batchno, roundno |
Fields inherited from class universal.Message |
ACK_READ_MSG, ACK_WRITE_MSG, AM_ALIVE_MSG, mid, msgType, NACK_READ_MSG, NACK_WRITE_MSG, READ_MSG, senderid, WRITE_MSG |
Constructor Summary | |
AckReadMessage(int batchno,
int roundno,
int lastwrite,
universal.Outcome value)
The constructor |
Method Summary | |
static universal.ReadMessage |
decode(java.io.DataInputStream dis)
If you want to decode an AckReadMessage, you should call the method Decode of the superclass Message, not this one. |
byte[] |
encode()
If you want to encode a ReadMessage, you should call this method not the one from the superclass. |
boolean |
equals(java.lang.Object obj)
Compares two objects for equality. |
java.lang.String |
toString()
|
Methods inherited from class universal.Message |
decode, msgId, msgType |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public universal.Outcome value
public int lastwrite
Constructor Detail |
public AckReadMessage(int batchno, int roundno, int lastwrite, universal.Outcome value)
batchno
- the place in the total order for which the consensus is actually maderoundno
- the round number for this consensuslastwrite
- the last round number the sender of this message has written for the place in the
total ordervalue
- the last value read at the round number lastwriteMethod Detail |
public static universal.ReadMessage decode(java.io.DataInputStream dis)
public byte[] encode()
encode
in class ReadMessage
public boolean equals(java.lang.Object obj)
equals
in class ReadMessage
obj
- the Object to compare with
Hashtable
public java.lang.String toString()
toString
in class ReadMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |