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 |
isRestartNextLoop()
a restart of the loop was required ?
|
boolean |
isSamplingStarted() |
void |
setCurrentSampler(Sampler sampler) |
void |
setEngine(StandardJMeterEngine engine) |
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) |
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 setRestartNextLoop(boolean restartNextLoop)
true
a restart of the loop will occursrestartNextLoop
- flag whether restart will occurpublic boolean isRestartNextLoop()
public void cleanAfterSample()
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.