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 theResourceManager
.- See Also:
- Serialized Form
-
-
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.
-
-
-
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)
.
-
-