|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.testelement.AbstractTestElement org.apache.jmeter.samplers.AbstractSampler org.apache.jmeter.protocol.system.SystemSampler
public class SystemSampler
A sampler for executing a System function.
Field Summary | |
---|---|
static String |
ARGUMENTS
|
static String |
CHECK_RETURN_CODE
|
static String |
COMMAND
|
static int |
DEFAULT_RETURN_CODE
|
static String |
DIRECTORY
|
static String |
ENVIRONMENT
|
static String |
EXPECTED_RETURN_CODE
|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
---|---|
SystemSampler()
Create a SystemSampler. |
Method Summary | |
---|---|
boolean |
applies(ConfigTestElement configElement)
Does configElement apply to Sampler |
Arguments |
getArguments()
Get the arguments (parameters) for the JavaSamplerClient to be executed with. |
boolean |
getCheckReturnCode()
|
String |
getCommand()
Gets the Command attribute of the JavaConfig object |
String |
getDirectory()
|
Arguments |
getEnvironmentVariables()
Get the env variables |
int |
getExpectedReturnCode()
|
String |
getStderr()
|
String |
getStdin()
|
String |
getStdout()
|
long |
getTimeout()
|
SampleResult |
sample(Entry entry)
Performs a test sample. |
void |
setArguments(Arguments args)
Set the arguments (parameters) for the JavaSamplerClient to be executed with. |
void |
setCheckReturnCode(boolean checkit)
|
void |
setCommand(String command)
Sets the Command attribute of the JavaConfig object |
void |
setDirectory(String directory)
|
void |
setEnvironmentVariables(Arguments arguments)
|
void |
setExpectedReturnCode(int code)
|
void |
setStderr(String filename)
|
void |
setStdin(String filename)
|
void |
setStdout(String filename)
|
void |
setTimout(long timeoutMs)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
---|
addTestElement, canRemove, clear, clearTestElementChildren, clone, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse |
Field Detail |
---|
public static final String COMMAND
public static final String DIRECTORY
public static final String ARGUMENTS
public static final String ENVIRONMENT
public static final String CHECK_RETURN_CODE
public static final String EXPECTED_RETURN_CODE
public static final int DEFAULT_RETURN_CODE
Constructor Detail |
---|
public SystemSampler()
Method Detail |
---|
public SampleResult sample(Entry entry)
entry
- the Entry for this sample
public boolean applies(ConfigTestElement configElement)
AbstractSampler
applies
in interface ConfigMergabilityIndicator
applies
in class AbstractSampler
configElement
- ConfigTestElement
AbstractSampler.applies(org.apache.jmeter.config.ConfigTestElement)
public String getDirectory()
public void setDirectory(String directory)
directory
- public void setCommand(String command)
command
- the new Command valuepublic String getCommand()
public void setArguments(Arguments args)
args
- the new arguments. These replace any existing arguments.public Arguments getArguments()
public void setCheckReturnCode(boolean checkit)
checkit
- boolean indicates if we check or not return codepublic boolean getCheckReturnCode()
public void setExpectedReturnCode(int code)
code
- expected return codepublic int getExpectedReturnCode()
public void setEnvironmentVariables(Arguments arguments)
arguments
- Env varspublic Arguments getEnvironmentVariables()
public String getStdout()
public void setStdout(String filename)
public String getStderr()
public void setStderr(String filename)
public String getStdin()
public void setStdin(String filename)
public long getTimeout()
public void setTimout(long timeoutMs)
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |