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
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description LinuxCpuSamplerPlugin(long intervalInMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
convertToCSV(String header, String data)
String
getCpuUtilizationStats()
String
getVmstat()
void
run()
void
setVmstat(String vmstat)
void
start()
void
stop()
-
-
-
Method Detail
-
start
public void start()
- Specified by:
start
in interfaceCpuSamplerPlugin
-
stop
public void stop()
- Specified by:
stop
in interfaceCpuSamplerPlugin
-
getCpuUtilizationStats
public String getCpuUtilizationStats()
- Specified by:
getCpuUtilizationStats
in interfaceCpuSamplerPlugin
-
getVmstat
public String getVmstat()
-
setVmstat
public void setVmstat(String vmstat)
-
-