/** * Adds DEF datasource with datasource values already available in the FetchData object. This method is * used internally by JRobin and probably has no purpose outside of it. * * @param name Source name. * @param fetchData Fetched data containing values for the given source name. */ public void addDatasource(String name, FetchData fetchData) { Def def = new Def(name, fetchData); sources.put(name, def); }
/** * <p>Adds simple source (<b>DEF</b>). Source <code>name</code> can be used:</p> * <ul> * <li>To specify sources for line, area and stack plots.</li> * <li>To define complex sources * </ul> * * @param name Source name. * @param file Path to RRD file. * @param dsName Data source name defined in the RRD file. * @param consolFunc Consolidation function that will be used to extract data from the RRD * file ("AVERAGE", "MIN", "MAX" or "LAST" - these string constants are conveniently defined * in the {@link org.jrobin.core.ConsolFuns ConsolFuns} class). * @param backend Name of the RrdBackendFactory that should be used for this RrdDb. */ public void addDatasource(String name, String file, String dsName, String consolFunc, String backend) { Def def = new Def(name, file, dsName, consolFunc, backend); sources.put(name, def); }
/** * <p>Adds simple datasource (<b>DEF</b>). Simple source <code>name</code> * can be used:</p> * <ul> * <li>To specify sources for line, area and stack plots.</li> * <li>To define complex sources * </ul> * * @param name source name. * @param file Path to RRD file. * @param dsName Datasource name defined in the RRD file. * @param consolFunc Consolidation function that will be used to extract data from the RRD * file ("AVERAGE", "MIN", "MAX" or "LAST" - these string constants are conveniently defined * in the {@link org.jrobin.core.ConsolFuns ConsolFuns} class). */ public void addDatasource(String name, String file, String dsName, String consolFunc) { Def def = new Def(name, file, dsName, consolFunc); sources.put(name, def); }
/** * Adds DEF datasource with datasource values already available in the FetchData object. This method is * used internally by JRobin and probably has no purpose outside of it. * * @param name Source name. * @param fetchData Fetched data containing values for the given source name. */ public void addDatasource(String name, FetchData fetchData) { Def def = new Def(name, fetchData); sources.put(name, def); }
/** * <p>Adds simple datasource (<b>DEF</b>). Simple source <code>name</code> * can be used:</p> * <ul> * <li>To specify sources for line, area and stack plots.</li> * <li>To define complex sources * </ul> * * @param name source name. * @param file Path to RRD file. * @param dsName Datasource name defined in the RRD file. * @param consolFunc Consolidation function that will be used to extract data from the RRD * file ("AVERAGE", "MIN", "MAX" or "LAST" - these string constants are conveniently defined * in the {@link org.jrobin.core.ConsolFuns ConsolFuns} class). */ public void addDatasource(String name, String file, String dsName, String consolFunc) { Def def = new Def(name, file, dsName, consolFunc); sources.put(name, def); }
/** * <p>Adds simple source (<b>DEF</b>). Source <code>name</code> can be used:</p> * <ul> * <li>To specify sources for line, area and stack plots.</li> * <li>To define complex sources * </ul> * * @param name Source name. * @param file Path to RRD file. * @param dsName Data source name defined in the RRD file. * @param consolFunc Consolidation function that will be used to extract data from the RRD * file ("AVERAGE", "MIN", "MAX" or "LAST" - these string constants are conveniently defined * in the {@link org.jrobin.core.ConsolFuns ConsolFuns} class). * @param backend Name of the RrdBackendFactory that should be used for this RrdDb. */ public void addDatasource(String name, String file, String dsName, String consolFunc, String backend) { Def def = new Def(name, file, dsName, consolFunc, backend); sources.put(name, def); }