public class ProcessInvoker extends Object
| Constructor and Description |
|---|
ProcessInvoker() |
public Triple execute(String[] commandAndParameters) throws IOException, InterruptedException
commandAndParameters - The command to execute (at index 0) along with the list of parameters (may not be null or empty).IOExceptionInterruptedExceptionpublic Triple execute(String[] commandAndParameters, long waitTime) throws IOException, InterruptedException
commandAndParameters - The command to execute (at index 0) along with the list of parameters (may not be null or empty).waitTime - The maximum time to wait (in ms) for the command to complete (must be > 0).IOExceptionInterruptedExceptionCopyright © 2014. All rights reserved.