org.rhq.plugins.postgres
Class PostgresUserComponent
java.lang.Object
org.rhq.plugins.postgres.PostgresUserComponent
- All Implemented Interfaces:
- AvailabilityFacet, ConfigurationFacet, ConfigurationFacetSupport, DeleteResourceFacet, ResourceComponent<PostgresServerComponent>, MeasurementFacet, DatabaseComponent<PostgresServerComponent>
public class PostgresUserComponent
- extends Object
- implements DatabaseComponent<PostgresServerComponent>, MeasurementFacet, ConfigurationFacet, DeleteResourceFacet
- Author:
- Greg Hinkle
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostgresUserComponent
public PostgresUserComponent()
start
public void start(ResourceContext<PostgresServerComponent> resourceContext)
- Specified by:
start in interface ResourceComponent<PostgresServerComponent>
stop
public void stop()
- Specified by:
stop in interface ResourceComponent<PostgresServerComponent>
getUserName
public String getUserName()
getAvailability
public AvailabilityType getAvailability()
- Specified by:
getAvailability in interface AvailabilityFacet
getConnection
public Connection getConnection()
- Specified by:
getConnection in interface DatabaseComponent<PostgresServerComponent>
removeConnection
public void removeConnection()
- Specified by:
removeConnection in interface DatabaseComponent<PostgresServerComponent>
getValues
public void getValues(MeasurementReport report,
Set<MeasurementScheduleRequest> metrics)
throws Exception
- Specified by:
getValues in interface MeasurementFacet
- Throws:
Exception
loadResourceConfiguration
public Configuration loadResourceConfiguration()
throws Exception
- Specified by:
loadResourceConfiguration in interface ConfigurationFacet
- Throws:
Exception
updateResourceConfiguration
public void updateResourceConfiguration(ConfigurationUpdateReport report)
- Specified by:
updateResourceConfiguration in interface ConfigurationFacet
getUserSQL
public static String getUserSQL(Configuration config,
PostgresUserComponent.UpdateType type)
deleteResource
public void deleteResource()
throws Exception
- Specified by:
deleteResource in interface DeleteResourceFacet
- Throws:
Exception
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.