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 SlotRequestId
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 |
---|
AllocationID()
Constructs a new random AllocationID.
|
AllocationID(long lowerPart,
long upperPart)
Constructs a new AllocationID with the given parts.
|
Modifier and Type | Method and Description |
---|---|
static AllocationID |
fromHexString(String hexString) |
compareTo, equals, getBytes, getLowerPart, getUpperPart, hashCode, toHexString, toString
public AllocationID()
public AllocationID(long lowerPart, long upperPart)
lowerPart
- the lower bytes of the IDupperPart
- the higher bytes of the IDpublic static AllocationID fromHexString(String hexString)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.