Class StorageValueProvider
- java.lang.Object
-
- jetbrains.buildServer.serverSide.statistics.build.StorageValueProvider
-
- All Implemented Interfaces:
ValueProvider
- Direct Known Subclasses:
BuildValueTypeBase
public class StorageValueProvider extends Object implements ValueProvider
Basic value provider which provides values from the storage (BuildDataStorage)- Author:
- kir
-
-
Field Summary
Fields Modifier and Type Field Description protected BuildDataStoragemyStorage
-
Constructor Summary
Constructors Constructor Description StorageValueProvider(BuildDataStorage storage, String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BuildValue>getDataSet(ChartSettings chartSettings)use default storage, provided chartSettings and getValueProcessor() to obtain datasetStringgetKey()Metric id i.e.protected BuildValueTransformergetValueProcessor()Override this to transform values upon graph dataset creationbooleanhasData(ChartSettings buildChartSettings)Returns true if at least one not-null value is available for this ValueProvider for given settings
-
-
-
Field Detail
-
myStorage
protected final BuildDataStorage myStorage
-
-
Constructor Detail
-
StorageValueProvider
public StorageValueProvider(BuildDataStorage storage, String key)
-
-
Method Detail
-
getKey
public final String getKey()
Description copied from interface:ValueProviderMetric id i.e. "BuildDuration", this key should be unique- Specified by:
getKeyin interfaceValueProvider- Returns:
- Unique key name
-
getDataSet
@NotNull public List<BuildValue> getDataSet(@NotNull ChartSettings chartSettings)
use default storage, provided chartSettings and getValueProcessor() to obtain dataset- Specified by:
getDataSetin interfaceValueProvider- Parameters:
chartSettings- dataset chartSettings- Returns:
- dataset
-
hasData
public boolean hasData(ChartSettings buildChartSettings)
Description copied from interface:ValueProviderReturns true if at least one not-null value is available for this ValueProvider for given settings- Specified by:
hasDatain interfaceValueProvider- Parameters:
buildChartSettings- dataset chartSettings- Returns:
- true if there are some data available for this ValueProvider with given settings
-
getValueProcessor
@Nullable protected BuildValueTransformer getValueProcessor()
Override this to transform values upon graph dataset creation- Returns:
- BuildValueTransformer instance
-
-