public class HealthChecker
extends java.lang.Object
构造器和说明 |
---|
HealthChecker() |
限定符和类型 | 方法和说明 |
---|---|
static void |
addIndicator(java.lang.String name,
HealthIndicator indicator)
添加指示器
|
static void |
addIndicatorAll(java.util.Map<java.lang.String,HealthIndicator> indicators)
批量添加指示器
|
static HealthCheckResult |
check()
检测
|
public static void addIndicator(java.lang.String name, HealthIndicator indicator)
name
- 名称indicator
- 指示器public static void addIndicatorAll(java.util.Map<java.lang.String,HealthIndicator> indicators)
indicators
- 指示器public static HealthCheckResult check()