Class ResourceNameNormalizer

java.lang.Object
org.apache.storm.scheduler.resource.normalization.ResourceNameNormalizer

public class ResourceNameNormalizer extends Object
Provides resource name normalization for resource maps.
  • Constructor Details

    • ResourceNameNormalizer

      public ResourceNameNormalizer()
      Creates a new resource name normalizer.
  • Method Details

    • normalizedResourceMap

      public Map<String,Double> normalizedResourceMap(Map<String,? extends Number> resourceMap)
      Normalizes a supervisor resource map or topology details map's keys to universal resource names.
      Parameters:
      resourceMap - resource map of either Supervisor or Topology
      Returns:
      the resource map with common resource names
    • getResourceNameMapping

      public Map<String,String> getResourceNameMapping()