Beispiel #1
0
 /**
  * This constructor converts the given array into a record. It is recommended to use the array
  * which is the result of a call to {@link #toArray()}.
  *
  * @param values The values for the record.
  */
 public CPUUtilizationRecord(final Object[] values) { // NOPMD (direct store of values)
   AbstractMonitoringRecord.checkArray(values, TYPES);
   this.timestamp = (Long) values[0];
   this.hostname = (String) values[1];
   this.cpuID = (String) values[2];
   this.user = (Double) values[3];
   this.system = (Double) values[4];
   this.wait = (Double) values[5];
   this.nice = (Double) values[6];
   this.irq = (Double) values[7];
   this.totalUtilization = (Double) values[8];
   this.idle = (Double) values[9];
 }
Beispiel #2
0
 /**
  * This constructor uses the given array to initialize the fields of this record.
  *
  * @param values The values for the record.
  * @param valueTypes The types of the elements in the first array.
  */
 protected CPUUtilizationRecord(
     final Object[] values, final Class<?>[] valueTypes) { // NOPMD (values stored directly)
   AbstractMonitoringRecord.checkArray(values, valueTypes);
   this.timestamp = (Long) values[0];
   this.hostname = (String) values[1];
   this.cpuID = (String) values[2];
   this.user = (Double) values[3];
   this.system = (Double) values[4];
   this.wait = (Double) values[5];
   this.nice = (Double) values[6];
   this.irq = (Double) values[7];
   this.totalUtilization = (Double) values[8];
   this.idle = (Double) values[9];
 }
 /**
  * This constructor uses the given array to initialize the fields of this record.
  *
  * @param values The values for the record.
  * @param valueTypes The types of the elements in the first array.
  */
 protected AbstractEvent(
     final Object[] values, final Class<?>[] valueTypes) { // NOPMD (values stored directly)
   AbstractMonitoringRecord.checkArray(values, valueTypes);
   this.timestamp = (Long) values[0];
 }