@NotThreadSafe
public final class LocalAlluxioMaster
extends java.lang.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(java.lang.String workDirectory)
Creates a new local Alluxio master with a isolated port.
|
java.net.InetSocketAddress |
getAddress() |
FileSystem |
getClient() |
FileSystem |
getClient(FileSystemContext context) |
java.lang.String |
getJournalFolder() |
AlluxioMasterProcess |
getMasterProcess() |
int |
getRpcLocalPort()
Gets the actual port that the RPC service is listening on.
|
java.lang.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 java.io.IOException
java.io.IOExceptionpublic static LocalAlluxioMaster create(java.lang.String workDirectory) throws java.io.IOException
workDirectory - Alluxio work directory, this method will create it if it doesn't exist yetjava.io.IOExceptionpublic void start()
public boolean isServing()
public void stop()
throws java.lang.Exception
java.lang.Exceptionpublic void clearClients()
throws java.io.IOException
java.io.IOExceptionpublic java.net.InetSocketAddress getAddress()
public AlluxioMasterProcess getMasterProcess()
MasterProcesspublic int getRpcLocalPort()
public java.lang.String getUri()
public FileSystem getClient() throws java.io.IOException
java.io.IOExceptionpublic FileSystem getClient(FileSystemContext context) throws java.io.IOException
context - the FileSystemContext to usejava.io.IOExceptionpublic java.lang.String getJournalFolder()
Copyright © 2023. All Rights Reserved.