Package org.apache.storm.scheduler.resource.normalization

## 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 Summary

    Constructors
    Constructor | Description
    --- | ---
    `ResourceNameNormalizer()` | Creates a new resource name normalizer.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Map<String,​String>` | `getResourceNameMapping()` |
    `Map<String,​Double>` | `normalizedResourceMap​(Map<String,​? extends Number> resourceMap)` | Normalizes a supervisor resource map or topology details map's keys to universal resource names.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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