类的使用
org.springframework.boot.actuate.health.Status
使用Status的程序包
程序包
说明
Actuator support for application availability concerns.
Actuator health indicator and endpoints.
-
org.springframework.boot.actuate.availability中Status的使用
修饰符和类型方法说明void
Add a new status mapping .default void
AvailabilityStateHealthIndicator.StatusMappings.addDefaultStatus
(Status status) Add the status that should be used if no explicit mapping is defined. -
org.springframework.boot.actuate.health中Status的使用
修饰符和类型字段说明static final Status
Status.DOWN
Status
indicating that the component or subsystem has suffered an unexpected failure.static final Status
Status.OUT_OF_SERVICE
Status
indicating that the component or subsystem has been taken out of service and should not be used.static final Status
Status.UNKNOWN
Status
indicating that the component or subsystem is in an unknown state.static final Status
Status.UP
Status
indicating that the component or subsystem is functioning as expected.修饰符和类型方法说明SimpleStatusAggregator.getAggregateStatus
(Set<Status> statuses) StatusAggregator.getAggregateStatus
(Set<Status> statuses) Return the aggregate status for the given set of statuses.default Status
StatusAggregator.getAggregateStatus
(Status... statuses) Return the aggregate status for the given set of statuses.CompositeHealth.getStatus()
Health.getStatus()
Return the status of the health.abstract Status
HealthComponent.getStatus()
Return the status of the component.修饰符和类型方法说明default Status
StatusAggregator.getAggregateStatus
(Status... statuses) Return the aggregate status for the given set of statuses.int
HttpCodeStatusMapper.getStatusCode
(Status status) Return the HTTP status code that corresponds to the givenhealth status
.int
SimpleHttpCodeStatusMapper.getStatusCode
(Status status) Set status to givenStatus
instance.static Health.Builder
Create a newHealth.Builder
instance with a specificStatus
.类型变量类型为Status的org.springframework.boot.actuate.health中的方法参数修饰符和类型方法说明SimpleStatusAggregator.getAggregateStatus
(Set<Status> statuses) StatusAggregator.getAggregateStatus
(Set<Status> statuses) Return the aggregate status for the given set of statuses.