|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.threads.JMeterContext
public class JMeterContext
Holds context for a thread. Generated by JMeterContextService. The class is not thread-safe - it is only intended for use within a single thread.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |