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, org.apache.flink.api.common.JobID jobID, AllocationID allocationID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)AllocationIDgetAllocationID()Get the allocation id of this slot.org.apache.flink.api.common.JobIDgetJobID()Get the job id of the slot allocated for.ResourceProfilegetResourceProfile()Get the resource profile of this slot.SlotIDgetSlotID()Get the unique identification of this slot.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
SlotStatus
public SlotStatus(SlotID slotID, ResourceProfile resourceProfile)
-
SlotStatus
public SlotStatus(SlotID slotID, ResourceProfile resourceProfile, org.apache.flink.api.common.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 org.apache.flink.api.common.JobID getJobID()
Get the job id of the slot allocated for.- Returns:
- The job id if this slot is allocated, otherwise null
-
-