public abstract class AbstractHealthCheckRule extends Object implements HealthCheckRule
Modifier | Constructor and Description |
---|---|
protected |
AbstractHealthCheckRule(ErrorMessageProvider errorMessageProvider,
URL kbUrl,
String failureCause,
JohnsonEventType johnsonEventType) |
Modifier and Type | Method and Description |
---|---|
protected abstract Optional<String> |
doValidation() |
protected String |
getErrorMessage(String key,
Object... args) |
protected com.atlassian.johnson.event.Event |
getFailureEvent(String errorMessage) |
List<HealthCheckResult> |
validate(HealthCheck parent)
Checks whether the Health Check rule is satisfied.
|
protected AbstractHealthCheckRule(ErrorMessageProvider errorMessageProvider, URL kbUrl, String failureCause, JohnsonEventType johnsonEventType)
public List<HealthCheckResult> validate(HealthCheck parent)
HealthCheckRule
validate
in interface HealthCheckRule
parent
- the health check which is validating the rule.protected com.atlassian.johnson.event.Event getFailureEvent(String errorMessage)
Copyright © 2003–2021 Atlassian. All rights reserved.