public class StandardJMeterEngine extends Object implements JMeterEngine, Runnable
RemoteJMeterEngineImpl
when running in server mode.Constructor and Description |
---|
StandardJMeterEngine() |
StandardJMeterEngine(String host) |
Modifier and Type | Method and Description |
---|---|
void |
askThreadsToStop()
Clean shutdown ie, wait for end of current running samplers
|
void |
configure(HashTree testTree)
Configure engine
|
void |
exit()
Remote exit
Called by RemoteJMeterEngineImpl.rexit()
and by notifyTestListenersOfEnd() iff exitAfterTest is true;
in turn that is called by the run() method and the StopTest class
also called
|
boolean |
isActive() |
static void |
register(TestStateListener tl) |
void |
reset()
Stop test if running
|
void |
run() |
void |
runTest()
Runs the test
|
void |
setProperties(Properties p)
set Properties on engine
|
static void |
stopEngine() |
static void |
stopEngineNow() |
void |
stopTest()
Stop Test Now
|
void |
stopTest(boolean now) |
static boolean |
stopThread(String threadName) |
static boolean |
stopThreadNow(String threadName) |
public StandardJMeterEngine()
public StandardJMeterEngine(String host)
public static void stopEngineNow()
public static void stopEngine()
public static void register(TestStateListener tl)
public static boolean stopThread(String threadName)
public static boolean stopThreadNow(String threadName)
public void configure(HashTree testTree)
JMeterEngine
configure
in interface JMeterEngine
testTree
- the test planpublic void runTest() throws JMeterEngineException
JMeterEngine
runTest
in interface JMeterEngine
JMeterEngineException
- if an error occurspublic void reset()
JMeterEngine
reset
in interface JMeterEngine
public void stopTest()
stopTest
in interface JMeterEngine
public void stopTest(boolean now)
stopTest
in interface JMeterEngine
now
- boolean that tell whether stop is immediate (interrupt) or not (wait for current sample end)public void askThreadsToStop()
public void exit()
exit
in interface JMeterEngine
public void setProperties(Properties p)
JMeterEngine
setProperties
in interface JMeterEngine
p
- the properties to setpublic boolean isActive()
isActive
in interface JMeterEngine
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.