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
ServerResource Class
The ServerResource class stores resource data for a newly discovered server objects during auto-discovery.
ServerResource contains the data that is reported for a server object in the auto-inventory report that the
Endpoint Operations Management agent sends to vRealize Operations Manager.
This class stores the following information.
n
resource This represents the object itself. Most ServerResource methods modify a modifying resource.
The default constructor creates an empty resource object.
n
fqdn The fully qualified domain name for an object. fqdn is not used unless the object is on a different
platform than the Endpoint Operations Management agent that manages it.
n
productConfig Contains the product configuration properties for an object.
n
metricConfig Contains the metric configuration properties for an object.
n
controlConfig Contains the control configuration properties for an object.
n
cprops The object custom properties.
Class Hierarchy
java.lang.Object
org.hyperic.hq.product.ServerResource
Implementing Methods
This class implements the following methods.
setInstallPath
setInstallPath(String):void
public void setInstallPath(String name)
This method sets the resource installation path.
Parameter Description
name
The path to the installation directory.
setPlatformFqdn
setPlatformFqdn(String):void
public void setPlatformFqdn(String name)
This method sets the object's fully qualified domain name. This attribute
should be set only if the discovered server object runs on a different platform
object that on which the Endpoint Operations Management agent that
performed the auto-discover runs. For example, the
Endpoint Operations Management agent that manages a WebLogic Server
cluster runs on the platform on which the administration server runs, and
discovers the managed servers that are running on other platforms. Note that
If you set this attribute, the platform object that you specify must exist in
inventory.
Parameter Description
name
The name of the FQDN.
Chapter 4 Plug-In Support Classes
VMware, Inc. 67