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 CsiAdaptorPlugin
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.