public class NullFetchStrategy extends Object implements MeasurementFetchStrategy
| Constructor and Description |
|---|
NullFetchStrategy() |
| 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.
|
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.ExceptionCopyright © 2020. All rights reserved.