public final class CsiAdaptorFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.yarn.api.CsiAdaptorPlugin |
getAdaptor(String driverName,
org.apache.hadoop.conf.Configuration conf)
Load csi-driver-adaptor from configuration.
|
public static org.apache.hadoop.yarn.api.CsiAdaptorPlugin getAdaptor(String driverName, org.apache.hadoop.conf.Configuration conf) throws org.apache.hadoop.yarn.exceptions.YarnException
DefaultCsiAdaptorImpl. If the configured class
is not a valid variation of CsiAdaptorPlugin or the class cannot
be found, this function will throw a RuntimeException.driverName - conf - org.apache.hadoop.yarn.exceptions.YarnException - if unable to create the adaptor class.RuntimeException - if given class is not found or not
an instance of CsiAdaptorPluginCopyright © 2008–2023 Apache Software Foundation. All rights reserved.