Package org.apache.flink.runtime.slots
Class ResourceRequirement
- java.lang.Object
-
- org.apache.flink.runtime.slots.ResourceRequirement
-
- All Implemented Interfaces:
Serializable
public class ResourceRequirement extends Object implements Serializable
Represents the number of required resources for a specificResourceProfile
.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceRequirement
create(ResourceProfile resourceProfile, int numberOfRequiredSlots)
boolean
equals(Object o)
int
getNumberOfRequiredSlots()
ResourceProfile
getResourceProfile()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getResourceProfile
public ResourceProfile getResourceProfile()
-
getNumberOfRequiredSlots
public int getNumberOfRequiredSlots()
-
create
public static ResourceRequirement create(ResourceProfile resourceProfile, int numberOfRequiredSlots)
-
-