org.rhq.plugins.apache
Class ApacheVirtualHostServiceComponent
java.lang.Object
org.rhq.plugins.apache.ApacheVirtualHostServiceComponent
- All Implemented Interfaces:
- AvailabilityFacet, ConfigurationFacet, CreateChildResourceFacet, DeleteResourceFacet, ResourceComponent<ApacheServerComponent>, MeasurementFacet
public class ApacheVirtualHostServiceComponent
- extends Object
- implements ResourceComponent<ApacheServerComponent>, MeasurementFacet, ConfigurationFacet, DeleteResourceFacet, CreateChildResourceFacet
- Author:
- Ian Springer, Lukas Krejci
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URL_CONFIG_PROP
public static final String URL_CONFIG_PROP
- See Also:
- Constant Field Values
MAIN_SERVER_RESOURCE_KEY
public static final String MAIN_SERVER_RESOURCE_KEY
- See Also:
- Constant Field Values
RESPONSE_TIME_LOG_FILE_CONFIG_PROP
public static final String RESPONSE_TIME_LOG_FILE_CONFIG_PROP
- See Also:
- Constant Field Values
RESPONSE_TIME_URL_EXCLUDES_CONFIG_PROP
public static final String RESPONSE_TIME_URL_EXCLUDES_CONFIG_PROP
- See Also:
- Constant Field Values
RESPONSE_TIME_URL_TRANSFORMS_CONFIG_PROP
public static final String RESPONSE_TIME_URL_TRANSFORMS_CONFIG_PROP
- See Also:
- Constant Field Values
SERVER_NAME_CONFIG_PROP
public static final String SERVER_NAME_CONFIG_PROP
- See Also:
- Constant Field Values
RESOURCE_TYPE_NAME
public static final String RESOURCE_TYPE_NAME
- See Also:
- Constant Field Values
ApacheVirtualHostServiceComponent
public ApacheVirtualHostServiceComponent()
start
public void start(ResourceContext<ApacheServerComponent> resourceContext)
throws Exception
- Specified by:
start in interface ResourceComponent<ApacheServerComponent>
- Throws:
Exception
stop
public void stop()
- Specified by:
stop in interface ResourceComponent<ApacheServerComponent>
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
getValues
public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> schedules)
throws Exception
- Specified by:
getValues in interface MeasurementFacet
- Throws:
Exception
createResource
public CreateResourceReport createResource(CreateResourceReport report)
- Specified by:
createResource in interface CreateChildResourceFacet
getAugeas
public AugeasComponent getAugeas()
getNode
public AugeasNode getNode(AugeasTree tree)
- Returns a node corresponding to this component in the Augeas tree.
- Parameters:
tree -
- Returns:
-
- Throws:
IllegalStateException - if none or more than one nodes found
finishConfigurationUpdate
public void finishConfigurationUpdate(ConfigurationUpdateReport report)
- See Also:
ApacheServerComponent.finishConfigurationUpdate(ConfigurationUpdateReport)
conditionalRestart
public void conditionalRestart()
throws Exception
- Throws:
Exception- See Also:
ApacheServerComponent.conditionalRestart()
deleteEmptyFile
public void deleteEmptyFile(AugeasTree tree,
AugeasNode deletedNode)
getWwwServiceIndex
public static int getWwwServiceIndex(ApacheServerComponent parent,
String resourceKey)
isAugeasEnabled
public boolean isAugeasEnabled()
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.