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
Parameters: key The name of the option to set.
value The value to set the option to.
Exceptions:
InvalidOptionException
Returned when the
ConfigResponse does not support
the specified option.
nvalidOptionValueException
Returned when the supplied value is
not valid for the specified option.
Example: Usage
private static final String PTQL_QUERY = "State.Name.ct=firefox";
public List getServerResources(ConfigResponse config) throws PluginException {
List servers = new ArrayList();
String installPath = "";
ConfigResponse productConfig = new ConfigResponse();
productConfig.setValue("process.query", PTQL_QUERY);
ServerResource server = createServerResource(installPath);
setProductConfig(server, productConfig);
server.setMeasurementConfig();
servers.add(server);
return servers;
}
Chapter 4 Plug-In Support Classes
VMware, Inc. 73