Class AbstractSessionClusterExecutor<ClusterID,​ClientFactory extends ClusterClientFactory<ClusterID>>

  • 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 Detail

      • AbstractSessionClusterExecutor

        public AbstractSessionClusterExecutor​(@Nonnull
                                              ClientFactory clusterClientFactory)
    • Method Detail

      • 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