public class ExternalResourceUtils extends Object
Modifier and Type | Method and Description |
---|---|
static ExternalResourceInfoProvider |
createStaticExternalResourceInfoProvider(Map<String,Long> externalResourceAmountMap,
Map<String,ExternalResourceDriver> externalResourceDrivers)
Instantiate
StaticExternalResourceInfoProvider for all of enabled external resources. |
static Map<String,ExternalResourceDriver> |
externalResourceDriversFromConfig(Configuration config,
PluginManager pluginManager)
Instantiate the
ExternalResourceDrivers for all of enabled
external resources. |
static Map<String,Long> |
getExternalResourceAmountMap(Configuration config)
Get the map of resource name and amount of all of enabled external resources.
|
static Map<String,Long> |
getExternalResources(Configuration config,
String suffix)
Get the external resources map.
|
public static Map<String,Long> getExternalResources(Configuration config, String suffix)
config
- Configurationssuffix
- suffix of config option for deployment specific configuration keypublic static Map<String,Long> getExternalResourceAmountMap(Configuration config)
public static Map<String,ExternalResourceDriver> externalResourceDriversFromConfig(Configuration config, PluginManager pluginManager)
ExternalResourceDrivers
for all of enabled
external resources. ExternalResourceDrivers
are mapped to its
resource name.public static ExternalResourceInfoProvider createStaticExternalResourceInfoProvider(Map<String,Long> externalResourceAmountMap, Map<String,ExternalResourceDriver> externalResourceDrivers)
StaticExternalResourceInfoProvider
for all of enabled external resources.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.