public static enum JobMasterServiceProcess.WaitingForLeadership extends Enum<JobMasterServiceProcess.WaitingForLeadership> implements JobMasterServiceProcess
JobMasterServiceProcess.WaitingForLeadership| 枚举常量和说明 |
|---|
INSTANCE |
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
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)
返回带有指定名称的该类型的枚举常量。
|
static JobMasterServiceProcess.WaitingForLeadership[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public CompletableFuture<Void> closeAsync()
closeAsync 在接口中 org.apache.flink.util.AutoCloseableAsyncpublic boolean isInitializedAndRunning()
JobMasterServiceProcessJobMasterService has been initialized and is running.public 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.public 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 在接口中 JobMasterServiceProcesspublic CompletableFuture<String> getLeaderAddressFuture()
JobMasterServiceProcessJobMasterService address once it is created.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.