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.
-
-
-
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
-
-