Interface HealthCheck
-
- All Implemented Interfaces:
public interface HealthCheck所谓声明健康就是一个可重复执行的指令,返回 0 即为健康
CJ
-
-
Method Summary
Modifier and Type Method Description abstract StringtoHealthCheckCommand(ServiceNode node)abstract BooleancheckHealth(String stdOutput, Integer exitCode)-
-
Method Detail
-
toHealthCheckCommand
abstract String toHealthCheckCommand(ServiceNode node)
- Returns:
健康检查指令
-
checkHealth
abstract Boolean checkHealth(String stdOutput, Integer exitCode)
- Parameters:
stdOutput- toHealthCheckCommand 指令的结果exitCode- 指令退出代码- Returns:
是否健康
-
-
-
-