Package org.apache.flink.test.util
Class TestProcessBuilder
- java.lang.Object
-
- org.apache.flink.test.util.TestProcessBuilder
-
public class TestProcessBuilder extends Object
Utility class wrappingProcessBuilder
and pre-configuring it with common options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestProcessBuilder.TestProcess
Process
with it'sprocessOutput
.
-
Constructor Summary
Constructors Constructor Description TestProcessBuilder(String mainClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestProcessBuilder
addConfigAsMainClassArgs(Configuration config)
TestProcessBuilder
addJvmArg(String arg)
TestProcessBuilder
addMainClassArg(String arg)
TestProcessBuilder
setJvmMemory(MemorySize jvmMemory)
TestProcessBuilder.TestProcess
start()
TestProcessBuilder
withCleanEnvironment()
-
-
-
Constructor Detail
-
TestProcessBuilder
public TestProcessBuilder(String mainClass) throws IOException
- Throws:
IOException
-
-
Method Detail
-
start
public TestProcessBuilder.TestProcess start() throws IOException
- Throws:
IOException
-
setJvmMemory
public TestProcessBuilder setJvmMemory(MemorySize jvmMemory)
-
addJvmArg
public TestProcessBuilder addJvmArg(String arg)
-
addMainClassArg
public TestProcessBuilder addMainClassArg(String arg)
-
addConfigAsMainClassArgs
public TestProcessBuilder addConfigAsMainClassArgs(Configuration config)
-
withCleanEnvironment
public TestProcessBuilder withCleanEnvironment()
-
-