Class ResourceManagerId

java.lang.Object
org.apache.flink.util.AbstractID
org.apache.flink.runtime.resourcemanager.ResourceManagerId
All Implemented Interfaces:
Serializable, Comparable<org.apache.flink.util.AbstractID>

public class ResourceManagerId extends org.apache.flink.util.AbstractID
Fencing token for the ResourceManager.
See Also:
  • Field Summary

    Fields inherited from class org.apache.flink.util.AbstractID

    lowerPart, SIZE, upperPart
  • Method Summary

    Modifier and Type
    Method
    Description
    fromUuid(UUID uuid)
    Creates a ResourceManagerId that corresponds to the given UUID.
    If the given uuid is null, this returns null, otherwise a ResourceManagerId that corresponds to the UUID, via ResourceManagerId(UUID).
    Generates a new random ResourceManagerId.
    Creates a UUID with the bits from this ResourceManagerId.

    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
  • Method Details

    • toUUID

      public UUID toUUID()
      Creates a UUID with the bits from this ResourceManagerId.
    • generate

      public static ResourceManagerId generate()
      Generates a new random ResourceManagerId.
    • fromUuid

      public static ResourceManagerId fromUuid(UUID uuid)
      Creates a ResourceManagerId that corresponds to the given UUID.
    • fromUuidOrNull

      public static ResourceManagerId fromUuidOrNull(@Nullable UUID uuid)
      If the given uuid is null, this returns null, otherwise a ResourceManagerId that corresponds to the UUID, via ResourceManagerId(UUID).