org.rhq.plugins.netservices
Class HTTPNetServiceComponent

java.lang.Object
  extended by org.rhq.plugins.netservices.HTTPNetServiceComponent
All Implemented Interfaces:
AvailabilityFacet, ResourceComponent, MeasurementFacet, OperationFacet

public class HTTPNetServiceComponent
extends java.lang.Object
implements ResourceComponent, MeasurementFacet, OperationFacet

Monitoring of HTTP Servers

Author:
Greg Hinkle

Field Summary
static java.lang.String CONFIG_FOLOW_REDIRECTS
           
static java.lang.String CONFIG_METHOD
           
static java.lang.String CONFIG_PASSWORD
           
static java.lang.String CONFIG_REALM
           
static java.lang.String CONFIG_RESPONSE_PATTERN
           
static java.lang.String CONFIG_SSL_PROTOCOL
           
static java.lang.String CONFIG_URL
           
static java.lang.String CONFIG_USER
           
 
Constructor Summary
HTTPNetServiceComponent()
           
 
Method Summary
 AvailabilityType getAvailability()
           
 void getValues(MeasurementReport report, java.util.Set<MeasurementScheduleRequest> metrics)
           
 boolean getValuesOrAvailability(MeasurementReport report, java.util.Set<MeasurementScheduleRequest> metrics)
           
 OperationResult invokeOperation(java.lang.String name, Configuration parameters)
           
 void start(ResourceContext resourceContext)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_URL

public static final java.lang.String CONFIG_URL
See Also:
Constant Field Values

CONFIG_USER

public static final java.lang.String CONFIG_USER
See Also:
Constant Field Values

CONFIG_PASSWORD

public static final java.lang.String CONFIG_PASSWORD
See Also:
Constant Field Values

CONFIG_REALM

public static final java.lang.String CONFIG_REALM
See Also:
Constant Field Values

CONFIG_SSL_PROTOCOL

public static final java.lang.String CONFIG_SSL_PROTOCOL
See Also:
Constant Field Values

CONFIG_METHOD

public static final java.lang.String CONFIG_METHOD
See Also:
Constant Field Values

CONFIG_FOLOW_REDIRECTS

public static final java.lang.String CONFIG_FOLOW_REDIRECTS
See Also:
Constant Field Values

CONFIG_RESPONSE_PATTERN

public static final java.lang.String CONFIG_RESPONSE_PATTERN
See Also:
Constant Field Values
Constructor Detail

HTTPNetServiceComponent

public HTTPNetServiceComponent()
Method Detail

start

public void start(ResourceContext resourceContext)
           throws InvalidPluginConfigurationException,
                  java.lang.Exception
Specified by:
start in interface ResourceComponent
Throws:
InvalidPluginConfigurationException
java.lang.Exception

stop

public void stop()
Specified by:
stop in interface ResourceComponent

getAvailability

public AvailabilityType getAvailability()
Specified by:
getAvailability in interface AvailabilityFacet

getValues

public void getValues(MeasurementReport report,
                      java.util.Set<MeasurementScheduleRequest> metrics)
               throws java.lang.Exception
Specified by:
getValues in interface MeasurementFacet
Throws:
java.lang.Exception

getValuesOrAvailability

public boolean getValuesOrAvailability(MeasurementReport report,
                                       java.util.Set<MeasurementScheduleRequest> metrics)
                                throws java.lang.Exception
Throws:
java.lang.Exception

invokeOperation

public OperationResult invokeOperation(java.lang.String name,
                                       Configuration parameters)
                                throws java.lang.InterruptedException,
                                       java.lang.Exception
Specified by:
invokeOperation in interface OperationFacet
Throws:
java.lang.InterruptedException
java.lang.Exception


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.