Package org.jrobin.core.jrrd
Class DataSource
- java.lang.Object
-
- org.jrobin.core.jrrd.DataSource
-
public class DataSource extends Object
Instances of this class model a data source in an RRD file.- Version:
- $Revision$
- Author:
- Ciaran Treanor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) double
maximum
(package private) double
minimum
(package private) int
minimumHeartbeat
(package private) String
name
(package private) long
offset
(package private) PDPStatusBlock
pdpStatusBlock
(package private) long
size
(package private) DataSourceType
type
-
Constructor Summary
Constructors Constructor Description DataSource(RRDFile file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getMaximum()
Returns the maximum value input to this data source can have.double
getMinimum()
Returns the minimum value input to this data source can have.int
getMinimumHeartbeat()
Returns the minimum required heartbeat for this data source.String
getName()
Returns the name of this data source.PDPStatusBlock
getPDPStatusBlock()
Returns the primary data point status block for this data source.DataSourceType
getType()
Returns the type this data source is.(package private) void
loadPDPStatusBlock(RRDFile file)
(package private) void
printInfo(PrintStream s, NumberFormat numberFormat)
String
toString()
Returns a summary the contents of this data source.(package private) void
toXml(PrintStream s)
-
-
-
Field Detail
-
offset
long offset
-
size
long size
-
name
String name
-
type
DataSourceType type
-
minimumHeartbeat
int minimumHeartbeat
-
minimum
double minimum
-
maximum
double maximum
-
pdpStatusBlock
PDPStatusBlock pdpStatusBlock
-
-
Constructor Detail
-
DataSource
DataSource(RRDFile file) throws IOException, RrdException
- Throws:
IOException
RrdException
-
-
Method Detail
-
loadPDPStatusBlock
void loadPDPStatusBlock(RRDFile file) throws IOException, RrdException
- Throws:
IOException
RrdException
-
getPDPStatusBlock
public PDPStatusBlock getPDPStatusBlock()
Returns the primary data point status block for this data source.- Returns:
- the primary data point status block for this data source.
-
getMinimumHeartbeat
public int getMinimumHeartbeat()
Returns the minimum required heartbeat for this data source.- Returns:
- the minimum required heartbeat for this data source.
-
getMinimum
public double getMinimum()
Returns the minimum value input to this data source can have.- Returns:
- the minimum value input to this data source can have.
-
getType
public DataSourceType getType()
Returns the type this data source is.- Returns:
- the type this data source is.
- See Also:
DataSourceType
-
getMaximum
public double getMaximum()
Returns the maximum value input to this data source can have.- Returns:
- the maximum value input to this data source can have.
-
getName
public String getName()
Returns the name of this data source.- Returns:
- the name of this data source.
-
printInfo
void printInfo(PrintStream s, NumberFormat numberFormat)
-
toXml
void toXml(PrintStream s)
-
-