public class MonitorLoggingManager extends java.lang.Object implements LoggingManager
| Modifier and Type | Method and Description |
|---|---|
void |
addLog(ExternalLog log) |
void |
flushAndWait()
Send logs from LoggingCache to server, and empty LoggingCache
|
void |
flushLoggingStore()
Read logs from the file, delete the file and send the logs to the server
|
static MonitorLoggingManager |
getInstance(LoggingCache monitorLoggingQueue,
LoggingStore logStore) |
public static MonitorLoggingManager getInstance(LoggingCache monitorLoggingQueue, LoggingStore logStore)
public void addLog(ExternalLog log)
addLog in interface LoggingManagerpublic void flushAndWait()
LoggingManagerflushAndWait in interface LoggingManagerpublic void flushLoggingStore()
LoggingManagerflushLoggingStore in interface LoggingManager