org.rhq.plugins.mysql
Class MySqlComponent

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

public class MySqlComponent
extends Object
implements DatabaseComponent<ResourceComponent<?>>, ResourceComponent<ResourceComponent<?>>, MeasurementFacet

Author:
Greg Hinkle, Steve Millidge

Constructor Summary
MySqlComponent()
           
 
Method Summary
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
           
 Connection getConnection()
           
 void getValues(org.rhq.core.domain.measurement.MeasurementReport report, Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
           
 void removeConnection()
           
 void start(ResourceContext resourceContext)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySqlComponent

public MySqlComponent()
Method Detail

start

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

stop

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

getAvailability

public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
Specified by:
getAvailability in interface AvailabilityFacet

getValues

public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
                      Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
               throws Exception
Specified by:
getValues in interface MeasurementFacet
Throws:
Exception

getConnection

public Connection getConnection()
Specified by:
getConnection in interface DatabaseComponent<ResourceComponent<?>>

removeConnection

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


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