Class JobMasterId
- java.lang.Object
-
- org.apache.flink.util.AbstractID
-
- org.apache.flink.runtime.jobmaster.JobMasterId
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractID>
public class JobMasterId extends AbstractID
TheJobMaster
fencing token.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.flink.util.AbstractID
lowerPart, SIZE, upperPart
-
-
Constructor Summary
Constructors Constructor Description JobMasterId(UUID uuid)
Creates a JobMasterId that takes the bits from the given UUID.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JobMasterId
fromUuidOrNull(UUID uuid)
If the given uuid is null, this returns null, otherwise a JobMasterId that corresponds to the UUID, viaJobMasterId(UUID)
.static JobMasterId
generate()
Generates a new random JobMasterId.UUID
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 Detail
-
JobMasterId
public JobMasterId(UUID uuid)
Creates a JobMasterId that takes the bits from the given UUID.
-
-
Method Detail
-
toUUID
public UUID toUUID()
Creates a UUID with the bits from this JobMasterId.
-
generate
public static JobMasterId generate()
Generates a new random JobMasterId.
-
fromUuidOrNull
public static JobMasterId fromUuidOrNull(@Nullable UUID uuid)
If the given uuid is null, this returns null, otherwise a JobMasterId that corresponds to the UUID, viaJobMasterId(UUID)
.
-
-