org.jrobin.core
public class FetchRequest extends Object
FetchRequest
directly (no public constructor
is provided). Use
createFetchRequest()
method of your RrdDb
object.
Method Summary | |
---|---|
String | dump()
Dumps the content of fetch request using the syntax of RRDTool's fetch command.
|
FetchData | fetchData()
Returns data from the underlying RRD and puts it in a single
FetchData object.
|
String | getConsolFun()
Returns consolitation function to be used during the fetch process.
|
long | getFetchEnd()
Returns ending timestamp to be used for the fetch request.
|
long | getFetchStart()
Returns starting timestamp to be used for the fetch request.
|
String[] | getFilter()
Returns request filter. |
RrdDb | getParentDb()
Returns the underlying RrdDb object.
|
long | getResolution()
Returns fetch resolution to be used for the fetch request.
|
void | setFilter(String[] filter)
Sets request filter in order to fetch data only for
the specified array of datasources (datasource names).
|
void | setFilter(Set<String> filter)
Sets request filter in order to fetch data only for
the specified set of datasources (datasource names).
|
void | setFilter(String filter)
Sets request filter in order to fetch data only for
a single datasource (datasource name).
|
Returns: Fetch request dump.
FetchData
object.
Returns: FetchData object filled with timestamps and datasource values.
Throws: RrdException Thrown in case of JRobin specific error. IOException Thrown in case of I/O error.
Returns: Consolidation function.
Returns: Ending timestamp in seconds.
Returns: Starting timstamp in seconds.
(String[]) setFilter()
for
complete explanation.
Returns: Request filter (array of datasource names), null if not set.
Returns: RrdDb object used to create this FetchRequest object.
Returns: Fetch resolution in seconds.
Parameters: filter Array of datsources (datsource names) to fetch data from.
Parameters: filter Set of datsource names to fetch data for.
Parameters: filter Array of datsources (datsource names) to fetch data from.