Package alluxio.multi.process
Class BaseMaster
- java.lang.Object
-
- alluxio.multi.process.BaseMaster
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
Master
@ThreadSafe public abstract class BaseMaster extends java.lang.Object implements java.io.CloseableClass for running and interacting with an Alluxio master in a separate process.
-
-
Constructor Summary
Constructors Constructor Description BaseMaster(java.io.File logsDir, java.util.Map<alluxio.conf.PropertyKey,java.lang.Object> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.util.Map<alluxio.conf.PropertyKey,java.lang.Object>getConf()voidstart()Launches the master process.voidupdateConf(alluxio.conf.PropertyKey key, java.lang.Object value)Updates the master's configuration.
-
-
-
Method Detail
-
updateConf
public void updateConf(alluxio.conf.PropertyKey key, @Nullable java.lang.Object value)Updates the master's configuration. This update will take effect the next time the master is started.- Parameters:
key- the conf key to updatevalue- the value to set, or null to unset the key
-
start
public void start()
Launches the master process.
-
getConf
public java.util.Map<alluxio.conf.PropertyKey,java.lang.Object> getConf()
- Returns:
- the configuration used by this master
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-