public class PostgresTableComponent extends Object implements DatabaseComponent<PostgresDatabaseComponent>, MeasurementFacet, ConfigurationFacet, DeleteResourceFacet, OperationFacet
| Modifier and Type | Field and Description |
|---|---|
static String |
PG_COUNT_ROWS |
static String |
PG_COUNT_ROWS_APPROX |
static String |
PG_STAT_USER_TABLES_QUERY |
| Constructor and Description |
|---|
PostgresTableComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteResource() |
org.rhq.core.domain.measurement.AvailabilityType |
getAvailability() |
Connection |
getConnection() |
String |
getTableName() |
void |
getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests) |
OperationResult |
invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration parameters) |
org.rhq.core.domain.configuration.Configuration |
loadResourceConfiguration() |
void |
removeConnection() |
void |
start(ResourceContext<PostgresDatabaseComponent> context) |
void |
stop() |
void |
updateResourceConfiguration(ConfigurationUpdateReport report) |
public static final String PG_STAT_USER_TABLES_QUERY
public static final String PG_COUNT_ROWS
public static final String PG_COUNT_ROWS_APPROX
public void start(ResourceContext<PostgresDatabaseComponent> context)
start in interface ResourceComponent<PostgresDatabaseComponent>public void stop()
stop in interface ResourceComponent<PostgresDatabaseComponent>public String getTableName()
public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
getAvailability in interface AvailabilityFacetpublic void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
getValues in interface MeasurementFacetpublic void deleteResource()
throws SQLException
deleteResource in interface DeleteResourceFacetSQLExceptionpublic org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
throws Exception
loadResourceConfiguration in interface ConfigurationFacetExceptionpublic void updateResourceConfiguration(ConfigurationUpdateReport report)
updateResourceConfiguration in interface ConfigurationFacetpublic Connection getConnection()
getConnection in interface DatabaseComponent<PostgresDatabaseComponent>public void removeConnection()
removeConnection in interface DatabaseComponent<PostgresDatabaseComponent>public OperationResult invokeOperation(String name, org.rhq.core.domain.configuration.Configuration parameters) throws InterruptedException, Exception
invokeOperation in interface OperationFacetInterruptedExceptionExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.