org.rhq.plugins.jbossas5.serviceBinding
Class ManagerComponent

java.lang.Object
  extended by org.rhq.plugins.jbossas5.AbstractManagedComponent
      extended by org.rhq.plugins.jbossas5.ManagedComponentComponent
          extended by org.rhq.plugins.jbossas5.serviceBinding.ManagerComponent
All Implemented Interfaces:
AvailabilityFacet, ConfigurationFacet, CreateChildResourceFacet, DeleteResourceFacet, ResourceComponent<ProfileServiceComponent<?>>, MeasurementFacet, OperationFacet, ProfileServiceComponent<ProfileServiceComponent<?>>, JMXComponent<ProfileServiceComponent<?>>

public class ManagerComponent
extends ManagedComponentComponent
implements CreateChildResourceFacet

Manager component for the Service Binding Manager.

Author:
Heiko W. Rupp, Lukas Krejci

Nested Class Summary
 
Nested classes/interfaces inherited from class org.rhq.plugins.jbossas5.ManagedComponentComponent
ManagedComponentComponent.Config
 
Field Summary
 
Fields inherited from class org.rhq.plugins.jbossas5.ManagedComponentComponent
PREFIX_DELIMITER
 
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP
 
Constructor Summary
ManagerComponent()
           
 
Method Summary
 void checkValidity(org.rhq.core.domain.configuration.Configuration bindingSetConfiguration)
          Checks the validity of the binding set configuration before it is submitted to the Profile Service.
 CreateResourceReport createResource(CreateResourceReport report)
           
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
           
 org.jboss.managed.api.ManagedComponent getBindingManager()
           
 String getBindingSetNameFromResourceKey(String resourceKey)
           
 String getBindingSetResourceKey(String bindingSetName)
           
 org.jboss.metatype.api.types.MetaType getBindingSetValueMetaType(org.jboss.managed.api.ManagedComponent bindingManager)
           
 org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
           
 void updateBindingManager(org.jboss.managed.api.ManagedComponent bindingManagerComponent)
           
 void updateResourceConfiguration(ConfigurationUpdateReport configurationUpdateReport)
           
 
Methods inherited from class org.rhq.plugins.jbossas5.ManagedComponentComponent
addValueToMeasurementReport, deleteResource, getComponentName, getComponentType, getInnerValue, getManagedComponent, getManagedProperty, getMeasurement, getSimpleValue, getSimpleValue, getValues, getValues, invokeOperation, invokeOperation, start, stop, updateComponent
 
Methods inherited from class org.rhq.plugins.jbossas5.AbstractManagedComponent
getConnection, getEmsConnection, getResourceContext, getResourceDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagerComponent

public ManagerComponent()
Method Detail

getAvailability

public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
Specified by:
getAvailability in interface AvailabilityFacet
Overrides:
getAvailability in class ManagedComponentComponent

loadResourceConfiguration

public org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
Specified by:
loadResourceConfiguration in interface ConfigurationFacet
Overrides:
loadResourceConfiguration in class ManagedComponentComponent

updateResourceConfiguration

public void updateResourceConfiguration(ConfigurationUpdateReport configurationUpdateReport)
Specified by:
updateResourceConfiguration in interface ConfigurationFacet
Overrides:
updateResourceConfiguration in class ManagedComponentComponent

createResource

public CreateResourceReport createResource(CreateResourceReport report)
Specified by:
createResource in interface CreateChildResourceFacet

getBindingSetValueMetaType

public org.jboss.metatype.api.types.MetaType getBindingSetValueMetaType(org.jboss.managed.api.ManagedComponent bindingManager)

getBindingManager

public org.jboss.managed.api.ManagedComponent getBindingManager()

updateBindingManager

public void updateBindingManager(org.jboss.managed.api.ManagedComponent bindingManagerComponent)
                          throws Exception
Throws:
Exception

getBindingSetResourceKey

public String getBindingSetResourceKey(String bindingSetName)

getBindingSetNameFromResourceKey

public String getBindingSetNameFromResourceKey(String resourceKey)

checkValidity

public void checkValidity(org.rhq.core.domain.configuration.Configuration bindingSetConfiguration)
                   throws IllegalArgumentException,
                          UnknownHostException
Checks the validity of the binding set configuration before it is submitted to the Profile Service. This is to work around JOPR-372.

Parameters:
bindingSetConfiguration -
Throws:
IllegalArgumentException - if some of the required properties is null or empty
UnknownHostException - if default host name is invalid


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