예제 #1
0
 /**
  * Copy constructor. Copies all values (except the aggregation values) of the given {@link
  * JmxSensorValueData} object into the newly created.
  *
  * @param origin object to clone
  */
 public JmxSensorValueData(JmxSensorValueData origin) {
   setId(origin.getId());
   setPlatformIdent(origin.getPlatformIdent());
   setTimeStamp(new Timestamp(origin.getTimeStamp().getTime()));
   setSensorTypeIdent(origin.getSensorTypeIdent());
   setJmxSensorDefinitionDataIdentId(origin.jmxSensorDefinitionDataIdentId);
   setValue(origin.value);
 }
예제 #2
0
 /**
  * Constructor.
  *
  * @param jmxDefinitionDataIdentId the id of the related {@link JmxDefinitionDataIdent} of this
  *     {@link JmxSensorValueData}
  * @param value the value
  * @param timestamp the timestamp when this value was captured
  * @param platformIdent the id of the related {@link PlatformIdent}
  * @param sensorTypeIdent the id of the related {@link SensorTypeIdent}
  */
 public JmxSensorValueData(
     long jmxDefinitionDataIdentId,
     String value,
     Timestamp timestamp,
     long platformIdent,
     long sensorTypeIdent) {
   setJmxSensorDefinitionDataIdentId(jmxDefinitionDataIdentId);
   setValue(value);
   super.setTimeStamp(timestamp);
   super.setPlatformIdent(platformIdent);
   super.setSensorTypeIdent(sensorTypeIdent);
   super.setId(jmxDefinitionDataIdentId);
 }