Holds context for a thread.
Generated by JMeterContextService.
getCurrentSampler
public Sampler getCurrentSampler()
getPreviousSampler
public Sampler getPreviousSampler()
Returns the previousSampler.
getReadBuffer
public byte[] getReadBuffer()
A temporary buffer that can be shared between samplers in a thread.
getThreadNum
public int getThreadNum()
Returns the threadNum.
getVariables
public JMeterVariables getVariables()
Gives access to the JMeter variables for the current thread.
- a pointer to the JMeter variables.
isSamplingStarted
public boolean isSamplingStarted()
setCurrentSampler
public void setCurrentSampler(Sampler sampler)
setPreviousResult
public void setPreviousResult(SampleResult result)
setSamplingStarted
public void setSamplingStarted(boolean b)
setThreadGroup
public void setThreadGroup(ThreadGroup threadgrp)
setThreadNum
public void setThreadNum(int threadNum)
Sets the threadNum.
threadNum
- the threadNum to set