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