Package org.apache.hadoop.yarn.conf
Class ConfigurationProvider
java.lang.Object
org.apache.hadoop.yarn.conf.ConfigurationProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()abstract voidDerived classes close themselves using this method.abstract InputStreamgetConfigurationInputStream(org.apache.hadoop.conf.Configuration bootstrapConf, String name) Opens an InputStream at the indicated file.voidinit(org.apache.hadoop.conf.Configuration bootstrapConf) abstract voidinitInternal(org.apache.hadoop.conf.Configuration bootstrapConf) Derived classes initialize themselves using this method.
-
Constructor Details
-
ConfigurationProvider
public ConfigurationProvider()
-
-
Method Details
-
init
- Throws:
Exception
-
close
- 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- Configuration.name- The configuration file name.- Returns:
- configuration
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.
-
initInternal
public abstract void initInternal(org.apache.hadoop.conf.Configuration bootstrapConf) throws Exception Derived classes initialize themselves using this method.- Parameters:
bootstrapConf- bootstrap configuration.- Throws:
Exception- exception occur.
-
closeInternal
Derived classes close themselves using this method.- Throws:
Exception- exception occur.
-