Package com.atlassian.jira.health
Class DefaultHealthCheckRegistry
java.lang.Object
com.atlassian.jira.health.DefaultHealthCheckRegistry
- All Implemented Interfaces:
HealthCheckRegistry
@ParametersAreNonnullByDefault
public class DefaultHealthCheckRegistry
extends Object
implements HealthCheckRegistry
Stores the checks in a directed acyclic graph, based on their prerequisites.
- Since:
- 7.4
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DefaultHealthCheckRegistry
public DefaultHealthCheckRegistry()
-
-
Method Details
-
register
Description copied from interface:HealthCheckRegistryRegisters the given health check(s) for later execution.- Specified by:
registerin interfaceHealthCheckRegistry- Parameters:
healthChecks- the health check(s) to register
-
registrationComplete
public void registrationComplete()Description copied from interface:HealthCheckRegistrySignals to this registry that registration of health checks is complete.- Specified by:
registrationCompletein interfaceHealthCheckRegistry
-
getAll
Description copied from interface:HealthCheckRegistryReturns the health checks in order of execution.- Specified by:
getAllin interfaceHealthCheckRegistry- Returns:
- see above
-