use of org.opensmartgridplatform.domain.core.valueobjects.AddRtuDeviceRequest in project open-smart-grid-platform by OSGP.
the class AddDeviceRequestMessageProcessor method processMessage.
@Override
public void processMessage(final ObjectMessage message) throws JMSException {
final MessageMetadata deviceMessageMetadata = MessageMetadata.fromMessage(message);
final AddRtuDeviceRequest addRtuDeviceRequest = (AddRtuDeviceRequest) message.getObject();
try {
this.deviceManagementService.addDevice(deviceMessageMetadata, addRtuDeviceRequest);
} catch (final FunctionalException e) {
this.handleError(e, deviceMessageMetadata.getCorrelationUid(), deviceMessageMetadata.getOrganisationIdentification(), deviceMessageMetadata.getDeviceIdentification(), deviceMessageMetadata.getMessageType());
}
}
Aggregations