public final class ResourceEstimatorUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createProviderInstance(org.apache.hadoop.conf.Configuration conf,
String configuredClassName,
String defaultValue,
Class<T> type)
Helper method to create instances of Object using the class name specified
in the configuration object.
|
public static <T> T createProviderInstance(org.apache.hadoop.conf.Configuration conf,
String configuredClassName,
String defaultValue,
Class<T> type)
throws ResourceEstimatorException
T - The type of the instance to createconf - the yarn configurationconfiguredClassName - the configuration provider keydefaultValue - the default implementation classtype - the required interface/base classResourceEstimatorException - if the provider initialization fails.Copyright © 2019 Apache Software Foundation. All Rights Reserved.