public class ProcessExecutorImpl extends Object implements ProcessExecutor
| Constructor and Description |
|---|
ProcessExecutorImpl() |
| Modifier and Type | Method and Description |
|---|---|
ProcessExecution |
execute(Command command) |
ProcessExecution |
execute(ProcessInteraction interaction,
Command command) |
ProcessExecution |
execute(ProcessInteraction interaction,
String[] command) |
ProcessExecution |
execute(String... command) |
ProcessExecutor |
removeShutdownHook(ProcessExecution p) |
Boolean |
scheduleUntilTrue(Callable<Boolean> callable,
long timeout,
long step,
TimeUnit unit) |
ProcessExecutor |
setEnvironment(Map<String,String> environment) |
ProcessExecution |
spawn(Command command) |
ProcessExecution |
spawn(ProcessInteraction interaction,
Command command) |
ProcessExecution |
spawn(ProcessInteraction interaction,
String[] command) |
ProcessExecution |
spawn(String... command) |
<T> Future<T> |
submit(Callable<T> callable) |
public ProcessExecutor setEnvironment(Map<String,String> environment) throws IllegalStateException
setEnvironment in interface ProcessExecutorIllegalStateExceptionpublic <T> Future<T> submit(Callable<T> callable)
submit in interface ProcessExecutorpublic Boolean scheduleUntilTrue(Callable<Boolean> callable, long timeout, long step, TimeUnit unit) throws ProcessExecutionException
scheduleUntilTrue in interface ProcessExecutorProcessExecutionExceptionpublic ProcessExecution spawn(ProcessInteraction interaction, String[] command) throws ProcessExecutionException
spawn in interface ProcessExecutorProcessExecutionExceptionpublic ProcessExecution spawn(String... command) throws ProcessExecutionException
spawn in interface ProcessExecutorProcessExecutionExceptionpublic ProcessExecution execute(ProcessInteraction interaction, String[] command) throws ProcessExecutionException
execute in interface ProcessExecutorProcessExecutionExceptionpublic ProcessExecution execute(String... command) throws ProcessExecutionException
execute in interface ProcessExecutorProcessExecutionExceptionpublic ProcessExecution spawn(ProcessInteraction interaction, Command command) throws ProcessExecutionException
spawn in interface ProcessExecutorProcessExecutionExceptionpublic ProcessExecution spawn(Command command) throws ProcessExecutionException
spawn in interface ProcessExecutorProcessExecutionExceptionpublic ProcessExecution execute(ProcessInteraction interaction, Command command) throws ProcessExecutionException
execute in interface ProcessExecutorProcessExecutionExceptionpublic ProcessExecution execute(Command command) throws ProcessExecutionException
execute in interface ProcessExecutorProcessExecutionExceptionpublic ProcessExecutor removeShutdownHook(ProcessExecution p)
removeShutdownHook in interface ProcessExecutorCopyright © 2014 JBoss by Red Hat. All rights reserved.