@ThreadSafe public abstract class BaseMaster extends Object implements Closeable
Constructor and Description |
---|
BaseMaster(File logsDir,
Map<PropertyKey,Object> properties) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<PropertyKey,Object> |
getConf() |
void |
start()
Launches the master process.
|
void |
updateConf(PropertyKey key,
Object value)
Updates the master's configuration.
|
public BaseMaster(File logsDir, Map<PropertyKey,Object> properties) throws IOException
logsDir
- logs directoryproperties
- alluxio propertiesIOException
public void updateConf(PropertyKey key, @Nullable Object value)
key
- the conf key to updatevalue
- the value to set, or null to unset the keypublic void start()
public Map<PropertyKey,Object> getConf()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2023. All Rights Reserved.