Class DefaultDBSummaryService

  • All Implemented Interfaces:
    de.jnkconsulting.e3dc.easyrscp.api.service.DBSummaryService

    
    public final class DefaultDBSummaryService
     implements DBSummaryService
                        

    Service to retrieve the summary data of a time period (day, month, year, etc) from the home power plant database.S

    Since:

    2.0

    • Constructor Detail

      • DefaultDBSummaryService

        DefaultDBSummaryService(ConnectionPool connectionPool, RequestResponseFrameConvert<HistoryData> convertFrameToDailySummary, RequestResponseFrameConvert<HistoryData> convertFrameToMonthlySummary, RequestResponseFrameConvert<HistoryData> convertFrameToYearlySummary, FrameCreator<LocalDate> createRequestDailySummaryFrame, FrameCreator<YearMonth> createRequestMonthlySummaryFrame, FrameCreator<Year> createRequestYearlySummaryFrame)
        Parameters:
        connectionPool - Connection pool to be used
        convertFrameToDailySummary - Converter to create a HistoryData object from a frame for the daily summary.
        convertFrameToMonthlySummary - Converter to create a HistoryData object from a frame for the monthly summary.
        convertFrameToYearlySummary - Converter to create a HistoryData object from a frame for the yearlu summary.
        createRequestDailySummaryFrame - Creator for frames to query the summary of a specific day.
        createRequestMonthlySummaryFrame - Creator for frames to query the summary of a specific month.
        createRequestYearlySummaryFrame - Creator for frames to query the summary of a specific year.