public interface DataHolder| Modifier and Type | Field and Description |
|---|---|
static boolean | DEFAULT_POOL_USAGE_POLICYConstant that defines the default RrdDbPool usage policy. |
| Modifier and Type | Method and Description |
|---|---|
void | datasource(String name,
FetchData fetchData)Creates a new 'fetched' datasource. |
void | datasource(String name,
IPlottable plottable)Creates a new (plottable) datasource. |
void | datasource(String name,
String rpnExpression)Create a new virtual datasource by evaluating a mathematical expression, specified in Reverse
Polish Notation (RPN). |
void | datasource(String name,
String dsName,
FetchData fetchData)Creates a new 'fetched' datasource. |
void | datasource(String name,
String rrdPath,
String dsName,
ConsolFun consolFun)Defines virtual datasource. |
void | datasource(String name,
String rrdPath,
String dsName,
ConsolFun consolFun,
RrdBackendFactory backend)Defines virtual datasource. |
void | datasource(String name,
String defName,
Variable var)Creates a datasource that performs a variable calculation on an another named datasource to
yield a single combined timestamp/value. |
void | datasource(String name,
URI rrdUri,
String dsName,
ConsolFun consolFun)Defines virtual datasource. |
void | datasource(String name,
URI rrdUri,
String dsName,
ConsolFun consolFun,
RrdBackendFactory backend)Defines virtual datasource. |
long | getEndTime()Returns ending timestamp. |
RrdDbPool | getPool()Returns the current pool. |
long | getStartTime()Returns starting timestamp. |
long | getStep()Returns the time step used for timestamp interval. |
TimeZone | getTimeZone()Returns the time zone. |
boolean | isPoolUsed()Returns boolean value representing RrdDbPool usage policy. |
void | setEndTime(long time)Sets the time when the graph should end. |
void | setPool(RrdDbPool pool)Defines the RrdDbPool to use. |
void | setPoolUsed(boolean poolUsed)Sets the RrdDbPool usage policy. |
void | setStartTime(long time)Sets the time when the graph should start. |
void | setStep(long step)Set the step for timestamp interval. |
void | setTimeSpan(long startTime,
long endTime)Sets starting and ending time for the for the graph. |
void | setTimeZone(TimeZone tz)Set the time zone used for the legend. |
static final boolean DEFAULT_POOL_USAGE_POLICY
RrdDbPool usage policy. Defaults to false
(i.e. the pool will not be used to fetch data from RRD files)void datasource(String name, FetchData fetchData)
FetchData object.name - Source name.fetchData - FetchData object.void datasource(String name, IPlottable plottable)
name - Source name.plottable - IPlottable object.void datasource(String name, String rpnExpression)
name - Source namerpnExpression - RPN expression.void datasource(String name, String dsName, FetchData fetchData)
FetchData object. Values will be extracted from the datasource dsName in the
fetchDataname - Source name.dsName - Source name in fetchData.fetchData - FetchData object.void datasource(String name, String rrdPath, String dsName, ConsolFun consolFun)
datasource(String, String).name - Source namerrdPath - Path to RRD filedsName - Datasource name in the specified RRD fileconsolFun - Consolidation function (AVERAGE, MIN, MAX, LAST)void datasource(String name, String rrdPath, String dsName, ConsolFun consolFun, RrdBackendFactory backend)
datasource(String, String).name - Source namerrdPath - Path to RRD filedsName - Datasource name in the specified RRD fileconsolFun - Consolidation function (AVERAGE, MIN, MAX, LAST)backend - Backend to be used while fetching data from a RRD file.void datasource(String name, String defName, Variable var)
Requires that the other datasource has already been defined; otherwise, it'll end up with no data
name - - the new virtual datasource namedefName - - the datasource from which to extract the percentile. Must be a previously
defined virtual datasourcevar - - a new instance of a Variable used to do the calculationvoid datasource(String name, URI rrdUri, String dsName, ConsolFun consolFun)
datasource(String, String).name - Source namerrdUri - rrdUri to RRD filedsName - Datasource name in the specified RRD fileconsolFun - Consolidation function (AVERAGE, MIN, MAX, LAST)void datasource(String name, URI rrdUri, String dsName, ConsolFun consolFun, RrdBackendFactory backend)
datasource(String, String).name - Source namerrdUri - URI to RRD filedsName - Datasource name in the specified RRD fileconsolFun - Consolidation function (AVERAGE, MIN, MAX, LAST)backend - Backend to be used while fetching data from a RRD file.long getEndTime()
RrdDbPool getPool()
long getStartTime()
long getStep()
TimeZone getTimeZone()
boolean isPoolUsed()
RrdDbPool usage policy.void setEndTime(long time)
time - Ending time for the graph in seconds since epochvoid setPool(RrdDbPool pool)
RrdDbPool to use. If not defined, but {setPoolUsed(boolean) set to true, the default RrdDbPool.getInstance() will be used.pool - an optional pool to use.void setPoolUsed(boolean poolUsed)
RrdDbPool usage policy.poolUsed - true, if the pool will be used to fetch data from RRD files, false otherwise.void setStartTime(long time)
time - Starting time for the graph in seconds since epochvoid setStep(long step)
step - time step for data processingvoid setTimeSpan(long startTime,
long endTime)startTime - Starting time in seconds since epochendTime - Ending time in seconds since epochvoid setTimeZone(TimeZone tz)
tz - the time zone to set