|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpeersim.vector.SingleValueHolder
it.unitn.ds.peersim.protocols.ConsensusEventuallyStrongFD
public class ConsensusEventuallyStrongFD
Distributed Systems Course Project
Year: 2009/2010
University of Trento
ConsensusEventuallyStrongFD - A simple class for solving consensus problem with the introduction of failure detectors to detect failed nodes.
This class implements Cloneable,
This class implements EDProtocol interface, one of the main core classes of PeerSim simulator, a simulation engine for P2P networks. This is the interface to be implemented by protocols run under the event-driven model. A single method is provided, to deliver events to the protocol.
This class implements CDProtocol interface, one of the main core classes of PeerSim simulator, a simulation engine for P2P networks.
This class implements Consensus interface,
This class extends SingleValueHolder,
http://peersim.sourceforge.net/| Constructor Summary | |
|---|---|
ConsensusEventuallyStrongFD(java.lang.String prefix)
Instantiates a new consensus eventually strong fd. |
|
| Method Summary | |
|---|---|
ConsensusEventuallyStrongFD |
clone()
Method called by the peersim engines to instantiate the protocol on each node of the network. |
boolean |
getDecided()
Gets the decided. |
FDParameters |
getFDParameters()
Gets the fD parameters. |
java.util.ArrayList<java.lang.Long> |
getSuspected()
Gets the fD hints. |
int |
getTransportID()
Gets the transport id. |
void |
nextCycle(peersim.core.Node node,
int protocolID)
At each cycle checks if the node that executes the protocol has decided, if not continue with the protocol. |
void |
processDecideMessage(peersim.core.Node node,
int protocolID,
Message message)
Process decide message. |
void |
processEvent(peersim.core.Node node,
int protocolID,
java.lang.Object event)
Handler for messages sender to this node from a remote agent. |
void |
processPhase1Message(peersim.core.Node node,
int protocolID,
Message message)
Process phase1 message. |
void |
processPhase2Message(peersim.core.Node node,
int protocolID,
Message message)
Process phase2 message. |
| Methods inherited from class peersim.vector.SingleValueHolder |
|---|
getValue, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.unitn.ds.peersim.protocols.interfaces.Consensus |
|---|
getValue |
| Constructor Detail |
|---|
public ConsensusEventuallyStrongFD(java.lang.String prefix)
prefix - the prefix| Method Detail |
|---|
public ConsensusEventuallyStrongFD clone()
clone in interface peersim.core.Protocolclone in class peersim.vector.SingleValueHolder
public void nextCycle(peersim.core.Node node,
int protocolID)
nextCycle in interface peersim.cdsim.CDProtocolCDProtocol.nextCycle(peersim.core.Node, int)
public void processEvent(peersim.core.Node node,
int protocolID,
java.lang.Object event)
processEvent in interface peersim.edsim.EDProtocolnode - the nodeprotocolID - the protocol idevent - the event
public void processPhase1Message(peersim.core.Node node,
int protocolID,
Message message)
node - the nodeprotocolID - the protocol idmessage - the message
public void processPhase2Message(peersim.core.Node node,
int protocolID,
Message message)
node - the nodeprotocolID - the protocol idmessage - the message
public void processDecideMessage(peersim.core.Node node,
int protocolID,
Message message)
node - the nodeprotocolID - the protocol idmessage - the messagepublic int getTransportID()
getTransportID in interface Consensuspublic FDParameters getFDParameters()
Consensus
getFDParameters in interface Consensuspublic boolean getDecided()
Consensus
getDecided in interface ConsensusConsensus.getDecided()public java.util.ArrayList<java.lang.Long> getSuspected()
Consensus
getSuspected in interface ConsensusFailureDetector.callOracle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||