public final class FlinkDistribution extends Object
Constructor and Description |
---|
FlinkDistribution(Path distributionDir) |
Modifier and Type | Method and Description |
---|---|
void |
appendConfiguration(Configuration config) |
void |
callJobManagerScript(String... args) |
void |
copyLogsTo(Path targetDirectory) |
void |
performJarAddition(org.apache.flink.tests.util.flink.JarAddition addition) |
void |
performJarOperation(org.apache.flink.tests.util.flink.JarOperation operation) |
<T> java.util.stream.Stream<T> |
searchAllLogs(Pattern pattern,
java.util.function.Function<Matcher,T> matchProcessor) |
void |
setRootLogLevel(org.slf4j.event.Level logLevel) |
void |
setTaskExecutorHosts(Collection<String> taskExecutorHosts) |
void |
startFlinkCluster() |
void |
startJobManager() |
void |
startSqlGateway() |
void |
startTaskManager() |
void |
stopFlinkCluster() |
void |
stopSqlGateway() |
JobID |
submitJob(JobSubmission jobSubmission,
java.time.Duration timeout) |
void |
submitSQLJob(SQLJobSubmission job,
java.time.Duration timeout) |
public FlinkDistribution(Path distributionDir)
public void startJobManager() throws IOException
IOException
public void callJobManagerScript(String... args) throws IOException
IOException
public void startTaskManager() throws IOException
IOException
public void startSqlGateway() throws IOException
IOException
public void stopSqlGateway() throws IOException
IOException
public void setRootLogLevel(org.slf4j.event.Level logLevel) throws IOException
IOException
public void startFlinkCluster() throws IOException
IOException
public void stopFlinkCluster() throws IOException
IOException
public JobID submitJob(JobSubmission jobSubmission, java.time.Duration timeout) throws IOException
IOException
public void submitSQLJob(SQLJobSubmission job, java.time.Duration timeout) throws Exception
Exception
public void performJarAddition(org.apache.flink.tests.util.flink.JarAddition addition) throws IOException
IOException
public void performJarOperation(org.apache.flink.tests.util.flink.JarOperation operation) throws IOException
IOException
public void appendConfiguration(Configuration config) throws IOException
IOException
public void setTaskExecutorHosts(Collection<String> taskExecutorHosts) throws IOException
IOException
public <T> java.util.stream.Stream<T> searchAllLogs(Pattern pattern, java.util.function.Function<Matcher,T> matchProcessor) throws IOException
IOException
public void copyLogsTo(Path targetDirectory) throws IOException
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.