|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rrdService.util.DataSource
The class DataSource allows to modelize a data source.
- RoundRobin
LockRoundRobinDataBase LockRoundRobinLibrary
, Serialized FormField Summary | |
static java.lang.String |
ABSOLUTE
ABSOLUTE is for counters which get reset upon reading. |
static java.lang.String |
COUNTER
COUNTER is for continuous incrementing counters like the InOctets counter in a router. |
private java.lang.String |
dataSourceType
Data Source Type. |
static java.lang.String |
DERIVE
DERIVE will store the derivative of the line going from the last to the current value of the data source. |
private java.lang.String |
dsName
ds-Name is the name you will use to reference this particular data source from an RRD. |
static java.lang.String |
GAUGE
GAUCE is for things like temperatures or number of people in a room or value of a RedHat share |
private int |
heartbeat
heartbeat defines the maximum number of seconds that may pass between two updates of this data source before the value of the data source is assumed to be *UNKNOWN*. |
private java.lang.String |
lastDataSource
Last data source |
private double |
max
max defining the expected max range of the data supplied by this data source. |
private double |
min
min defining the expected min range of the data supplied by this data source. |
private int |
unknownSec
Unknown second of this dataSource |
private double |
value
value of this dataSource |
Constructor Summary | |
DataSource()
Default constructor of a DataSource |
|
DataSource(java.lang.String dsName,
java.lang.String dataSourceType,
int heartbeat)
Constructor of a DataSource |
|
DataSource(java.lang.String dsName,
java.lang.String dataSourceType,
int heartbeat,
double min,
double max)
Constructor of a DataSource |
|
DataSource(java.lang.String dsName,
java.lang.String dataSourceType,
int heartbeat,
double min,
double max,
java.lang.String lastDataSource,
double value,
int unknownSec)
Constructor of a DataSource |
Method Summary | |
java.lang.String |
getDataSourceType()
Returns the data source type of this data source. |
java.lang.String |
getDsName()
Returns the data source name of this data source. |
int |
getHeartbeat()
Returns the heartbeat of this data source. |
java.lang.String |
getLastDataSource()
Return the lastDataSource in this data source |
double |
getMax()
Returns the max range of this data source. |
double |
getMin()
Returns the min range of this data source. |
int |
getUnknownSec()
Return the unknownSec in this data source |
double |
getValue()
Return the value in this data source |
static boolean |
isValideDataSourceType(java.lang.String dataSourceType)
isValideDataSourceType return true if the type of data source is valide |
void |
setDataSourceType(java.lang.String dataSourceType)
Replaces the data source type in this data source |
void |
setDsName(java.lang.String dsName)
Replaces the name in this data source |
void |
setHeartbeat(int heartbeat)
Replaces the heartbeat in this data source |
void |
setLastDataSource(java.lang.String lastDataSource)
Replaces the lastDataSource in this data source |
void |
setMax(double max)
Replaces the max range in this data source |
void |
setMin(double min)
Replaces the min range in this data source |
void |
setUnknownSec(int unknownSec)
Replaces the unknownSec in this data source |
void |
setValue(double value)
Replaces the value in this data source |
java.lang.String |
toString()
toString return a string representation of this data source for the command line |
java.lang.String |
toStringAll()
toStringAll return a string representation of this data source. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final java.lang.String ABSOLUTE
public static final java.lang.String COUNTER
private java.lang.String dataSourceType
public static final java.lang.String DERIVE
private java.lang.String dsName
public static final java.lang.String GAUGE
private int heartbeat
private java.lang.String lastDataSource
private double max
private double min
private int unknownSec
private double value
Constructor Detail |
public DataSource() throws java.lang.Exception
public DataSource(java.lang.String dsName, java.lang.String dataSourceType, int heartbeat) throws java.lang.Exception
dsName
- the name of the data sourcedataSourceType
- the type of the data sourceheartBeat
- the heartbeat of the data sourcepublic DataSource(java.lang.String dsName, java.lang.String dataSourceType, int heartbeat, double min, double max) throws java.lang.Exception
dsName
- the name of the data sourcedataSourceType
- the type of the data sourceheartBeat
- the heartbeat of the data sourcemin
- the min rang of the data sourcemax
- the max rang of the data sourcepublic DataSource(java.lang.String dsName, java.lang.String dataSourceType, int heartbeat, double min, double max, java.lang.String lastDataSource, double value, int unknownSec) throws java.lang.Exception
dsName
- the name of the data sourcedataSourceType
- the type of the data sourceheartBeat
- the heartbeat of the data sourcemin
- the min rang of the data sourcemax
- the max rang of the data sourcelastDataSource
- the last data source of this data sourcevalue
- the value of this data sourceunknownSec
- the unknown second of this data sourceMethod Detail |
public java.lang.String getDataSourceType()
public java.lang.String getDsName()
public int getHeartbeat()
public java.lang.String getLastDataSource()
public double getMax()
public double getMin()
public int getUnknownSec()
public double getValue()
public static boolean isValideDataSourceType(java.lang.String dataSourceType)
public void setDataSourceType(java.lang.String dataSourceType) throws java.lang.Exception
dataSourceType
- the data source type in this data source to setpublic void setDsName(java.lang.String dsName)
dsName
- the name in this data source to setpublic void setHeartbeat(int heartbeat)
heartbeat
- the heartbeat in this data source to setpublic void setLastDataSource(java.lang.String lastDataSource)
lastDataSource
- the last data source in this data source to setpublic void setMax(double max)
max
- the max range in this data source to setpublic void setMin(double min)
min
- the min range in this data source to setpublic void setUnknownSec(int unknownSec)
unknownSec
- the unknownSec in this data source to setpublic void setValue(double value)
value
- the value in this data source to setpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringAll()
|
Copyright 1885-2001 FIRMENICH SA, Geneva | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |