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, retrieveProperties
protected 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 PerformanceSampler
public void setRampUpTime(long rampUpTime)
setRampUpTime
in interface PerformanceSampler
public Long getRampDownTime()
getRampDownTime
in interface PerformanceSampler
public void setRampDownTime(long rampDownTime)
setRampDownTime
in interface PerformanceSampler
public Long getDuration()
getDuration
in interface PerformanceSampler
public void setDuration(long duration)
setDuration
in interface PerformanceSampler
public long getInterval()
getInterval
in interface PerformanceSampler
public void setInterval(long interval)
setInterval
in interface PerformanceSampler
public long getRampUpPercent()
getRampUpPercent
in interface PerformanceSampler
public void setRampUpPercent(long rampUpPercent)
setRampUpPercent
in interface PerformanceSampler
public long getRampDownPercent()
getRampDownPercent
in interface PerformanceSampler
public void setRampDownPercent(long rampDownPercent)
setRampDownPercent
in interface PerformanceSampler
public PerformanceReportWriter getPerfReportWriter()
getPerfReportWriter
in interface PerformanceSampler
public void setPerfReportWriter(PerformanceReportWriter perfReportWriter)
setPerfReportWriter
in interface PerformanceSampler
public org.apache.activemq.tool.sampler.PerformanceEventListener getPerfEventListener()
getPerfEventListener
in interface PerformanceSampler
public void setPerfEventListener(org.apache.activemq.tool.sampler.PerformanceEventListener perfEventListener)
setPerfEventListener
in interface PerformanceSampler
public void startSampler(CountDownLatch completionLatch, ClientRunBasis clientRunBasis, long clientRunDuration)
startSampler
in interface PerformanceSampler
public void finishSampling()
finishSampling
in interface PerformanceSampler
protected void sample()
public abstract void sampleData()
sampleData
in interface PerformanceSampler
protected void onRampUpStart()
protected void onSamplerStart()
protected void onSamplerEnd()
protected void onRampDownEnd()
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.