|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RrdDao
| Method Summary | |
|---|---|
java.io.InputStream |
createGraph(java.lang.String command,
java.io.File workDir)
Create an RRD graph with the given command where RRD files are relative to the workDir. |
int |
getGraphLeftOffset()
Gets the offset of the left side of the graph box from the left side of the image. |
int |
getGraphRightOffset()
Gets the offset of the right side of the graph box from the right side of the image. |
int |
getGraphTopOffsetWithText()
Gets the offset of the top of the graph box from the top of the image. |
java.lang.Double |
getLastFetchValue(org.opennms.netmgt.model.OnmsAttribute attribute,
int interval)
This method issues an round robin fetch command to retrieve the last value of the data source stored in the specified RRD file. |
java.lang.Double |
getLastFetchValue(org.opennms.netmgt.model.OnmsAttribute attribute,
int interval,
int range)
This method issues an round robin fetch command to retrieve the last value of the data source stored in the specified RRD file. |
double |
getPrintValue(org.opennms.netmgt.model.OnmsAttribute attribute,
java.lang.String cf,
long start,
long end)
Get the value for an attribute over a period of time. |
double[] |
getPrintValues(org.opennms.netmgt.model.OnmsAttribute attribute,
java.lang.String rraConsolidationFunction,
long startTimeInMillis,
long endTimeInMillis,
java.lang.String... printFunctions)
Get the value for an attribute over a period of time. |
| Method Detail |
|---|
double getPrintValue(org.opennms.netmgt.model.OnmsAttribute attribute,
java.lang.String cf,
long start,
long end)
attribute - the attributecf - consolidation function (usually "AVERAGE")start - start time in millisecondsend - end time in milliseconds
double[] getPrintValues(org.opennms.netmgt.model.OnmsAttribute attribute,
java.lang.String rraConsolidationFunction,
long startTimeInMillis,
long endTimeInMillis,
java.lang.String... printFunctions)
attribute - the attributerraConsolidationFunction - consolidation function (usually "AVERAGE")printConsolidationFunction - applies this function to the result of the above function of the
given time periodstartTimeInMillis - start time in millisecondsendTimeInMillis - end time in milliseconds
java.io.InputStream createGraph(java.lang.String command,
java.io.File workDir)
command - RRD graph commandworkDir - RRD files are relative to this directory
int getGraphTopOffsetWithText()
int getGraphLeftOffset()
int getGraphRightOffset()
java.lang.Double getLastFetchValue(org.opennms.netmgt.model.OnmsAttribute attribute,
int interval)
throws org.springframework.dao.DataAccessException
attribute - The attribute for which fetch the last value. Must be a
RrdGraphAttribute.interval - Fetch interval. This should equal RRD step size.
org.springframework.dao.DataAccessException - if an error occurs retrieving the last value
java.lang.Double getLastFetchValue(org.opennms.netmgt.model.OnmsAttribute attribute,
int interval,
int range)
throws org.springframework.dao.DataAccessException
attribute - The attribute for which fetch the last value. Must be a
RrdGraphAttribute.interval - Fetch interval in milliseconds. This should equal the RRD
step size.range - Interval in milliseconds for how long we should look back
in time for a non-NaN value. This should a multiple of
the RRD step size.
org.springframework.dao.DataAccessException - if an error occurs retrieving the last value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||