Class JobMasterId
java.lang.Object
org.apache.flink.util.AbstractID
org.apache.flink.runtime.jobmaster.JobMasterId
- All Implemented Interfaces:
Serializable,Comparable<org.apache.flink.util.AbstractID>
public class JobMasterId
extends org.apache.flink.util.AbstractID
The
JobMaster fencing token.- See Also:
-
Field Summary
Fields inherited from class org.apache.flink.util.AbstractID
lowerPart, SIZE, upperPart -
Constructor Summary
ConstructorsConstructorDescriptionJobMasterId(UUID uuid) Creates a JobMasterId that takes the bits from the given UUID. -
Method Summary
Modifier and TypeMethodDescriptionstatic JobMasterIdfromUuidOrNull(UUID uuid) If the given uuid is null, this returns null, otherwise a JobMasterId that corresponds to the UUID, viaJobMasterId(UUID).static JobMasterIdgenerate()Generates a new random JobMasterId.toUUID()Creates a UUID with the bits from this JobMasterId.Methods inherited from class org.apache.flink.util.AbstractID
compareTo, equals, getBytes, getLowerPart, getUpperPart, hashCode, toHexString, toString
-
Constructor Details
-
JobMasterId
Creates a JobMasterId that takes the bits from the given UUID.
-
-
Method Details
-
toUUID
Creates a UUID with the bits from this JobMasterId. -
generate
Generates a new random JobMasterId. -
fromUuidOrNull
If the given uuid is null, this returns null, otherwise a JobMasterId that corresponds to the UUID, viaJobMasterId(UUID).
-