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 interface
AbstractDispatcherLeaderProcess.DispatcherGatewayService
An accessor of theDispatcherGateway
.static interface
AbstractDispatcherLeaderProcess.DispatcherGatewayServiceFactory
protected static class
AbstractDispatcherLeaderProcess.State
The state of theDispatcherLeaderProcess
.
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
log
-
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()
UUID
getLeaderSessionId()
CompletableFuture<ApplicationStatus>
getShutDownFuture()
protected CompletableFuture<Void>
onClose()
protected abstract void
onStart()
void
start()
-
-
-
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:
closeAsync
in interfaceorg.apache.flink.util.AutoCloseableAsync
-
onStart
protected abstract void onStart()
-
onClose
protected CompletableFuture<Void> onClose()
-
-