Class CPUResource
- java.lang.Object
-
- org.apache.flink.api.common.resources.Resource<CPUResource>
-
- org.apache.flink.api.common.resources.CPUResource
-
- All Implemented Interfaces:
Serializable,Comparable<Resource>
@Internal public class CPUResource extends Resource<CPUResource>
Represents CPU resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CPUResource(double value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPUResourcecreate(BigDecimal value)Create a new instance of the sub resource.StringtoHumanReadableString()
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public CPUResource create(BigDecimal value)
Description copied from class:ResourceCreate a new instance of the sub resource.- Specified by:
createin classResource<CPUResource>- Parameters:
value- The value of the resource- Returns:
- A new instance of the sub resource
-
toHumanReadableString
public String toHumanReadableString()
-
-