@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class ConfigurationProvider extends Object
| Constructor and Description |
|---|
ConfigurationProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
abstract void |
closeInternal()
Derived classes close themselves using this method.
|
abstract InputStream |
getConfigurationInputStream(Configuration bootstrapConf,
String name)
Opens an InputStream at the indicated file
|
void |
init(Configuration bootstrapConf) |
abstract void |
initInternal(Configuration bootstrapConf)
Derived classes initialize themselves using this method.
|
public void init(Configuration bootstrapConf) throws Exception
Exceptionpublic abstract InputStream getConfigurationInputStream(Configuration bootstrapConf, String name) throws YarnException, IOException
bootstrapConf - Configurationname - The configuration file nameYarnExceptionIOExceptionpublic abstract void initInternal(Configuration bootstrapConf) throws Exception
ExceptionCopyright © 2018 CERN. All Rights Reserved.