|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jrobin.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 createFetchRequest
directly (no public constructor
is provided). Use createFetchRequest()
method of your RrdDb
object.
Method Summary | |
---|---|
java.lang.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. |
java.lang.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. |
java.lang.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(java.util.Set<java.lang.String> filter)
Sets request filter in order to fetch data only for the specified set of datasources (datasource names). |
void |
setFilter(java.lang.String filter)
Sets request filter in order to fetch data only for a single datasource (datasource name). |
void |
setFilter(java.lang.String[] filter)
Sets request filter in order to fetch data only for the specified array of datasources (datasource names). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setFilter(java.lang.String[] filter)
filter
- Array of datsources (datsource names) to fetch data from.public void setFilter(java.util.Set<java.lang.String> filter)
filter
- Set of datsource names to fetch data for.public void setFilter(java.lang.String filter)
filter
- Array of datsources (datsource names) to fetch data from.public java.lang.String[] getFilter()
setFilter()
for
complete explanation.
public java.lang.String getConsolFun()
public long getFetchStart()
public long getFetchEnd()
public long getResolution()
public java.lang.String dump()
public FetchData fetchData() throws RrdException, java.io.IOException
FetchData
object.
RrdException
- Thrown in case of JRobin specific error.
java.io.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 |