Class AbstractDispatcherLeaderProcess
- java.lang.Object
-
- org.apache.flink.runtime.dispatcher.runner.AbstractDispatcherLeaderProcess
-
- All Implemented Interfaces:
AutoCloseable,org.apache.flink.util.AutoCloseableAsync
- Direct Known Subclasses:
SessionDispatcherLeaderProcess
@Internal public abstract class AbstractDispatcherLeaderProcess extends Object
A baseDispatcherLeaderProcess.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAbstractDispatcherLeaderProcess.DispatcherGatewayServiceAn accessor of theDispatcherGateway.static interfaceAbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactoryprotected static classAbstractDispatcherLeaderProcess.StateThe state of theDispatcherLeaderProcess.
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlog
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>closeAsync()CompletableFuture<DispatcherGateway>getDispatcherGateway()protected Optional<AbstractDispatcherLeaderProcess.DispatcherGatewayService>getDispatcherService()CompletableFuture<String>getLeaderAddressFuture()UUIDgetLeaderSessionId()CompletableFuture<ApplicationStatus>getShutDownFuture()protected CompletableFuture<Void>onClose()protected abstract voidonStart()voidstart()
-
-
-
Method Detail
-
start
public final void start()
-
getLeaderSessionId
public final UUID getLeaderSessionId()
-
getDispatcherGateway
public final CompletableFuture<DispatcherGateway> getDispatcherGateway()
-
getLeaderAddressFuture
public final CompletableFuture<String> getLeaderAddressFuture()
-
getShutDownFuture
public CompletableFuture<ApplicationStatus> getShutDownFuture()
-
getDispatcherService
protected final Optional<AbstractDispatcherLeaderProcess.DispatcherGatewayService> getDispatcherService()
-
closeAsync
public final CompletableFuture<Void> closeAsync()
- Specified by:
closeAsyncin interfaceorg.apache.flink.util.AutoCloseableAsync
-
onStart
protected abstract void onStart()
-
onClose
protected CompletableFuture<Void> onClose()
-
-