org.rhq.plugins.jbossas
Class JBossASTomcatConnectorComponent
java.lang.Object
org.rhq.plugins.jmx.MBeanResourceComponent<JBossASTomcatServerComponent>
org.rhq.plugins.jbossas.JBossASTomcatConnectorComponent
- All Implemented Interfaces:
- AvailabilityFacet, ConfigurationFacet, ResourceComponent<JBossASTomcatServerComponent>, MeasurementFacet, OperationFacet, JMXComponent<JBossASTomcatServerComponent>
public class JBossASTomcatConnectorComponent
- extends MBeanResourceComponent<JBossASTomcatServerComponent>
JON 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 java.lang.String |
PROPERTY_ADDRESS
Plugin property name for the address the connector is bound to. |
static java.lang.String |
PROPERTY_DASH
A Dash character is needed to separate the parts of the GlobalRequestProcessorName |
static java.lang.String |
PROPERTY_PORT
Plugin property name for the port the connector is listening on. |
static java.lang.String |
PROPERTY_SCHEMA
Plugin property name for the schema the connector is processing. |
| Methods inherited from class org.rhq.plugins.jmx.MBeanResourceComponent |
getAttributeProperty, getAvailability, getBeanProperties, getEmsBean, getEmsConnection, 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 |
PROPERTY_ADDRESS
public static final java.lang.String PROPERTY_ADDRESS
- Plugin property name for the address the connector is bound to.
- See Also:
- Constant Field Values
PROPERTY_PORT
public static final java.lang.String PROPERTY_PORT
- Plugin property name for the port the connector is listening on.
- See Also:
- Constant Field Values
PROPERTY_SCHEMA
public static final java.lang.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 java.lang.String PROPERTY_DASH
- A Dash character is needed to separate the parts of the GlobalRequestProcessorName
- See Also:
- Constant Field Values
JBossASTomcatConnectorComponent
public JBossASTomcatConnectorComponent()
getValues
public void getValues(MeasurementReport report,
java.util.Set<MeasurementScheduleRequest> requests)
- Specified by:
getValues in interface MeasurementFacet- Overrides:
getValues in class MBeanResourceComponent<JBossASTomcatServerComponent>
getAttributeName
protected java.lang.String getAttributeName(java.lang.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-2009 Red Hat, Inc.. All Rights Reserved.