Package jenkins.branch
Class OrganizationChildHealthMetricsProperty
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
-
- com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<C>
-
- jenkins.branch.OrganizationFolderProperty<OrganizationFolder>
-
- jenkins.branch.OrganizationChildHealthMetricsProperty
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
,ReconfigurableDescribable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
public class OrganizationChildHealthMetricsProperty extends OrganizationFolderProperty<OrganizationFolder>
A property that sets the health metrics for immediate children of anOrganizationFolder
.- Since:
- 2.4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OrganizationChildHealthMetricsProperty.DescriptorImpl
Our descriptor.-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description OrganizationChildHealthMetricsProperty(List<com.cloudbees.hudson.plugins.folder.health.FolderHealthMetric> templates)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
decorate(MultiBranchProject<?,?> child, TaskListener listener)
SPI for performing an idempotent application of this property's decoration to the supplied child.List<com.cloudbees.hudson.plugins.folder.health.FolderHealthMetric>
getTemplates()
Gets the current template metrics.-
Methods inherited from class jenkins.branch.OrganizationFolderProperty
applyDecoration, getDescriptor
-
-
-
-
Constructor Detail
-
OrganizationChildHealthMetricsProperty
@DataBoundConstructor public OrganizationChildHealthMetricsProperty(List<com.cloudbees.hudson.plugins.folder.health.FolderHealthMetric> templates)
Constructor.- Parameters:
templates
- the folder health metrics.
-
-
Method Detail
-
getTemplates
public List<com.cloudbees.hudson.plugins.folder.health.FolderHealthMetric> getTemplates()
Gets the current template metrics.- Returns:
- the current template metrics.
-
decorate
protected void decorate(@NonNull MultiBranchProject<?,?> child, @NonNull TaskListener listener) throws IOException
SPI for performing an idempotent application of this property's decoration to the supplied child. If the child is already correctly decorated then the child must be unchanged.- Specified by:
decorate
in classOrganizationFolderProperty<OrganizationFolder>
- Parameters:
child
- the child to decorate.listener
- a listener to log any commentary to.- Throws:
IOException
- as a convenience to implementations as some of the expected changes may call methods that could throw this but shouldn't because of the API's requirement that aBulkChange
contains the child.
-
-