public final class ResourceEstimatorUtil
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static <T> T |
createProviderInstance(org.apache.hadoop.conf.Configuration conf,
java.lang.String configuredClassName,
java.lang.String defaultValue,
java.lang.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,
java.lang.String configuredClassName,
java.lang.String defaultValue,
java.lang.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 © 2008–2025 Apache Software Foundation. All rights reserved.