Enum JobMasterServiceProcess.WaitingForLeadership
- java.lang.Object
-
- java.lang.Enum<JobMasterServiceProcess.WaitingForLeadership>
-
- org.apache.flink.runtime.jobmaster.JobMasterServiceProcess.WaitingForLeadership
-
- All Implemented Interfaces:
Serializable,AutoCloseable,Comparable<JobMasterServiceProcess.WaitingForLeadership>,JobMasterServiceProcess,org.apache.flink.util.AutoCloseableAsync
- Enclosing interface:
- JobMasterServiceProcess
public static enum JobMasterServiceProcess.WaitingForLeadership extends Enum<JobMasterServiceProcess.WaitingForLeadership> implements JobMasterServiceProcess
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.jobmaster.JobMasterServiceProcess
JobMasterServiceProcess.WaitingForLeadership
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>closeAsync()CompletableFuture<JobMasterGateway>getJobMasterGatewayFuture()Future which is completed with theJobMasterGatewayonce theJobMasterServicehas been created.CompletableFuture<String>getLeaderAddressFuture()Future which is completed with theJobMasterServiceaddress once it is created.UUIDgetLeaderSessionId()The leader session id of this process.CompletableFuture<JobManagerRunnerResult>getResultFuture()Future which is completed with the result of job execution.booleanisInitializedAndRunning()True iff theJobMasterServicehas been initialized and is running.static JobMasterServiceProcess.WaitingForLeadershipvalueOf(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.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final JobMasterServiceProcess.WaitingForLeadership INSTANCE
-
-
Method Detail
-
values
public static JobMasterServiceProcess.WaitingForLeadership[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JobMasterServiceProcess.WaitingForLeadership c : JobMasterServiceProcess.WaitingForLeadership.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JobMasterServiceProcess.WaitingForLeadership valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
closeAsync
public CompletableFuture<Void> closeAsync()
- Specified by:
closeAsyncin interfaceorg.apache.flink.util.AutoCloseableAsync
-
getLeaderSessionId
public UUID getLeaderSessionId()
Description copied from interface:JobMasterServiceProcessThe leader session id of this process.- Specified by:
getLeaderSessionIdin interfaceJobMasterServiceProcess
-
isInitializedAndRunning
public boolean isInitializedAndRunning()
Description copied from interface:JobMasterServiceProcessTrue iff theJobMasterServicehas been initialized and is running.- Specified by:
isInitializedAndRunningin interfaceJobMasterServiceProcess
-
getJobMasterGatewayFuture
public CompletableFuture<JobMasterGateway> getJobMasterGatewayFuture()
Description copied from interface:JobMasterServiceProcessFuture which is completed with theJobMasterGatewayonce theJobMasterServicehas been created. Upon closing of the process, this future is completed exceptionally if it is still uncompleted.- Specified by:
getJobMasterGatewayFuturein interfaceJobMasterServiceProcess
-
getResultFuture
public CompletableFuture<JobManagerRunnerResult> getResultFuture()
Description copied from interface:JobMasterServiceProcessFuture which is completed with the result of job execution. The job's result can be theJobManagerRunnerResult,JobNotFinishedExceptionif the job was not finished or anThrowableif an unexpected failure occurs. Upon closing of the process, this future is completed exceptionally withJobNotFinishedException.- Specified by:
getResultFuturein interfaceJobMasterServiceProcess
-
getLeaderAddressFuture
public CompletableFuture<String> getLeaderAddressFuture()
Description copied from interface:JobMasterServiceProcessFuture which is completed with theJobMasterServiceaddress once it is created.- Specified by:
getLeaderAddressFuturein interfaceJobMasterServiceProcess
-
-