public class ResourceUtils extends Object
Constructor and Description |
---|
ResourceUtils() |
Modifier and Type | Method and Description |
---|---|
static NormalizedResourceRequest |
getBoltResources(StormTopology topology,
Map<String,Object> topologyConf,
String componentId) |
static Map<String,NormalizedResourceRequest> |
getBoltsResources(StormTopology topology,
Map<String,Object> topologyConf) |
static String |
getCorrespondingLegacyResourceName(String normalizedResourceName) |
static String |
getJsonWithUpdatedResources(String jsonConf,
Map<String,Double> resourceUpdates) |
static NormalizedResourceRequest |
getSpoutResources(StormTopology topology,
Map<String,Object> topologyConf,
String componentId) |
static Map<String,NormalizedResourceRequest> |
getSpoutsResources(StormTopology topology,
Map<String,Object> topologyConf) |
static void |
updateStormTopologyResources(StormTopology topology,
Map<String,Map<String,Double>> resourceUpdatesMap) |
public static NormalizedResourceRequest getBoltResources(StormTopology topology, Map<String,Object> topologyConf, String componentId)
public static Map<String,NormalizedResourceRequest> getBoltsResources(StormTopology topology, Map<String,Object> topologyConf)
public static NormalizedResourceRequest getSpoutResources(StormTopology topology, Map<String,Object> topologyConf, String componentId)
public static Map<String,NormalizedResourceRequest> getSpoutsResources(StormTopology topology, Map<String,Object> topologyConf)
public static void updateStormTopologyResources(StormTopology topology, Map<String,Map<String,Double>> resourceUpdatesMap)
public static String getCorrespondingLegacyResourceName(String normalizedResourceName)
Copyright © 2020 The Apache Software Foundation. All rights reserved.