Package alluxio.cli.hdfs
Class HadoopConfigurationFileParser
- java.lang.Object
-
- alluxio.cli.hdfs.HadoopConfigurationFileParser
-
public class HadoopConfigurationFileParser extends java.lang.ObjectParser for configuration files.
-
-
Constructor Summary
Constructors Constructor Description HadoopConfigurationFileParser()Constructs aHadoopConfigurationFileParserobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>parseXmlConfiguration(java.lang.String path)Parse an xml configuration file into a map.
-
-
-
Constructor Detail
-
HadoopConfigurationFileParser
public HadoopConfigurationFileParser()
Constructs aHadoopConfigurationFileParserobject.
-
-
Method Detail
-
parseXmlConfiguration
public java.util.Map<java.lang.String,java.lang.String> parseXmlConfiguration(java.lang.String path) throws java.io.IOExceptionParse an xml configuration file into a map. Referred to https://www.mkyong.com/java/how-to-read-xml-file-in-java-dom-parser/- Parameters:
path- path to the xml file- Returns:
- Map from property names to values
- Throws:
java.io.IOException
-
-