/** * Prepares fetch request to be executed on this RRD. Use returned * <code>FetchRequest</code> object and its {@link org.rrd4j.core.FetchRequest#fetchData() fetchData()} * method to actually fetch data from the RRD file. * * @param consolFun Consolidation function to be used in fetch request. * @param fetchStart Starting timestamp for fetch request. * @param fetchEnd Ending timestamp for fetch request. * @param resolution Fetch resolution (see RRDTool's * <a href="http://oss.oetiker.ch/rrdtool/doc/rrdfetch.en.html" target="man">rrdfetch man page</a> for an * explanation of this parameter. * @return Request object that should be used to actually fetch data from RRD */ public FetchRequest createFetchRequest(ConsolFun consolFun, long fetchStart, long fetchEnd, long resolution) { return new FetchRequest(this, consolFun, fetchStart, fetchEnd, resolution); }
/** * <p>Prepares fetch request to be executed on this RRD. Use returned * <code>FetchRequest</code> object and its {@link FetchRequest#fetchData() fetchData()} * method to actually fetch data from the RRD file.</p> * * @param consolFun Consolidation function to be used in fetch request. Allowed values are * "AVERAGE", "MIN", "MAX" and "LAST" (these constants are conveniently defined in the * {@link ConsolFun} class). * @param fetchStart Starting timestamp for fetch request. * @param fetchEnd Ending timestamp for fetch request. * @param resolution Fetch resolution (see RRDTool's * <a href="../../../../man/rrdfetch.html" target="man">rrdfetch man page</a> for an * explanation of this parameter. * @return Request object that should be used to actually fetch data from RRD */ public FetchRequest createFetchRequest(ConsolFun consolFun, long fetchStart, long fetchEnd, long resolution) { return new FetchRequest(this, consolFun, fetchStart, fetchEnd, resolution); }