public class HealthCheckTaskV2 extends com.alibaba.nacos.common.task.AbstractExecuteTask implements NacosHealthCheckTask
Current health check logic is same as v1.x. TODO refactor health check for v2.x.
| 构造器和说明 |
|---|
HealthCheckTaskV2(com.alibaba.nacos.naming.core.v2.client.impl.IpPortBasedClient client) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterIntercept()
If one
NacosNamingInterceptor intercept this object, this method will be called. |
void |
doHealthCheck()
Do health check.
|
long |
getCheckRtBest() |
long |
getCheckRtLast() |
long |
getCheckRtLastLast() |
long |
getCheckRtNormalized() |
long |
getCheckRtWorst() |
com.alibaba.nacos.naming.core.v2.client.impl.IpPortBasedClient |
getClient() |
long |
getStartTime() |
String |
getTaskId()
Get task id.
|
boolean |
isCancelled() |
void |
passIntercept()
If no
NacosNamingInterceptor intercept this object, this method will be called to execute. |
void |
run() |
void |
setCancelled(boolean cancelled) |
void |
setCheckRtBest(long checkRtBest) |
void |
setCheckRtLast(long checkRtLast) |
void |
setCheckRtLastLast(long checkRtLastLast) |
void |
setCheckRtNormalized(long checkRtNormalized) |
void |
setCheckRtWorst(long checkRtWorst) |
void |
setStartTime(long startTime) |
public HealthCheckTaskV2(com.alibaba.nacos.naming.core.v2.client.impl.IpPortBasedClient client)
public com.alibaba.nacos.naming.core.v2.client.impl.IpPortBasedClient getClient()
public String getTaskId()
NacosHealthCheckTaskgetTaskId 在接口中 NacosHealthCheckTaskpublic void doHealthCheck()
NacosHealthCheckTaskdoHealthCheck 在接口中 NacosHealthCheckTaskpublic void passIntercept()
InterceptableNacosNamingInterceptor intercept this object, this method will be called to execute.passIntercept 在接口中 Interceptablepublic void afterIntercept()
InterceptableNacosNamingInterceptor intercept this object, this method will be called.afterIntercept 在接口中 Interceptablepublic long getCheckRtNormalized()
public long getCheckRtBest()
public long getCheckRtWorst()
public void setCheckRtWorst(long checkRtWorst)
public void setCheckRtBest(long checkRtBest)
public void setCheckRtNormalized(long checkRtNormalized)
public boolean isCancelled()
public void setCancelled(boolean cancelled)
public long getStartTime()
public void setStartTime(long startTime)
public long getCheckRtLast()
public void setCheckRtLast(long checkRtLast)
public long getCheckRtLastLast()
public void setCheckRtLastLast(long checkRtLastLast)
Copyright © 2018–2022 Alibaba Group. All rights reserved.