- <init>
Copy constructor.
- add
- calculateAveragePercentageUsedBy
Calculate the average resource usage percentage with this being the total
resources and used being t
- calculateMinPercentageUsedBy
Calculate the minimum resource usage percentage with this being the total
resources and used being t
- couldHoldIgnoringSharedMemory
A simple sanity check to see if all of the resources in this would be large
enough to hold the resou
- getTotalCpu
Get the total amount of cpu.
- remove
- toNormalizedMap
Return a Map of the normalized resource name to a double. This should only be
used when returning th
- areAnyOverZero
Are any of the resources positive.
- clear
Set all resources to 0.
- resetResourceNames
This is for testing only. It allows a test to reset the static state relating to
resource names. We
- throwBecauseUsedIsNotSubsetOfTotal