public class FetchRequest extends Object
You cannot create FetchRequest directly (no public constructor is provided). Use
createFetchRequest()
method of your RrdDb object.
| Constructor and Description |
|---|
FetchRequest(RrdDb parentDb,
ConsolFun consolFun,
long fetchStart,
long fetchEnd,
long resolution) |
| Modifier and Type | Method and Description |
|---|---|
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. |
ConsolFun | getConsolFun()Returns consolidation 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. |
(package private) String | getRrdToolCommand() |
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 the specified array of datasources
(datasource names). |
void | setFilter(String filter)Sets request filter in order to fetch data only for a single datasource (datasource name). |
public String dump()
public FetchData fetchData() throws IOException
FetchData object.IOException - Thrown in case of I/O error.public ConsolFun getConsolFun()
public long getFetchEnd()
public long getFetchStart()
public String[] getFilter()
setFilter() for complete
explanation.public RrdDb getParentDb()
public long getResolution()
String getRrdToolCommand()
public void setFilter(Set<String> filter)
filter - Set of datasource names to fetch data for.public void setFilter(String... filter)
filter - Array of datasources (datasource names) to fetch data from.public void setFilter(String filter)
filter - A single datasource (datasource name) to fetch data from.