Package | Description |
---|---|
org.jrobin.core | |
org.jrobin.core.jrrd | |
org.jrobin.core.timespec | |
org.jrobin.data |
JRobin data management.
|
org.jrobin.graph |
JRobin graph capabilities.
|
Modifier and Type | Method | Description |
---|---|---|
void |
RrdDef.addArchive(String rrdToolArcDef) |
Adds single archive to RRD definition from a RRDTool-like
archive definition string.
|
void |
RrdDef.addArchive(String consolFun,
double xff,
int steps,
int rows) |
Adds single archive definition by specifying its consolidation function, X-files factor,
number of steps and rows.
|
void |
RrdDef.addArchive(ArcDef arcDef) |
Adds single archive definition represented with object of class
ArcDef . |
void |
RrdDef.addArchive(ArcDef[] arcDefs) |
Adds archive definitions to RRD definition in bulk.
|
static void |
RrdToolkit.addArchive(String sourcePath,
String destPath,
ArcDef newArchive) |
Creates a new RRD file with one more archive in it.
|
static void |
RrdToolkit.addArchive(String sourcePath,
ArcDef newArchive,
boolean saveBackup) |
Adds one more archive to a RRD file.
|
void |
RrdDef.addDatasource(String rrdToolDsDef) |
Adds single datasource to RRD definition from a RRDTool-like
datasource definition string.
|
void |
RrdDef.addDatasource(String dsName,
String dsType,
long heartbeat,
double minValue,
double maxValue) |
Adds single datasource to RRD definition by specifying its data source name, source type,
heartbeat, minimal and maximal value.
|
void |
RrdDef.addDatasource(DsDef dsDef) |
Adds single datasource definition represented with object of class
DsDef . |
void |
RrdDef.addDatasource(DsDef[] dsDefs) |
Adds data source definitions to RRD definition in bulk.
|
static void |
RrdToolkit.addDatasource(String sourcePath,
String destPath,
DsDef newDatasource) |
Creates a new RRD file with one more datasource in it.
|
static void |
RrdToolkit.addDatasource(String sourcePath,
DsDef newDatasource,
boolean saveBackup) |
Adds one more datasource to a RRD file.
|
(package private) void |
RrdDb.archive(Datasource datasource,
double value,
long numUpdates) |
|
void |
Archive.copyStateTo(RrdUpdater other) |
Copies object's internal state to another Archive object.
|
void |
ArcState.copyStateTo(RrdUpdater other) |
Copies object's internal state to another ArcState object.
|
void |
Datasource.copyStateTo(RrdUpdater other) |
Copies object's internal state to another Datasource object.
|
void |
Header.copyStateTo(RrdUpdater other) |
Copies object's internal state to another Header object.
|
void |
Robin.copyStateTo(RrdUpdater other) |
Copies object's internal state to another Robin object.
|
void |
RrdDb.copyStateTo(RrdUpdater other) |
Copies object's internal state to another RrdDb object.
|
void |
RrdUpdater.copyStateTo(RrdUpdater updater) |
|
FetchRequest |
RrdDb.createFetchRequest(String consolFun,
long fetchStart,
long fetchEnd) |
Prepares fetch request to be executed on this RRD.
|
FetchRequest |
RrdDb.createFetchRequest(String consolFun,
long fetchStart,
long fetchEnd,
long resolution) |
Prepares fetch request to be executed on this RRD.
|
void |
RrdDb.dumpXml(String filename) |
Dumps internal RRD state to XML file.
|
String |
RrdDb.exportXml() |
This method is just an alias for
getXml method. |
void |
RrdDb.exportXml(String filename) |
This method is just an alias for
dumpXml(String) method. |
(package private) FetchData |
Archive.fetchData(FetchRequest request) |
|
FetchData |
FetchRequest.fetchData() |
Returns data from the underlying RRD and puts it in a single
FetchData object. |
(package private) FetchData |
RrdDb.fetchData(FetchRequest request) |
|
(package private) ArcDef |
RrdDef.findArchive(String consolFun,
int steps) |
|
Archive |
RrdDb.findMatchingArchive(FetchRequest request) |
|
static int |
RrdToolkit.forceZerosForNans(String sourcePath,
String dsName) |
Updates single or all datasource names in the specified RRD file
by appending '!' (if not already present).
|
double |
FetchData.get95Percentile(String dsName) |
Used by ISPs which charge for bandwidth utilization on a "95th percentile" basis.
|
(package private) abstract double |
DataImporter.getAccumValue(int dsIndex) |
|
(package private) double |
XmlReader.getAccumValue(int dsIndex) |
|
double |
FetchData.getAggregate(String dsName,
String consolFun) |
Returns single aggregated value from the fetched data for a single datasource.
|
double |
FetchData.getAggregate(String dsName,
String consolFun,
String rpnExpression) |
Deprecated.
This method is preserved just for backward compatibility.
|
Aggregates |
FetchData.getAggregates(String dsName) |
Returns all aggregated values (MIN, MAX, LAST, FIRST, AVERAGE or TOTAL) calculated from the fetched data
for a single datasource.
|
(package private) abstract int |
DataImporter.getArcCount() |
|
(package private) int |
RrdToolReader.getArcCount() |
|
int |
RrdDb.getArcIndex(String consolFun,
int steps) |
Returns index of Archive object with the given consolidation function and the number
of steps.
|
static String |
Util.Xml.getChildValue(Node parentNode,
String childName) |
|
static String |
Util.Xml.getChildValue(Node parentNode,
String childName,
boolean trim) |
|
protected String |
XmlTemplate.getChildValue(Node parentNode,
String childName) |
|
protected String |
XmlTemplate.getChildValue(Node parentNode,
String childName,
boolean trim) |
|
static boolean |
Util.Xml.getChildValueAsBoolean(Node parentNode,
String childName) |
|
protected boolean |
XmlTemplate.getChildValueAsBoolean(Node parentNode,
String childName) |
|
static double |
Util.Xml.getChildValueAsDouble(Node parentNode,
String childName) |
|
protected double |
XmlTemplate.getChildValueAsDouble(Node parentNode,
String childName) |
|
static int |
Util.Xml.getChildValueAsInt(Node parentNode,
String childName) |
|
protected int |
XmlTemplate.getChildValueAsInt(Node parentNode,
String childName) |
|
static long |
Util.Xml.getChildValueAsLong(Node parentNode,
String childName) |
|
protected long |
XmlTemplate.getChildValueAsLong(Node parentNode,
String childName) |
|
(package private) abstract String |
DataImporter.getConsolFun(int arcIndex) |
|
(package private) String |
XmlReader.getConsolFun(int arcIndex) |
|
(package private) abstract int |
DataImporter.getDsCount() |
|
int |
RrdDb.getDsIndex(String dsName) |
Returns internal index number for the given datasource name.
|
(package private) abstract String |
DataImporter.getDsName(int dsIndex) |
|
(package private) String |
XmlReader.getDsName(int dsIndex) |
|
(package private) abstract String |
DataImporter.getDsType(int dsIndex) |
|
(package private) String |
XmlReader.getDsType(int dsIndex) |
|
(package private) long |
DataImporter.getEstimatedSize() |
|
static RrdBackendFactory |
RrdBackendFactory.getFactory(String name) |
Returns backend factory for the given backend factory name.
|
static Node |
Util.Xml.getFirstChildNode(Node parentNode,
String childName) |
|
protected static Node |
XmlTemplate.getFirstChildNode(Node parentNode,
String childName) |
|
(package private) abstract long |
DataImporter.getHeartbeat(int dsIndex) |
|
(package private) long |
XmlReader.getHeartbeat(int dsIndex) |
|
static RrdDbPool |
RrdDbPool.getInstance() |
Creates a single instance of the class on the first call, or returns already existing one.
|
double |
RrdDb.getLastDatasourceValue(String dsName) |
Returns the last stored value for the given datasource.
|
(package private) abstract long |
DataImporter.getLastUpdateTime() |
|
(package private) long |
XmlReader.getLastUpdateTime() |
|
(package private) abstract double |
DataImporter.getLastValue(int dsIndex) |
|
(package private) double |
XmlReader.getLastValue(int dsIndex) |
|
(package private) abstract double |
DataImporter.getMaxValue(int dsIndex) |
|
(package private) double |
XmlReader.getMaxValue(int dsIndex) |
|
(package private) abstract double |
DataImporter.getMinValue(int dsIndex) |
|
(package private) double |
XmlReader.getMinValue(int dsIndex) |
|
(package private) abstract long |
DataImporter.getNanSeconds(int dsIndex) |
|
(package private) long |
XmlReader.getNanSeconds(int dsIndex) |
|
static Element |
Util.Xml.getRootElement(File xmlFile) |
|
static Element |
Util.Xml.getRootElement(String xmlString) |
|
static Element |
Util.Xml.getRootElement(InputSource inputSource) |
|
(package private) abstract int |
DataImporter.getRows(int arcIndex) |
|
(package private) int |
RrdToolReader.getRows(int arcIndex) |
|
(package private) int |
XmlReader.getRows(int arcIndex) |
|
double |
FetchData.getRpn95Percentile(String rpnExpression) |
Same as
FetchData.get95Percentile(String) , but for a set of values calculated with the given
RPN expression. |
double |
FetchData.getRpnAggregate(String rpnExpression,
String consolFun) |
Returns aggregated value for a set of values calculated by applying an RPN expression to the
fetched data.
|
Aggregates |
FetchData.getRpnAggregates(String rpnExpression) |
Returns all aggregated values for a set of values calculated by applying an RPN expression to the
fetched data.
|
double[] |
FetchData.getRpnValues(String rpnExpression) |
Returns a set of values created by applying RPN expression to the fetched data.
|
RrdDef |
RrdDb.getRrdDef() |
Returns RRD definition object which can be used to create new RRD
with the same creation parameters but with no data in it.
|
RrdDef |
RrdDefTemplate.getRrdDef() |
Returns RrdDef object constructed from the underlying XML template.
|
(package private) abstract double |
DataImporter.getStateAccumValue(int arcIndex,
int dsIndex) |
|
(package private) double |
RrdToolReader.getStateAccumValue(int arcIndex,
int dsIndex) |
|
(package private) double |
XmlReader.getStateAccumValue(int arcIndex,
int dsIndex) |
|
(package private) abstract int |
DataImporter.getStateNanSteps(int arcIndex,
int dsIndex) |
|
(package private) int |
RrdToolReader.getStateNanSteps(int arcIndex,
int dsIndex) |
|
(package private) int |
XmlReader.getStateNanSteps(int arcIndex,
int dsIndex) |
|
(package private) abstract long |
DataImporter.getStep() |
|
(package private) long |
XmlReader.getStep() |
|
(package private) abstract int |
DataImporter.getSteps(int arcIndex) |
|
(package private) int |
XmlReader.getSteps(int arcIndex) |
|
static long |
Util.getTimestamp(String atStyleTimeSpec) |
Parses at-style time specification and returns the corresponding timestamp.
|
static long[] |
Util.getTimestamps(String atStyleTimeSpec1,
String atStyleTimeSpec2) |
Parses two related at-style time specifications and returns corresponding timestamps.
|
protected Paint |
XmlTemplate.getValueAsColor(Node parentNode) |
|
(package private) abstract double[] |
DataImporter.getValues(int arcIndex,
int dsIndex) |
|
(package private) abstract double[] |
DataImporter.getValues(int arcIndex,
int dsIndex) |
|
double[] |
FetchData.getValues(String dsName) |
Returns all archived values for a single datasource.
|
(package private) double[] |
RrdToolReader.getValues(int arcIndex,
int dsIndex) |
|
(package private) double[] |
RrdToolReader.getValues(int arcIndex,
int dsIndex) |
|
(package private) double[] |
XmlReader.getValues(int arcIndex,
int dsIndex) |
|
(package private) abstract String |
DataImporter.getVersion() |
|
(package private) String |
XmlReader.getVersion() |
|
(package private) abstract double |
DataImporter.getXff(int arcIndex) |
|
(package private) double |
XmlReader.getXff(int arcIndex) |
|
String |
RrdDb.getXml() |
Returns string representing internal RRD state in XML format.
|
static Paint |
Util.parseColor(String valueStr) |
Parses input string as color.
|
(package private) void |
Datasource.process(long newTime,
double newValue) |
|
static void |
RrdBackendFactory.registerAndSetAsDefaultFactory(RrdBackendFactory factory) |
Registers new (custom) backend factory within the JRobin framework and sets this
factory as the default.
|
static void |
RrdBackendFactory.registerFactory(RrdBackendFactory factory) |
Registers new (custom) backend factory within the JRobin framework.
|
(package private) void |
DataImporter.release() |
|
void |
RrdDbPool.release(RrdDb rrdDb) |
Releases RrdDb reference previously obtained from the pool.
|
(package private) void |
RrdDef.removeArchive(String consolFun,
int steps) |
|
static void |
RrdToolkit.removeArchive(String sourcePath,
String consolFun,
int steps,
boolean saveBackup) |
Removes one archive from a RRD file.
|
static void |
RrdToolkit.removeArchive(String sourcePath,
String destPath,
String consolFun,
int steps) |
Creates a new RRD file with one archive removed.
|
(package private) void |
RrdDef.removeDatasource(String dsName) |
|
static void |
RrdToolkit.removeDatasource(String sourcePath,
String dsName,
boolean saveBackup) |
Removes single datasource from a RRD file.
|
static void |
RrdToolkit.removeDatasource(String sourcePath,
String destPath,
String dsName) |
Creates a new RRD file with one datasource removed.
|
static void |
RrdToolkit.renameDatasource(String sourcePath,
String oldDsName,
String newDsName) |
Renames single datasource in the given RRD file.
|
RrdDb |
RrdDbPool.requestRrdDb(String path) |
Requests a RrdDb reference for the given RRD file path.
|
RrdDb |
RrdDbPool.requestRrdDb(String path,
String sourcePath) |
Requests a RrdDb reference for the given path.
|
RrdDb |
RrdDbPool.requestRrdDb(String path,
String sourcePath) |
Requests a RrdDb reference for the given path.
|
RrdDb |
RrdDbPool.requestRrdDb(RrdDef rrdDef) |
Requests a RrdDb reference for the given RRD file definition object.
|
static void |
RrdToolkit.resizeArchive(String sourcePath,
String consolFun,
int numSteps,
int newRows,
boolean saveBackup) |
Modifies existing RRD file, by resizing its chosen archive.
|
static void |
RrdToolkit.resizeArchive(String sourcePath,
String destPath,
String consolFun,
int numSteps,
int newRows) |
Creates new RRD file based on the existing one, but with a different
size (number of rows) for a single archive.
|
Sample |
Sample.set(String timeAndValues) |
Sets sample timestamp and data source values in a fashion similar to RRDTool.
|
void |
Sample.setAndUpdate(String timeAndValues) |
Creates sample with the timestamp and data source values supplied
in the argument string and stores sample in the corresponding RRD.
|
static void |
RrdToolkit.setArcXff(String sourcePath,
String consolFun,
int steps,
double newXff) |
Sets single archive's X-files factor to a new value.
|
static void |
RrdBackendFactory.setDefaultFactory(String factoryName) |
Replaces the default backend factory with a new one.
|
static void |
RrdDb.setDefaultFactory(String factoryName) |
Sets default backend factory to be used.
|
static void |
RrdToolkit.setDsHeartbeat(String sourcePath,
int dsIndex,
long newHeartbeat) |
Sets datasource heartbeat to a new value.
|
static void |
RrdToolkit.setDsHeartbeat(String sourcePath,
String datasourceName,
long newHeartbeat) |
Sets datasource heartbeat to a new value.
|
static void |
RrdToolkit.setDsMaxValue(String sourcePath,
String datasourceName,
double newMaxValue,
boolean filterArchivedValues) |
Sets datasource max value to a new value.
|
static void |
RrdToolkit.setDsMinMaxValue(String sourcePath,
String datasourceName,
double newMinValue,
double newMaxValue,
boolean filterArchivedValues) |
Updates valid value range for the given datasource.
|
static void |
RrdToolkit.setDsMinValue(String sourcePath,
String datasourceName,
double newMinValue,
boolean filterArchivedValues) |
Sets datasource min value to a new value
|
void |
Datasource.setDsName(String newDsName) |
Sets datasource name to a new value
|
void |
Datasource.setDsType(String newDsType) |
|
void |
Datasource.setHeartbeat(long heartbeat) |
Sets datasource heartbeat to a new value.
|
void |
Datasource.setMaxValue(double maxValue,
boolean filterArchivedValues) |
Sets maximum allowed value for this datasource.
|
void |
Datasource.setMinMaxValue(double minValue,
double maxValue,
boolean filterArchivedValues) |
Sets min/max values allowed for this datasource.
|
void |
Datasource.setMinValue(double minValue,
boolean filterArchivedValues) |
Sets minimum allowed value for this datasource.
|
Sample |
Sample.setValue(int i,
double value) |
Sets single datasource value using data source index.
|
Sample |
Sample.setValue(String dsName,
double value) |
Sets single data source value in the sample.
|
void |
Robin.setValues(double[] newValues) |
Updates archived values in bulk.
|
Sample |
Sample.setValues(double[] values) |
Sets some (possibly all) data source values in bulk.
|
void |
Archive.setXff(double xff) |
Sets X-files factor to a new value.
|
static void |
RrdToolkit.split(String sourcePath) |
Splits single RRD file with several datasources into a number of smaller RRD files
with a single datasource in it.
|
(package private) void |
RrdDb.store(Sample sample) |
|
void |
Sample.update() |
Stores sample in the corresponding RRD.
|
(package private) void |
RrdDef.validate() |
|
(package private) void |
Header.validateHeader() |
|
protected void |
XmlTemplate.validateTagsOnlyOnce(Node parentNode,
String[] allowedChildNames) |
Constructor | Description |
---|---|
ArcDef(String consolFun,
double xff,
int steps,
int rows) |
Creates new archive definition object.
|
Archive(RrdDb parentDb,
DataImporter reader,
int arcIndex) |
|
Archive(RrdDb parentDb,
DataImporter reader,
int arcIndex) |
|
Datasource(RrdDb parentDb,
DataImporter reader,
int dsIndex) |
|
DsDef(String dsName,
String dsType,
long heartbeat,
double minValue,
double maxValue) |
Creates new data source definition object.
|
FetchRequest(RrdDb parentDb,
String consolFun,
long fetchStart,
long fetchEnd,
long resolution) |
|
Header(RrdDb parentDb,
DataImporter reader) |
|
RrdDb(File file) |
|
RrdDb(File file,
boolean readOnly) |
|
RrdDb(String path) |
Constructor used to open already existing RRD in R/W mode, with a default storage
(backend) type (file on the disk).
|
RrdDb(String path,
boolean readOnly) |
Constructor used to open already existing RRD.
|
RrdDb(String path,
boolean readOnly,
RrdBackendFactory factory) |
Constructor used to open already existing RRD backed
with a storage (backend) different from default.
|
RrdDb(String rrdPath,
String externalPath) |
Constructor used to create RRD files from external file sources.
|
RrdDb(String rrdPath,
String externalPath) |
Constructor used to create RRD files from external file sources.
|
RrdDb(String rrdPath,
String externalPath,
RrdBackendFactory factory) |
Constructor used to create RRD files from external file sources with a backend type
different from default.
|
RrdDb(String path,
RrdBackendFactory factory) |
Constructor used to open already existing RRD in R/W mode with a storage (backend) type
different from default.
|
RrdDb(RrdDef rrdDef) |
Constructor used to create new RRD object from the definition.
|
RrdDb(RrdDef rrdDef,
RrdBackendFactory factory) |
Constructor used to create new RRD object from the definition object but with a storage
(backend) different from default.
|
RrdDef(String path) |
Creates new RRD definition object with the given path.
|
RrdDef(String path,
long step) |
Creates new RRD definition object with the given path and step.
|
RrdDef(String path,
long startTime,
long step) |
Creates new RRD definition object with the given path, starting timestamp
and step.
|
RrdDefTemplate(File xmlFile) |
Creates RrdDefTemplate object from the file containing XML template.
|
RrdDefTemplate(String xmlString) |
Creates RrdDefTemplate object from the string containing XML template.
|
RrdDefTemplate(InputSource xmlInputSource) |
Creates RrdDefTemplate object from any parsable XML input source.
|
RrdToolReader(String rrdPath) |
|
XmlReader(String xmlFilePath) |
|
XmlTemplate(File xmlFile) |
|
XmlTemplate(String xmlString) |
|
XmlTemplate(InputSource xmlSource) |
Modifier and Type | Method | Description |
---|---|---|
DataChunk |
RRDatabase.getData(ConsolidationFunctionType type) |
Returns data from the database corresponding to the given consolidation
function and a step size of 1.
|
DataChunk |
RRDatabase.getData(ConsolidationFunctionType type,
long step) |
Returns data from the database corresponding to the given consolidation
function.
|
double[][] |
Archive.getValues() |
|
(package private) void |
Archive.loadCDPStatusBlocks(RRDFile file,
int numBlocks) |
|
(package private) void |
Archive.loadCurrentRow(RRDFile file) |
|
(package private) DataChunk |
Archive.loadData(DataChunk chunk) |
|
(package private) void |
Archive.loadData(DataChunk chunk,
long startTime,
long endTime) |
|
(package private) void |
DataSource.loadPDPStatusBlock(RRDFile file) |
|
(package private) double |
RRDFile.readDouble() |
|
(package private) int |
RRDFile.readInt() |
|
(package private) int |
RRDFile.readInt(boolean dump) |
Reads the next integer (4 or 8 bytes depending on alignment), advancing the file pointer
and returns it
If the alignment is 8-bytes (64-bit), then 8 bytes are read, but only the lower 4-bytes (32-bits) are
returned.
|
(package private) String |
RRDFile.readString(int maxLength) |
|
(package private) void |
Archive.toXml(PrintStream s) |
|
void |
RRDatabase.toXml(PrintStream s) |
Outputs the content of the database to the given print stream
as a stream of XML.
|
Constructor | Description |
---|---|
Archive(RRDatabase db) |
|
CDPStatusBlock(RRDFile file) |
|
DataSource(RRDFile file) |
|
Header(RRDFile file) |
|
PDPStatusBlock(RRDFile file) |
|
RRDatabase(File file) |
Creates a database to read from.
|
RRDatabase(String name) |
Creates a database to read from.
|
RRDFile(File file) |
|
RRDFile(String name) |
Modifier and Type | Method | Description |
---|---|---|
(package private) GregorianCalendar |
TimeSpec.getTime() |
|
static Calendar[] |
TimeSpec.getTimes(TimeSpec spec1,
TimeSpec spec2) |
Use this static method to resolve relative time references and obtain the corresponding
Calendar objects.
|
long |
TimeSpec.getTimestamp() |
Returns the corresponding timestamp (seconds since Epoch).
|
static long[] |
TimeSpec.getTimestamps(TimeSpec spec1,
TimeSpec spec2) |
Use this static method to resolve relative time references and obtain the corresponding
timestamps (seconds since epoch).
|
TimeSpec |
TimeParser.parse() |
Parses the input string specified in the constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
PercentileDef.calculate(long tStart,
long tEnd) |
Realize the calculation of this definition, over the given time period
|
(package private) double[] |
RpnCalculator.calculateValues() |
|
String |
DataProcessor.dump() |
Dumps timestamps and values of all datasources in a tabelar form.
|
double |
DataProcessor.get95Percentile(String sourceName) |
This method is just an alias for
DataProcessor.getPercentile(String) method. |
double |
Aggregates.getAggregate(String consolFun) |
Returns single aggregated value for the give consolidation function
|
double |
DataProcessor.getAggregate(String sourceName,
String consolFun) |
Returns single aggregated value for a single datasource.
|
Aggregates |
DataProcessor.getAggregates(String sourceName) |
Returns all (MIN, MAX, LAST, FIRST, AVERAGE and TOTAL) aggregated values for a single datasource.
|
(package private) Aggregates |
Def.getAggregates(long tStart,
long tEnd) |
|
(package private) Aggregates |
PercentileDef.getAggregates(long tStart,
long tEnd) |
Same as SDef; the aggregates of a static value are all just the
same static value.
|
(package private) Aggregates |
SDef.getAggregates(long tStart,
long tEnd) |
|
(package private) Aggregates |
Source.getAggregates(long tStart,
long tEnd) |
|
double |
DataProcessor.getPercentile(String sourceName) |
Used by ISPs which charge for bandwidth utilization on a "95th percentile" basis.
|
double |
DataProcessor.getPercentile(String sourceName,
double percentile) |
The same as
DataProcessor.getPercentile(String) but with a possibility to define custom percentile boundary
(different from 95). |
(package private) double |
Def.getPercentile(long tStart,
long tEnd,
double percentile) |
|
(package private) double |
PercentileDef.getPercentile(long tStart,
long tEnd,
double percentile) |
Returns just the calculated percentile; the "Xth" percentile of a static value is
the static value itself.
|
(package private) double |
SDef.getPercentile(long tStart,
long tEnd,
double percentile) |
|
(package private) double |
Source.getPercentile(long tStart,
long tEnd,
double percentile) |
|
(package private) double |
Source.getPercentile(long tStart,
long tEnd,
double percentile,
boolean includenan) |
|
(package private) double[] |
Def.getRrdValues() |
|
long[] |
DataProcessor.getTimestamps() |
Returns consolidated timestamps created with the
DataProcessor.processData() method. |
double[][] |
DataProcessor.getValues() |
Returns an array of all datasource values for all datasources.
|
double[] |
DataProcessor.getValues(String sourceName) |
Returns calculated values for a single datasource.
|
double[] |
DataProcessor.getValuesPerPixel(String sourceName) |
Method used to calculate datasource values which should be presented on the graph
based on the graph width set with a
DataProcessor.setPixelCount(int) method call. |
double[] |
DataProcessor.getValuesPerPixel(String sourceName,
int pixelCount) |
Method used to calculate datasource values which should be presented on the graph
based on the desired graph width.
|
static void |
DataProcessor.main(String[] args) |
Cute little demo.
|
void |
DataProcessor.processData() |
Method that should be called once all datasources are defined.
|
Constructor | Description |
---|---|
CubicSplineInterpolator(double[] x,
double[] y) |
Creates cubic spline interpolator for an array of 2D-points.
|
CubicSplineInterpolator(long[] timestamps,
double[] values) |
Creates cubic spline interpolator from arrays of timestamps and corresponding
datasource values.
|
CubicSplineInterpolator(Calendar[] dates,
double[] values) |
Creates cubic spline interpolator from arrays of GregorianCalendar objects and corresponding
datasource values.
|
CubicSplineInterpolator(Date[] dates,
double[] values) |
Creates cubic spline interpolator from arrays of Date objects and corresponding
datasource values.
|
DataProcessor(long t1,
long t2) |
Creates new DataProcessor object for the given time span.
|
DataProcessor(Calendar gc1,
Calendar gc2) |
Creates new DataProcessor object for the given time span.
|
DataProcessor(Date d1,
Date d2) |
Creates new DataProcessor object for the given time span.
|
LinearInterpolator(long[] timestamps,
double[] values) |
Creates LinearInterpolator from arrays of timestamps and corresponding datasource values.
|
LinearInterpolator(Calendar[] dates,
double[] values) |
Creates LinearInterpolator from arrays of timestamps and corresponding datasource values.
|
LinearInterpolator(Date[] dates,
double[] values) |
Creates LinearInterpolator from arrays of timestamps and corresponding datasource values.
|
RpnCalculator(String rpnExpression,
String sourceName,
DataProcessor dataProcessor) |
Modifier and Type | Method | Description |
---|---|---|
(package private) void |
SourcedPlotElement.assignValues(DataProcessor dproc) |
|
(package private) void |
Stack.assignValues(DataProcessor dproc) |
|
RrdGraphDef |
RrdGraphDefTemplate.getRrdGraphDef() |
Creates RrdGraphDef object which can be used to create RrdGraph
object (actual JRobin graphs).
|
(package private) void |
CommentText.resolveText(DataProcessor dproc,
ValueScaler valueScaler) |
|
(package private) void |
PrintText.resolveText(DataProcessor dproc,
ValueScaler valueScaler) |
|
void |
RrdGraphDef.setColor(int colorTag,
Paint color) |
Overrides the colors for the standard elements of the graph.
|
void |
RrdGraphDef.setColor(String colorName,
Paint color) |
Overrides the colors for the standard elements of the graph by element name.
|
void |
RrdGraphDef.setFont(int fontTag,
Font font) |
Sets font to be used for a specific font tag.
|
void |
RrdGraphDef.setFont(int fontTag,
Font font,
boolean setAll) |
Sets font.
|
void |
RrdGraphDef.setFont(String fontTag,
Font font) |
Sets font.
|
void |
RrdGraphDef.setFont(String fontTag,
Font font,
boolean setAll) |
Sets font.
|
void |
RrdGraphDef.setFont(String fontTag,
Font font,
boolean setAll,
boolean keepSizes) |
Sets font.
|
void |
RrdGraphDef.setLargeFont(Font largeFont) |
Sets title font.
|
void |
RrdGraphDef.setSmallFont(Font smallFont) |
Sets default font for graphing.
|
void |
RrdGraphDef.stack(String srcName,
Paint color,
String legend) |
Does the same as
RrdGraphDef.line(String, java.awt.Paint, String) ,
but the graph gets stacked on top of the
previous LINE, AREA or STACK graph. |
Constructor | Description |
---|---|
RrdGraph(RrdGraphDef gdef) |
Creates graph from the corresponding
RrdGraphDef object. |
RrdGraphDefTemplate(File xmlFile) |
Creates template object from the file containing XML template code
|
RrdGraphDefTemplate(String xmlString) |
Creates template object from the string containing XML template code
|
RrdGraphDefTemplate(InputSource inputSource) |
Creates template object from any parsable XML source
|