public class ProcessUtil extends Object
| Constructor and Description |
|---|
ProcessUtil() |
| Modifier and Type | Method and Description |
|---|---|
protected static io.fabric8.utils.Function<String,Void> |
createErrorHandler(io.fabric8.maven.docker.util.Logger log) |
protected static io.fabric8.utils.Function<String,Void> |
createOutputHandler(io.fabric8.maven.docker.util.Logger log) |
static File |
findExecutable(io.fabric8.maven.docker.util.Logger log,
String name) |
static boolean |
folderIsOnPath(io.fabric8.maven.docker.util.Logger logger,
File dir) |
static int |
processCommandAsync(Process process,
io.fabric8.maven.docker.util.Logger log,
String threadName,
io.fabric8.utils.Function<String,Void> outputHandler,
io.fabric8.utils.Function<String,Void> errorHandler,
String message) |
static int |
processCommandAsync(Process process,
io.fabric8.maven.docker.util.Logger log,
String threadName,
String message) |
protected static void |
processErrors(io.fabric8.maven.docker.util.Logger log,
InputStream inputStream,
String message) |
protected static void |
processOutput(io.fabric8.maven.docker.util.Logger log,
InputStream inputStream,
io.fabric8.utils.Function<String,Void> function,
String errrorMessage) |
protected static void |
readProcessOutput(io.fabric8.maven.docker.util.Logger log,
InputStream inputStream,
String prefix,
String message) |
static int |
runCommand(io.fabric8.maven.docker.util.Logger log,
String commands,
io.fabric8.utils.Function<String,Void> outputHandler,
io.fabric8.utils.Function<String,Void> errorHandler,
String message) |
static int |
runCommand(io.fabric8.maven.docker.util.Logger log,
String commands,
String message) |
static int |
runCommandAsync(io.fabric8.maven.docker.util.Logger log,
String commands,
String message) |
public static int runCommand(io.fabric8.maven.docker.util.Logger log,
String commands,
String message)
throws IOException
IOExceptionpublic static int runCommandAsync(io.fabric8.maven.docker.util.Logger log,
String commands,
String message)
throws IOException
IOExceptionpublic static int runCommand(io.fabric8.maven.docker.util.Logger log,
String commands,
io.fabric8.utils.Function<String,Void> outputHandler,
io.fabric8.utils.Function<String,Void> errorHandler,
String message)
throws IOException
IOExceptionpublic static int processCommandAsync(Process process, io.fabric8.maven.docker.util.Logger log, String threadName, String message) throws InterruptedException
InterruptedExceptionpublic static int processCommandAsync(Process process, io.fabric8.maven.docker.util.Logger log, String threadName, io.fabric8.utils.Function<String,Void> outputHandler, io.fabric8.utils.Function<String,Void> errorHandler, String message) throws InterruptedException
InterruptedExceptionprotected static void processErrors(io.fabric8.maven.docker.util.Logger log,
InputStream inputStream,
String message)
throws Exception
Exceptionprotected static void readProcessOutput(io.fabric8.maven.docker.util.Logger log,
InputStream inputStream,
String prefix,
String message)
throws Exception
Exceptionprotected static void processOutput(io.fabric8.maven.docker.util.Logger log,
InputStream inputStream,
io.fabric8.utils.Function<String,Void> function,
String errrorMessage)
throws IOException
IOExceptionpublic static File findExecutable(io.fabric8.maven.docker.util.Logger log, String name)
public static boolean folderIsOnPath(io.fabric8.maven.docker.util.Logger logger,
File dir)
protected static io.fabric8.utils.Function<String,Void> createOutputHandler(io.fabric8.maven.docker.util.Logger log)
Copyright © 2016. All rights reserved.