6.1

Table Of Contents
<config>
<option
default="State.Name.eq=myprocess"
name="process.query"
description="Process Query for singleprocess">
</option>
</config>
<plugin type="autoinventory" class="org.hyperic.hq.product.DaemonDetector" />
...
</server>
FileServerDetector Class
The FileServerDetector interface is used to discover server resources based on a file system scan. This
interface is used when a user manually invokes new autodiscovery on platform object level.
A background scan receives hints from the <scan> tag to match the correct file paths. Based on these results,
this interface is called with every matched result.
Interface Hierarchy
org.hyperic.hq.product.FileServerDetector
Interface References
package org.hyperic.hq.product;
import java.util.List;
import org.hyperic.util.config.ConfigResponse;
Implementing Methods
This interface implements the following methods.
getServerResources(Conf
igResponse,String):List
public List getServerResources(ConfigResponse platformConfig, String
path)
throws PluginException;
This method is called if the associated autodiscovery implementation is
implementing this interface. The method is called with every successfully
matched result.
The method must return a list of ServerResource objects. See
“ServerResource Class,” on page 67 for more information.
Parameters: platformConfig Configuration for the underlying platform object.
path Matched path.
Returns:
A list of ServerResource objects.
Exceptions:
org.hyperic.hq.product.PluginException
Chapter 4 Plug-In Support Classes
VMware, Inc. 53