public class CustomTableComponent extends Object implements DatabaseComponent<DatabaseComponent<?>>, ConnectionPoolingSupport, MeasurementFacet
CustomTableDiscoveryComponent.| Constructor and Description |
|---|
CustomTableComponent() |
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.measurement.AvailabilityType |
getAvailability() |
Connection |
getConnection() |
PooledConnectionProvider |
getPooledConnectionProvider() |
String |
getTable() |
void |
getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics) |
void |
removeConnection() |
void |
start(ResourceContext<DatabaseComponent<?>> resourceContext) |
void |
stop() |
boolean |
supportsConnectionPooling() |
public void start(ResourceContext<DatabaseComponent<?>> resourceContext) throws InvalidPluginConfigurationException, Exception
start in interface ResourceComponent<DatabaseComponent<?>>InvalidPluginConfigurationExceptionExceptionpublic void stop()
stop in interface ResourceComponent<DatabaseComponent<?>>public boolean supportsConnectionPooling()
supportsConnectionPooling in interface ConnectionPoolingSupportPooledConnectionProvider, false otherwise.public PooledConnectionProvider getPooledConnectionProvider()
getPooledConnectionProvider in interface ConnectionPoolingSupportPooledConnectionProvider or null if this component does not support connection
pooling.ConnectionPoolingSupport.supportsConnectionPooling()public String getTable()
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> metrics)
throws Exception
getValues in interface MeasurementFacetExceptionpublic Connection getConnection()
getConnection in interface DatabaseComponent<DatabaseComponent<?>>public void removeConnection()
removeConnection in interface DatabaseComponent<DatabaseComponent<?>>Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.