Class PhysicalSlotRequest
- java.lang.Object
-
- org.apache.flink.runtime.jobmaster.slotpool.PhysicalSlotRequest
-
- All Implemented Interfaces:
WeightLoadable
public class PhysicalSlotRequest extends Object implements WeightLoadable
Represents a request for a physical slot.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhysicalSlotRequest.ResultResult of aPhysicalSlotRequest.
-
Constructor Summary
Constructors Constructor Description PhysicalSlotRequest(SlotRequestId slotRequestId, SlotProfile slotProfile, LoadingWeight loadingWeight, boolean slotWillBeOccupiedIndefinitely)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadingWeightgetLoading()Get the loading weight.ResourceProfilegetPhysicalSlotResourceProfile()SlotProfilegetSlotProfile()SlotRequestIdgetSlotRequestId()booleanwillSlotBeOccupiedIndefinitely()
-
-
-
Constructor Detail
-
PhysicalSlotRequest
public PhysicalSlotRequest(SlotRequestId slotRequestId, SlotProfile slotProfile, LoadingWeight loadingWeight, boolean slotWillBeOccupiedIndefinitely)
-
-
Method Detail
-
getSlotRequestId
public SlotRequestId getSlotRequestId()
-
getSlotProfile
public SlotProfile getSlotProfile()
-
getPhysicalSlotResourceProfile
public ResourceProfile getPhysicalSlotResourceProfile()
-
willSlotBeOccupiedIndefinitely
public boolean willSlotBeOccupiedIndefinitely()
-
getLoading
@Nonnull public LoadingWeight getLoading()
Description copied from interface:WeightLoadableGet the loading weight.- Specified by:
getLoadingin interfaceWeightLoadable- Returns:
- An implementation object of
LoadingWeight.
-
-