io.servicefabric.cluster.fdetector.IFailureDetector Maven / Gradle / Ivy
package io.servicefabric.cluster.fdetector;
import java.util.Collection;
import rx.Observable;
import io.servicefabric.cluster.ClusterEndpoint;
public interface IFailureDetector {
void start();
void stop();
/** Listens for SUSPECTED/TRUSTED members. */
Observable listenStatus();
/** Marks given member as SUSPECTED inside FD algorithm internals. */
void suspect(ClusterEndpoint member);
/** Marks given member as TRUSTED inside FD algorithm internals. */
void trust(ClusterEndpoint member);
/** Updates list of cluster members among which should work FD algorithm. */
void setClusterMembers(Collection members);
}