@Component public class HealthCheckCommonV2 extends Object
Current health check logic is same as v1.x. TODO refactor health check for v2.x.
| 构造器和说明 |
|---|
HealthCheckCommonV2() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkFail(HealthCheckTaskV2 task,
com.alibaba.nacos.naming.core.v2.pojo.Service service,
String msg)
Health check fail, when instance check failed count more than max failed time, set unhealthy.
|
void |
checkFailNow(HealthCheckTaskV2 task,
com.alibaba.nacos.naming.core.v2.pojo.Service service,
String msg)
Health check fail, set instance unhealthy directly.
|
void |
checkOk(HealthCheckTaskV2 task,
com.alibaba.nacos.naming.core.v2.pojo.Service service,
String msg)
Health check pass.
|
void |
reEvaluateCheckRT(long checkRT,
HealthCheckTaskV2 task,
com.alibaba.nacos.naming.misc.SwitchDomain.HealthParams params)
Re-evaluate check responsce time.
|
public void reEvaluateCheckRT(long checkRT,
HealthCheckTaskV2 task,
com.alibaba.nacos.naming.misc.SwitchDomain.HealthParams params)
checkRT - check response timetask - health check taskparams - health paramspublic void checkOk(HealthCheckTaskV2 task, com.alibaba.nacos.naming.core.v2.pojo.Service service, String msg)
task - health check taskservice - servicemsg - messagepublic void checkFail(HealthCheckTaskV2 task, com.alibaba.nacos.naming.core.v2.pojo.Service service, String msg)
task - health check taskservice - servicemsg - messagepublic void checkFailNow(HealthCheckTaskV2 task, com.alibaba.nacos.naming.core.v2.pojo.Service service, String msg)
task - health check taskservice - servicemsg - messageCopyright © 2018–2022 Alibaba Group. All rights reserved.