rrdService.util
Class Data

java.lang.Object
  |
  +--rrdService.util.Data
All Implemented Interfaces:
java.io.Serializable

public class Data
extends java.lang.Object
implements java.io.Serializable

The class Data representing the data used for updating the RRD was acquired at a certain time. This time can either be defined in seconds since 1970-01-01. Or by using the letter 'N' the update time is set to be the current time. Negative time values are subtracted from the current time. Getting the timing right to the second is especially important when you are working with data-sources of type COUNTER, DERIVE or ABSOLUTE. The remaining elements of the argument are DS updates. The order of this list is the same as the order the data sources were defined in the rra. If there is no data for a certain data-source, the letter U can be defined.

Version:
1.0 date : 15/07/2001
key-word
RoundRobin
Author:
Damien Pellier
See Also:
Data, RoundRobinDataBase, Serialized Form

Field Summary
private  java.lang.String timestamp
          timestamp of this data
private  java.lang.String value
          value of this data
 
Constructor Summary
Data()
          Default constructor of class Data with timestam rigth now and value unknown
Data(double value)
          Constructor of class Data with timestamp rigth now and a specific value
Data(Time timestamp)
          Constructor of class Data with a specific timestamp and a unknown value
Data(Time timestamp, double value)
          Constructor of class Data with specific timestam and value
 
Method Summary
 java.lang.String getTimestamp()
          getTimestamp return the timstamp of this Data
 java.lang.String getValue()
          getValue return the value of this Data
 void setTimestamp(java.lang.String timestamp)
          setTimestamp replace timstamp of this Data
 void setValue(java.lang.String value)
          setValue replace value of this Data
 java.lang.String toString()
          toString return a string representation of this data
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

timestamp

private java.lang.String timestamp
timestamp of this data

value

private java.lang.String value
value of this data
Constructor Detail

Data

public Data()
     throws java.lang.Exception
Default constructor of class Data with timestam rigth now and value unknown

Data

public Data(double value)
     throws java.lang.Exception
Constructor of class Data with timestamp rigth now and a specific value
Parameters:
value - the value of this Data

Data

public Data(Time timestamp)
     throws java.lang.Exception
Constructor of class Data with a specific timestamp and a unknown value
Parameters:
timestamp - the timstamp of this Data

Data

public Data(Time timestamp,
            double value)
     throws java.lang.Exception
Constructor of class Data with specific timestam and value
Parameters:
timestamp - the timstamp of this Data
value - the value of this Data
Method Detail

getTimestamp

public java.lang.String getTimestamp()
getTimestamp return the timstamp of this Data

getValue

public java.lang.String getValue()
getValue return the value of this Data

setTimestamp

public void setTimestamp(java.lang.String timestamp)
setTimestamp replace timstamp of this Data
Parameters:
timestamp - the timstamp to set

setValue

public void setValue(java.lang.String value)
setValue replace value of this Data
Parameters:
value - the value to set

toString

public java.lang.String toString()
toString return a string representation of this data
Overrides:
toString in class java.lang.Object

Copyright 1885-2001 FIRMENICH SA, Geneva

Submit a bug or feature
Copyright 1885-2001 FIRMENICH SA, Geneva,
All Rights Reserved.