Class LocalMeasurementDataSourceWrapper

    • Method Detail

      • createDataSource

        public net.sf.jasperreports.engine.JRRewindableDataSource createDataSource​(java.lang.String query)
                                                                            throws net.sf.jasperreports.engine.JRException
        Description copied from interface: MeasurementDataSourceWrapper
        Creates a JRRewindableDataSource according to the provided query.
        Specified by:
        createDataSource in interface MeasurementDataSourceWrapper
        Parameters:
        query - The query to execute. Should be a OpenNMS Measurement API parsable QueryRequest. It may be null, but not empty.
        Returns:
        The DataSource.
        Throws:
        net.sf.jasperreports.engine.JRException - In any error situation. RuntimeException are not catched and may be thrown in addition.