public class AlluxioLogServerProcess extends Object implements Process
AlluxioLogServerProcess
allows masters and workers to "push" their logs to a
centralized log server where another copy of the logs will be stored.Modifier and Type | Field and Description |
---|---|
static String |
LOGSERVER_CLIENT_LOGGER_APPENDER_NAME
Name of the appender used by log server to perform actual logging of messages received from
remote Alluxio servers.
|
Constructor and Description |
---|
AlluxioLogServerProcess(String baseLogsDir)
Constructs an
AlluxioLogServerProcess instance. |
Modifier and Type | Method and Description |
---|---|
void |
start()
Starts the Alluxio process.
|
void |
stop()
Stops the Alluxio process, blocking until the action is completed.
|
boolean |
waitForReady(int timeoutMs)
Waits until the process is ready to serve requests.
|
public static final String LOGSERVER_CLIENT_LOGGER_APPENDER_NAME
public AlluxioLogServerProcess(String baseLogsDir)
AlluxioLogServerProcess
instance.baseLogsDir
- base directory to store the logs pushed from remote Alluxio serverspublic void start() throws Exception
Process.stop()
.
The Process.waitForReady(int)
method can be used to make sure that the process is ready to
serve requests.
Creates and starts logging server and client thread pool.public void stop() throws Exception
AlluxioLogServerProcess
.
Close the server socket, shutdown the thread pool, stop accepting new requests,
and blocks until all worker threads terminate.public boolean waitForReady(int timeoutMs)
Process
waitForReady
in interface Process
timeoutMs
- how long to wait in millisecondsCopyright © 2023. All Rights Reserved.