org.apache.jmeter.threads
public class JMeterContext extends Object
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Sampler |
getCurrentSampler() |
StandardJMeterEngine |
getEngine() |
SampleResult |
getPreviousResult() |
Sampler |
getPreviousSampler()
Returns the previousSampler.
|
byte[] |
getReadBuffer()
A temporary buffer that can be shared between samplers in a thread.
|
JMeterThread |
getThread() |
AbstractThreadGroup |
getThreadGroup() |
int |
getThreadNum()
Returns the threadNum.
|
JMeterVariables |
getVariables()
Gives access to the JMeter variables for the current thread.
|
boolean |
isReinitializingSubControllers() |
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 |
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 byte[] getReadBuffer()
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()
Copyright © 1998-2014 Apache Software Foundation. All Rights Reserved.