@ThreadSafe
public final class Master
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
Master(java.io.File logsDir,
java.util.Map<PropertyKey,java.lang.String> properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.util.Map<PropertyKey,java.lang.String> |
getConf() |
void |
start()
Launches the master process.
|
void |
updateConf(PropertyKey key,
java.lang.String value)
Updates the master's configuration.
|
public Master(java.io.File logsDir,
java.util.Map<PropertyKey,java.lang.String> properties)
throws java.io.IOException
logsDir - logs directoryproperties - alluxio propertiesjava.io.IOExceptionpublic void updateConf(PropertyKey key, @Nullable java.lang.String value)
key - the conf key to updatevalue - the value to set, or null to unset the keypublic void start()
public java.util.Map<PropertyKey,java.lang.String> getConf()
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © 2021. All Rights Reserved.