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 the ClusterClientFactory used 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 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:
      execute in interface org.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:
      listCompletedClusterDatasetIds in interface org.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:
      invalidateClusterDataset in interface org.apache.flink.core.execution.CacheSupportedPipelineExecutor
      Throws:
      Exception