类的使用
org.springframework.boot.actuate.health.Status
使用Status的程序包
程序包
说明
Actuator support for application availability concerns.
Actuator health indicator and endpoints.
-
org.springframework.boot.actuate.availability中Status的使用
修饰符和类型方法说明voidAdd a new status mapping .default voidAvailabilityStateHealthIndicator.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 StatusStatus.DOWNStatusindicating that the component or subsystem has suffered an unexpected failure.static final StatusStatus.OUT_OF_SERVICEStatusindicating that the component or subsystem has been taken out of service and should not be used.static final StatusStatus.UNKNOWNStatusindicating that the component or subsystem is in an unknown state.static final StatusStatus.UPStatusindicating 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 StatusStatusAggregator.getAggregateStatus(Status... statuses) Return the aggregate status for the given set of statuses.CompositeHealth.getStatus()Health.getStatus()Return the status of the health.abstract StatusHealthComponent.getStatus()Return the status of the component.修饰符和类型方法说明default StatusStatusAggregator.getAggregateStatus(Status... statuses) Return the aggregate status for the given set of statuses.intHttpCodeStatusMapper.getStatusCode(Status status) Return the HTTP status code that corresponds to the givenhealth status.intSimpleHttpCodeStatusMapper.getStatusCode(Status status) Set status to givenStatusinstance.static Health.BuilderCreate a newHealth.Builderinstance 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.