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.voidregister(HealthCheck healthCheck)Registers the given health check for later execution.voidregistrationComplete()Signals to this registry that registration of health checks is complete.
-
-
-
Method Detail
-
register
public void register(HealthCheck healthCheck)
Description copied from interface:HealthCheckRegistryRegisters the given health check for later execution.- Specified by:
registerin interfaceHealthCheckRegistry- Parameters:
healthCheck- the health check 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
public Collection<HealthCheck> getAll()
Description copied from interface:HealthCheckRegistryReturns the health checks in order of execution.- Specified by:
getAllin interfaceHealthCheckRegistry- Returns:
- see above
-
-