Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 207710

Service detection - auto-inventory

$
0
0
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

Viewing all articles
Browse latest Browse all 207710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>