Interface MeasurementFetchStrategyProvider
-
- All Known Implementing Classes:
JrobinFetchStrategyProvider
,JRrd2FetchStrategyProvider
,NewtsFetchStrategyProvider
,RrdtoolXportFetchStrategyProvider
,TimeseriesFetchStrategyProvider
public interface MeasurementFetchStrategyProvider
EveryMeasurementFetchStrategy
implementation is represented byMeasurementFetchStrategyProvider
, which can be used to determine whether or not it can fetch measurements for a given Time Series / RRD strategy combo. TheMeasurementFetchStrategyProvider
allows us to determine which (fetch) strategy to use, without needed to actually instantiate the implementation classes, since these may have dependencies which are not available on the current class-path.- Author:
- Jesse White
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<? extends MeasurementFetchStrategy>
getStrategyClass(java.lang.String timeSeriesStrategyName, java.lang.String rrdStrategyClass)
Returns a reference to an implementation ofMeasurementFetchStrategy
that supports retrieving measurements for the given Time Series / RRD Strategy.
-
-
-
Method Detail
-
getStrategyClass
java.lang.Class<? extends MeasurementFetchStrategy> getStrategyClass(java.lang.String timeSeriesStrategyName, java.lang.String rrdStrategyClass)
Returns a reference to an implementation ofMeasurementFetchStrategy
that supports retrieving measurements for the given Time Series / RRD Strategy.- Parameters:
timeSeriesStrategyName
- name of the time series strategyrrdStrategyClass
- canonical name of theRrdStrategy
implementation- Returns:
- null or a reference to a supported implementation
-
-