Class ResourceNameNormalizer


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

      • ResourceNameNormalizer

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

      • 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()