infoservice.agreement.paxos.messages
Class FreezeProofMessage

java.lang.Object
  extended by infoservice.agreement.paxos.messages.PaxosMessage
      extended by infoservice.agreement.paxos.messages.FreezeProofMessage

public class FreezeProofMessage
extends PaxosMessage


Field Summary
private  boolean m_signatureOk
           
private  java.lang.Object m_signedData
           
private  java.lang.String m_strongValue
           
private  java.lang.String m_weakValue
           
 
Fields inherited from class infoservice.agreement.paxos.messages.PaxosMessage
COLLECT, DECIDE, FREEZE, FREEZEPROOF, PROPOSE, REJECT, STRONG, WEAK
 
Constructor Summary
FreezeProofMessage()
          Creates a new FreezeProofMessage
 
Method Summary
 java.lang.Object getSignedData()
          Returns the signed raw data for this message.
 java.lang.String getStrongValue()
          Returns the strongly accepted value contained in this proof
 java.lang.String getWeakValue()
          Returns the weakly accepted value contained in this proof
 boolean isSignatureOk()
          Indicates if the signature of this message has been ok
 void setSignatureOk(boolean a_sig)
          Sets if the signature was ok.
 void setSignedData(java.lang.Object data)
          Sets the signed raw data of this message
 void setStrongValue(java.lang.String a_value)
          Sets the strongly accepted value of this proof
 void setWeakValue(java.lang.String a_value)
          Sets the weakly accepted value of this proof
 
Methods inherited from class infoservice.agreement.paxos.messages.PaxosMessage
belongsTo, belongsTo, belongsTo, equals, getInitiator, getMessageType, getPaxosInstanceIdentifier, getProposal, getRound, getSender, setInitiator, setPaxosInstanceIdentifier, setProposal, setRound, setSender
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_weakValue

private java.lang.String m_weakValue

m_strongValue

private java.lang.String m_strongValue

m_signedData

private java.lang.Object m_signedData

m_signatureOk

private boolean m_signatureOk
Constructor Detail

FreezeProofMessage

public FreezeProofMessage()
Creates a new FreezeProofMessage

Method Detail

getWeakValue

public java.lang.String getWeakValue()
Returns the weakly accepted value contained in this proof

Returns:
The weakly accepted value contained in this proof

setWeakValue

public void setWeakValue(java.lang.String a_value)
Sets the weakly accepted value of this proof

Parameters:
a_value - The weakly accepted value of this proof

getStrongValue

public java.lang.String getStrongValue()
Returns the strongly accepted value contained in this proof

Returns:
The weaktrongly accepted value contained in this proof

setStrongValue

public void setStrongValue(java.lang.String a_value)
Sets the strongly accepted value of this proof

Parameters:
a_value - The strongly accepted value of this proof

setSignatureOk

public void setSignatureOk(boolean a_sig)
Sets if the signature was ok.

Parameters:
a_sig -

isSignatureOk

public boolean isSignatureOk()
Indicates if the signature of this message has been ok

Returns:

getSignedData

public java.lang.Object getSignedData()
Returns the signed raw data for this message. As we cannot forge signatures and we need the signature for CollectMessages, the message factory must set the raw data

Returns:

setSignedData

public void setSignedData(java.lang.Object data)
Sets the signed raw data of this message

Parameters:
data -