类 HealthOperatorV2Impl

  • 所有已实现的接口:
    HealthOperator

    @Component
    public class HealthOperatorV2Impl
    extends java.lang.Object
    implements HealthOperator
    Health operator implementation for v1.x.
    作者:
    xiweng.yy
    • 方法详细资料

      • updateHealthStatusForPersistentInstance

        public 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
        从接口复制的说明: HealthOperator
        Manually update healthy status for persistent instance.

        Only HealthCheckType.NONE can be manually update status.

        指定者:
        updateHealthStatusForPersistentInstance 在接口中 HealthOperator
        参数:
        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
      • throwHealthCheckerException

        private void throwHealthCheckerException​(java.lang.String fullServiceName,
                                                 java.lang.String clusterName)
                                          throws com.alibaba.nacos.api.exception.NacosException
        抛出:
        com.alibaba.nacos.api.exception.NacosException