org.rhq.plugins.mysql
Class MySqlDiscoveryComponent
java.lang.Object
org.rhq.plugins.mysql.MySqlDiscoveryComponent
- All Implemented Interfaces:
- ManualAddFacet, ResourceDiscoveryComponent
public class MySqlDiscoveryComponent
- extends java.lang.Object
- implements ResourceDiscoveryComponent, ManualAddFacet
- Author:
- Greg Hinkle, Ian Springer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DRIVER_CONFIGURATION_PROPERTY
public static final java.lang.String DRIVER_CONFIGURATION_PROPERTY
- See Also:
- Constant Field Values
HOST_CONFIGURATION_PROPERTY
public static final java.lang.String HOST_CONFIGURATION_PROPERTY
- See Also:
- Constant Field Values
PORT_CONFIGURATION_PROPERTY
public static final java.lang.String PORT_CONFIGURATION_PROPERTY
- See Also:
- Constant Field Values
DB_CONFIGURATION_PROPERTY
public static final java.lang.String DB_CONFIGURATION_PROPERTY
- See Also:
- Constant Field Values
PRINCIPAL_CONFIGURATION_PROPERTY
public static final java.lang.String PRINCIPAL_CONFIGURATION_PROPERTY
- See Also:
- Constant Field Values
CREDENTIALS_CONFIGURATION_PROPERTY
public static final java.lang.String CREDENTIALS_CONFIGURATION_PROPERTY
- See Also:
- Constant Field Values
MySqlDiscoveryComponent
public MySqlDiscoveryComponent()
discoverResources
public java.util.Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext context)
- Specified by:
discoverResources in interface ResourceDiscoveryComponent
discoverResource
public DiscoveredResourceDetails discoverResource(Configuration pluginConfiguration,
ResourceDiscoveryContext resourceDiscoveryContext)
throws InvalidPluginConfigurationException
- Specified by:
discoverResource in interface ManualAddFacet
- Throws:
InvalidPluginConfigurationException
createResourceDetails
protected static DiscoveredResourceDetails createResourceDetails(ResourceDiscoveryContext discoveryContext,
Configuration pluginConfiguration,
ProcessInfo processInfo)
buildUrl
protected static java.lang.String buildUrl(Configuration config)
getVersion
protected static java.lang.String getVersion(Configuration config)
buildConnection
public static java.sql.Connection buildConnection(Configuration configuration)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.