Kieker 1.3

kieker.common.record
Class CPUUtilizationRecord

java.lang.Object
  extended by kieker.common.record.AbstractMonitoringRecord
      extended by kieker.common.record.CPUUtilizationRecord
All Implemented Interfaces:
Serializable, IMonitoringRecord

public class CPUUtilizationRecord
extends AbstractMonitoringRecord

Author:
Andre van Hoorn
See Also:
Serialized Form

Field Summary
static double UNDEFINED_DOUBLE
           
 
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.
 
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)
           
 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
getLoggingTimestamp, setLoggingTimestamp, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEFINED_DOUBLE

public static final double UNDEFINED_DOUBLE
See Also:
Constant Field Values
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 -
Method Detail

initFromArray

public void initFromArray(Object[] values)
                   throws IllegalArgumentException
Throws:
IllegalArgumentException

toArray

public Object[] toArray()

getValueTypes

public Class<?>[] getValueTypes()

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.3

Copyright 2011 the Kieker Project, http://kieker.sourceforge.net