Package com.atlassian.jira.health
Interface HealthCheckRegistry
- All Known Implementing Classes:
DefaultHealthCheckRegistry
@ParametersAreNonnullByDefault
public interface HealthCheckRegistry
Allows
HealthChecks to be registered.- Since:
- 7.4
-
Method Summary
Modifier and TypeMethodDescriptiongetAll()Returns the health checks in order of execution.voidregister(HealthCheck... healthChecks) Registers the given health check(s) for later execution.voidSignals to this registry that registration of health checks is complete.
-
Method Details
-
register
Registers the given health check(s) for later execution.- Parameters:
healthChecks- the health check(s) to register
-
registrationComplete
void registrationComplete()Signals to this registry that registration of health checks is complete. -
getAll
Returns the health checks in order of execution.- Returns:
- see above
- Throws:
IllegalStateException- ifregistrationComplete()has not been called
-