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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>
closeAsync()
int
getRestPort()
CompletableFuture<ApplicationStatus>
getShutDownFuture()
CompletableFuture<Void>
stopApplication(ApplicationStatus applicationStatus, String diagnostics)
Deregister the Flink application from the resource management system by signalling theResourceManager
and also stop the process.CompletableFuture<Void>
stopProcess()
Close the web monitor and cluster components.
-
-
-
Method Detail
-
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 theResourceManager
and 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
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 interfaceorg.apache.flink.util.AutoCloseableAsync
-
getRestPort
public int getRestPort()
-
-