|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unitn.ds.peersim.fds.EventuallyStrongFD
public class EventuallyStrongFD
Distributed Systems Course Project
Year: 2009/2010
University of Trento
EventuallyStrongFD -. This class implements an eventually strong failure detector, calling the method callOracle() it return the array list containing the ids of the suspected nodes.
http://peersim.sourceforge.net/| Constructor Summary | |
|---|---|
EventuallyStrongFD(FDParameters fdParameters)
Instantiates a new eventually strong fd. |
|
| Method Summary | |
|---|---|
void |
addSuspected(peersim.core.Node node)
Adds the suspected. |
java.util.ArrayList<java.lang.Long> |
callOracle()
When called this method return an array list containing the ids of the nodes suspected by the failure detector. |
void |
init()
Inits the. |
boolean |
isSuspected(peersim.core.Node node)
Checks if is suspected. |
void |
removeSuspected(peersim.core.Node node)
Removes the suspected. |
java.lang.String |
toString()
Return the string containing the list of nodes suspected by the node that calls the method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EventuallyStrongFD(FDParameters fdParameters)
fdParameters - the fd parameters| Method Detail |
|---|
public void init()
public java.util.ArrayList<java.lang.Long> callOracle()
callOracle in interface FailureDetectorFailureDetector.callOracle()public void addSuspected(peersim.core.Node node)
FailureDetector
addSuspected in interface FailureDetectornode - the node suspected.it.unitn.ds.peersim.fds.interfaces.FailureDetector#addSuspected(peersim
.core.Node)public void removeSuspected(peersim.core.Node node)
FailureDetector
removeSuspected in interface FailureDetectornode - the node to be removed.it.unitn.ds.peersim.fds.interfaces.FailureDetector#removeSuspected(peersim
.core.Node)public boolean isSuspected(peersim.core.Node node)
FailureDetector
isSuspected in interface FailureDetectornode - the node to check.
it.unitn.ds.peersim.fds.interfaces.FailureDetector#isSuspected(peersim
.core.Node)public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||