Kieker 1.4

kieker.common.record
Class MemSwapUsageRecord

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

public class MemSwapUsageRecord
extends AbstractMonitoringRecord

Author:
Andre van Hoorn
See Also:
Serialized Form

Field Summary
static double UNDEFINED_DOUBLE
           
static long UNDEFINED_LONG
           
 
Constructor Summary
MemSwapUsageRecord()
           
MemSwapUsageRecord(long timestamp, String hostName, long memTotal, long memUsed, long memFree, long swapTotal, long swapUsed, long swapFree)
          Constructs a new MemSwapUsageRecord with the given values.
 
Method Summary
 String getHostName()
           
 long getMemFree()
           
 long getMemTotal()
           
 long getMemUsed()
           
 long getSwapFree()
           
 long getSwapTotal()
           
 long getSwapUsed()
           
 long getTimestamp()
           
 Class<?>[] getValueTypes()
           
 void initFromArray(Object[] values)
           
 void setHostName(String hostName)
           
 void setMemFree(long memFree)
           
 void setMemTotal(long memTotal)
           
 void setMemUsed(long memUsed)
           
 void setSwapFree(long swapFree)
           
 void setSwapTotal(long swapTotal)
           
 void setSwapUsed(long swapUsed)
           
 void setTimestamp(long timestamp)
           
 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

UNDEFINED_LONG

public static final long UNDEFINED_LONG
See Also:
Constant Field Values
Constructor Detail

MemSwapUsageRecord

public MemSwapUsageRecord()

MemSwapUsageRecord

public MemSwapUsageRecord(long timestamp,
                          String hostName,
                          long memTotal,
                          long memUsed,
                          long memFree,
                          long swapTotal,
                          long swapUsed,
                          long swapFree)
Constructs a new MemSwapUsageRecord with the given values. If certain values shall remain undefined, use the constants UNDEFINED_DOUBLE and UNDEFINED_LONG.

Method Detail

getMemTotal

public final long getMemTotal()
Returns:
the memTotal

setMemTotal

public final void setMemTotal(long memTotal)
Parameters:
memTotal - the memTotal to set

getMemUsed

public final long getMemUsed()
Returns:
the memUsed

setMemUsed

public final void setMemUsed(long memUsed)
Parameters:
memUsed - the memUsed to set

getMemFree

public final long getMemFree()
Returns:
the memFree

setMemFree

public final void setMemFree(long memFree)
Parameters:
memFree - the memFree to set

getSwapTotal

public final long getSwapTotal()
Returns:
the swapTotal

setSwapTotal

public final void setSwapTotal(long swapTotal)
Parameters:
swapTotal - the swapTotal to set

getSwapUsed

public final long getSwapUsed()
Returns:
the swapUsed

setSwapUsed

public final void setSwapUsed(long swapUsed)
Parameters:
swapUsed - the swapUsed to set

getSwapFree

public final long getSwapFree()
Returns:
the swapFree

setSwapFree

public final void setSwapFree(long swapFree)
Parameters:
swapFree - the swapFree to set

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

Kieker 1.4

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