public class ExecutorCheck extends HealthCheck
HealthCheck that verifies that Jenkins has more than
 a given minimum number of executors of some given labels.| Modifier and Type | Class and Description | 
|---|---|
| static class  | ExecutorCheck.DescriptorImplDescriptor class for this extension. | 
| Constructor and Description | 
|---|
| ExecutorCheck(int minExecutors,
             String labelsSsv) | 
| Modifier and Type | Method and Description | 
|---|---|
| ExecutorCheck.DescriptorImpl | getDescriptor() | 
| Set<? extends hudson.model.Label> | getLabels() | 
| String | getLabelsSsv() | 
| int | getMinExecutors() | 
| hudson.model.Result | perform(hudson.model.TaskListener taskListener)Subclass needs to implement its own health check logic here. | 
| String | toString() | 
all, performDerivation@DataBoundConstructor
public ExecutorCheck(int minExecutors,
                                  String labelsSsv)
minExecutors - the required minimum number of executors.labelsSsv - the labels to be checked, space separated.public int getMinExecutors()
public Set<? extends hudson.model.Label> getLabels()
public String getLabelsSsv()
public hudson.model.Result perform(hudson.model.TaskListener taskListener)
perform in class HealthChecktaskListener - the logger to capture logs from performing the checks.Result.SUCCESS in case of
         a successful health-check and Result.FAILURE otherwise.public ExecutorCheck.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<HealthCheck>getDescriptor in class hudson.model.AbstractDescribableImpl<HealthCheck>Copyright © 2004-2015. All Rights Reserved.