|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.isam.exehda.services.Collector.MonitoringData
Helper class to store and manipulate monitoring data in an efficient way.
Constructor Summary | |
Collector.MonitoringData(CellInformationBase.ResourceName sname)
Creates a new MonitoringData instance. |
Method Summary | |
void |
copy(Collector.MonitoringData d)
|
java.lang.Class |
getDataType()
Returns the type of the data stored in this MonitoringData object. |
double |
getDouble()
Returns this data as a double value. |
int |
getInt()
Returns this data as an int value. |
long |
getLong()
Returns this data as a long value. |
CellInformationBase.ResourceName |
getSensor()
Returns the name of the sensor to which this data is linked (formelly, the sensor who produced this data). |
java.lang.String |
getString()
Returns this data as a String. |
long |
getTimeStamp()
Returns a time stamp describing the last time this data was modified. |
void |
setDouble(double v)
Sets this data value as a double value |
void |
setInt(int v)
Sets this data value as an int value. |
void |
setLong(long v)
Sets this data value as a long value. |
void |
setString(java.lang.String s)
Sets this data vaue as a String. |
void |
setTimeStamp(long ts)
Set this data last modification time-stamp. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Collector.MonitoringData(CellInformationBase.ResourceName sname)
MonitoringData
instance.
Method Detail |
public CellInformationBase.ResourceName getSensor()
ResourceName
valuepublic long getTimeStamp()
java.lang.System.currentTimeMillis()
public int getInt()
public long getLong()
public double getDouble()
public java.lang.String getString()
public java.lang.Class getDataType()
Class
value; Void.TYPE if this object was not yet
initialized.public void setTimeStamp(long ts)
ts
- millis since 1970public void setInt(int v)
v
- new valuepublic void setLong(long v)
v
- new valuepublic void setDouble(double v)
v
- new valuepublic void setString(java.lang.String s)
s
- new value.public java.lang.String toString()
toString
in class java.lang.Object
public void copy(Collector.MonitoringData d)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |