类 DiskSpaceHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
org.springframework.boot.actuate.system.DiskSpaceHealthIndicator
- 所有已实现的接口:
HealthContributor,HealthIndicator
A
HealthIndicator that checks available disk space and reports a status of
Status.DOWN when it drops below a configurable threshold.- 从以下版本开始:
- 2.0.0
- 作者:
- Mattias Severson, Andy Wilkinson, Stephane Nicoll
-
构造器概要
构造器构造器说明DiskSpaceHealthIndicator(File path, DataSize threshold) Create a newDiskSpaceHealthIndicatorinstance. -
方法概要
从类继承的方法 org.springframework.boot.actuate.health.AbstractHealthIndicator
health从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
构造器详细资料
-
DiskSpaceHealthIndicator
Create a newDiskSpaceHealthIndicatorinstance.- 参数:
path- the Path used to compute the available disk spacethreshold- the minimum disk space that should be available
-
-
方法详细资料
-
doHealthCheck
从类复制的说明:AbstractHealthIndicatorActual health check logic.- 指定者:
doHealthCheck在类中AbstractHealthIndicator- 参数:
builder- theHealth.Builderto report health status and details- 抛出:
Exception- anyExceptionthat should create aStatus.DOWNsystem status.
-