public class ErrorLogMonitor extends java.lang.Object implements ILogMonitor
| Constructor and Description |
|---|
ErrorLogMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onConfigured(java.lang.String contentType,
java.lang.String contentEncoding)
Called when
LogController is set up and ready to work. |
void |
onEncoded(byte[] in,
byte[] out)
Called when HTTP message content has been encoded.
|
void |
onException(java.lang.Exception exception)
Called on any exception.
|
void |
onWorkerThreadExit(boolean isSoft)
Called when worker thread exits.
|
void |
send(byte[] message)
Called before sending given data to HTTP server.
|
void |
sendErr(int status,
java.lang.String message)
Handle send HTTP response error.
|
void |
sendOk(int status)
Called on HTTP server response with good status.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlogError, logInfopublic void onConfigured(java.lang.String contentType,
java.lang.String contentEncoding)
ILogMonitorLogController is set up and ready to work.onConfigured in interface ILogMonitorcontentType - Content type used by ILogCollector.contentEncoding - Content encoding used by ILogEncoder.public void onEncoded(byte[] in,
byte[] out)
ILogMonitoronEncoded in interface ILogMonitorin - Data before encoding.out - Data after encoding.public void send(byte[] message)
ILogMonitorsend in interface ILogMonitormessage - Data reference.public void sendOk(int status)
ILogMonitorsendOk in interface ILogMonitorstatus - HTTP status.public void sendErr(int status,
java.lang.String message)
ILogMonitorsendErr in interface ILogMonitorstatus - HTTP status code.message - HTTP status message.public void onException(java.lang.Exception exception)
ILogMonitoronException in interface ILogMonitorexception - Exception reference.public void onWorkerThreadExit(boolean isSoft)
ILogMonitoronWorkerThreadExit in interface ILogMonitorisSoft - Tells whether worker thread has exited without interrupting.