Class MNativeProcesses
java.lang.Object
com.io7m.montarre.nativepack.MNativeProcesses
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intexecuteAndWait(Map<String, String> environment, ConcurrentLinkedQueue<String> standardOut, ConcurrentLinkedQueue<String> standardError, List<String> commandLine) Execute a process, waiting for it to complete, and return the exit code.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.io7m.montarre.api.natives.MNativeProcessesType
executeAndWaitChecked
-
Constructor Details
-
MNativeProcesses
public MNativeProcesses()The native processes interface.
-
-
Method Details
-
executeAndWait
public int executeAndWait(Map<String, String> environment, ConcurrentLinkedQueue<String> standardOut, ConcurrentLinkedQueue<String> standardError, List<String> commandLine) throws MException, InterruptedExceptionDescription copied from interface:MNativeProcessesTypeExecute a process, waiting for it to complete, and return the exit code.- Specified by:
executeAndWaitin interfaceMNativeProcessesType- Parameters:
environment- The environmentstandardOut- The standard out logstandardError- The standard error logcommandLine- The command line- Returns:
- The exit code
- Throws:
MException- On errorsInterruptedException- On interruption
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceMNativeProcessesType- Throws:
MException
-