org.rhq.plugins.database
Class CustomTableDiscoveryComponent
java.lang.Object
org.rhq.plugins.database.CustomTableDiscoveryComponent
- All Implemented Interfaces:
- ManualAddFacet<DatabaseComponent>, ResourceDiscoveryComponent<DatabaseComponent>
public class CustomTableDiscoveryComponent
- extends Object
- implements ManualAddFacet<DatabaseComponent>, ResourceDiscoveryComponent<DatabaseComponent>
Discovery for a generic component that can read data out of a table for monitoring purposes. Neccessary configuration
properties table - the name of the table to search for during inventory metricQuery - the query run to load metric
data name - the name of the resource description - the description of the resource
- Author:
- Greg Hinkle
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomTableDiscoveryComponent
public CustomTableDiscoveryComponent()
discoverResources
public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<DatabaseComponent> resourceDiscoveryContext)
throws InvalidPluginConfigurationException,
Exception
- Specified by:
discoverResources in interface ResourceDiscoveryComponent<DatabaseComponent>
- Throws:
InvalidPluginConfigurationException
Exception
discoverResource
public DiscoveredResourceDetails discoverResource(Configuration pluginConfiguration,
ResourceDiscoveryContext<DatabaseComponent> discoveryContext)
throws InvalidPluginConfigurationException
- Specified by:
discoverResource in interface ManualAddFacet<DatabaseComponent>
- Throws:
InvalidPluginConfigurationException
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.