Hi all,
I'm designing a custom plugin in JAVA, I do need to run my custom inventory the most regularly possible (at each collection).
I have already designed my custom auto-inventory:
-------------------------------------------------------------------------------
public class ComplexSQLQueryDetector extends ServerDetector{
static final String PROP_QUERY = "jdbcQuery";
protected List discoverServices(ConfigResponse config)
throws PluginException {
Connection conn = null;
Properties props = config.toProperties();
Map plugins = getServiceInventoryPlugins();
List services = new ArrayList();
...
------------------------------------------------------------------------------------
Now I need to call this method in my java class "xxxMeasurementPlugin", in order to add new services to my server. My problem is that I don't know how to call discoverServices(ConfigResponse config).
Thanks in advance for your help.
Regards
I'm designing a custom plugin in JAVA, I do need to run my custom inventory the most regularly possible (at each collection).
I have already designed my custom auto-inventory:
-------------------------------------------------------------------------------
public class ComplexSQLQueryDetector extends ServerDetector{
static final String PROP_QUERY = "jdbcQuery";
protected List discoverServices(ConfigResponse config)
throws PluginException {
Connection conn = null;
Properties props = config.toProperties();
Map plugins = getServiceInventoryPlugins();
List services = new ArrayList();
...
------------------------------------------------------------------------------------
Now I need to call this method in my java class "xxxMeasurementPlugin", in order to add new services to my server. My problem is that I don't know how to call discoverServices(ConfigResponse config).
Thanks in advance for your help.
Regards