Class DefaultHealthCheckRegistry
- java.lang.Object
-
- com.atlassian.confluence.impl.health.DefaultHealthCheckRegistry
-
- All Implemented Interfaces:
HealthCheckRegistry
public class DefaultHealthCheckRegistry extends Object implements HealthCheckRegistry
Stores the checks in a directed acyclic graph, based on their prerequisites.- Since:
- 6.6.0
-
-
Constructor Summary
Constructors Constructor Description DefaultHealthCheckRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<HealthCheck>
getAll()
Returns the health checks in order of execution.void
register(HealthCheck healthCheck)
Registers the given health check for later execution.void
registrationComplete()
Signals to this registry that registration of health checks is complete.
-
-
-
Method Detail
-
register
public void register(HealthCheck healthCheck)
Description copied from interface:HealthCheckRegistry
Registers the given health check for later execution.- Specified by:
register
in interfaceHealthCheckRegistry
- Parameters:
healthCheck
- the health check to register
-
registrationComplete
public void registrationComplete()
Description copied from interface:HealthCheckRegistry
Signals to this registry that registration of health checks is complete.- Specified by:
registrationComplete
in interfaceHealthCheckRegistry
-
getAll
public Collection<HealthCheck> getAll()
Description copied from interface:HealthCheckRegistry
Returns the health checks in order of execution.- Specified by:
getAll
in interfaceHealthCheckRegistry
- Returns:
- see above
-
-