public class AllocationID extends AbstractID
This ID is used by the TaskManager and ResourceManager to track and synchronize which slots are allocated to which JobManager and which are free.
In contrast to this AllocationID, the
is used when a task requests a logical slot from the SlotPool. Multiple logical slot requests can
map to one physical slot request (due to slot sharing).
lowerPart, SIZE, upperPart
|Constructor and Description|
Constructs a new random AllocationID.
Constructs a new AllocationID with the given parts.
|Modifier and Type||Method and Description|
compareTo, equals, getBytes, getLowerPart, getUpperPart, hashCode, toHexString, toString
public AllocationID(long lowerPart, long upperPart)
lowerPart- the lower bytes of the ID
upperPart- the higher bytes of the ID
public static AllocationID fromHexString(String hexString)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.