org.rhq.plugins.database
Class CustomTableComponent

java.lang.Object
  extended by org.rhq.plugins.database.CustomTableComponent
All Implemented Interfaces:
AvailabilityFacet, ResourceComponent<DatabaseComponent>, MeasurementFacet, DatabaseComponent<DatabaseComponent>

public class CustomTableComponent
extends java.lang.Object
implements DatabaseComponent<DatabaseComponent>, MeasurementFacet

The component for the CustomTableDiscoveryComponent.

Author:
Greg Hinkle

Constructor Summary
CustomTableComponent()
           
 
Method Summary
 AvailabilityType getAvailability()
           
 java.sql.Connection getConnection()
           
 java.lang.String getTable()
           
 void getValues(MeasurementReport report, java.util.Set<MeasurementScheduleRequest> metrics)
           
 void removeConnection()
           
 void start(ResourceContext<DatabaseComponent> resourceContext)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomTableComponent

public CustomTableComponent()
Method Detail

start

public void start(ResourceContext<DatabaseComponent> resourceContext)
           throws InvalidPluginConfigurationException,
                  java.lang.Exception
Specified by:
start in interface ResourceComponent<DatabaseComponent>
Throws:
InvalidPluginConfigurationException
java.lang.Exception

stop

public void stop()
Specified by:
stop in interface ResourceComponent<DatabaseComponent>

getTable

public java.lang.String getTable()

getAvailability

public AvailabilityType getAvailability()
Specified by:
getAvailability in interface AvailabilityFacet

getValues

public void getValues(MeasurementReport report,
                      java.util.Set<MeasurementScheduleRequest> metrics)
               throws java.lang.Exception
Specified by:
getValues in interface MeasurementFacet
Throws:
java.lang.Exception

getConnection

public java.sql.Connection getConnection()
Specified by:
getConnection in interface DatabaseComponent<DatabaseComponent>

removeConnection

public void removeConnection()
Specified by:
removeConnection in interface DatabaseComponent<DatabaseComponent>


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