public class JMeterContext
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
cleanAfterSample()
Clean cached data after sample
Internally called by JMeter, never call it directly
|
void |
clear()
Internally called by JMeter, never call it directly
|
Sampler |
getCurrentSampler() |
StandardJMeterEngine |
getEngine() |
SampleResult |
getPreviousResult() |
Sampler |
getPreviousSampler()
Returns the previousSampler.
|
java.util.Properties |
getProperties() |
java.util.Map<java.lang.String,java.lang.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 |
isRecording() |
boolean |
isRestartNextLoop()
Deprecated.
|
boolean |
isSamplingStarted() |
boolean |
isStartNextThreadLoop() |
void |
setCurrentSampler(Sampler sampler)
Internally called by JMeter, never call it directly
|
void |
setEngine(StandardJMeterEngine engine)
Internally called by JMeter, never call it directly
|
void |
setPreviousResult(SampleResult result)
Internally called by JMeter, never call it directly
|
void |
setRecording(boolean recording)
Internally called by JMeter, never call it directly
|
void |
setRestartNextLoop(boolean restartNextLoop)
Deprecated.
|
void |
setSamplingStarted(boolean b)
Internally called by JMeter, never call it directly
|
void |
setStartNextThreadLoop(boolean restartNextLoop) |
void |
setThread(JMeterThread thread)
Internally called by JMeter, never call it directly
|
void |
setThreadGroup(AbstractThreadGroup threadgrp)
Internally called by JMeter, never call it directly
|
void |
setThreadNum(int threadNum)
Internally called by JMeter, never call it directly
|
void |
setVariables(JMeterVariables vars)
Internally called by JMeter, never call it directly
|
public void clear()
public JMeterVariables getVariables()
public java.util.Properties getProperties()
public void setVariables(JMeterVariables vars)
vars
- JMeterVariablespublic SampleResult getPreviousResult()
public void setPreviousResult(SampleResult result)
result
- SampleResultpublic Sampler getCurrentSampler()
public void setCurrentSampler(Sampler sampler)
sampler
- Samplerpublic Sampler getPreviousSampler()
public int getThreadNum()
public void setThreadNum(int threadNum)
threadNum
- number of threadspublic JMeterThread getThread()
public void setThread(JMeterThread thread)
thread
- to usepublic AbstractThreadGroup getThreadGroup()
public void setThreadGroup(AbstractThreadGroup threadgrp)
threadgrp
- ThreadGroup to usepublic StandardJMeterEngine getEngine()
public void setEngine(StandardJMeterEngine engine)
engine
- to usepublic boolean isSamplingStarted()
public void setSamplingStarted(boolean b)
b
- flag whether sampling has startedpublic void setStartNextThreadLoop(boolean restartNextLoop)
restartNextLoop
- if set to true
a restart of the loop will occurpublic boolean isStartNextThreadLoop()
true
when current loop iteration will be interrupted and JMeter will go to next iteration@Deprecated public void setRestartNextLoop(boolean restartNextLoop)
setStartNextThreadLoop(boolean)
true
current loop iteration will be interrupted and
JMeter will go to next iterationrestartNextLoop
- flag whether to restart@Deprecated public boolean isRestartNextLoop()
isStartNextThreadLoop()
public void cleanAfterSample()
public java.util.Map<java.lang.String,java.lang.Object> getSamplerContext()
public void setRecording(boolean recording)
recording
- flag whether recording should be donepublic boolean isRecording()
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.