ClusterID - cluster idpublic class ExecutionContext<ClusterID> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExecutionContext.Builder
Builder for
ExecutionContext. |
static class |
ExecutionContext.SessionState
Represents the state that should be reused in one session.
|
| Modifier and Type | Method and Description |
|---|---|
static ExecutionContext.Builder |
builder(Environment defaultEnv,
SessionContext sessionContext,
List<URL> dependencies,
org.apache.flink.configuration.Configuration configuration,
org.apache.flink.client.deployment.ClusterClientServiceLoader serviceLoader,
org.apache.commons.cli.Options commandLineOptions,
List<org.apache.flink.client.cli.CustomCommandLine> commandLines)
Returns a builder for this
ExecutionContext. |
void |
close()
Close resources associated with this ExecutionContext, e.g.
|
org.apache.flink.client.deployment.ClusterDescriptor<ClusterID> |
createClusterDescriptor() |
org.apache.flink.api.dag.Pipeline |
createPipeline(String name) |
Map<String,org.apache.flink.table.catalog.Catalog> |
getCatalogs() |
ClassLoader |
getClassLoader() |
ClusterID |
getClusterId() |
org.apache.flink.client.deployment.ClusterSpecification |
getClusterSpec() |
Environment |
getEnvironment() |
org.apache.flink.api.common.ExecutionConfig |
getExecutionConfig() |
org.apache.flink.configuration.Configuration |
getFlinkConfig() |
SessionContext |
getOriginalSessionContext()
Get the
SessionContext when initialize the ExecutionContext. |
ExecutionContext.SessionState |
getSessionState() |
org.apache.flink.table.api.TableEnvironment |
getTableEnvironment() |
<R> R |
wrapClassLoader(java.util.function.Supplier<R> supplier)
Executes the given supplier using the execution context's classloader as thread classloader.
|
public org.apache.flink.configuration.Configuration getFlinkConfig()
public SessionContext getOriginalSessionContext()
SessionContext when initialize the ExecutionContext. It's usually used when
resetting the session properties.public ClassLoader getClassLoader()
public Environment getEnvironment()
public org.apache.flink.client.deployment.ClusterSpecification getClusterSpec()
public ClusterID getClusterId()
public org.apache.flink.client.deployment.ClusterDescriptor<ClusterID> createClusterDescriptor()
public ExecutionContext.SessionState getSessionState()
public <R> R wrapClassLoader(java.util.function.Supplier<R> supplier)
public org.apache.flink.table.api.TableEnvironment getTableEnvironment()
public org.apache.flink.api.common.ExecutionConfig getExecutionConfig()
public org.apache.flink.api.dag.Pipeline createPipeline(String name)
public static ExecutionContext.Builder builder(Environment defaultEnv, SessionContext sessionContext, List<URL> dependencies, org.apache.flink.configuration.Configuration configuration, org.apache.flink.client.deployment.ClusterClientServiceLoader serviceLoader, org.apache.commons.cli.Options commandLineOptions, List<org.apache.flink.client.cli.CustomCommandLine> commandLines)
ExecutionContext.public void close()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.