Class SlotStatus
java.lang.Object
org.apache.flink.runtime.taskexecutor.SlotStatus
- All Implemented Interfaces:
Serializable
This describes the slot current status which located in TaskManager.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSlotStatus(SlotID slotID, ResourceProfile resourceProfile) SlotStatus(SlotID slotID, ResourceProfile resourceProfile, org.apache.flink.api.common.JobID jobID, AllocationID allocationID) -
Method Summary
-
Constructor Details
-
SlotStatus
-
SlotStatus
public SlotStatus(SlotID slotID, ResourceProfile resourceProfile, org.apache.flink.api.common.JobID jobID, AllocationID allocationID)
-
-
Method Details
-
getSlotID
Get the unique identification of this slot.- Returns:
- The slot id
-
getResourceProfile
Get the resource profile of this slot.- Returns:
- The resource profile
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-