public class MultithreadedJniRrdStrategy extends AbstractJniRrdStrategy<MultithreadedJniRrdStrategy.CreateCommand,MultithreadedJniRrdStrategy.UpdateCommand>
| Modifier and Type | Class and Description |
|---|---|
static class |
MultithreadedJniRrdStrategy.CreateCommand |
static class |
MultithreadedJniRrdStrategy.UpdateCommand |
| Constructor and Description |
|---|
MultithreadedJniRrdStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeFile(MultithreadedJniRrdStrategy.UpdateCommand update)
The 'closes' the rrd file.
|
MultithreadedJniRrdStrategy.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(MultithreadedJniRrdStrategy.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
|
MultithreadedJniRrdStrategy.UpdateCommand |
openFile(String fileName)
Opens the round robin database with the supplied name.
|
void |
setConfigurationProperties(Properties configurationParameters)
setConfigurationProperties
|
void |
updateFile(MultithreadedJniRrdStrategy.UpdateCommand update,
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(MultithreadedJniRrdStrategy.UpdateCommand update) throws Exception
rrd - a StringBuffer object.Exception - if any.public MultithreadedJniRrdStrategy.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(MultithreadedJniRrdStrategy.CreateCommand createCommand) throws Exception
public MultithreadedJniRrdStrategy.UpdateCommand openFile(String fileName) throws Exception
fileName - the name of the associated rrd fileException - if an error occurs opening the filepublic void updateFile(MultithreadedJniRrdStrategy.UpdateCommand update, String owner, String data) throws Exception
update - 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 © 2020. All rights reserved.