Class SlotReport
- java.lang.Object
-
- org.apache.flink.runtime.taskexecutor.SlotReport
-
- All Implemented Interfaces:
Serializable,Iterable<SlotStatus>
public class SlotReport extends Object implements Serializable, Iterable<SlotStatus>
A report about the current status of all slots of the TaskExecutor, describing which slots are available and allocated, and what jobs (JobManagers) the allocated slots have been allocated to.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SlotReport()SlotReport(Collection<SlotStatus> slotsStatus)SlotReport(SlotStatus slotStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumSlotStatus()booleanhasAllocatedSlot()Iterator<SlotStatus>iterator()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
SlotReport
public SlotReport()
-
SlotReport
public SlotReport(SlotStatus slotStatus)
-
SlotReport
public SlotReport(Collection<SlotStatus> slotsStatus)
-
-
Method Detail
-
getNumSlotStatus
public int getNumSlotStatus()
-
hasAllocatedSlot
public boolean hasAllocatedSlot()
-
iterator
public Iterator<SlotStatus> iterator()
- Specified by:
iteratorin interfaceIterable<SlotStatus>
-
-