Interface ClusterDescriptor<T>

    • Method Detail

      • getClusterDescription

        String getClusterDescription()
        Returns a String containing details about the cluster (NodeManagers, available memory, ...).
      • deployApplicationCluster

        ClusterClientProvider<T> deployApplicationCluster​(ClusterSpecification clusterSpecification,
                                                          ApplicationConfiguration applicationConfiguration)
                                                   throws ClusterDeploymentException
        Triggers deployment of an application cluster. This corresponds to a cluster dedicated to the execution of a predefined application. The cluster will be created on application submission and torn down upon application termination. In addition, the main() of the application's user code will be executed on the cluster, rather than the client.
        Parameters:
        clusterSpecification - Cluster specification defining the cluster to deploy
        applicationConfiguration - Application-specific configuration parameters
        Returns:
        Client for the cluster
        Throws:
        ClusterDeploymentException - if the cluster could not be deployed
      • deployJobCluster

        @Deprecated
        ClusterClientProvider<T> deployJobCluster​(ClusterSpecification clusterSpecification,
                                                  JobGraph jobGraph,
                                                  boolean detached)
                                           throws ClusterDeploymentException
        Deprecated.
        Per-job mode has been deprecated in Flink 1.15 and will be removed in the future. Please use application mode instead.
        Deploys a per-job cluster with the given job on the cluster.
        Parameters:
        clusterSpecification - Initial cluster specification with which the Flink cluster is launched
        jobGraph - JobGraph with which the job cluster is started
        detached - true if the cluster should be stopped after the job completion without serving the result, otherwise false
        Returns:
        Cluster client to talk to the Flink cluster
        Throws:
        ClusterDeploymentException - if the cluster could not be deployed
      • killCluster

        void killCluster​(T clusterId)
                  throws FlinkException
        Terminates the cluster with the given cluster id.
        Parameters:
        clusterId - identifying the cluster to shut down
        Throws:
        FlinkException - if the cluster could not be terminated