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
-
Method Summary
Modifier and TypeMethodDescriptionintstopApplication(ApplicationStatus applicationStatus, String diagnostics) Deregister the Flink application from the resource management system by signalling theResourceManagerand also stop the process.Close the web monitor and cluster components.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.util.AutoCloseableAsync
close
-
Method Details
-
getShutDownFuture
-
stopApplication
public CompletableFuture<Void> stopApplication(ApplicationStatus applicationStatus, @Nullable String diagnostics) Deregister the Flink application from the resource management system by signalling theResourceManagerand also stop the process.- Parameters:
applicationStatus- to terminate the application withdiagnostics- additional information about the shut down, can benull- Returns:
- Future which is completed once the shut down
-
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
- Specified by:
closeAsyncin interfaceorg.apache.flink.util.AutoCloseableAsync
-
getRestPort
public int getRestPort()
-