|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.plugins.apache.ApacheServerComponent
public class ApacheServerComponent
The resource component for Apache 2.x servers.
| Constructor Summary | |
|---|---|
ApacheServerComponent()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONFIGURATION_NOT_SUPPORTED_ERROR_MESSAGE
public static final String PLUGIN_CONFIG_PROP_SERVER_ROOT
public static final String PLUGIN_CONFIG_PROP_EXECUTABLE_PATH
public static final String PLUGIN_CONFIG_PROP_CONTROL_SCRIPT_PATH
public static final String PLUGIN_CONFIG_PROP_URL
public static final String PLUGIN_CONFIG_PROP_HTTPD_CONF
public static final String PLUGIN_CONFIG_PROP_SNMP_AGENT_HOST
public static final String PLUGIN_CONFIG_PROP_SNMP_AGENT_PORT
public static final String PLUGIN_CONFIG_PROP_SNMP_AGENT_COMMUNITY
public static final String PLUGIN_CONFIG_PROP_ERROR_LOG_FILE_PATH
public static final String PLUGIN_CONFIG_PROP_ERROR_LOG_EVENTS_ENABLED
public static final String PLUGIN_CONFIG_PROP_ERROR_LOG_MINIMUM_SEVERITY
public static final String PLUGIN_CONFIG_PROP_ERROR_LOG_INCLUDES_PATTERN
public static final String PLUGIN_CONFIG_PROP_VHOST_FILES_MASK
public static final String PLUGIN_CONFIG_PROP_VHOST_CREATION_POLICY
public static final String PLUGIN_CONFIG_PROP_RESTART_AFTER_CONFIG_UPDATE
public static final String PLUGIN_CONFIG_VHOST_IN_SINGLE_FILE_PROP_VALUE
public static final String PLUGIN_CONFIG_VHOST_PER_FILE_PROP_VALUE
public static final String PLUGIN_CONFIG_CUSTOM_MODULE_NAMES
public static final String PLUGIN_CONFIG_MODULE_MAPPING
public static final String PLUGIN_CONFIG_MODULE_NAME
public static final String PLUGIN_CONFIG_MODULE_SOURCE_FILE
public static final String AUXILIARY_INDEX_PROP
public static final String SERVER_BUILT_TRAIT
public static final String AUGEAS_ENABLED
public static final String DEFAULT_EXECUTABLE_PATH
public static final String DEFAULT_ERROR_LOG_PATH
| Constructor Detail |
|---|
public ApacheServerComponent()
| Method Detail |
|---|
public void start(ResourceContext<PlatformComponent> resourceContext)
throws Exception
start in interface ResourceComponent<PlatformComponent>Exceptionpublic void stop()
stop in interface ResourceComponent<PlatformComponent>public AvailabilityType getAvailability()
getAvailability in interface AvailabilityFacet
public void getValues(MeasurementReport report,
Set<MeasurementScheduleRequest> schedules)
throws Exception
getValues in interface MeasurementFacetException
@Nullable
public OperationResult invokeOperation(@NotNull
String name,
@NotNull
Configuration params)
throws Exception
invokeOperation in interface OperationFacetException
public Configuration loadResourceConfiguration()
throws Exception
loadResourceConfiguration in interface ConfigurationFacetExceptionpublic void updateResourceConfiguration(ConfigurationUpdateReport report)
updateResourceConfiguration in interface ConfigurationFacet
public AugeasProxy getAugeasProxy()
throws net.augeas.AugeasException
getAugeasProxy in interface AugeasRHQComponent<PlatformComponent>net.augeas.AugeasException
public AugeasTree getAugeasTree()
throws net.augeas.AugeasException
getAugeasTree in interface AugeasRHQComponent<PlatformComponent>net.augeas.AugeasExceptionpublic CreateResourceReport createResource(CreateResourceReport report)
createResource in interface CreateChildResourceFacet
@NotNull
public SNMPSession getSNMPSession()
throws Exception
Exception - on failure to initialize the SNMP session
@NotNull
public static SNMPSession getSNMPSession(SNMPClient snmpClient,
Configuration pluginConfig)
throws Exception
Exception@NotNull public File getServerRoot()
@NotNull public File getExecutablePath()
@Nullable public String getServerUrl()
public File getHttpdConfFile()
@NotNull public File getControlScriptPath()
@NotNull public ConfigurationTimestamp getConfigurationTimestamp()
public void finishConfigurationUpdate(ConfigurationUpdateReport report)
updateResourceConfiguration(ConfigurationUpdateReport)
of this resource and any child resources.
Based on the plugin configuration of this resource, the Apache instance is either restarted or left as is.
report - the report is updated with the error message and status is set to failure if the restart fails.public void finishChildResourceCreate(CreateResourceReport report)
finishConfigurationUpdate(ConfigurationUpdateReport) but should
be used in the createResource(CreateResourceReport) method.
report - the report is updated with the error message and status is set to failure if the restart fails.
public void conditionalRestart()
throws Exception
Exception - if the restart fails.
public void deleteEmptyFile(AugeasTree tree,
AugeasNode deletedNode)
tree - TODOdeletedNode - the node that has been deleted from the tree.public Map<String,String> getModuleNames()
public ProcessInfo getCurrentProcessInfo()
public ApacheBinaryInfo getCurrentBinaryInfo()
public HttpdAddressUtility getAddressUtility()
public ApacheDirectiveTree loadParser()
public boolean isAugeasEnabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||