Package org.apache.flink.tests.util
Class AutoClosableProcess.AutoClosableProcessBuilder
- java.lang.Object
-
- org.apache.flink.tests.util.AutoClosableProcess.AutoClosableProcessBuilder
-
- Enclosing class:
- AutoClosableProcess
public static final class AutoClosableProcess.AutoClosableProcessBuilder extends Object
Builder for most sophisticated processes.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
runBlocking()
void
runBlocking(Duration timeout)
void
runBlockingWithRetry(int maxRetries, Duration attemptTimeout, Duration globalTimeout)
AutoClosableProcess
runNonBlocking()
AutoClosableProcess.AutoClosableProcessBuilder
setEnv(Consumer<Map<String,String>> envProcessor)
AutoClosableProcess.AutoClosableProcessBuilder
setStderrProcessor(Consumer<String> stderrProcessor)
AutoClosableProcess.AutoClosableProcessBuilder
setStdInputs(String... inputLines)
AutoClosableProcess.AutoClosableProcessBuilder
setStdoutProcessor(Consumer<String> stdoutProcessor)
-
-
-
Method Detail
-
setEnv
public AutoClosableProcess.AutoClosableProcessBuilder setEnv(Consumer<Map<String,String>> envProcessor)
-
setStdoutProcessor
public AutoClosableProcess.AutoClosableProcessBuilder setStdoutProcessor(Consumer<String> stdoutProcessor)
-
setStderrProcessor
public AutoClosableProcess.AutoClosableProcessBuilder setStderrProcessor(Consumer<String> stderrProcessor)
-
setStdInputs
public AutoClosableProcess.AutoClosableProcessBuilder setStdInputs(String... inputLines)
-
runBlocking
public void runBlocking() throws IOException
- Throws:
IOException
-
runBlocking
public void runBlocking(Duration timeout) throws IOException
- Throws:
IOException
-
runBlockingWithRetry
public void runBlockingWithRetry(int maxRetries, Duration attemptTimeout, Duration globalTimeout) throws IOException
- Throws:
IOException
-
runNonBlocking
public AutoClosableProcess runNonBlocking() throws IOException
- Throws:
IOException
-
-