Class RrdtoolXportFetchStrategy
- java.lang.Object
-
- org.opennms.netmgt.measurements.impl.AbstractRrdBasedFetchStrategy
-
- org.opennms.netmgt.measurements.impl.RrdtoolXportFetchStrategy
-
- All Implemented Interfaces:
MeasurementFetchStrategy
public class RrdtoolXportFetchStrategy extends AbstractRrdBasedFetchStrategy
Used to fetch measurements from RRD files by invoking rrdtool via exec. As of Feb 24th the jrrd library does not support 'xport' commands. See http://issues.opennms.org/browse/JRRD-3.- Author:
- Jesse White
, Dustin Frisch
-
-
Field Summary
Fields Modifier and Type Field Description static long
XPORT_TIMEOUT_MS
Maximum runtime of 'rrdtool xport' in milliseconds before failing and throwing an exception.
-
Constructor Summary
Constructors Constructor Description RrdtoolXportFetchStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FetchResults
fetchMeasurements(long start, long end, long step, int maxrows, java.util.Map<Source,java.lang.String> rrdsBySource, java.util.Map<java.lang.String,java.lang.Object> constants, QueryMetadata metadata)
Performs the actual retrieval of the values from the RRD/JRB files.-
Methods inherited from class org.opennms.netmgt.measurements.impl.AbstractRrdBasedFetchStrategy
fetch
-
-
-
-
Field Detail
-
XPORT_TIMEOUT_MS
public static final long XPORT_TIMEOUT_MS
Maximum runtime of 'rrdtool xport' in milliseconds before failing and throwing an exception.- See Also:
- Constant Field Values
-
-
Method Detail
-
fetchMeasurements
protected FetchResults fetchMeasurements(long start, long end, long step, int maxrows, java.util.Map<Source,java.lang.String> rrdsBySource, java.util.Map<java.lang.String,java.lang.Object> constants, QueryMetadata metadata) throws org.jrobin.core.RrdException
Performs the actual retrieval of the values from the RRD/JRB files.- Specified by:
fetchMeasurements
in classAbstractRrdBasedFetchStrategy
- Throws:
org.jrobin.core.RrdException
-
-