All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.servicefabric.cluster.fdetector.IFailureDetector Maven / Gradle / Ivy

There is a newer version: 0.0.4
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy