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

net.sf.hajdbc.state.health.observer.ObserveAdapter Maven / Gradle / Ivy

There is a newer version: 3.6.61
Show newest version
package net.sf.hajdbc.state.health.observer;

import java.util.List;

/**
 * Observe adapter
 */
public interface ObserveAdapter {

  /**
   * Returns adapter name
   * @return adapter name
   */
  String  getName();

  /**
   * Returns adapter weight
   * Higher value is first running
   * @return adapter weight
   */
  int getWeight();

  /**
   * Return observable or not
   * @param needDown 是否是下线检测,false表示上线检测
   * @param localIp local ip
   * @param ips ip list
   * @return observable or not
   */
  boolean isObservable(boolean needDown, String localIp, List ips);


  /**
   * 是否是可选观察者
   * @return
   */
  boolean isOptional();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy