Uses of Class
org.apache.storm.scheduler.resource.normalization.NormalizedResources
Packages that use NormalizedResources
-
Uses of NormalizedResources in org.apache.storm.scheduler.resource.normalization
Methods in org.apache.storm.scheduler.resource.normalization that return NormalizedResourcesModifier and TypeMethodDescriptionNormalizedResourceOffer.getNormalizedResources()NormalizedResourceRequest.getNormalizedResources()NormalizedResourcesWithMemory.getNormalizedResources()Methods in org.apache.storm.scheduler.resource.normalization with parameters of type NormalizedResourcesModifier and TypeMethodDescriptionvoidNormalizedResources.add(NormalizedResources other) doubleNormalizedResources.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.doubleNormalizedResources.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.booleanNormalizedResources.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.booleanNormalizedResources.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.booleanNormalizedResources.remove(NormalizedResources other, ResourceMetrics resourceMetrics) Remove the other resources from this.voidNormalizedResources.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