org.teiid.rhq.plugin
Class TranslatorComponent

java.lang.Object
  extended by org.teiid.rhq.plugin.Facet
      extended by org.teiid.rhq.plugin.TranslatorComponent
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 TranslatorComponent
extends Facet

Component class for the Teiid Translator.


Nested Class Summary
static interface TranslatorComponent.Config
           
 
Field Summary
 
Fields inherited from class org.teiid.rhq.plugin.Facet
componentType, deploymentName, isAvailable, name, resourceConfiguration, resourceContext
 
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP
 
Constructor Summary
TranslatorComponent()
           
 
Method Summary
 org.rhq.plugins.jbossas5.connection.ProfileServiceConnection getConnection()
           
 org.mc4j.ems.connection.EmsConnection getEmsConnection()
           
static
<T> void
getTranslatorValues(org.jboss.metatype.api.values.MetaValue pValue, org.rhq.core.domain.configuration.PropertyMap map, org.rhq.core.domain.configuration.PropertyList list)
           
 void getValues(org.rhq.core.domain.measurement.MeasurementReport report, java.util.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.
 org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
          The plugin container will call this method and it needs to obtain the current configuration of the managed resource.
protected  void setOperationArguments(java.lang.String name, org.rhq.core.domain.configuration.Configuration configuration, java.util.Map argumentMap)
           
 void start(org.rhq.core.pluginapi.inventory.ResourceContext context)
          This is called when your component has been started with the given context.
 
Methods inherited from class org.teiid.rhq.plugin.Facet
componentType, createContentBasedResource, createResource, deleteResource, deployPackages, discoverDeployedPackages, execute, generateInstallationSteps, getAvailability, getComponentIdentifier, getDefaultPluginConfiguration, getManagedProperties, getResourceConfiguration, invokeOperation, isAvailable, removePackages, retrievePackageBits, setComponentIdentifier, setComponentName, setMetricArguments, setResourceConfiguration, stop, updateComponent, updateResourceConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TranslatorComponent

public TranslatorComponent()
Method Detail

start

public void start(org.rhq.core.pluginapi.inventory.ResourceContext context)
Description copied from class: Facet
This is called when your component has been started with the given context. You normally initialize some internal state of your component as well as attempt to make a stateful connection to your managed resource.

Specified by:
start in interface org.rhq.core.pluginapi.inventory.ResourceComponent<org.rhq.core.pluginapi.inventory.ResourceComponent>
Overrides:
start in class Facet
See Also:
ResourceComponent.start(ResourceContext)

getValues

public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
                      java.util.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. 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
See Also:
MeasurementFacet.getValues(MeasurementReport, Set)

setOperationArguments

protected void setOperationArguments(java.lang.String name,
                                     org.rhq.core.domain.configuration.Configuration configuration,
                                     java.util.Map argumentMap)
Overrides:
setOperationArguments in class Facet

loadResourceConfiguration

public org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
Description copied from class: Facet
The plugin container will call this method and it needs to obtain the current configuration of the managed resource. Your plugin will obtain the managed resource's configuration in your own custom way and populate the returned Configuration object with the managed resource's configuration property values.

Specified by:
loadResourceConfiguration in interface org.rhq.core.pluginapi.configuration.ConfigurationFacet
Overrides:
loadResourceConfiguration in class Facet
See Also:
ConfigurationFacet.loadResourceConfiguration()

getTranslatorValues

public static <T> void getTranslatorValues(org.jboss.metatype.api.values.MetaValue pValue,
                                           org.rhq.core.domain.configuration.PropertyMap map,
                                           org.rhq.core.domain.configuration.PropertyList list)

getConnection

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

getEmsConnection

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


Copyright © 2010. All Rights Reserved.