org.rhq.plugins.apache
Class ApacheDirectoryComponent
java.lang.Object
org.rhq.plugins.apache.ApacheDirectoryComponent
- All Implemented Interfaces:
- AvailabilityFacet, ConfigurationFacet, DeleteResourceFacet, ResourceComponent<ApacheVirtualHostServiceComponent>
public class ApacheDirectoryComponent
- extends Object
- implements ResourceComponent<ApacheVirtualHostServiceComponent>, ConfigurationFacet, DeleteResourceFacet
Component for configuring the <Directory> and underlying directives
inside Apache configuration.
- Author:
- Lukas Krejci
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REGEXP_PROP
public static final String REGEXP_PROP
- See Also:
- Constant Field Values
DIRECTORY_DIRECTIVE
public static final String DIRECTORY_DIRECTIVE
- See Also:
- Constant Field Values
ApacheDirectoryComponent
public ApacheDirectoryComponent()
start
public void start(ResourceContext<ApacheVirtualHostServiceComponent> context)
throws InvalidPluginConfigurationException,
Exception
- Specified by:
start in interface ResourceComponent<ApacheVirtualHostServiceComponent>
- Throws:
InvalidPluginConfigurationException
Exception
stop
public void stop()
- Specified by:
stop in interface ResourceComponent<ApacheVirtualHostServiceComponent>
getAvailability
public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
- Specified by:
getAvailability in interface AvailabilityFacet
loadResourceConfiguration
public org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
throws Exception
- Specified by:
loadResourceConfiguration in interface ConfigurationFacet
- Throws:
Exception
updateResourceConfiguration
public void updateResourceConfiguration(ConfigurationUpdateReport report)
- Specified by:
updateResourceConfiguration in interface ConfigurationFacet
deleteResource
public void deleteResource()
throws Exception
- Specified by:
deleteResource in interface DeleteResourceFacet
- Throws:
Exception
getNode
public AugeasNode getNode(AugeasNode virtualHost)
- Gets the node from under given node corresponding to the Directory this
component is managing.
- Parameters:
virtualHost - the node of the parent virtualHost (or root node of the augeas
tree)
- Returns:
getNode
public AugeasNode getNode(AugeasTree tree)
getAugeas
public AugeasComponent getAugeas()
finishConfigurationUpdate
public void finishConfigurationUpdate(ConfigurationUpdateReport report)
- See Also:
ApacheServerComponent.finishConfigurationUpdate(ConfigurationUpdateReport)
isAugeasEnabled
public boolean isAugeasEnabled()
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.