public static enum JobMasterServiceProcess.WaitingForLeadership extends Enum<JobMasterServiceProcess.WaitingForLeadership> implements JobMasterServiceProcess
JobMasterServiceProcess.WaitingForLeadership| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
closeAsync() |
CompletableFuture<JobMasterGateway> |
getJobMasterGatewayFuture()
Future which is completed with the
JobMasterGateway once the JobMasterService
has been created. |
CompletableFuture<String> |
getLeaderAddressFuture()
Future which is completed with the
JobMasterService address once it is created. |
UUID |
getLeaderSessionId()
The leader session id of this process.
|
CompletableFuture<JobManagerRunnerResult> |
getResultFuture()
Future which is completed with the result of job execution.
|
boolean |
isInitializedAndRunning()
True iff the
JobMasterService has been initialized and is running. |
static JobMasterServiceProcess.WaitingForLeadership |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobMasterServiceProcess.WaitingForLeadership[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfwaitingForLeadershippublic static final JobMasterServiceProcess.WaitingForLeadership INSTANCE
public static JobMasterServiceProcess.WaitingForLeadership[] values()
for (JobMasterServiceProcess.WaitingForLeadership c : JobMasterServiceProcess.WaitingForLeadership.values()) System.out.println(c);
public static JobMasterServiceProcess.WaitingForLeadership valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic CompletableFuture<Void> closeAsync()
closeAsync in interface org.apache.flink.util.AutoCloseableAsyncpublic UUID getLeaderSessionId()
JobMasterServiceProcessgetLeaderSessionId in interface JobMasterServiceProcesspublic boolean isInitializedAndRunning()
JobMasterServiceProcessJobMasterService has been initialized and is running.isInitializedAndRunning in interface JobMasterServiceProcesspublic CompletableFuture<JobMasterGateway> getJobMasterGatewayFuture()
JobMasterServiceProcessJobMasterGateway once the JobMasterService
has been created. Upon closing of the process, this future is completed exceptionally if it
is still uncompleted.getJobMasterGatewayFuture in interface JobMasterServiceProcesspublic CompletableFuture<JobManagerRunnerResult> getResultFuture()
JobMasterServiceProcessJobManagerRunnerResult, JobNotFinishedException if the job was not finished
or an Throwable if an unexpected failure occurs. Upon closing of the process, this
future is completed exceptionally with JobNotFinishedException.getResultFuture in interface JobMasterServiceProcesspublic CompletableFuture<String> getLeaderAddressFuture()
JobMasterServiceProcessJobMasterService address once it is created.getLeaderAddressFuture in interface JobMasterServiceProcessCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.