public abstract class HealthCheck extends hudson.model.AbstractDescribableImpl<HealthCheck> implements DerivedPageComponent<HealthCheckReport>, hudson.ExtensionPoint
Describable
ExtensionPoint
to perform
health checks. Subclasses need to implement the
perform(TaskListener taskListener)
method.Constructor and Description |
---|
HealthCheck() |
Modifier and Type | Method and Description |
---|---|
static List<hudson.model.Descriptor<HealthCheck>> |
all() |
abstract hudson.model.Result |
perform(hudson.model.TaskListener taskListener)
Subclass needs to implement its own health check logic here.
|
HealthCheckReport |
performDerivation()
Hook to derive the value of this particular page component.
|
public static List<hudson.model.Descriptor<HealthCheck>> all()
Descriptor
s of all HealthCheck
extensions.public abstract hudson.model.Result perform(hudson.model.TaskListener taskListener)
taskListener
- the logger to capture logs from performing the checks.Result.SUCCESS
in case of
a successful health-check and Result.FAILURE
otherwise.public HealthCheckReport performDerivation()
DerivedPageComponent
performDerivation
in interface DerivedPageComponent<HealthCheckReport>
Copyright © 2004-2015. All Rights Reserved.