|
Generated by JDiff |
|||||||
| PREV CLASS NEXT CLASS FRAMES NO FRAMES | DETAIL: CONSTRUCTORS | METHODS | FIELDS | |||||||
| Added Methods | |
int castToIntSafely(long) |
Convert long to int for a resource value safely. |
int compareTo(Resource) |
|
String getFormattedString() |
This method is to get memory in terms of KB|MB|GB. |
String getFormattedString(long) |
|
long getMemorySize() |
Get memory of the resource. |
ResourceInformation getResourceInformation(String) |
Get ResourceInformation for a specified resource. |
long getResourceValue(String) |
Get the value for a specified resource. |
ResourceInformation newDefaultInformation(String, |
Create ResourceInformation with basic fields. |
Resource newInstance(long, |
|
Resource newInstance(long, |
Create a new Resource instance with the given CPU and memory values and additional resource values as set in the {@code others} parameter. |
void setMemorySize(long) |
Set memory of the resource. |
void setResourceInformation(String, |
Set the ResourceInformation object for a particular resource. |
void setResourceValue(String, |
Set the value of a resource in the ResourceInformation object. |
void setResources(ResourceInformation[]) |
|
void throwExceptionWhenArrayOutOfBound(int) |
|
String toFormattedString() |
|
| Added Fields | |
int MEMORY_INDEX |
|
int VCORES_INDEX |
|
ResourceInformation[] resources |
|
|
||||||||
| PREV CLASS NEXT CLASS FRAMES NO FRAMES | ||||||||