public class RemoteMeasurementDataSourceWrapper extends Object implements MeasurementDataSourceWrapper
JRRewindableDataSource
.Constructor and Description |
---|
RemoteMeasurementDataSourceWrapper(boolean useSsl,
String url,
String username,
String password) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
net.sf.jasperreports.engine.JRRewindableDataSource |
createDataSource(String query)
Creates a
JRRewindableDataSource according to the provided query. |
public net.sf.jasperreports.engine.JRRewindableDataSource createDataSource(String query) throws net.sf.jasperreports.engine.JRException
MeasurementDataSourceWrapper
JRRewindableDataSource
according to the provided query.createDataSource
in interface MeasurementDataSourceWrapper
query
- The query to execute. Should be a OpenNMS Measurement API parsable QueryRequest
. It may be null, but not empty.net.sf.jasperreports.engine.JRException
- In any error situation. RuntimeException are not catched and may be thrown in addition.public void close()
close
in interface MeasurementDataSourceWrapper
Copyright © 2021. All rights reserved.