public class ConfigurationEditor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ENV_FILE
Name of the shell script containing JVM configuration.
|
static String |
LOG_FILE
Name of the log4j properties file.
|
static String |
SITE_PROPERTIES
Name of the site properties file.
|
Constructor and Description |
---|
ConfigurationEditor(String siteConfDirs)
Creates a new editor.
|
Modifier and Type | Method and Description |
---|---|
Path |
getEnvSh() |
Path |
getLogProps() |
Path |
getSiteProperties() |
AlluxioConfigurationSet |
readConf()
Reads the Alluxio configuration given the reader's configuration.
|
void |
writeConf(AlluxioConfigurationSet conf)
Writes out the given configuration to disk.
|
public static final String ENV_FILE
public static final String LOG_FILE
public static final String SITE_PROPERTIES
public ConfigurationEditor(String siteConfDirs)
siteConfDirs
- a comma-delimited list of paths to search for Alluxio configuration filespublic Path getSiteProperties()
@Nullable public Path getEnvSh()
public Path getLogProps()
public AlluxioConfigurationSet readConf() throws IOException
AlluxioConfigurationSet
IOException
- if reading any of the configuration files failspublic void writeConf(AlluxioConfigurationSet conf) throws IOException
IOException
, but will not undo or roll-back
any changes made to the files over the course of this function.conf
- the configuration to writeIOException
- if any failures occur while writingCopyright © 2023. All Rights Reserved.