org.rhq.plugins.postgres
Class PostgresTableComponent
java.lang.Object
org.rhq.plugins.postgres.PostgresTableComponent
- All Implemented Interfaces:
- AvailabilityFacet, ConfigurationFacet, DeleteResourceFacet, ResourceComponent<PostgresDatabaseComponent>, MeasurementFacet, OperationFacet, DatabaseComponent<PostgresDatabaseComponent>
public class PostgresTableComponent
- extends Object
- implements DatabaseComponent<PostgresDatabaseComponent>, MeasurementFacet, ConfigurationFacet, DeleteResourceFacet, OperationFacet
Represents a postgres table
- Author:
- Greg Hinkle
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PG_STAT_USER_TABLES_QUERY
public static final String PG_STAT_USER_TABLES_QUERY
- See Also:
- Constant Field Values
PG_COUNT_ROWS
public static final String PG_COUNT_ROWS
- See Also:
- Constant Field Values
PG_COUNT_ROWS_APPROX
public static final String PG_COUNT_ROWS_APPROX
- See Also:
- Constant Field Values
PostgresTableComponent
public PostgresTableComponent()
start
public void start(ResourceContext<PostgresDatabaseComponent> context)
- Specified by:
start in interface ResourceComponent<PostgresDatabaseComponent>
stop
public void stop()
- Specified by:
stop in interface ResourceComponent<PostgresDatabaseComponent>
getTableName
public String getTableName()
getAvailability
public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
- Specified by:
getAvailability in interface AvailabilityFacet
getValues
public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
- Specified by:
getValues in interface MeasurementFacet
deleteResource
public void deleteResource()
throws SQLException
- Specified by:
deleteResource in interface DeleteResourceFacet
- Throws:
SQLException
loadResourceConfiguration
public org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
throws Exception
- Specified by:
loadResourceConfiguration in interface ConfigurationFacet
- Throws:
Exception
updateResourceConfiguration
public void updateResourceConfiguration(ConfigurationUpdateReport report)
- Specified by:
updateResourceConfiguration in interface ConfigurationFacet
getConnection
public Connection getConnection()
- Specified by:
getConnection in interface DatabaseComponent<PostgresDatabaseComponent>
removeConnection
public void removeConnection()
- Specified by:
removeConnection in interface DatabaseComponent<PostgresDatabaseComponent>
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.