public abstract class AbstractPerformanceSampler extends AbstractObjectProperties implements PerformanceSampler
| Modifier and Type | Field and Description |
|---|---|
protected CountDownLatch |
completionLatch |
protected Long |
duration |
protected long |
interval |
protected AtomicBoolean |
isRunning |
protected org.apache.activemq.tool.sampler.PerformanceEventListener |
perfEventListener |
protected PerformanceReportWriter |
perfReportWriter |
protected long |
rampDownPercent |
protected Long |
rampDownTime |
protected long |
rampUpPercent |
protected Long |
rampUpTime |
protected long |
sampleIndex |
| Constructor and Description |
|---|
AbstractPerformanceSampler() |
| Modifier and Type | Method and Description |
|---|---|
void |
finishSampling() |
Long |
getDuration() |
long |
getInterval() |
org.apache.activemq.tool.sampler.PerformanceEventListener |
getPerfEventListener() |
PerformanceReportWriter |
getPerfReportWriter() |
long |
getRampDownPercent() |
Long |
getRampDownTime() |
long |
getRampUpPercent() |
Long |
getRampUpTime() |
protected void |
onRampDownEnd() |
protected void |
onRampUpStart() |
protected void |
onSamplerEnd() |
protected void |
onSamplerStart() |
void |
run() |
protected void |
sample() |
abstract void |
sampleData() |
void |
setDuration(long duration) |
void |
setInterval(long interval) |
void |
setPerfEventListener(org.apache.activemq.tool.sampler.PerformanceEventListener perfEventListener) |
void |
setPerfReportWriter(PerformanceReportWriter perfReportWriter) |
void |
setRampDownPercent(long rampDownPercent) |
void |
setRampDownTime(long rampDownTime) |
void |
setRampUpPercent(long rampUpPercent) |
void |
setRampUpTime(long rampUpTime) |
void |
startSampler(CountDownLatch completionLatch,
ClientRunBasis clientRunBasis,
long clientRunDuration) |
acceptConfig, configureProperties, retrievePropertiesprotected long rampUpPercent
protected long rampDownPercent
protected Long rampUpTime
protected Long rampDownTime
protected long interval
protected PerformanceReportWriter perfReportWriter
protected org.apache.activemq.tool.sampler.PerformanceEventListener perfEventListener
protected final AtomicBoolean isRunning
protected CountDownLatch completionLatch
protected long sampleIndex
public AbstractPerformanceSampler()
public Long getRampUpTime()
getRampUpTime in interface PerformanceSamplerpublic void setRampUpTime(long rampUpTime)
setRampUpTime in interface PerformanceSamplerpublic Long getRampDownTime()
getRampDownTime in interface PerformanceSamplerpublic void setRampDownTime(long rampDownTime)
setRampDownTime in interface PerformanceSamplerpublic Long getDuration()
getDuration in interface PerformanceSamplerpublic void setDuration(long duration)
setDuration in interface PerformanceSamplerpublic long getInterval()
getInterval in interface PerformanceSamplerpublic void setInterval(long interval)
setInterval in interface PerformanceSamplerpublic long getRampUpPercent()
getRampUpPercent in interface PerformanceSamplerpublic void setRampUpPercent(long rampUpPercent)
setRampUpPercent in interface PerformanceSamplerpublic long getRampDownPercent()
getRampDownPercent in interface PerformanceSamplerpublic void setRampDownPercent(long rampDownPercent)
setRampDownPercent in interface PerformanceSamplerpublic PerformanceReportWriter getPerfReportWriter()
getPerfReportWriter in interface PerformanceSamplerpublic void setPerfReportWriter(PerformanceReportWriter perfReportWriter)
setPerfReportWriter in interface PerformanceSamplerpublic org.apache.activemq.tool.sampler.PerformanceEventListener getPerfEventListener()
getPerfEventListener in interface PerformanceSamplerpublic void setPerfEventListener(org.apache.activemq.tool.sampler.PerformanceEventListener perfEventListener)
setPerfEventListener in interface PerformanceSamplerpublic void startSampler(CountDownLatch completionLatch, ClientRunBasis clientRunBasis, long clientRunDuration)
startSampler in interface PerformanceSamplerpublic void finishSampling()
finishSampling in interface PerformanceSamplerprotected void sample()
public abstract void sampleData()
sampleData in interface PerformanceSamplerprotected void onRampUpStart()
protected void onSamplerStart()
protected void onSamplerEnd()
protected void onRampDownEnd()
Copyright © 2005–2015 FuseSource, Corp.. All rights reserved.