|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rrd4j.core.FetchRequest
public class FetchRequest
Class to represent fetch request. For the complete explanation of all
fetch parameters consult RRDTool's
rrdfetch man page.
You cannot create 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. |
ConsolFun |
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(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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setFilter(String... filter)
filter
- Array of datsources (datsource names) to fetch data from.public void setFilter(Set<String> filter)
filter
- Set of datsource names to fetch data for.public void setFilter(String filter)
filter
- Array of datsources (datsource names) to fetch data from.public String[] getFilter()
setFilter()
for
complete explanation.
public ConsolFun getConsolFun()
public long getFetchStart()
public long getFetchEnd()
public long getResolution()
public String dump()
public FetchData fetchData() throws IOException
FetchData
object.
IOException
- Thrown in case of I/O error.public RrdDb getParentDb()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |