org.rhq.plugins.apache
Class ApacheServerDiscoveryComponent

java.lang.Object
  extended by org.rhq.plugins.apache.ApacheServerDiscoveryComponent
All Implemented Interfaces:
ManualAddFacet<PlatformComponent>, ResourceDiscoveryComponent<PlatformComponent>, ResourceUpgradeFacet<PlatformComponent>

public class ApacheServerDiscoveryComponent
extends Object
implements ResourceDiscoveryComponent<PlatformComponent>, ManualAddFacet<PlatformComponent>, ResourceUpgradeFacet<PlatformComponent>

The discovery component for Apache 2.x servers.

Author:
Ian Springer, Lukas Krejci

Field Summary
static Map<String,String> MODULE_SOURCE_FILE_TO_MODULE_NAME_13
           
static Map<String,String> MODULE_SOURCE_FILE_TO_MODULE_NAME_20
           
 
Constructor Summary
ApacheServerDiscoveryComponent()
           
 
Method Summary
 DiscoveredResourceDetails discoverResource(Configuration pluginConfig, ResourceDiscoveryContext<PlatformComponent> discoveryContext)
           
 Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<PlatformComponent> discoveryContext)
           
static Map<String,String> getDefaultModuleNames(String version)
           
static ApacheDirectiveTree loadParser(String path, String serverRoot)
           
static String scanForGlobInclude(ApacheDirectiveTree tree)
           
 ResourceUpgradeReport upgrade(ResourceUpgradeContext<PlatformComponent> context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE_SOURCE_FILE_TO_MODULE_NAME_20

public static final Map<String,String> MODULE_SOURCE_FILE_TO_MODULE_NAME_20

MODULE_SOURCE_FILE_TO_MODULE_NAME_13

public static final Map<String,String> MODULE_SOURCE_FILE_TO_MODULE_NAME_13
Constructor Detail

ApacheServerDiscoveryComponent

public ApacheServerDiscoveryComponent()
Method Detail

discoverResources

public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<PlatformComponent> discoveryContext)
                                                 throws Exception
Specified by:
discoverResources in interface ResourceDiscoveryComponent<PlatformComponent>
Throws:
Exception

upgrade

public ResourceUpgradeReport upgrade(ResourceUpgradeContext<PlatformComponent> context)
Specified by:
upgrade in interface ResourceUpgradeFacet<PlatformComponent>

discoverResource

public DiscoveredResourceDetails discoverResource(Configuration pluginConfig,
                                                  ResourceDiscoveryContext<PlatformComponent> discoveryContext)
                                           throws InvalidPluginConfigurationException
Specified by:
discoverResource in interface ManualAddFacet<PlatformComponent>
Throws:
InvalidPluginConfigurationException

loadParser

public static ApacheDirectiveTree loadParser(String path,
                                             String serverRoot)

scanForGlobInclude

public static String scanForGlobInclude(ApacheDirectiveTree tree)

getDefaultModuleNames

public static Map<String,String> getDefaultModuleNames(String version)


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