|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infoservice.agreement.paxos.PaxosObject infoservice.agreement.paxos.PaxosInstance
public class PaxosInstance
Field Summary | |
---|---|
private PaxosAcceptor |
m_acceptor
The PaxosAcceptor to which this instance belongs |
private java.util.Hashtable |
m_decissions
A hashtable containing the decissions of this instance, execution-id mapped to decission |
protected java.util.Hashtable |
m_executions
A hashtable containing all executions which belong to this instance |
private java.lang.String |
m_instanceNumber
The identifier of this instance. |
private boolean |
m_notified
|
Constructor Summary | |
---|---|
PaxosInstance(PaxosAcceptor a_acceptor,
java.lang.String a_instanceNumber)
Creates a new PaxosInstance for the given PaxosAcceptor and the given instance number |
Method Summary | |
---|---|
void |
addDecision(java.lang.String a_initiator,
java.lang.String a_value)
Adds the decission for the given initiator |
PaxosAcceptor |
getAcceptor()
Returns the PaxosAcceptor this instance belongs to |
java.util.Hashtable |
getDecissions()
Returns a hashtable containing the decissions of this instance. |
PaxosExecution |
getExecution(PaxosMessage a_msg)
Returns the PaxosExecution atching the given message |
java.util.Hashtable |
getExecutions()
Returns a Hashtable containing all Executions of this round |
java.lang.String |
getInstanceNumber()
Returns the round number of this round |
Methods inherited from class infoservice.agreement.paxos.PaxosObject |
---|
debug, error, fatal, getLog, info, setLog |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Hashtable m_decissions
protected java.util.Hashtable m_executions
private java.lang.String m_instanceNumber
private PaxosAcceptor m_acceptor
private boolean m_notified
Constructor Detail |
---|
public PaxosInstance(PaxosAcceptor a_acceptor, java.lang.String a_instanceNumber)
a_acceptor
- The PaxosAcceptor to which this instance belongsa_instanceNumber
- The unique instance numberMethod Detail |
---|
public PaxosAcceptor getAcceptor()
public PaxosExecution getExecution(PaxosMessage a_msg)
a_msg
- A message
public java.util.Hashtable getDecissions()
public java.util.Hashtable getExecutions()
public java.lang.String getInstanceNumber()
public void addDecision(java.lang.String a_initiator, java.lang.String a_value)
a_initiator
- The decission for the execution of this initiator will be seta_value
- The reached decission
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |