public abstract class AbstractRrdBasedFetchStrategy extends Object implements MeasurementFetchStrategy
| Constructor and Description |
|---|
AbstractRrdBasedFetchStrategy() |
| Modifier and Type | Method and Description |
|---|---|
FetchResults |
fetch(long start,
long end,
long step,
int maxrows,
Long interval,
Long heartbeat,
List<Source> sources,
boolean relaxed)
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,
QueryMetadata metadata)
Performs the actual retrieval of the values from the RRD/JRB files.
|
public FetchResults fetch(long start, long end, long step, int maxrows, Long interval, Long heartbeat, List<Source> sources, boolean relaxed) throws Exception
fetch in interface MeasurementFetchStrategystart - timestamp in millisecondsend - timestamp in millisecondsstep - desired resolution in milliseconds - actual resolution might differmaxrows - maximum number of rows - no limit when <= 0interval - duration in milliseconds, used by strategies that implement late aggregationheartbeat - duration in milliseconds, used by strategies that implement late aggregationsources - array of sources - these should have unique labelsrelaxed - if false a missing source results in a return of null.
true on the other hand ignores that source.Exceptionprotected abstract FetchResults fetchMeasurements(long start, long end, long step, int maxrows, Map<Source,String> rrdsBySource, Map<String,Object> constants, QueryMetadata metadata) throws org.jrobin.core.RrdException
org.jrobin.core.RrdExceptionCopyright © 2021. All rights reserved.