public class DummyLogSender extends java.lang.Object implements ILogSender
ILogSender for testing purposes.| Constructor and Description |
|---|
DummyLogSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(LogSenderSettings logSenderSettings,
ILogMonitor logMonitor)
Configures this sender.
|
void |
send(byte[] message)
Creates connection and sends given data by HTTP request.
|
public void configure(LogSenderSettings logSenderSettings, ILogMonitor logMonitor)
ILogSenderLogController when all parameters are determined.
This method should be idempotent.
Method ILogSender.send(byte[]) cannot be called without foregoing configuration.
configure in interface ILogSenderlogSenderSettings - LogSenderSettings instance.logMonitor - ILogMonitor used for diagnostics and error handling.public void send(byte[] message)
ILogSenderILogMonitor methods pointing what's the request data and HTTP response result.send in interface ILogSendermessage - Data to send in HTTP request content.