com.bigdata.counters.linux
Class SarCpuUtilizationCollector
java.lang.Object
com.bigdata.counters.AbstractProcessCollector
com.bigdata.counters.linux.SarCpuUtilizationCollector
- All Implemented Interfaces:
- ICounterHierarchy, IHostCounters, IRequiredHostCounters, IStatisticsCollector
public class SarCpuUtilizationCollector
- extends AbstractProcessCollector
- implements ICounterHierarchy, IRequiredHostCounters, IHostCounters
Collects statistics on the CPU utilization for the entire host using
sar -u.
- Version:
- $Id: SarCpuUtilizationCollector.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
| Fields inherited from interface com.bigdata.counters.IHostCounters |
CPU_PercentIOWait, CPU_PercentSystemTime, CPU_PercentUserTime, Info_NumProcessors, Info_ProcessorInfo, Memory_Bytes_Available, Memory_Bytes_Free, Memory_MinorFaultsPerSec, Memory_SwapBytesAvailable, Memory_SwapBytesUsed, PhysicalDisk_ReadsPerSec, PhysicalDisk_WritesPerSec |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SarCpuUtilizationCollector
public SarCpuUtilizationCollector(int interval,
KernelVersion kernelVersion)
- Parameters:
interval - The reporting interval in seconds.kernelVersion -
getCommand
public List<String> getCommand()
- Specified by:
getCommand in class AbstractProcessCollector
getCounters
public CounterSet getCounters()
- Declares the counters that we will collect using
sar.
- Specified by:
getCounters in interface IStatisticsCollector
setEnvironment
protected void setEnvironment(Map<String,String> env)
- Extended to force
sar to use a consistent timestamp
format regardless of locale by setting
S_TIME_FORMAT="ISO" in the environment.
- Overrides:
setEnvironment in class AbstractProcessCollector
getProcessReader
public AbstractProcessReader getProcessReader()
- Specified by:
getProcessReader in class AbstractProcessCollector
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.