public class MonitorLoggingStore extends java.lang.Object implements LoggingStore
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PERSISTED_LOGS_FILENAME |
| Modifier and Type | Method and Description |
|---|---|
static MonitorLoggingStore |
getInstance() |
java.util.List<ExternalLog> |
readAndClearStore()
The file will be deleted no matter if the logs are fetched from the file successfully,
to avoid that we re-send the same logs
|
void |
saveLogsToDisk(java.util.List<ExternalLog> logs)
We will delete the file if there is any exception thrown.
|
public static final java.lang.String PERSISTED_LOGS_FILENAME
public static MonitorLoggingStore getInstance()
public java.util.List<ExternalLog> readAndClearStore()
readAndClearStore in interface LoggingStorepublic void saveLogsToDisk(java.util.List<ExternalLog> logs)
saveLogsToDisk in interface LoggingStorelogs - List of Externallog which should be written into disk