org.apache.activemq.tool.sampler.plugins
Class LinuxCpuSamplerPlugin
java.lang.Object
org.apache.activemq.tool.sampler.plugins.LinuxCpuSamplerPlugin
- All Implemented Interfaces:
- Runnable, CpuSamplerPlugin
public class LinuxCpuSamplerPlugin
- extends Object
- implements CpuSamplerPlugin, Runnable
Fields inherited from interface org.apache.activemq.tool.sampler.plugins.CpuSamplerPlugin |
AIX, FREEBSD, LINUX, MAC_OS, MAC_OS_X, OS_2, POWERPC, SOLARIS, WINDOWS_2000, WINDOWS_95, WINDOWS_CE, WINDOWS_NT, WINDOWS_XP |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinuxCpuSamplerPlugin
public LinuxCpuSamplerPlugin(long intervalInMs)
start
public void start()
- Specified by:
start
in interface CpuSamplerPlugin
stop
public void stop()
- Specified by:
stop
in interface CpuSamplerPlugin
run
public void run()
- Specified by:
run
in interface Runnable
getCpuUtilizationStats
public String getCpuUtilizationStats()
- Specified by:
getCpuUtilizationStats
in interface CpuSamplerPlugin
getVmstat
public String getVmstat()
setVmstat
public void setVmstat(String vmstat)
convertToCSV
protected String convertToCSV(String header,
String data)
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.