org.rhq.plugins.database
Class CustomTableDiscoveryComponent

java.lang.Object
  extended by org.rhq.plugins.database.CustomTableDiscoveryComponent
All Implemented Interfaces:
ResourceDiscoveryComponent<DatabaseComponent>

public class CustomTableDiscoveryComponent
extends java.lang.Object
implements 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

Constructor Summary
CustomTableDiscoveryComponent()
           
 
Method Summary
 java.util.Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<DatabaseComponent> resourceDiscoveryContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomTableDiscoveryComponent

public CustomTableDiscoveryComponent()
Method Detail

discoverResources

public java.util.Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<DatabaseComponent> resourceDiscoveryContext)
                                                           throws InvalidPluginConfigurationException,
                                                                  java.lang.Exception
Specified by:
discoverResources in interface ResourceDiscoveryComponent<DatabaseComponent>
Throws:
InvalidPluginConfigurationException
java.lang.Exception


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.