Class 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.
    • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • RrdtoolXportFetchStrategy

        public RrdtoolXportFetchStrategy()
    • 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 class AbstractRrdBasedFetchStrategy
        Throws:
        org.jrobin.core.RrdException