Class CPUFeature
- java.lang.Object
-
- es.bsc.dataclay.util.management.classmgr.features.Feature
-
- es.bsc.dataclay.util.management.classmgr.features.QuantitativeFeature
-
- es.bsc.dataclay.util.management.classmgr.features.CPUFeature
-
- All Implemented Interfaces:
Comparable<QuantitativeFeature>
public final class CPUFeature extends QuantitativeFeature
This class represents all CPU Features (amount of cpus,...).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class es.bsc.dataclay.util.management.classmgr.features.Feature
Feature.FeatureType
-
-
Constructor Summary
Constructors Constructor Description CPUFeature()Empty constructor for deserialization.CPUFeature(int amountOfCPUs)Creates a new CPUFeature with the given amount of CPUs
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(QuantitativeFeature o)booleanequals(Object obj)intgetAmount()UUIDgetId()inthashCode()voidsetAmount(int newAmt)voidsetId(UUID theid)StringtoString()
-
-
-
Method Detail
-
getAmount
public int getAmount()
- Returns:
- the amount of CPUs
-
setAmount
public void setAmount(int newAmt)
- Parameters:
newAmt- the number of CPUs to be set
-
compareTo
public int compareTo(QuantitativeFeature o)
-
getId
public UUID getId()
- Returns:
- the id
-
setId
public void setId(UUID theid)
- Parameters:
theid- the id to set
-
-