public class JMeterContext extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JMeterContext.TestLogicalAction |
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.
|
Properties |
getProperties() |
Map<String,Object> |
getSamplerContext()
Sampler context is cleaned up as soon as Post-Processor have ended
|
JMeterContext.TestLogicalAction |
getTestLogicalAction() |
JMeterThread |
getThread() |
AbstractThreadGroup |
getThreadGroup() |
int |
getThreadNum() |
JMeterVariables |
getVariables()
Gives access to the JMeter variables for the current thread.
|
boolean |
isRecording() |
boolean |
isRestartNextLoop()
Deprecated.
|
boolean |
isSamplingStarted() |
boolean |
isStartNextThreadLoop()
Deprecated.
|
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)
Deprecated.
|
void |
setTestLogicalAction(JMeterContext.TestLogicalAction actionOnExecution) |
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 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 setTestLogicalAction(JMeterContext.TestLogicalAction actionOnExecution)
actionOnExecution
- action to take for next iteration of current loop in which this component is presentpublic JMeterContext.TestLogicalAction getTestLogicalAction()
@Deprecated public void setStartNextThreadLoop(boolean restartNextLoop)
setTestLogicalAction(TestLogicalAction)
restartNextLoop
- if set to true
a restart of the loop will occur@Deprecated public boolean isStartNextThreadLoop()
getTestLogicalAction()
true
when current loop iteration of Thread Group will be interrupted and JMeter will go to next iteration of the Thread Group loop@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 Map<String,Object> getSamplerContext()
public void setRecording(boolean recording)
recording
- flag whether recording should be donepublic boolean isRecording()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.