Class PontonXPAdapter
java.lang.Object
energy.eddie.regionconnector.at.eda.ponton.PontonXPAdapter
- All Implemented Interfaces:
EdaAdapter,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionPontonXPAdapter(PontonMessengerConnection pontonMessengerConnection, IdentifiableConsumptionRecordService identifiableConsumptionRecordService, IdentifiableMasterDataService identifiableMasterDataService, org.springframework.scheduling.TaskScheduler scheduler) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()reactor.core.publisher.Flux<CMRequestStatus> Returns a stream of CMRequestStatus objects that describe the current permission/consent status of all sent requests.reactor.core.publisher.Flux<EdaCMRevoke> Returns a stream of EdaCMRevoke objects that contain information regarding revoked permissions/consents.reactor.core.publisher.Flux<IdentifiableConsumptionRecord> Returns a stream of EdaConsumptionRecord objects tha contain information regarding energy consumption for a specific metering point.reactor.core.publisher.Flux<CPRequestResult> Returns a stream of CPRequestResult objects that contain information regarding the response of a CPRequestCR.reactor.core.publisher.Flux<IdentifiableMasterData> Returns a stream of EdaMasterData objects that contain information regarding metering points and their owners.voidsendCMRequest(CCMORequest request) This method sends a CCMORequest to EDA.voidsendCMRevoke(CCMORevoke revoke) This method sends a CCMORevoke to EDA.voidsendCPRequest(CPRequestCR cpRequestCR) This method sends a CPRequest that request the retransmission of Consumption Records.voidstart()This method starts the connection to EDA.
-
Constructor Details
-
PontonXPAdapter
public PontonXPAdapter(PontonMessengerConnection pontonMessengerConnection, IdentifiableConsumptionRecordService identifiableConsumptionRecordService, IdentifiableMasterDataService identifiableMasterDataService, org.springframework.scheduling.TaskScheduler scheduler)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getCMRequestStatusStream
Description copied from interface:EdaAdapterReturns a stream of CMRequestStatus objects that describe the current permission/consent status of all sent requests.- Specified by:
getCMRequestStatusStreamin interfaceEdaAdapter
-
getConsumptionRecordStream
Description copied from interface:EdaAdapterReturns a stream of EdaConsumptionRecord objects tha contain information regarding energy consumption for a specific metering point.- Specified by:
getConsumptionRecordStreamin interfaceEdaAdapter
-
getCMRevokeStream
Description copied from interface:EdaAdapterReturns a stream of EdaCMRevoke objects that contain information regarding revoked permissions/consents.- Specified by:
getCMRevokeStreamin interfaceEdaAdapter
-
getMasterDataStream
Description copied from interface:EdaAdapterReturns a stream of EdaMasterData objects that contain information regarding metering points and their owners.- Specified by:
getMasterDataStreamin interfaceEdaAdapter
-
getCPRequestResultStream
Description copied from interface:EdaAdapterReturns a stream of CPRequestResult objects that contain information regarding the response of a CPRequestCR.- Specified by:
getCPRequestResultStreamin interfaceEdaAdapter
-
sendCMRequest
Description copied from interface:EdaAdapterThis method sends a CCMORequest to EDA. A CCORequest can be used to request either metering or master data.- Specified by:
sendCMRequestin interfaceEdaAdapter- Parameters:
request- The CCMORequest message that should be sent to EDA.- Throws:
TransmissionException- If the request could not be sent. Reasons can be a connection error or a malformed request.
-
sendCMRevoke
Description copied from interface:EdaAdapterThis method sends a CCMORevoke to EDA. A CCMORevoke can be used to revoke an active permission/consent.- Specified by:
sendCMRevokein interfaceEdaAdapter- Parameters:
revoke- The CCMORevoke message that should be sent to EDA.- Throws:
TransmissionException- If the request could not be sent. Reasons can be a connection error or a malformed request.
-
sendCPRequest
Description copied from interface:EdaAdapterThis method sends a CPRequest that request the retransmission of Consumption Records.- Specified by:
sendCPRequestin interfaceEdaAdapter- Parameters:
cpRequestCR- The CPRequestCR message that should be sent to EDA.- Throws:
TransmissionException- If the request could not be sent. Reasons can be a connection error or a malformed request.
-
start
Description copied from interface:EdaAdapterThis method starts the connection to EDA. It must be called before any of the methods that use the connection can be used.- Specified by:
startin interfaceEdaAdapter- Throws:
TransmissionException- If the connection to EDA could not be established.
-