kieker.common.record
Class CPUUtilizationRecord
java.lang.Object
kieker.common.record.AbstractMonitoringRecord
kieker.common.record.CPUUtilizationRecord
- All Implemented Interfaces:
- Serializable, IMonitoringRecord
public class CPUUtilizationRecord
- extends AbstractMonitoringRecord
- Author:
- Andre van Hoorn
- See Also:
- Serialized Form
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. |
UNDEFINED_DOUBLE
public static final double UNDEFINED_DOUBLE
- See Also:
- Constant Field Values
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
-
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
Copyright 2011 the Kieker Project, http://kieker.sourceforge.net>