public class JMeterContext extends Object
Modifier and Type | Method and Description |
---|---|
void |
cleanAfterSample()
Clean cached data after sample
|
void |
clear() |
Sampler |
getCurrentSampler() |
StandardJMeterEngine |
getEngine() |
SampleResult |
getPreviousResult() |
Sampler |
getPreviousSampler()
Returns the previousSampler.
|
Map<String,Object> |
getSamplerContext()
Sampler context is cleaned up as soon as Post-Processor have ended
|
JMeterThread |
getThread() |
AbstractThreadGroup |
getThreadGroup() |
int |
getThreadNum()
Returns the threadNum.
|
JMeterVariables |
getVariables()
Gives access to the JMeter variables for the current thread.
|
boolean |
isReinitializingSubControllers() |
boolean |
isRestartNextLoop()
a restart of the loop was required ?
|
boolean |
isSamplingStarted() |
void |
setCurrentSampler(Sampler sampler) |
void |
setEngine(StandardJMeterEngine engine) |
boolean |
setIsReinitializingSubControllers()
Set flag indicating listeners should not be notified since reinit of sub
controllers is being done.
|
void |
setPreviousResult(SampleResult result) |
void |
setRestartNextLoop(boolean restartNextLoop)
if set to true a restart of the loop will occurs
|
void |
setSamplingStarted(boolean b) |
void |
setThread(JMeterThread thread) |
void |
setThreadGroup(AbstractThreadGroup threadgrp) |
void |
setThreadNum(int threadNum)
Sets the threadNum.
|
void |
setVariables(JMeterVariables vars) |
void |
unsetIsReinitializingSubControllers()
Reset flag indicating listeners should not be notified since reinit of sub
controllers is being done.
|
public void clear()
public JMeterVariables getVariables()
public void setVariables(JMeterVariables vars)
public SampleResult getPreviousResult()
public void setPreviousResult(SampleResult result)
public Sampler getCurrentSampler()
public void setCurrentSampler(Sampler sampler)
public Sampler getPreviousSampler()
public int getThreadNum()
public void setThreadNum(int threadNum)
threadNum
- the threadNum to setpublic JMeterThread getThread()
public void setThread(JMeterThread thread)
public AbstractThreadGroup getThreadGroup()
public void setThreadGroup(AbstractThreadGroup threadgrp)
public StandardJMeterEngine getEngine()
public void setEngine(StandardJMeterEngine engine)
public boolean isSamplingStarted()
public void setSamplingStarted(boolean b)
public void unsetIsReinitializingSubControllers()
public boolean setIsReinitializingSubControllers()
public boolean isReinitializingSubControllers()
public void setRestartNextLoop(boolean restartNextLoop)
restartNextLoop
- public boolean isRestartNextLoop()
public void cleanAfterSample()
Copyright © 1998-2014 Apache Software Foundation. All Rights Reserved.