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()
Trigger the closing of the resource and return the corresponding close future.
|
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, valueOf
waitingForLeadership
close
public 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()
AutoCloseableAsync
closeAsync
in interface AutoCloseableAsync
public UUID getLeaderSessionId()
JobMasterServiceProcess
getLeaderSessionId
in interface JobMasterServiceProcess
public boolean isInitializedAndRunning()
JobMasterServiceProcess
JobMasterService
has been initialized and is running.isInitializedAndRunning
in interface JobMasterServiceProcess
public CompletableFuture<JobMasterGateway> getJobMasterGatewayFuture()
JobMasterServiceProcess
JobMasterGateway
once the JobMasterService
has been created. Upon closing of the process, this future is completed exceptionally if it
is still uncompleted.getJobMasterGatewayFuture
in interface JobMasterServiceProcess
public CompletableFuture<JobManagerRunnerResult> getResultFuture()
JobMasterServiceProcess
JobManagerRunnerResult
, 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 JobMasterServiceProcess
public CompletableFuture<String> getLeaderAddressFuture()
JobMasterServiceProcess
JobMasterService
address once it is created.getLeaderAddressFuture
in interface JobMasterServiceProcess
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.