Interface ResourceManagerService
- All Superinterfaces:
AutoCloseable,org.apache.flink.util.AutoCloseableAsync
- All Known Implementing Classes:
ResourceManagerServiceImpl
public interface ResourceManagerService
extends org.apache.flink.util.AutoCloseableAsync
Service that maintains lifecycle of
ResourceManager.-
Method Summary
Modifier and TypeMethodDescriptionderegisterApplication(ApplicationStatus applicationStatus, String diagnostics) Deregister the Flink application from the resource management system by signalling theResourceManager.Return termination future of the service.voidstart()Start the service.Methods inherited from interface org.apache.flink.util.AutoCloseableAsync
close, closeAsync
-
Method Details
-
start
Start the service.- Throws:
Exception- if the service cannot be started
-
getTerminationFuture
CompletableFuture<Void> getTerminationFuture()Return termination future of the service.- Returns:
- termination future of the service.
-
deregisterApplication
CompletableFuture<Void> deregisterApplication(ApplicationStatus applicationStatus, @Nullable String diagnostics) Deregister the Flink application from the resource management system by signalling theResourceManager.- Parameters:
applicationStatus- to terminate the application withdiagnostics- additional information about the shut down, can benull- Returns:
- Future which is completed once the shut down
-