T - the parent resource component type for those resources discovered by this discovery componentpublic interface ManualAddFacet<T extends ResourceComponent<?>>
discoverResource(org.rhq.core.domain.configuration.Configuration, org.rhq.core.pluginapi.inventory.ResourceDiscoveryContext<T>)
method on the discovery component. The option to manually add a Resource is only exposed by the GUI for Resource
types defined with supportsManualAdd="true" in the plugin descriptor. Manual add is used either to add an offline
managed resource to inventory or to add a managed resource that could not be auto-discovered for some reason.
Note: this facet is to be implemented by ResourceDiscoveryComponent instances, unlike most other
facets that are implemented by the resource instance components.| Modifier and Type | Method and Description |
|---|---|
DiscoveredResourceDetails |
discoverResource(org.rhq.core.domain.configuration.Configuration pluginConfiguration,
ResourceDiscoveryContext<T> context)
Using the specified plugin configuration, creates a DiscoveredResourceDetails object describing a new Resource
to be added to inventory.
|
DiscoveredResourceDetails discoverResource(org.rhq.core.domain.configuration.Configuration pluginConfiguration, ResourceDiscoveryContext<T> context) throws InvalidPluginConfigurationException
pluginConfiguration - the plugin configuration that describes how to discover the Resource being manually
addedcontext - information for the component that it may need for the manual addInvalidPluginConfigurationException - if the specified plugin configuration was somehow invalid
and thus caused a failure to connect to a resourceCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.