6.1
Table Of Contents
- Endpoint Operations Management Agent Plug-in Development Kit
- Contents
- About the Endpoint Operations Management Agent Plug-in Development Kit
- Introduction to Plug-in Development
- The Role of the Server and Agent in Plug-ins
- Technical Overview
- Plug-in Implementations
- Using Support Classes to Simplify a Plug-in
- Writing Plug-ins
- JMX Plug-in
- Script Plug-ins
- SNMP Plug-in
- JMX-Based Management
- Auto-Discovery of JMX Resources
- Configuration Properties for JMX Monitoring
- Creating a Custom JMX Plug-in
- Defining Service Types to Provide Management via Custom MBeans
- Defining an ObjectName to Access Custom MBeans
- Defining Configuration Properties to Appear in the User Interface
- Defining and Gathering Metrics
- Specifying the Availability Metric for MBeans
- Implementing Control Actions
- Defining the Server Auto-Inventory Element
- Discovering Custom Properties
- Running and Testing Plug-ins from the Command Line
- Using Auto-Discovery Support Classes in Plug-ins
- Working with Plug-in Descriptors
- Plug-In Support Classes
- Index
<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