org.rhq.plugins.postgres
Class PostgresDatabaseComponent
java.lang.Object
org.rhq.plugins.postgres.PostgresDatabaseComponent
- All Implemented Interfaces:
- AvailabilityFacet, CreateChildResourceFacet, ResourceComponent<PostgresServerComponent>, MeasurementFacet, OperationFacet, DatabaseComponent<PostgresServerComponent>
public class PostgresDatabaseComponent
- extends java.lang.Object
- implements DatabaseComponent<PostgresServerComponent>, MeasurementFacet, CreateChildResourceFacet, OperationFacet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostgresDatabaseComponent
public PostgresDatabaseComponent()
getConnection
public java.sql.Connection getConnection()
- Specified by:
getConnection in interface DatabaseComponent<PostgresServerComponent>
removeConnection
public void removeConnection()
- Specified by:
removeConnection in interface DatabaseComponent<PostgresServerComponent>
start
public void start(ResourceContext<PostgresServerComponent> context)
- Specified by:
start in interface ResourceComponent<PostgresServerComponent>
stop
public void stop()
- Specified by:
stop in interface ResourceComponent<PostgresServerComponent>
getAvailability
public AvailabilityType getAvailability()
- Specified by:
getAvailability in interface AvailabilityFacet
getDatabaseName
public java.lang.String getDatabaseName()
getValues
public void getValues(MeasurementReport report,
java.util.Set<MeasurementScheduleRequest> metrics)
- Specified by:
getValues in interface MeasurementFacet
createResource
public CreateResourceReport createResource(CreateResourceReport report)
- Specified by:
createResource in interface CreateChildResourceFacet
invokeOperation
public OperationResult invokeOperation(java.lang.String name,
Configuration parameters)
throws java.lang.InterruptedException,
java.lang.Exception
- Specified by:
invokeOperation in interface OperationFacet
- Throws:
java.lang.InterruptedException
java.lang.Exception
Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.