org.rhq.plugins.apache
Class ApacheVirtualHostServiceDiscoveryComponent

java.lang.Object
  extended by org.rhq.plugins.apache.ApacheVirtualHostServiceDiscoveryComponent
All Implemented Interfaces:
ResourceDiscoveryComponent<ApacheServerComponent>, ResourceUpgradeFacet<ApacheServerComponent>

public class ApacheVirtualHostServiceDiscoveryComponent
extends Object
implements ResourceDiscoveryComponent<ApacheServerComponent>, ResourceUpgradeFacet<ApacheServerComponent>

Discovers VirtualHosts under the Apache server by reading them out from Augeas tree constructed in the parent component. If Augeas is not present, an attempt is made to discover the vhosts using SNMP module.

Author:
Ian Springer, Lukas Krejci

Field Summary
static String LOGS_DIRECTORY_NAME
           
 
Constructor Summary
ApacheVirtualHostServiceDiscoveryComponent()
           
 
Method Summary
static String createResourceKey(String serverName, List<String> hosts)
           
 Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<ApacheServerComponent> context)
           
 org.rhq.core.domain.resource.ResourceUpgradeReport upgrade(ResourceUpgradeContext<ApacheServerComponent> inventoriedResource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGS_DIRECTORY_NAME

public static final String LOGS_DIRECTORY_NAME
See Also:
Constant Field Values
Constructor Detail

ApacheVirtualHostServiceDiscoveryComponent

public ApacheVirtualHostServiceDiscoveryComponent()
Method Detail

discoverResources

public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<ApacheServerComponent> context)
                                                 throws InvalidPluginConfigurationException,
                                                        Exception
Specified by:
discoverResources in interface ResourceDiscoveryComponent<ApacheServerComponent>
Throws:
InvalidPluginConfigurationException
Exception

upgrade

public org.rhq.core.domain.resource.ResourceUpgradeReport upgrade(ResourceUpgradeContext<ApacheServerComponent> inventoriedResource)
Specified by:
upgrade in interface ResourceUpgradeFacet<ApacheServerComponent>

createResourceKey

public static String createResourceKey(String serverName,
                                       List<String> hosts)


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