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:
  • Constructor Details

  • Method Details

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object