org.apache.activemq.tool.sampler.plugins
Class LinuxCpuSamplerPlugin

java.lang.Object
  extended by 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
LinuxCpuSamplerPlugin(long intervalInMs)
           
 
Method Summary
protected  String convertToCSV(String header, String data)
           
 String getCpuUtilizationStats()
           
 String getVmstat()
           
 void run()
           
 void setVmstat(String vmstat)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinuxCpuSamplerPlugin

public LinuxCpuSamplerPlugin(long intervalInMs)
Method Detail

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-2013 The Apache Software Foundation. All Rights Reserved.