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
MetricsProviderFactory s. |
static List<MetricsProvider> |
getAllFor(List<? extends hudson.model.Action> actions)
Get all
MetricsProvider s for this actions, using all registered MetricsProviderFactory s. |
static ArrayList<MetricDefinition> |
getAllSupportedMetricsFor(List<? extends hudson.model.Action> actions)
Get all
MetricsProvider s for this actions, using all registered MetricsProviderFactory s. |
abstract MetricsProvider |
getFor(List<T> actions)
Get all
MetricsMeasurement s 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()
MetricsProviderFactory
s.ExtensionList
containing all registered MetricsProviderFactory
spublic static List<MetricsProvider> getAllFor(List<? extends hudson.model.Action> actions)
MetricsProvider
s for this actions, using all registered MetricsProviderFactory
s.actions
- the actions of a run to use for getting the metricsMetricsProvider
spublic static ArrayList<MetricDefinition> getAllSupportedMetricsFor(List<? extends hudson.model.Action> actions)
MetricsProvider
s for this actions, using all registered MetricsProviderFactory
s.actions
- the actions of a run to use for getting the metricsMetricsProvider
s, 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)
MetricsMeasurement
s 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.