Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 251495

Accessing Share Properties of resource in AutoDiscovery class

$
0
0

Hi,

 

I am creating a custom Platform  which requires a  config param . This value will be inputed by the use.  I want to acces this variable in my autodiscovery class Platform auto dicovery. How should I do this .

 

Samples:

 

<platform name="Documentum Host">
        <plugin type="autoinventory" class="com.emc.hq.plugin.documentum.DocumentumHostDetector"/>
        <plugin type="measurement" class="com.emc.hq.plugin.documentum.PlatformMeasurementPlugin"/>
        <plugin type="collector"   class="com.emc.hq.plugin.documentum.DocumentumCollector"/>
         <config>
        <option name="hostname" description="Documentum Host" default="localhost" optional="false"/>
        <option name="port" description="Documentum Port" optional="false" default="8080"/>
        <option name="context" description="Document rest context" optional="false" default="springapp"/>
       <config>    
        <properties>
            <property name="ip" description="IP Address"/>
            <property name="cpuSpeed" description="CPU Speed"/>
        </properties>
        <metric name="Availability"   indicator="true" alias="Availability"       template="hypericlite:hostname=%hostname%,port=%port%,context=%context%:${alias}"
                category="AVAILABILITY"
                collectionType="dynamic"
                units="percentage">
        </metric>
          --..
</platform>
Using the above xml , I am able to retieve the values of host name in my custom measurement class (PlatformMeasurementPlugin) .
My question is . How to acces the config value like host name in my autoinventory class (DocumentumHostDetector) >
Thanks in advance.for tsolving my problem.

Viewing all articles
Browse latest Browse all 251495

Trending Articles



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