org.rhq.plugins.hosts
Class HostsDiscoveryComponent

java.lang.Object
  extended by org.rhq.plugins.augeas.AugeasConfigurationDiscoveryComponent<org.rhq.plugins.platform.PlatformComponent>
      extended by org.rhq.plugins.hosts.HostsDiscoveryComponent
All Implemented Interfaces:
ManualAddFacet<org.rhq.plugins.platform.PlatformComponent>, ResourceDiscoveryComponent<org.rhq.plugins.platform.PlatformComponent>

public class HostsDiscoveryComponent
extends AugeasConfigurationDiscoveryComponent<org.rhq.plugins.platform.PlatformComponent>

The ResourceDiscoveryComponent for the "Hosts File" ResourceType.

Author:
Ian Springer

Constructor Summary
HostsDiscoveryComponent()
           
 
Method Summary
protected  List<String> determineIncludeGlobs(ResourceDiscoveryContext<org.rhq.plugins.platform.PlatformComponent> discoveryContext)
           
 DiscoveredResourceDetails discoverResource(org.rhq.core.domain.configuration.Configuration pluginConfig, ResourceDiscoveryContext discoveryContext)
           
 Set discoverResources(ResourceDiscoveryContext<org.rhq.plugins.platform.PlatformComponent> discoveryContext)
           
 
Methods inherited from class org.rhq.plugins.augeas.AugeasConfigurationDiscoveryComponent
createResourceDetails, determineExcludeGlobs, getGlobList, getGlobList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostsDiscoveryComponent

public HostsDiscoveryComponent()
Method Detail

discoverResources

public Set discoverResources(ResourceDiscoveryContext<org.rhq.plugins.platform.PlatformComponent> discoveryContext)
                      throws InvalidPluginConfigurationException,
                             Exception
Specified by:
discoverResources in interface ResourceDiscoveryComponent<org.rhq.plugins.platform.PlatformComponent>
Overrides:
discoverResources in class AugeasConfigurationDiscoveryComponent<org.rhq.plugins.platform.PlatformComponent>
Throws:
InvalidPluginConfigurationException
Exception

discoverResource

public DiscoveredResourceDetails discoverResource(org.rhq.core.domain.configuration.Configuration pluginConfig,
                                                  ResourceDiscoveryContext discoveryContext)
                                           throws InvalidPluginConfigurationException
Specified by:
discoverResource in interface ManualAddFacet<org.rhq.plugins.platform.PlatformComponent>
Overrides:
discoverResource in class AugeasConfigurationDiscoveryComponent<org.rhq.plugins.platform.PlatformComponent>
Throws:
InvalidPluginConfigurationException

determineIncludeGlobs

protected List<String> determineIncludeGlobs(ResourceDiscoveryContext<org.rhq.plugins.platform.PlatformComponent> discoveryContext)
Overrides:
determineIncludeGlobs in class AugeasConfigurationDiscoveryComponent<org.rhq.plugins.platform.PlatformComponent>


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.