Class RemoteMeasurementDataSourceWrapper

    • Constructor Summary

      Constructors 
      Constructor Description
      RemoteMeasurementDataSourceWrapper​(boolean useSsl, java.lang.String url, java.lang.String username, java.lang.String password)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      net.sf.jasperreports.engine.JRRewindableDataSource createDataSource​(java.lang.String query)
      Creates a JRRewindableDataSource according to the provided query.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RemoteMeasurementDataSourceWrapper

        public RemoteMeasurementDataSourceWrapper​(boolean useSsl,
                                                  java.lang.String url,
                                                  java.lang.String username,
                                                  java.lang.String password)
    • 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.