接口 HealthOperator

  • 所有已知实现类:
    HealthOperatorV2Impl

    public interface HealthOperator
    Persistent Health operator.
    作者:
    xiweng.yy
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      void updateHealthStatusForPersistentInstance​(java.lang.String namespace, java.lang.String fullServiceName, java.lang.String clusterName, java.lang.String ip, int port, boolean healthy)
      Manually update healthy status for persistent instance.
    • 方法详细资料

      • updateHealthStatusForPersistentInstance

        void updateHealthStatusForPersistentInstance​(java.lang.String namespace,
                                                     java.lang.String fullServiceName,
                                                     java.lang.String clusterName,
                                                     java.lang.String ip,
                                                     int port,
                                                     boolean healthy)
                                              throws com.alibaba.nacos.api.exception.NacosException
        Manually update healthy status for persistent instance.

        Only HealthCheckType.NONE can be manually update status.

        参数:
        namespace - namespace of service
        fullServiceName - full service name like `groupName@@serviceName`
        clusterName - cluster of instance
        ip - ip of instance
        port - port of instance
        healthy - health status of instance
        抛出:
        com.alibaba.nacos.api.exception.NacosException - any exception during updating