|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unitn.ds.peersim.messages.GenericMessage
it.unitn.ds.peersim.messages.ConsensusMessage
public class ConsensusMessage
Distributed Systems Course Project
Year: 2009/2010
University of Trento
ConsensusMessage -. Implements a consensus message by extending the GenericMessage class used in the consensus protocol.
http://peersim.sourceforge.net/| Constructor Summary | |
|---|---|
ConsensusMessage(ConsensusMessageType messageType,
int protocolID,
long messageID,
peersim.core.Node sender,
peersim.core.Node receiver,
java.lang.Object payload)
Instantiates a new consensus message. |
|
| Method Summary | |
|---|---|
ConsensusMessageType |
getMessageType()
Gets the message type. |
java.lang.String |
toString()
To string. |
| Methods inherited from class it.unitn.ds.peersim.messages.GenericMessage |
|---|
getMessageID, getPayload, getProtocolID, getReceiver, getSender, setReceiver |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConsensusMessage(ConsensusMessageType messageType,
int protocolID,
long messageID,
peersim.core.Node sender,
peersim.core.Node receiver,
java.lang.Object payload)
messageType - the message type.protocolID - the protocol id.messageID - the message id.sender - the sender.receiver - the receiver.payload - the payload.| Method Detail |
|---|
public ConsensusMessageType getMessageType()
public java.lang.String toString()
Message
toString in interface MessagetoString in class GenericMessageObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||