org.modeshape.rhq.plugin
Class ConnectorComponent

java.lang.Object
  extended by org.modeshape.rhq.plugin.Facet
      extended by org.modeshape.rhq.plugin.ConnectorComponent
All Implemented Interfaces:
org.rhq.core.pluginapi.availability.AvailabilityFacet, org.rhq.core.pluginapi.configuration.ConfigurationFacet, org.rhq.core.pluginapi.content.ContentFacet, org.rhq.core.pluginapi.inventory.CreateChildResourceFacet, org.rhq.core.pluginapi.inventory.DeleteResourceFacet, org.rhq.core.pluginapi.inventory.ResourceComponent<org.rhq.core.pluginapi.inventory.ResourceComponent>, org.rhq.core.pluginapi.measurement.MeasurementFacet, org.rhq.core.pluginapi.operation.OperationFacet, org.rhq.plugins.jbossas5.ProfileServiceComponent<org.rhq.core.pluginapi.inventory.ResourceComponent>, org.rhq.plugins.jmx.JMXComponent<org.rhq.core.pluginapi.inventory.ResourceComponent>

public class ConnectorComponent
extends Facet


Field Summary
 
Fields inherited from class org.modeshape.rhq.plugin.Facet
componentType, deploymentName, isAvailable, LOG, name, resourceConfiguration, resourceContext
 
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP
 
Constructor Summary
ConnectorComponent()
           
 
Method Summary
 org.rhq.core.pluginapi.inventory.CreateResourceReport createResource(org.rhq.core.pluginapi.inventory.CreateResourceReport arg0)
          
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
          
 org.rhq.plugins.jbossas5.connection.ProfileServiceConnection getConnection()
          
 org.mc4j.ems.connection.EmsConnection getEmsConnection()
          
 void getValues(org.rhq.core.domain.measurement.MeasurementReport report, Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
          The plugin container will call this method when your resource component has been scheduled to collect some measurements now.
protected  void setOperationArguments(String name, org.rhq.core.domain.configuration.Configuration configuration, Map<String,Object> valueMap)
          
 
Methods inherited from class org.modeshape.rhq.plugin.Facet
componentType, deleteResource, deployPackages, discoverDeployedPackages, execute, generateInstallationSteps, getComponentIdentifier, getDefaultPluginConfiguration, getManagedProperties, getResourceConfiguration, invokeOperation, isAvailable, loadResourceConfiguration, removePackages, retrievePackageBits, setComponentIdentifier, setComponentName, setMetricArguments, setResourceConfiguration, start, stop, updateComponent, updateResourceConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorComponent

public ConnectorComponent()
Method Detail

getAvailability

public org.rhq.core.domain.measurement.AvailabilityType getAvailability()

Specified by:
getAvailability in interface org.rhq.core.pluginapi.availability.AvailabilityFacet
Overrides:
getAvailability in class Facet
See Also:
Facet.getAvailability()

setOperationArguments

protected void setOperationArguments(String name,
                                     org.rhq.core.domain.configuration.Configuration configuration,
                                     Map<String,Object> valueMap)

Overrides:
setOperationArguments in class Facet
See Also:
Facet.setOperationArguments(java.lang.String, org.rhq.core.domain.configuration.Configuration, java.util.Map)

getValues

public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
                      Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> requests)
               throws Exception
The plugin container will call this method when your resource component has been scheduled to collect some measurements now. It is within this method that you actually talk to the managed resource and collect the measurement data that is has emitted.

Specified by:
getValues in interface org.rhq.core.pluginapi.measurement.MeasurementFacet
Specified by:
getValues in class Facet
Throws:
Exception
See Also:
Facet.getValues(org.rhq.core.domain.measurement.MeasurementReport, java.util.Set)

createResource

public org.rhq.core.pluginapi.inventory.CreateResourceReport createResource(org.rhq.core.pluginapi.inventory.CreateResourceReport arg0)

See Also:
CreateChildResourceFacet.createResource(org.rhq.core.pluginapi.inventory.CreateResourceReport)

getConnection

public org.rhq.plugins.jbossas5.connection.ProfileServiceConnection getConnection()

See Also:
ProfileServiceComponent.getConnection()

getEmsConnection

public org.mc4j.ems.connection.EmsConnection getEmsConnection()

See Also:
JMXComponent.getEmsConnection()


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.