Search in sources :

Example 11 with BundleMessagesRequestDto

use of org.opensmartgridplatform.dto.valueobjects.smartmetering.BundleMessagesRequestDto in project open-smart-grid-platform by OSGP.

the class BundleMessageProcessor method handleMessage.

@Override
protected Serializable handleMessage(final DlmsConnectionManager conn, final DlmsDevice device, final Serializable requestObject, final MessageMetadata messageMetadata) throws ProtocolAdapterException {
    this.assertRequestObjectType(BundleMessagesRequestDto.class, requestObject);
    final BundleMessagesRequestDto bundleMessagesRequest = (BundleMessagesRequestDto) requestObject;
    return this.bundleService.callExecutors(conn, device, bundleMessagesRequest, messageMetadata);
}
Also used : BundleMessagesRequestDto(org.opensmartgridplatform.dto.valueobjects.smartmetering.BundleMessagesRequestDto)

Aggregations

BundleMessagesRequestDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.BundleMessagesRequestDto)11 Test (org.junit.jupiter.api.Test)6 ActionDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.ActionDto)5 DlmsDevice (org.opensmartgridplatform.adapter.protocol.dlms.domain.entities.DlmsDevice)3 ActionResponseDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.ActionResponseDto)2 FindEventsRequestDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.FindEventsRequestDto)2 ArrayList (java.util.ArrayList)1 ConnectionException (org.opensmartgridplatform.adapter.protocol.dlms.exceptions.ConnectionException)1 ProtocolAdapterException (org.opensmartgridplatform.adapter.protocol.dlms.exceptions.ProtocolAdapterException)1 SmartMeter (org.opensmartgridplatform.domain.core.entities.SmartMeter)1 ClearAlarmRegisterRequestDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.ClearAlarmRegisterRequestDto)1 FaultResponseParameterDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.FaultResponseParameterDto)1 OsgpException (org.opensmartgridplatform.shared.exceptionhandling.OsgpException)1 MessageMetadata (org.opensmartgridplatform.shared.infra.jms.MessageMetadata)1 Transactional (org.springframework.transaction.annotation.Transactional)1