Class SlotStatus
- java.lang.Object
-
- org.apache.flink.runtime.taskexecutor.SlotStatus
-
- All Implemented Interfaces:
Serializable
public class SlotStatus extends Object implements Serializable
This describes the slot current status which located in TaskManager.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SlotStatus(SlotID slotID, ResourceProfile resourceProfile)
SlotStatus(SlotID slotID, ResourceProfile resourceProfile, JobID jobID, AllocationID allocationID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
AllocationID
getAllocationID()
Get the allocation id of this slot.JobID
getJobID()
Get the job id of the slot allocated for.ResourceProfile
getResourceProfile()
Get the resource profile of this slot.SlotID
getSlotID()
Get the unique identification of this slot.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
SlotStatus
public SlotStatus(SlotID slotID, ResourceProfile resourceProfile)
-
SlotStatus
public SlotStatus(SlotID slotID, ResourceProfile resourceProfile, JobID jobID, AllocationID allocationID)
-
-
Method Detail
-
getSlotID
public SlotID getSlotID()
Get the unique identification of this slot.- Returns:
- The slot id
-
getResourceProfile
public ResourceProfile getResourceProfile()
Get the resource profile of this slot.- Returns:
- The resource profile
-
getAllocationID
public AllocationID getAllocationID()
Get the allocation id of this slot.- Returns:
- The allocation id if this slot is allocated, otherwise null
-
getJobID
public JobID getJobID()
Get the job id of the slot allocated for.- Returns:
- The job id if this slot is allocated, otherwise null
-
-