Class AbstractSessionClusterExecutor<ClusterID,ClientFactory extends ClusterClientFactory<ClusterID>>
java.lang.Object
org.apache.flink.client.deployment.executors.AbstractSessionClusterExecutor<ClusterID,ClientFactory>
- Type Parameters:
ClusterID- the type of the id of the cluster.ClientFactory- the type of theClusterClientFactoryused to create/retrieve a client to the target cluster.
- All Implemented Interfaces:
org.apache.flink.core.execution.CacheSupportedPipelineExecutor,org.apache.flink.core.execution.PipelineExecutor
- Direct Known Subclasses:
RemoteExecutor
@Internal
public class AbstractSessionClusterExecutor<ClusterID,ClientFactory extends ClusterClientFactory<ClusterID>>
extends Object
implements org.apache.flink.core.execution.CacheSupportedPipelineExecutor
An abstract
PipelineExecutor used to execute pipelines on an existing
(session) cluster.-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSessionClusterExecutor(ClientFactory clusterClientFactory, org.apache.flink.configuration.Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<org.apache.flink.core.execution.JobClient>execute(org.apache.flink.api.dag.Pipeline pipeline, org.apache.flink.configuration.Configuration configuration, ClassLoader userCodeClassloader) invalidateClusterDataset(org.apache.flink.util.AbstractID clusterDatasetId, org.apache.flink.configuration.Configuration configuration, ClassLoader userCodeClassloader) CompletableFuture<Set<org.apache.flink.util.AbstractID>>listCompletedClusterDatasetIds(org.apache.flink.configuration.Configuration configuration, ClassLoader userCodeClassloader)
-
Constructor Details
-
AbstractSessionClusterExecutor
public AbstractSessionClusterExecutor(@Nonnull ClientFactory clusterClientFactory, org.apache.flink.configuration.Configuration configuration)
-
-
Method Details
-
execute
public CompletableFuture<org.apache.flink.core.execution.JobClient> execute(@Nonnull org.apache.flink.api.dag.Pipeline pipeline, @Nonnull org.apache.flink.configuration.Configuration configuration, @Nonnull ClassLoader userCodeClassloader) throws Exception - Specified by:
executein interfaceorg.apache.flink.core.execution.PipelineExecutor- Throws:
Exception
-
listCompletedClusterDatasetIds
public CompletableFuture<Set<org.apache.flink.util.AbstractID>> listCompletedClusterDatasetIds(org.apache.flink.configuration.Configuration configuration, ClassLoader userCodeClassloader) throws Exception - Specified by:
listCompletedClusterDatasetIdsin interfaceorg.apache.flink.core.execution.CacheSupportedPipelineExecutor- Throws:
Exception
-
invalidateClusterDataset
public CompletableFuture<Void> invalidateClusterDataset(org.apache.flink.util.AbstractID clusterDatasetId, org.apache.flink.configuration.Configuration configuration, ClassLoader userCodeClassloader) throws Exception - Specified by:
invalidateClusterDatasetin interfaceorg.apache.flink.core.execution.CacheSupportedPipelineExecutor- Throws:
Exception
-