Uses of Class
org.apache.storm.scheduler.resource.normalization.NormalizedResources
-
Uses of NormalizedResources in org.apache.storm.scheduler.resource.normalization
Modifier and TypeMethodDescriptionNormalizedResourceOffer.getNormalizedResources()
NormalizedResourceRequest.getNormalizedResources()
NormalizedResourcesWithMemory.getNormalizedResources()
Modifier and TypeMethodDescriptionvoid
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.