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 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 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 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
- Specified by:
getAvailability in interface AvailabilityFacet
getDatabaseName
public String getDatabaseName()
getValues
public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
- Specified by:
getValues in interface MeasurementFacet
createResource
public CreateResourceReport createResource(CreateResourceReport report)
- Specified by:
createResource in interface CreateChildResourceFacet
invokeOperation
public OperationResult invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration parameters)
throws InterruptedException,
Exception
- Specified by:
invokeOperation in interface OperationFacet
- Throws:
InterruptedException
Exception
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.