Class FolderHealthMetricDescriptor
- java.lang.Object
-
- hudson.model.Descriptor<FolderHealthMetric>
-
- com.cloudbees.hudson.plugins.folder.health.FolderHealthMetricDescriptor
-
- Direct Known Subclasses:
WorstChildHealthMetric.DescriptorImpl
public abstract class FolderHealthMetricDescriptor extends Descriptor<FolderHealthMetric>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description FolderHealthMetricDescriptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DescriptorExtensionList<FolderHealthMetric,FolderHealthMetricDescriptor>
all()
FolderHealthMetric
createDefault()
Optionally create a default health metric to be used in new folders.boolean
isApplicable(Class<? extends AbstractFolder> containerType)
Returns true if thisFolderHealthMetric
type is applicable to the given folder type.-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(Class<? extends AbstractFolder> containerType)
Returns true if thisFolderHealthMetric
type is applicable to the given folder type.- Parameters:
containerType
- the container type.- Returns:
true
if this metric is applicable.
-
createDefault
@CheckForNull public FolderHealthMetric createDefault()
Optionally create a default health metric to be used in new folders.- Returns:
- a default configuration of the associated metric, or null to not include by default
- Since:
- 4.0
-
all
public static DescriptorExtensionList<FolderHealthMetric,FolderHealthMetricDescriptor> all()
-
-