public class PostgresDatabaseComponent extends Object implements DatabaseComponent<PostgresServerComponent<?>>, ConnectionPoolingSupport, MeasurementFacet, CreateChildResourceFacet, OperationFacet
| Constructor and Description |
|---|
PostgresDatabaseComponent() |
| Modifier and Type | Method and Description |
|---|---|
CreateResourceReport |
createResource(CreateResourceReport report) |
org.rhq.core.domain.measurement.AvailabilityType |
getAvailability() |
Connection |
getConnection() |
String |
getDatabaseName() |
PooledConnectionProvider |
getPooledConnectionProvider() |
void |
getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics) |
OperationResult |
invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration parameters) |
void |
removeConnection() |
void |
start(ResourceContext<PostgresServerComponent<?>> context) |
void |
stop() |
boolean |
supportsConnectionPooling() |
public void start(ResourceContext<PostgresServerComponent<?>> context) throws Exception
start in interface ResourceComponent<PostgresServerComponent<?>>Exceptionpublic void stop()
stop in interface ResourceComponent<PostgresServerComponent<?>>public boolean supportsConnectionPooling()
supportsConnectionPooling in interface ConnectionPoolingSupportpublic PooledConnectionProvider getPooledConnectionProvider()
getPooledConnectionProvider in interface ConnectionPoolingSupportpublic Connection getConnection()
getConnection in interface DatabaseComponent<PostgresServerComponent<?>>public void removeConnection()
removeConnection in interface DatabaseComponent<PostgresServerComponent<?>>public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
getAvailability in interface AvailabilityFacetpublic String getDatabaseName()
public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
getValues in interface MeasurementFacetpublic CreateResourceReport createResource(CreateResourceReport report)
createResource in interface CreateChildResourceFacetpublic OperationResult invokeOperation(String name, org.rhq.core.domain.configuration.Configuration parameters) throws Exception
invokeOperation in interface OperationFacetExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.