Class DispatcherResourceManagerComponent

java.lang.Object
org.apache.flink.runtime.entrypoint.component.DispatcherResourceManagerComponent
All Implemented Interfaces:
AutoCloseable, org.apache.flink.util.AutoCloseableAsync

public class DispatcherResourceManagerComponent extends Object implements org.apache.flink.util.AutoCloseableAsync
Component which starts a Dispatcher, ResourceManager and WebMonitorEndpoint in the same process.
  • Method Details

    • getShutDownFuture

      public final CompletableFuture<ApplicationStatus> getShutDownFuture()
    • stopApplication

      public CompletableFuture<Void> stopApplication(ApplicationStatus applicationStatus, @Nullable String diagnostics)
      Deregister the Flink application from the resource management system by signalling the ResourceManager and also stop the process.
      Parameters:
      applicationStatus - to terminate the application with
      diagnostics - additional information about the shut down, can be null
      Returns:
      Future which is completed once the shut down
    • stopProcess

      public CompletableFuture<Void> stopProcess()
      Close the web monitor and cluster components. This method will not deregister the Flink application from the resource management and only stop the process.
      Returns:
      Future which is completed once the shut down
    • closeAsync

      public CompletableFuture<Void> closeAsync()
      Specified by:
      closeAsync in interface org.apache.flink.util.AutoCloseableAsync
    • getRestPort

      public int getRestPort()