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()
Creates and starts logging server and client thread pool.
|
void |
stop()
Stops the main thread of
AlluxioLogServerProcess. |
void |
waitForReady() |
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
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 void waitForReady()
waitForReady in interface ProcessCopyright © 2017. All Rights Reserved.