public abstract class ResourceAmounts extends Object
Modifier and Type | Field and Description |
---|---|
static int |
RESOURCE_TYPE_COUNT
If you add or remove resource types above please make sure you update the number below.
|
Constructor and Description |
---|
ResourceAmounts() |
Modifier and Type | Method and Description |
---|---|
boolean |
allValuesLessThanOrEqual(ResourceAmounts amounts) |
ResourceAmounts |
append(ResourceAmounts amounts) |
boolean |
containsValuesLessThan(ResourceAmounts amounts) |
abstract int |
getCpu() |
abstract int |
getDiskIO() |
abstract int |
getMemory() |
abstract int |
getNetworkIO() |
static ResourceAmounts |
of() |
static ResourceAmounts |
of(int cpu,
int memory,
int diskIO,
int networkIO) |
ResourceAmounts |
subtract(ResourceAmounts amounts) |
static ResourceAmounts |
zero() |
public static final int RESOURCE_TYPE_COUNT
public abstract int getCpu()
public abstract int getMemory()
public abstract int getDiskIO()
public abstract int getNetworkIO()
public static ResourceAmounts zero()
public static ResourceAmounts of()
public static ResourceAmounts of(int cpu, int memory, int diskIO, int networkIO)
public ResourceAmounts append(ResourceAmounts amounts)
public ResourceAmounts subtract(ResourceAmounts amounts)
public boolean containsValuesLessThan(ResourceAmounts amounts)
public boolean allValuesLessThanOrEqual(ResourceAmounts amounts)