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

    Constructors
    Constructor
    Description
    Creates a JobMasterId that takes the bits from the given UUID.
  • Method Summary

    Modifier and Type
    Method
    Description
    If the given uuid is null, this returns null, otherwise a JobMasterId that corresponds to the UUID, via JobMasterId(UUID).
    Generates a new random JobMasterId.
    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JobMasterId

      public JobMasterId(UUID uuid)
      Creates a JobMasterId that takes the bits from the given UUID.
  • Method Details

    • 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, via JobMasterId(UUID).