@FunctionalInterface public interface ProcessExecutor
Modifier and Type | Method and Description |
---|---|
default int |
execute(ExecutionContext context,
List<String> commandLineTokens,
Map<String,String> environmentVariables)
Executes a process.
|
int |
execute(ExecutionContext context,
List<String> commandLineTokens,
Map<String,String> environmentVariables,
Map<String,Blob> extensions,
OutputStream output)
Executes a process.
|
default int |
execute(ExecutionContext context,
List<String> commandLineTokens,
Map<String,String> environmentVariables,
OutputStream output)
Executes a process.
|
default int execute(ExecutionContext context, List<String> commandLineTokens, Map<String,String> environmentVariables) throws InterruptedException, IOException
context
- current execution contextcommandLineTokens
- target commandenvironmentVariables
- environment variablesInterruptedException
- if interrupted while waiting process exitIOException
- if failed to execute the commandIllegalArgumentException
- if some parameters were null
default int execute(ExecutionContext context, List<String> commandLineTokens, Map<String,String> environmentVariables, OutputStream output) throws InterruptedException, IOException
context
- current execution contextcommandLineTokens
- target commandenvironmentVariables
- environment variablesoutput
- information outputInterruptedException
- if interrupted while waiting process exitIOException
- if failed to execute the commandIllegalArgumentException
- if some parameters were null
int execute(ExecutionContext context, List<String> commandLineTokens, Map<String,String> environmentVariables, Map<String,Blob> extensions, OutputStream output) throws InterruptedException, IOException
context
- current execution contextcommandLineTokens
- target commandenvironmentVariables
- environment variablesextensions
- the extension BLOBsoutput
- information outputInterruptedException
- if interrupted while waiting process exitIOException
- if failed to execute the commandIllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.