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

net.sf.hajdbc.state.health.ClusterHealth Maven / Gradle / Ivy

package net.sf.hajdbc.state.health;

import net.sf.hajdbc.Database;
import net.sf.hajdbc.distributed.Member;
import net.sf.hajdbc.state.distributed.NodeState;

public interface ClusterHealth {

  void start();

  void stop();

  NodeHealth getNodeHealth();

  NodeHealth getNodeHealth(Member member);

  void receiveHeartbeat(long sendTime);

  long getOffsetTime();

  long getHostTime();

  boolean canWrite();

  NodeState getState();

  boolean isHost();

  void setState(NodeState state);

  void incrementToken();

  void updateToken(long token);

  void host(Member host, long token);

  Member getHost();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy