org.rhq.plugins.jbossas
Class JBossASTomcatConnectorComponent

java.lang.Object
  extended by org.rhq.plugins.jmx.MBeanResourceComponent<JBossASTomcatServerComponent>
      extended by org.rhq.plugins.jbossas.JBossASTomcatConnectorComponent
All Implemented Interfaces:
AvailabilityFacet, ConfigurationFacet, ResourceComponent<JBossASTomcatServerComponent>, MeasurementFacet, OperationFacet, JMXComponent<JBossASTomcatServerComponent>

public class JBossASTomcatConnectorComponent
extends MBeanResourceComponent<JBossASTomcatServerComponent>

RHQ plugin component for representing Tomcat connectors. Much of the functionality is left to the super class, however the metrics required special handling.

Author:
Jason Dobies

Field Summary
static String PROPERTY_ADDRESS
          Plugin property name for the address the connector is bound to.
static String PROPERTY_DASH
          A Dash character is needed to separate the parts of the GlobalRequestProcessorName
static String PROPERTY_PORT
          Plugin property name for the port the connector is listening on.
static String PROPERTY_SCHEMA
          Plugin property name for the schema the connector is processing.
 
Fields inherited from class org.rhq.plugins.jmx.MBeanResourceComponent
bean, OBJECT_NAME_PROP, PROPERTY_TRANSFORM, resourceContext
 
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP
 
Constructor Summary
JBossASTomcatConnectorComponent()
           
 
Method Summary
protected  String getAttributeName(String property)
          Get the real name of the passed property for a concrete connector.
 void getValues(org.rhq.core.domain.measurement.MeasurementReport report, Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
           
 
Methods inherited from class org.rhq.plugins.jmx.MBeanResourceComponent
getAttributeProperty, getAvailability, getBeanProperties, getEmsBean, getEmsConnection, getPropertyValueAsType, getResourceContext, getValues, invokeOperation, invokeOperation, loadBean, loadBean, loadResourceConfiguration, lookupAttributeProperty, setEmsBean, setResourceContext, start, stop, transformBeanName, updateResourceConfiguration, updateResourceConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_ADDRESS

public static final String PROPERTY_ADDRESS
Plugin property name for the address the connector is bound to.

See Also:
Constant Field Values

PROPERTY_PORT

public static final String PROPERTY_PORT
Plugin property name for the port the connector is listening on.

See Also:
Constant Field Values

PROPERTY_SCHEMA

public static final String PROPERTY_SCHEMA
Plugin property name for the schema the connector is processing. Possible values are http (also for https), jk (JBoss 3.2.x, 4.0.x), and ajp (JBoss 4.2.x and EAP)

See Also:
Constant Field Values

PROPERTY_DASH

public static final String PROPERTY_DASH
A Dash character is needed to separate the parts of the GlobalRequestProcessorName

See Also:
Constant Field Values
Constructor Detail

JBossASTomcatConnectorComponent

public JBossASTomcatConnectorComponent()
Method Detail

getValues

public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
                      Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
Specified by:
getValues in interface MeasurementFacet
Overrides:
getValues in class MBeanResourceComponent<JBossASTomcatServerComponent>

getAttributeName

protected String getAttributeName(String property)
Get the real name of the passed property for a concrete connector. The actual object name will begin with: jboss.web:name=xxx-y.y.y.y-ppppp with xxx being the schema, y.y.y.y the address and ppppp the port. We need to substitute in the address and port of this particular connector before the value can be read. In the plugin descriptor, these are written as {schema}, {address} and {port} respectively, so we can replace on those. Worse: if its an 'old' embedded tomcat (JBoss 3.2, 4.0) it does not have the address in the object name.

Overrides:
getAttributeName in class MBeanResourceComponent<JBossASTomcatServerComponent>


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