public class SlotID extends Object implements ResourceIDRetrievable, Serializable
In contrast, the AllocationID
represents the a slot allocation and changes every time
the slot is allocated by a JobManager.
Constructor and Description |
---|
SlotID(ResourceID resourceId,
int slotNumber) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static SlotID |
getDynamicSlotID(ResourceID resourceID)
Get a SlotID without actual slot index for dynamic slot allocation.
|
ResourceID |
getResourceID()
Gets the ResourceID of the object.
|
int |
getSlotNumber() |
int |
hashCode() |
String |
toString() |
public SlotID(ResourceID resourceId, int slotNumber)
public ResourceID getResourceID()
ResourceIDRetrievable
getResourceID
in interface ResourceIDRetrievable
public int getSlotNumber()
public static SlotID getDynamicSlotID(ResourceID resourceID)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.