public class PostgresServerComponent<T extends ResourceComponent<?>> extends Object implements DatabaseComponent<T>, ConnectionPoolingSupport, ConfigurationFacet, MeasurementFacet, OperationFacet, CreateChildResourceFacet
| Constructor and Description |
|---|
PostgresServerComponent() |
| Modifier and Type | Method and Description |
|---|---|
CreateResourceReport |
createResource(CreateResourceReport report) |
void |
findProcessInfo() |
org.rhq.core.domain.measurement.AvailabilityType |
getAvailability() |
protected PostgresqlConfFile |
getConfigurationFile() |
Connection |
getConnection() |
protected String |
getJDBCUrl() |
double |
getObjectProperty(Object object,
String name)
Deprecated.
since RHQ4.13, unused
|
PooledConnectionProvider |
getPooledConnectionProvider() |
void |
getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
Get data about the database server.
|
OperationResult |
invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration parameters) |
org.rhq.core.domain.configuration.Configuration |
loadResourceConfiguration() |
protected Object |
lookupAttributeProperty(Object value,
String property) |
void |
removeConnection() |
void |
start(ResourceContext context) |
void |
stop() |
boolean |
supportsConnectionPooling() |
void |
updateResourceConfiguration(ConfigurationUpdateReport report) |
public void start(ResourceContext context) throws Exception
start in interface ResourceComponent<T extends ResourceComponent<?>>Exceptionpublic void stop()
stop in interface ResourceComponent<T extends ResourceComponent<?>>public boolean supportsConnectionPooling()
supportsConnectionPooling in interface ConnectionPoolingSupportpublic PooledConnectionProvider getPooledConnectionProvider()
getPooledConnectionProvider in interface ConnectionPoolingSupportprotected String getJDBCUrl()
public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
getAvailability in interface AvailabilityFacetpublic Connection getConnection()
getConnection in interface DatabaseComponent<T extends ResourceComponent<?>>public void removeConnection()
removeConnection in interface DatabaseComponent<T extends ResourceComponent<?>>protected PostgresqlConfFile getConfigurationFile() throws IOException
IOExceptionpublic org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
throws Exception
loadResourceConfiguration in interface ConfigurationFacetExceptionpublic void updateResourceConfiguration(ConfigurationUpdateReport report)
updateResourceConfiguration in interface ConfigurationFacetpublic void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
getValues in interface MeasurementFacetreport - the report where all collected measurement data will be addedmetrics - the schedule of what needs to be collected when@Deprecated public double getObjectProperty(Object object, String name)
public OperationResult invokeOperation(String name, org.rhq.core.domain.configuration.Configuration parameters) throws Exception
invokeOperation in interface OperationFacetExceptionpublic CreateResourceReport createResource(CreateResourceReport report)
createResource in interface CreateChildResourceFacetpublic void findProcessInfo()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.