org.apache.jmeter.protocol.system
Class NativeCommand
java.lang.Object
org.apache.jmeter.protocol.system.NativeCommand
public class NativeCommand
- extends Object
Native Command
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NativeCommand
public NativeCommand(File directory,
Map<String,String> env)
- Parameters:
env
- Environment variables appended to environmentdirectory
- File working directory
NativeCommand
public NativeCommand(File directory,
Map<String,String> env,
String stdin,
String stdout,
String stderr)
- Parameters:
env
- Environment variables appended to environmentdirectory
- File working directorystdin
- File name that will contain data to be input to processstdout
- File name that will contain out streamstderr
- File name that will contain err stream
run
public int run(List<String> arguments)
throws InterruptedException,
IOException
- Parameters:
arguments
- List
- Returns:
- return code
- Throws:
InterruptedException
IOException
getOutResult
public String getOutResult()
- Returns:
- Out/Err stream contents
getExecutionEnvironment
public Map<String,String> getExecutionEnvironment()
- Returns:
- the executionEnvironment
Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.