public class ManagedComponentComponent extends AbstractManagedComponent implements ConfigurationFacet, DeleteResourceFacet, OperationFacet, MeasurementFacet
ManagedComponents in a Profile.| Modifier and Type | Class and Description |
|---|---|
static interface |
ManagedComponentComponent.Config |
| Modifier and Type | Field and Description |
|---|---|
protected static char |
PREFIX_DELIMITER |
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP| Constructor and Description |
|---|
ManagedComponentComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addValueToMeasurementReport(org.rhq.core.domain.measurement.MeasurementReport report,
org.rhq.core.domain.measurement.MeasurementScheduleRequest request,
Object value) |
void |
deleteResource() |
org.rhq.core.domain.measurement.AvailabilityType |
getAvailability() |
protected org.rhq.core.domain.measurement.AvailabilityType |
getAvailabilityForRunState(org.jboss.managed.api.RunState runState) |
protected String |
getComponentName() |
protected org.jboss.managed.api.ComponentType |
getComponentType() |
protected static Object |
getInnerValue(org.jboss.metatype.api.values.MetaValue metaValue) |
protected org.jboss.managed.api.ManagedComponent |
getManagedComponent()
This method should most likely not be overridden.
|
protected org.jboss.managed.api.ManagedComponent |
getManagedComponent(org.jboss.deployers.spi.management.ManagementView managementView)
This is an override point.
|
protected org.jboss.managed.api.ManagedProperty |
getManagedProperty(org.jboss.managed.api.ManagedComponent managedComponent,
org.rhq.core.domain.measurement.MeasurementScheduleRequest request)
The name of the measurement schedule request (i.e.
|
protected String |
getMeasurement(org.jboss.managed.api.ManagedComponent component,
String metricName) |
protected Object |
getSimpleValue(org.jboss.managed.api.ManagedComponent managedComponent,
org.rhq.core.domain.measurement.MeasurementScheduleRequest request)
The name of the measurement schedule request (i.e.
|
protected Object |
getSimpleValue(org.jboss.managed.api.ManagedComponent managedComponent,
String metricName) |
protected void |
getValues(org.jboss.managed.api.ManagedComponent managedComponent,
org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics) |
void |
getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics) |
protected OperationResult |
invokeOperation(org.jboss.managed.api.ManagedComponent managedComponent,
String name,
org.rhq.core.domain.configuration.Configuration parameters) |
OperationResult |
invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration parameters) |
org.rhq.core.domain.configuration.Configuration |
loadResourceConfiguration() |
void |
start(ResourceContext<ProfileServiceComponent<?>> resourceContext) |
void |
stop() |
protected void |
updateComponent(org.jboss.managed.api.ManagedComponent managedComponent) |
void |
updateResourceConfiguration(ConfigurationUpdateReport configurationUpdateReport) |
getConnection, getEmsConnection, getResourceContext, getResourceDescriptionprotected static final char PREFIX_DELIMITER
public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
getAvailability in interface AvailabilityFacetprotected org.rhq.core.domain.measurement.AvailabilityType getAvailabilityForRunState(org.jboss.managed.api.RunState runState)
public void start(ResourceContext<ProfileServiceComponent<?>> resourceContext) throws Exception
start in interface ResourceComponent<ProfileServiceComponent<?>>start in class AbstractManagedComponentExceptionpublic void stop()
stop in interface ResourceComponent<ProfileServiceComponent<?>>stop in class AbstractManagedComponentpublic org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
loadResourceConfiguration in interface ConfigurationFacetpublic void updateResourceConfiguration(ConfigurationUpdateReport configurationUpdateReport)
updateResourceConfiguration in interface ConfigurationFacetpublic void deleteResource()
throws Exception
deleteResource in interface DeleteResourceFacetExceptionpublic OperationResult invokeOperation(String name, org.rhq.core.domain.configuration.Configuration parameters) throws Exception
invokeOperation in interface OperationFacetExceptionprotected OperationResult invokeOperation(org.jboss.managed.api.ManagedComponent managedComponent, String name, org.rhq.core.domain.configuration.Configuration parameters) throws Exception
Exceptionpublic void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
throws Exception
getValues in interface MeasurementFacetExceptionprotected void getValues(org.jboss.managed.api.ManagedComponent managedComponent,
org.rhq.core.domain.measurement.MeasurementReport report,
Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
throws Exception
Exceptionprotected String getMeasurement(org.jboss.managed.api.ManagedComponent component, String metricName) throws Exception
Exceptionprotected void updateComponent(org.jboss.managed.api.ManagedComponent managedComponent)
throws Exception
Exception@Nullable protected Object getSimpleValue(org.jboss.managed.api.ManagedComponent managedComponent, org.rhq.core.domain.measurement.MeasurementScheduleRequest request)
managedComponent - a managed componentrequest - a measurement schedule request@Nullable protected Object getSimpleValue(org.jboss.managed.api.ManagedComponent managedComponent, String metricName)
@Nullable
protected org.jboss.managed.api.ManagedProperty getManagedProperty(org.jboss.managed.api.ManagedComponent managedComponent,
org.rhq.core.domain.measurement.MeasurementScheduleRequest request)
managedComponent - a managed componentrequest - a measurement schedule request@Nullable protected static Object getInnerValue(org.jboss.metatype.api.values.MetaValue metaValue)
protected void addValueToMeasurementReport(org.rhq.core.domain.measurement.MeasurementReport report,
org.rhq.core.domain.measurement.MeasurementScheduleRequest request,
Object value)
protected org.jboss.managed.api.ComponentType getComponentType()
protected String getComponentName()
@NotNull protected org.jboss.managed.api.ManagedComponent getManagedComponent()
getManagedComponent(ManagementView).
RuntimeException - if fetching the ManagementView or getting the component failsIllegalStateException - if the managedComponent is null/not foundprotected org.jboss.managed.api.ManagedComponent getManagedComponent(org.jboss.deployers.spi.management.ManagementView managementView)
throws Exception
getManagedComponent().managementView - ExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.