## Uses of Class
org.apache.storm.scheduler.resource.normalization.NormalizedResources

- Packages that use NormalizedResources
  Package | Description
  --- | ---
  org.apache.storm.scheduler.resource.normalization |

- - ### Uses of NormalizedResources in org.apache.storm.scheduler.resource.normalization

    Methods in org.apache.storm.scheduler.resource.normalization that return NormalizedResources
    Modifier and Type | Method | Description
    --- | --- | ---
    `NormalizedResources` | NormalizedResourceOffer.`getNormalizedResources()` |
    `NormalizedResources` | NormalizedResourceRequest.`getNormalizedResources()` |
    `NormalizedResources` | NormalizedResourcesWithMemory.`getNormalizedResources()` |

    Methods in org.apache.storm.scheduler.resource.normalization with parameters of type NormalizedResources
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | NormalizedResources.`add​(NormalizedResources other)` |
    `double` | NormalizedResources.`calculateAveragePercentageUsedBy​(NormalizedResources used, double totalMemoryMb, double usedMemoryMb)` | Calculate the average resource usage percentage with this being the total resources and used being the amounts used.
    `double` | NormalizedResources.`calculateMinPercentageUsedBy​(NormalizedResources used, double totalMemoryMb, double usedMemoryMb)` | Calculate the minimum resource usage percentage with this being the total resources and used being the amounts used.
    `boolean` | NormalizedResources.`couldHoldIgnoringSharedMemory​(NormalizedResources other, double thisTotalMemoryMb, double otherTotalMemoryMb)` | A simple sanity check to see if all of the resources in this would be large enough to hold the resources in other ignoring memory.
    `boolean` | NormalizedResources.`couldHoldIgnoringSharedMemoryAndCpu​(NormalizedResources other, double thisTotalMemoryMb, double otherTotalMemoryMb)` | A simple sanity check to see if all of the resources in this would be large enough to hold the resources in other ignoring memory.
    `boolean` | NormalizedResources.`remove​(NormalizedResources other, ResourceMetrics resourceMetrics)` | Remove the other resources from this.
    `void` | NormalizedResources.`updateForRareResourceAffinity​(NormalizedResources request)` | If a node or rack has a kind of resource not in a request, make that resource negative so when sorting that node or rack will be less likely to be selected.

    Constructors in org.apache.storm.scheduler.resource.normalization with parameters of type NormalizedResources
    Constructor | Description
    --- | ---
    `NormalizedResources​(NormalizedResources other)` | Copy constructor.