org.rhq.plugins.apache
Class ApacheServerDiscoveryComponent
java.lang.Object
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
|
Method Summary |
DiscoveredResourceDetails |
discoverResource(org.rhq.core.domain.configuration.Configuration pluginConfig,
ResourceDiscoveryContext<PlatformComponent> discoveryContext)
|
Set<DiscoveredResourceDetails> |
discoverResources(ResourceDiscoveryContext<PlatformComponent> discoveryContext)
|
static String |
formatResourceKey(org.rhq.core.domain.configuration.Configuration pluginConfiguration)
|
static String |
formatResourceKey(String serverRoot,
String httpdConf)
|
static Map<String,String> |
getDefaultModuleNames(String version)
|
static ApacheDirectiveTree |
parseFullConfiguration(String path,
String serverRoot)
|
static ApacheDirectiveTree |
parseRuntimeConfiguration(String path,
ProcessInfo processInfo,
ApacheBinaryInfo binaryInfo)
|
static ApacheDirectiveTree |
parseRuntimeConfiguration(String path,
ProcessInfo processInfo,
ApacheBinaryInfo binaryInfo,
Map<String,String> moduleNames,
boolean suppressUnknownModuleWarnings)
|
static String |
scanForGlobInclude(ApacheDirectiveTree tree)
|
org.rhq.core.domain.resource.ResourceUpgradeReport |
upgrade(ResourceUpgradeContext<PlatformComponent> context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ApacheServerDiscoveryComponent
public ApacheServerDiscoveryComponent()
discoverResources
public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<PlatformComponent> discoveryContext)
throws Exception
- Specified by:
discoverResources in interface ResourceDiscoveryComponent<PlatformComponent>
- Throws:
Exception
upgrade
public org.rhq.core.domain.resource.ResourceUpgradeReport upgrade(ResourceUpgradeContext<PlatformComponent> context)
- Specified by:
upgrade in interface ResourceUpgradeFacet<PlatformComponent>
discoverResource
public DiscoveredResourceDetails discoverResource(org.rhq.core.domain.configuration.Configuration pluginConfig,
ResourceDiscoveryContext<PlatformComponent> discoveryContext)
throws InvalidPluginConfigurationException
- Specified by:
discoverResource in interface ManualAddFacet<PlatformComponent>
- Throws:
InvalidPluginConfigurationException
parseFullConfiguration
public static ApacheDirectiveTree parseFullConfiguration(String path,
String serverRoot)
parseRuntimeConfiguration
public static ApacheDirectiveTree parseRuntimeConfiguration(String path,
ProcessInfo processInfo,
ApacheBinaryInfo binaryInfo)
parseRuntimeConfiguration
public static ApacheDirectiveTree parseRuntimeConfiguration(String path,
ProcessInfo processInfo,
ApacheBinaryInfo binaryInfo,
Map<String,String> moduleNames,
boolean suppressUnknownModuleWarnings)
scanForGlobInclude
public static String scanForGlobInclude(ApacheDirectiveTree tree)
formatResourceKey
public static String formatResourceKey(org.rhq.core.domain.configuration.Configuration pluginConfiguration)
formatResourceKey
public static String formatResourceKey(String serverRoot,
String httpdConf)
getDefaultModuleNames
public static Map<String,String> getDefaultModuleNames(String version)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.