Kieker 1.5

kieker.common.record.system
Class CPUUtilizationRecord

java.lang.Object
  extended by kieker.common.record.AbstractMonitoringRecord
      extended by kieker.common.record.system.CPUUtilizationRecord
All Implemented Interfaces:
Serializable, Comparable<IMonitoringRecord>, IMonitoringRecord, IMonitoringRecord.Factory

public final class CPUUtilizationRecord
extends AbstractMonitoringRecord
implements IMonitoringRecord.Factory

Author:
Andre van Hoorn
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface kieker.common.record.IMonitoringRecord
IMonitoringRecord.Factory
 
Constructor Summary
CPUUtilizationRecord()
           
CPUUtilizationRecord(long timestamp, String hostname, String cpuID, double user, double system, double wait, double nice, double irq, double totalUtilization, double idle)
          Constructs a new CPUUtilizationRecord with the given values.
CPUUtilizationRecord(Object[] values)
           
 
Method Summary
 String getCpuID()
           
 String getHostname()
           
 double getIdle()
           
 double getIrq()
           
 double getNice()
           
 double getSystem()
           
 long getTimestamp()
           
 double getTotalUtilization()
           
 double getUser()
           
 Class<?>[] getValueTypes()
           
 double getWait()
           
 void initFromArray(Object[] values)
          Deprecated. 
 void setCpuID(String cpuID)
           
 void setHostname(String hostname)
           
 void setIdle(double idle)
           
 void setIrq(double irq)
           
 void setNice(double nice)
           
 void setSystem(double system)
           
 void setTimestamp(long timestamp)
           
 void setTotalUtilization(double totalUtilization)
           
 void setUser(double user)
           
 void setWait(double wait)
           
 Object[] toArray()
           
 
Methods inherited from class kieker.common.record.AbstractMonitoringRecord
checkArray, classForName, compareTo, createFromArray, createFromStringArray, equals, fromStringArrayToTypedArray, getLoggingTimestamp, hashCode, setLoggingTimestamp, toString, typesForClass
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CPUUtilizationRecord

public CPUUtilizationRecord()

CPUUtilizationRecord

public CPUUtilizationRecord(long timestamp,
                            String hostname,
                            String cpuID,
                            double user,
                            double system,
                            double wait,
                            double nice,
                            double irq,
                            double totalUtilization,
                            double idle)
Constructs a new CPUUtilizationRecord with the given values. If certain values shall remain undefined, use the constant UNDEFINED_DOUBLE.

Parameters:
timestamp -
hostname -
cpuID -
user -
system -
wait -
nice -
irq -
totalUtilization -
idle -

CPUUtilizationRecord

public CPUUtilizationRecord(Object[] values)
Method Detail

toArray

public Object[] toArray()
Specified by:
toArray in interface IMonitoringRecord

initFromArray

@Deprecated
public void initFromArray(Object[] values)
Deprecated. 

Specified by:
initFromArray in interface IMonitoringRecord

getValueTypes

public Class<?>[] getValueTypes()
Specified by:
getValueTypes in interface IMonitoringRecord

getTimestamp

public final long getTimestamp()
Returns:
the timestamp

setTimestamp

public final void setTimestamp(long timestamp)
Parameters:
timestamp - the timestamp to set

getHostname

public final String getHostname()
Returns:
the hostname

setHostname

public final void setHostname(String hostname)
Parameters:
hostname - the hostname to set

getCpuID

public final String getCpuID()
Returns:
the cpuID

setCpuID

public final void setCpuID(String cpuID)
Parameters:
cpuID - the cpuID to set

getUser

public final double getUser()
Returns:
the user

setUser

public final void setUser(double user)
Parameters:
user - the user to set

getSystem

public final double getSystem()
Returns:
the system

setSystem

public final void setSystem(double system)
Parameters:
system - the system to set

getWait

public final double getWait()
Returns:
the wait

setWait

public final void setWait(double wait)
Parameters:
wait - the wait to set

getNice

public final double getNice()
Returns:
the nice

setNice

public final void setNice(double nice)
Parameters:
nice - the nice to set

getIrq

public final double getIrq()
Returns:
the irq

setIrq

public final void setIrq(double irq)
Parameters:
irq - the irq to set

getTotalUtilization

public final double getTotalUtilization()
Returns:
the totalUtilization

setTotalUtilization

public final void setTotalUtilization(double totalUtilization)
Parameters:
totalUtilization - the totalUtilization to set

getIdle

public final double getIdle()
Returns:
the idle

setIdle

public final void setIdle(double idle)
Parameters:
idle - the idle to set

Kieker 1.5

Copyright 2012 the Kieker Project, http://kieker-monitoring.net