public abstract class AbstractRrdBasedFetchStrategy extends Object implements MeasurementFetchStrategy
Constructor and Description |
---|
AbstractRrdBasedFetchStrategy(ResourceDao resourceDao) |
Modifier and Type | Method and Description |
---|---|
FetchResults |
fetch(long start,
long end,
long step,
int maxrows,
List<Source> sources)
Fetches the measurements for the given sources.
|
protected abstract FetchResults |
fetchMeasurements(long start,
long end,
long step,
int maxrows,
Map<Source,String> rrdsBySource,
Map<String,Object> constants)
Performs the actual retrieval of the values from the RRD/JRB files.
|
public AbstractRrdBasedFetchStrategy(ResourceDao resourceDao)
public FetchResults fetch(long start, long end, long step, int maxrows, List<Source> sources) throws Exception
fetch
in interface MeasurementFetchStrategy
start
- timestamp in millisecondsend
- timestamp in millisecondsstep
- desired resolution in milliseconds - actual resolution might differmaxrows
- maximum number of rows- no limit when <= 0sources
- array of sources - these should have unique labelsException
protected abstract FetchResults fetchMeasurements(long start, long end, long step, int maxrows, Map<Source,String> rrdsBySource, Map<String,Object> constants) throws org.jrobin.core.RrdException
org.jrobin.core.RrdException
Copyright © 2015. All rights reserved.