|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infoservice.agreement.multicast.messages.AMessage infoservice.agreement.multicast.messages.CommitMessage
public class CommitMessage
Field Summary | |
---|---|
private java.util.Hashtable |
m_EchoMessages
|
private InitMessage |
m_initMessage
|
Fields inherited from class infoservice.agreement.multicast.messages.AMessage |
---|
m_consensusId, m_initiatorsId, m_lastCommonRandom, m_messageType, m_proposal, m_senderId, m_signatureOk, m_xmlNode |
Fields inherited from interface anon.infoservice.IDistributable |
---|
FIELD_HTTP_REQUEST_STRING, FIELD_HTTP_SERIALS_REQUEST_STRING |
Constructor Summary | |
---|---|
CommitMessage(InitMessage a_msg,
java.lang.String a_senderId,
java.util.Hashtable a_echoMessages)
Creates a new CommitMessage . |
Method Summary | |
---|---|
protected void |
appendCustomNodes(org.w3c.dom.Document a_doc,
org.w3c.dom.Node a_rootElem)
Subclasses can add some extra nodes into the xml representation of this message by implementing this method |
java.util.Hashtable |
getEchoMessages()
Returns the set of EchoMessage s contained in this
CommitMessage |
java.lang.String |
getHashKey()
Returns a hash key for the message |
InitMessage |
getInitMessage()
Returns the InitMessage contained in this message |
void |
setEchoMessages(java.util.Hashtable a_echoMessages)
Sets the Hashtable of EchoMessage contained
in this CommitMessage |
java.lang.String |
toString()
Returns a string representation of this message |
Methods inherited from class infoservice.agreement.multicast.messages.AMessage |
---|
getConsensusId, getId, getInitiatorsId, getLastCommonRandom, getMessageType, getPostData, getPostEncoding, getPostFile, getProposal, getSenderId, isSignatureOK, setConsensusId, setLastCommonRandom, setProposal, setSignatureOk, setXmlDocument, toXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.util.Hashtable m_EchoMessages
private InitMessage m_initMessage
Constructor Detail |
---|
public CommitMessage(InitMessage a_msg, java.lang.String a_senderId, java.util.Hashtable a_echoMessages)
CommitMessage
. It contains a set of at
least 2/3n+1 (n=count of InfoServices) EchoMessages
signed
by different InfoServices.
a_msg
- The InitMessage
to be committeda_senderId
- The sender of this CommitMessage
(should be the
same as the initiatorsId in the InitMessage
a_echoMessages
- The EchoMessage
sMethod Detail |
---|
public java.util.Hashtable getEchoMessages()
EchoMessage
s contained in this
CommitMessage
Hashtable
containing the
EchoMessage
spublic java.lang.String getHashKey()
getHashKey
in interface IAgreementMessage
getHashKey
in class AMessage
public InitMessage getInitMessage()
InitMessage
contained in this message
InitMessage
public void setEchoMessages(java.util.Hashtable a_echoMessages)
Hashtable
of EchoMessage
contained
in this CommitMessage
a_echoMessages
- The Hashtable
of EchoMessage
public java.lang.String toString()
toString
in class AMessage
protected void appendCustomNodes(org.w3c.dom.Document a_doc, org.w3c.dom.Node a_rootElem)
AMessage
appendCustomNodes
in class AMessage
a_doc
- The owner documenta_rootElem
- The node to which the extra nodes should be added
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |