org.rhq.plugins.jbossas5
Class ManagedComponentComponent
java.lang.Object
org.rhq.plugins.jbossas5.AbstractManagedComponent
org.rhq.plugins.jbossas5.ManagedComponentComponent
- All Implemented Interfaces:
- AvailabilityFacet, ConfigurationFacet, DeleteResourceFacet, ResourceComponent<ProfileServiceComponent>, MeasurementFacet, OperationFacet, ProfileServiceComponent<ProfileServiceComponent>, JMXComponent<ProfileServiceComponent>
- Direct Known Subclasses:
- AbstractEjbBeanComponent, ConnectorComponent, JmsDestinationComponent, ManagerComponent, TxConnectionFactoryComponent, VirtualHostComponent, WebApplicationContextComponent
public class ManagedComponentComponent
- extends AbstractManagedComponent
- implements ConfigurationFacet, DeleteResourceFacet, OperationFacet, MeasurementFacet
Service ResourceComponent for all ManagedComponents in a Profile.
- Author:
- Ian Springer, Jason Dobies, Mark Spritzler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFIX_DELIMITER
protected static final char PREFIX_DELIMITER
- See Also:
- Constant Field Values
ManagedComponentComponent
public ManagedComponentComponent()
getAvailability
public AvailabilityType getAvailability()
- Specified by:
getAvailability in interface AvailabilityFacet
start
public void start(ResourceContext<ProfileServiceComponent> resourceContext)
throws java.lang.Exception
- Specified by:
start in interface ResourceComponent<ProfileServiceComponent>- Overrides:
start in class AbstractManagedComponent
- Throws:
java.lang.Exception
stop
public void stop()
- Specified by:
stop in interface ResourceComponent<ProfileServiceComponent>- Overrides:
stop in class AbstractManagedComponent
loadResourceConfiguration
public Configuration loadResourceConfiguration()
- Specified by:
loadResourceConfiguration in interface ConfigurationFacet
updateResourceConfiguration
public void updateResourceConfiguration(ConfigurationUpdateReport configurationUpdateReport)
- Specified by:
updateResourceConfiguration in interface ConfigurationFacet
deleteResource
public void deleteResource()
throws java.lang.Exception
- Specified by:
deleteResource in interface DeleteResourceFacet
- Throws:
java.lang.Exception
invokeOperation
public OperationResult invokeOperation(java.lang.String name,
Configuration parameters)
throws java.lang.Exception
- Specified by:
invokeOperation in interface OperationFacet
- Throws:
java.lang.Exception
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
updateComponent
protected void updateComponent(org.jboss.managed.api.ManagedComponent managedComponent)
throws java.lang.Exception
- Throws:
java.lang.Exception
getSimpleValue
@Nullable
protected java.lang.Object getSimpleValue(org.jboss.managed.api.ManagedComponent managedComponent,
MeasurementScheduleRequest request)
- The name of the measurement schedule request (i.e. the metric name) can be in one of two forms:
[prefix'|']simplePropertyName (e.g. "maxTime" or "ThreadPool|currentThreadCount")
[prefix'|']compositePropertyName'.'key (e.g. "consumerCount" or "messageStatistics.count")
- Parameters:
managedComponent - a managed componentrequest - a measurement schedule request
- Returns:
- the metric value
addValueToMeasurementReport
protected void addValueToMeasurementReport(MeasurementReport report,
MeasurementScheduleRequest request,
java.lang.Object value)
getComponentType
protected org.jboss.managed.api.ComponentType getComponentType()
getComponentName
protected java.lang.String getComponentName()
getManagedComponent
protected org.jboss.managed.api.ManagedComponent getManagedComponent()
Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.