org.apache.hadoop.yarn.conf
Class ConfigurationProvider
java.lang.Object
org.apache.hadoop.yarn.conf.ConfigurationProvider
@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract class ConfigurationProvider
- extends Object
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationProvider
public ConfigurationProvider()
init
public void init(org.apache.hadoop.conf.Configuration bootstrapConf)
throws Exception
- Throws:
Exception
close
public void close()
throws Exception
- Throws:
Exception
getConfigurationInputStream
public abstract InputStream getConfigurationInputStream(org.apache.hadoop.conf.Configuration bootstrapConf,
String name)
throws YarnException,
IOException
- Opens an InputStream at the indicated file
- Parameters:
bootstrapConf - Configurationname - The configuration file name
- Returns:
- configuration
- Throws:
YarnException
IOException
initInternal
public abstract void initInternal(org.apache.hadoop.conf.Configuration bootstrapConf)
throws Exception
- Derived classes initialize themselves using this method.
- Throws:
Exception
closeInternal
public abstract void closeInternal()
throws Exception
- Derived classes close themselves using this method.
- Throws:
Exception
Copyright © 2014 Apache Software Foundation. All Rights Reserved.