Package org.apache.activemq.tool.sampler
Class CpuSamplerTask
- java.lang.Object
-
- org.apache.activemq.tool.properties.AbstractObjectProperties
-
- org.apache.activemq.tool.sampler.AbstractPerformanceSampler
-
- org.apache.activemq.tool.sampler.CpuSamplerTask
-
- All Implemented Interfaces:
Runnable
,ReflectionConfigurable
,PerformanceSampler
public class CpuSamplerTask extends AbstractPerformanceSampler
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.tool.sampler.AbstractPerformanceSampler
completionLatch, duration, interval, isRunning, perfEventListener, perfReportWriter, rampDownPercent, rampDownTime, rampUpPercent, rampUpTime, sampleIndex
-
-
Constructor Summary
Constructors Constructor Description CpuSamplerTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createPlugin()
void
createPlugin(String osName)
protected void
onRampDownEnd()
protected void
onRampUpStart()
void
sampleData()
-
Methods inherited from class org.apache.activemq.tool.sampler.AbstractPerformanceSampler
finishSampling, getDuration, getInterval, getPerfEventListener, getPerfReportWriter, getRampDownPercent, getRampDownTime, getRampUpPercent, getRampUpTime, onSamplerEnd, onSamplerStart, run, sample, setDuration, setInterval, setPerfEventListener, setPerfReportWriter, setRampDownPercent, setRampDownTime, setRampUpPercent, setRampUpTime, startSampler
-
Methods inherited from class org.apache.activemq.tool.properties.AbstractObjectProperties
acceptConfig, configureProperties, retrieveProperties
-
-
-
-
Method Detail
-
createPlugin
public void createPlugin() throws IOException
- Throws:
IOException
-
createPlugin
public void createPlugin(String osName) throws IOException
- Throws:
IOException
-
sampleData
public void sampleData()
- Specified by:
sampleData
in interfacePerformanceSampler
- Specified by:
sampleData
in classAbstractPerformanceSampler
-
onRampUpStart
protected void onRampUpStart()
- Overrides:
onRampUpStart
in classAbstractPerformanceSampler
-
onRampDownEnd
protected void onRampDownEnd()
- Overrides:
onRampDownEnd
in classAbstractPerformanceSampler
-
-