@NotThreadSafe public final class LocalAlluxioMaster extends Object
LocalAlluxioCluster
and MultiMasterLocalAlluxioCluster
.
Isolated is defined as having its own root directory, and port.Modifier and Type | Method and Description |
---|---|
void |
clearClients()
Clears all the clients.
|
static LocalAlluxioMaster |
create()
Creates a new local Alluxio master with an isolated work directory and port.
|
static LocalAlluxioMaster |
create(String workDirectory)
Creates a new local Alluxio master with a isolated port.
|
InetSocketAddress |
getAddress() |
FileSystem |
getClient() |
FileSystem |
getClient(FileSystemContext context) |
String |
getJournalFolder() |
AlluxioMasterProcess |
getMasterProcess() |
int |
getRpcLocalPort()
Gets the actual port that the RPC service is listening on.
|
String |
getUri() |
boolean |
isServing() |
void |
start()
Starts the master.
|
void |
stop()
Stops the master processes and cleans up client connections.
|
public static LocalAlluxioMaster create() throws IOException
IOException
public static LocalAlluxioMaster create(String workDirectory) throws IOException
workDirectory
- Alluxio work directory, this method will create it if it doesn't exist yetIOException
public void start()
public boolean isServing()
public void stop() throws Exception
Exception
public void clearClients() throws IOException
IOException
public InetSocketAddress getAddress()
public AlluxioMasterProcess getMasterProcess()
MasterProcess
public int getRpcLocalPort()
public String getUri()
public FileSystem getClient() throws IOException
IOException
public FileSystem getClient(FileSystemContext context) throws IOException
context
- the FileSystemContext to useIOException
public String getJournalFolder()
Copyright © 2023. All Rights Reserved.