public class JniRrdStrategy extends AbstractJniRrdStrategy<JniRrdStrategy.CreateCommand,StringBuffer>
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
JniRrdStrategy.CreateCommand  | 
| Constructor and Description | 
|---|
JniRrdStrategy()
Initialized the JNI Interface 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
closeFile(StringBuffer rrd)
The 'closes' the rrd file. 
 | 
JniRrdStrategy.CreateCommand | 
createDefinition(String creator,
                String directory,
                String rrdName,
                int step,
                List<RrdDataSource> dataSources,
                List<String> rraList)
Create a round robin database definition from the supplied parameters. 
 | 
void | 
createFile(JniRrdStrategy.CreateCommand createCommand)
Creates a the rrd file from the rrdDefinition. 
 | 
Double | 
fetchLastValue(String rrdFile,
              String ds,
              int interval)
Fetches the last value from the round robin database with the given name. 
 | 
Double | 
fetchLastValue(String rrdFile,
              String ds,
              String consolidationFunction,
              int interval)
Fetches the last value from the round robin database with the given name. 
 | 
Double | 
fetchLastValueInRange(String rrdFile,
                     String ds,
                     int interval,
                     int range)
Fetches the last value from the round robin database with the given name
 within a time range. 
 | 
Properties | 
getConfigurationProperties()
getConfigurationProperties 
 | 
StringBuffer | 
openFile(String fileName)
Opens the round robin database with the supplied name. 
 | 
void | 
setConfigurationProperties(Properties configurationParameters)
setConfigurationProperties 
 | 
void | 
updateFile(StringBuffer rrd,
          String owner,
          String data)
Updates the supplied round robin database with the given timestamp:value
 point 
 | 
createGraph, createGraphReturnDetails, getDefaultFileExtension, getGraphLeftOffset, getGraphRightOffset, getGraphTopOffsetWithText, getStats, promoteEnqueuedFilespublic Properties getConfigurationProperties()
getConfigurationProperties
Properties object.public void setConfigurationProperties(Properties configurationParameters)
setConfigurationProperties
configurationParameters - a Properties object.public void closeFile(StringBuffer rrd) throws Exception
rrd - a StringBuffer object.Exception - if any.public JniRrdStrategy.CreateCommand createDefinition(String creator, String directory, String rrdName, int step, List<RrdDataSource> dataSources, List<String> rraList) throws Exception
creator - - A string representing who is creating this file for use in
            log msgsdirectory - - The directory to create the file inrrdName - - The name to use for the round robin databasestep - - the step for the databasedataSources - - the data sources to use for round robin databaserraList - - a List of the round robin archives to create in the
            database. defines after which time the data is condensed to a
            defined lower stepException - If an error occurs while creating the definitionpublic void createFile(JniRrdStrategy.CreateCommand createCommand) throws Exception
public StringBuffer openFile(String fileName) throws Exception
fileName - the name of the associated rrd fileException - if an error occurs opening the filepublic void updateFile(StringBuffer rrd, String owner, String data) throws Exception
rrd - an rrd object created using openFileowner - the owner of the rrddata - a string of the form Exception - if an error occurs updating the filepublic Double fetchLastValue(String rrdFile, String ds, int interval) throws NumberFormatException, RrdException
rrdFile - a name the represents a round robin databaseds - a name the represents a data source to be usedinterval - a step interval of the round robin databaseNumberFormatException - if any.RrdException - if any.public Double fetchLastValue(String rrdFile, String ds, String consolidationFunction, int interval)
rrdFile - a name the represents a round robin databaseds - a name the represents a data source to be usedconsolidationFunction - a String object.interval - a step interval of the round robin databasepublic Double fetchLastValueInRange(String rrdFile, String ds, int interval, int range) throws NumberFormatException, RrdException
rrdFile - a name the represents a round robin databaseds - a name the represents a data source to be usedinterval - a step interval of the round robin databaserange - an acceptable range for which the last value will be returnedNumberFormatException - if any.RrdException - if any.Copyright © 2021. All rights reserved.