org.rhq.plugins.apache
Class ApacheVirtualHostServiceDiscoveryComponent
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGS_DIRECTORY_NAME
public static final String LOGS_DIRECTORY_NAME
- See Also:
- Constant Field Values
ApacheVirtualHostServiceDiscoveryComponent
public ApacheVirtualHostServiceDiscoveryComponent()
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.