public class AlluxioLogServerProcess extends java.lang.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 java.lang.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(java.lang.String baseLogsDir)
Constructs an
AlluxioLogServerProcess instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
start()
Creates and starts logging server and client thread pool.
|
void |
stop()
Stops the main thread of
AlluxioLogServerProcess. |
boolean |
waitForReady(int timeoutMs) |
public static final java.lang.String LOGSERVER_CLIENT_LOGGER_APPENDER_NAME
public AlluxioLogServerProcess(java.lang.String baseLogsDir)
AlluxioLogServerProcess instance.baseLogsDir - base directory to store the logs pushed from remote Alluxio serverspublic void start()
throws java.lang.Exception
public void stop()
throws java.lang.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)
waitForReady in interface ProcessCopyright © 2021. All Rights Reserved.