Class RemoteMeasurementDataSourceWrapper

    • Constructor Detail

      • RemoteMeasurementDataSourceWrapper

        public RemoteMeasurementDataSourceWrapper​(boolean useSsl,
                                                  String url,
                                                  String username,
                                                  String password)
    • Method Detail

      • createDataSource

        public net.sf.jasperreports.engine.JRRewindableDataSource createDataSource​(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.