@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(org.apache.hadoop.conf.Configuration bootstrapConf,
                           String name)Opens an InputStream at the indicated file. | 
| void | init(org.apache.hadoop.conf.Configuration bootstrapConf) | 
| abstract void | initInternal(org.apache.hadoop.conf.Configuration bootstrapConf)Derived classes initialize themselves using this method. | 
public void init(org.apache.hadoop.conf.Configuration bootstrapConf)
          throws Exception
Exceptionpublic abstract InputStream getConfigurationInputStream(org.apache.hadoop.conf.Configuration bootstrapConf, String name) throws YarnException, IOException
bootstrapConf - Configuration.name - The configuration file name.YarnException - exceptions from yarn servers.IOException - io error occur.public abstract void initInternal(org.apache.hadoop.conf.Configuration bootstrapConf)
                           throws Exception
bootstrapConf - bootstrap configuration.Exception - exception occur.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.