T - the type of the action this class supportspublic abstract class MetricsProviderFactory<T extends hudson.model.Action> extends Object implements hudson.ExtensionPoint
| Constructor and Description |
|---|
MetricsProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
static hudson.ExtensionList<MetricsProviderFactory> |
all()
Get all registered
MetricsProviderFactorys. |
static List<MetricsProvider> |
getAllFor(List<? extends hudson.model.Action> actions)
Get all
MetricsProviders for this actions, using all registered MetricsProviderFactorys. |
static ArrayList<MetricDefinition> |
getAllSupportedMetricsFor(List<? extends hudson.model.Action> actions)
Get all
MetricsProviders for this actions, using all registered MetricsProviderFactorys. |
abstract MetricsProvider |
getFor(List<T> actions)
Get all
MetricsMeasurements for the actions of a build. |
abstract ArrayList<MetricDefinition> |
supportedMetricsFor(List<T> actions)
Returns all metrics this
MetricsProviderFactory reports, for a list of certain builds. |
abstract Class<T> |
type()
Get the type of action this
MetricsProviderFactory is for. |
public static hudson.ExtensionList<MetricsProviderFactory> all()
MetricsProviderFactorys.ExtensionList containing all registered MetricsProviderFactoryspublic static List<MetricsProvider> getAllFor(List<? extends hudson.model.Action> actions)
MetricsProviders for this actions, using all registered MetricsProviderFactorys.actions - the actions of a run to use for getting the metricsMetricsProviderspublic static ArrayList<MetricDefinition> getAllSupportedMetricsFor(List<? extends hudson.model.Action> actions)
MetricsProviders for this actions, using all registered MetricsProviderFactorys.actions - the actions of a run to use for getting the metricsMetricsProviders, ordered by their prioritiespublic abstract Class<T> type()
MetricsProviderFactory is for. (This is necessary to be able to provide the
correct classes for the getFor(List) method.)public abstract MetricsProvider getFor(List<T> actions)
MetricsMeasurements for the actions of a build. An implementing extension is supposed to filter
the relevant actions from the list and calculate their metrics from them.actions - the actions of a buildMetricsProvider providing the actionspublic abstract ArrayList<MetricDefinition> supportedMetricsFor(List<T> actions)
MetricsProviderFactory reports, for a list of certain builds.actions - the actions of a buildCopyright © 2016–2020. All rights reserved.