infoservice.agreement.multicast.interfaces
Interface IConsensusLog

All Superinterfaces:
TimeoutListener
All Known Implementing Classes:
ConsensusLogEchoMulticast

public interface IConsensusLog
extends TimeoutListener


Method Summary
 java.lang.String getConsensusID()
          Returns the unique consensus id for this consensus
 java.lang.String getInitiatorId()
          Returns the ID of the initiator of this consensus
 java.lang.String getLastCommonRandom()
          Returns the round number (i.e.
 boolean isAgreed()
          Indicates if this consensus log is agreed upon
 boolean isComitted()
          Indicates if this consensus log is commited (i.e.
 boolean isRejected()
          Indicates if this log has been rejected because it used a wrong round id (i.e.
 void setAgreed(boolean a_agreed)
          Sets the value of m_agreed
 void setComitted(boolean a_comitted)
          Sets the log to status "commited" or "not commited"
 void stopTimeout()
          Stop the time out and close the log entry.
 
Methods inherited from interface infoservice.agreement.common.TimeoutListener
timeout
 

Method Detail

isAgreed

boolean isAgreed()
Indicates if this consensus log is agreed upon

Returns:
true if an agreement has been reached, false otherwise

setAgreed

void setAgreed(boolean a_agreed)
Sets the value of m_agreed

Parameters:
a_agreed - The new value

isComitted

boolean isComitted()
Indicates if this consensus log is commited (i.e. a commit message has been received and the confirmation message is on its way)

Returns:
true if the log is commited, false otherwise

setComitted

void setComitted(boolean a_comitted)
Sets the log to status "commited" or "not commited"

Parameters:
a_comitted - The new status

stopTimeout

void stopTimeout()
Stop the time out and close the log entry.


getInitiatorId

java.lang.String getInitiatorId()
Returns the ID of the initiator of this consensus

Returns:
The ID of the initiator of this consensus

getConsensusID

java.lang.String getConsensusID()
Returns the unique consensus id for this consensus

Returns:
The consensus id

isRejected

boolean isRejected()
Indicates if this log has been rejected because it used a wrong round id (i.e. last common random)

Returns:

getLastCommonRandom

java.lang.String getLastCommonRandom()
Returns the round number (i.e. last common random)

Returns:
The round number (i.e. last common random)