|
||||||||||
| 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 1.3/2.x servers.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_ERROR_LOG_PATH
|
static java.lang.String |
DEFAULT_EXECUTABLE_PATH
|
static java.lang.String |
PLUGIN_CONFIG_PROP_CONTROL_SCRIPT_PATH
|
static java.lang.String |
PLUGIN_CONFIG_PROP_ERROR_LOG_EVENTS_ENABLED
|
static java.lang.String |
PLUGIN_CONFIG_PROP_ERROR_LOG_FILE_PATH
|
static java.lang.String |
PLUGIN_CONFIG_PROP_ERROR_LOG_INCLUDES_PATTERN
|
static java.lang.String |
PLUGIN_CONFIG_PROP_ERROR_LOG_MINIMUM_SEVERITY
|
static java.lang.String |
PLUGIN_CONFIG_PROP_EXECUTABLE_PATH
|
static java.lang.String |
PLUGIN_CONFIG_PROP_HTTPD_CONF
|
static java.lang.String |
PLUGIN_CONFIG_PROP_SERVER_ROOT
|
static java.lang.String |
PLUGIN_CONFIG_PROP_SNMP_AGENT_COMMUNITY
|
static java.lang.String |
PLUGIN_CONFIG_PROP_SNMP_AGENT_HOST
|
static java.lang.String |
PLUGIN_CONFIG_PROP_SNMP_AGENT_PORT
|
static java.lang.String |
PLUGIN_CONFIG_PROP_URL
|
static java.lang.String |
SERVER_BUILT_TRAIT
|
| Constructor Summary | |
|---|---|
ApacheServerComponent()
|
|
| Method Summary | |
|---|---|
AvailabilityType |
getAvailability()
|
java.io.File |
getControlScriptPath()
Return the absolute path of this Apache server's control script (e.g. |
java.io.File |
getExecutablePath()
Return the absolute path of this Apache server's executable (e.g. |
java.io.File |
getHttpdConfFile()
Returns the httpd.conf file |
java.io.File |
getServerRoot()
Return the absolute path of this Apache server's server root (e.g. |
SNMPSession |
getSNMPSession()
Returns an SNMP session that can be used to communicate with this server's SNMP agent. |
static SNMPSession |
getSNMPSession(SNMPClient snmpClient,
Configuration pluginConfig)
|
void |
getValues(MeasurementReport report,
java.util.Set<MeasurementScheduleRequest> schedules)
|
OperationResult |
invokeOperation(java.lang.String name,
Configuration params)
|
void |
start(ResourceContext resourceContext)
|
void |
startOperationFacet(OperationContext context)
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PLUGIN_CONFIG_PROP_SERVER_ROOT
public static final java.lang.String PLUGIN_CONFIG_PROP_EXECUTABLE_PATH
public static final java.lang.String PLUGIN_CONFIG_PROP_CONTROL_SCRIPT_PATH
public static final java.lang.String PLUGIN_CONFIG_PROP_URL
public static final java.lang.String PLUGIN_CONFIG_PROP_HTTPD_CONF
public static final java.lang.String PLUGIN_CONFIG_PROP_SNMP_AGENT_HOST
public static final java.lang.String PLUGIN_CONFIG_PROP_SNMP_AGENT_PORT
public static final java.lang.String PLUGIN_CONFIG_PROP_SNMP_AGENT_COMMUNITY
public static final java.lang.String PLUGIN_CONFIG_PROP_ERROR_LOG_FILE_PATH
public static final java.lang.String PLUGIN_CONFIG_PROP_ERROR_LOG_EVENTS_ENABLED
public static final java.lang.String PLUGIN_CONFIG_PROP_ERROR_LOG_MINIMUM_SEVERITY
public static final java.lang.String PLUGIN_CONFIG_PROP_ERROR_LOG_INCLUDES_PATTERN
public static final java.lang.String SERVER_BUILT_TRAIT
public static final java.lang.String DEFAULT_EXECUTABLE_PATH
public static final java.lang.String DEFAULT_ERROR_LOG_PATH
| Constructor Detail |
|---|
public ApacheServerComponent()
| Method Detail |
|---|
public void start(ResourceContext resourceContext)
throws java.lang.Exception
start in interface ResourceComponentjava.lang.Exceptionpublic void stop()
stop in interface ResourceComponentpublic AvailabilityType getAvailability()
getAvailability in interface AvailabilityFacet
public void getValues(MeasurementReport report,
java.util.Set<MeasurementScheduleRequest> schedules)
throws java.lang.Exception
getValues in interface MeasurementFacetjava.lang.Exceptionpublic void startOperationFacet(OperationContext context)
@Nullable
public OperationResult invokeOperation(@NotNull
java.lang.String name,
@NotNull
Configuration params)
throws java.lang.Exception
invokeOperation in interface OperationFacetjava.lang.Exception
@NotNull
public SNMPSession getSNMPSession()
throws java.lang.Exception
java.lang.Exception - on failure to initialize the SNMP session
@NotNull
public static SNMPSession getSNMPSession(SNMPClient snmpClient,
Configuration pluginConfig)
throws java.lang.Exception
java.lang.Exception@NotNull public java.io.File getServerRoot()
@NotNull public java.io.File getExecutablePath()
public java.io.File getHttpdConfFile()
@NotNull public java.io.File getControlScriptPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||