use of com.alliander.osgp.adapter.protocol.iec61850.infra.messaging.Iec61850LogItemRequestMessage in project Protocol-Adapter-IEC61850 by OSGP.
the class DeviceMessageLoggingService method logMessage.
public static void logMessage(final DeviceMessageLog deviceMessageLog, final String deviceIdentification, final String organisationIdentification, final boolean incoming) {
final Iec61850LogItemRequestMessage iec61850LogItemRequestMessage = new Iec61850LogItemRequestMessage(deviceIdentification, organisationIdentification, incoming, true, deviceMessageLog.getMessage(), 0);
LOGGER.info("Sending iec61850LogItemRequestMessage for device: {}", deviceIdentification);
iec61850LogItemRequestMessageSender.send(iec61850LogItemRequestMessage);
}
use of com.alliander.osgp.adapter.protocol.iec61850.infra.messaging.Iec61850LogItemRequestMessage in project Protocol-Adapter-IEC61850 by OSGP.
the class DeviceMessageLoggingService method logMessage.
public static void logMessage(final DeviceRequest deviceRequest, final boolean incoming, final boolean valid, final String message, final int size) {
final String deviceIdentification = deviceRequest.getDeviceIdentification();
final String organisationIdentification = deviceRequest.getOrganisationIdentification();
final String command = deviceRequest.getClass().getSimpleName();
final Iec61850LogItemRequestMessage iec61850LogItemRequestMessage = new Iec61850LogItemRequestMessage(deviceIdentification, organisationIdentification, incoming, valid, command + " - " + message, size);
LOGGER.info("Sending iec61850LogItemRequestMessage for device: {}", deviceIdentification);
iec61850LogItemRequestMessageSender.send(iec61850LogItemRequestMessage);
}
use of com.alliander.osgp.adapter.protocol.iec61850.infra.messaging.Iec61850LogItemRequestMessage in project Protocol-Adapter-IEC61850 by OSGP.
the class Iec61850ChannelHandler method logMessage.
protected void logMessage(final RegisterDeviceRequest message) {
final Iec61850LogItemRequestMessage iec61850LogItemRequestMessage = new Iec61850LogItemRequestMessage(message.getDeviceIdentification(), true, message.isValid(), message, message.getSize());
this.iec61850LogItemRequestMessageSender.send(iec61850LogItemRequestMessage);
}
Aggregations