org.infinispan.rhq
Class CacheManagerComponent

java.lang.Object
  extended by org.rhq.plugins.jmx.MBeanResourceComponent<org.rhq.plugins.jmx.MBeanResourceComponent<?>>
      extended by org.infinispan.rhq.CacheManagerComponent
All Implemented Interfaces:
org.rhq.core.pluginapi.availability.AvailabilityFacet, org.rhq.core.pluginapi.configuration.ConfigurationFacet, org.rhq.core.pluginapi.configuration.ConfigurationFacetSupport, org.rhq.core.pluginapi.inventory.ResourceComponent<org.rhq.plugins.jmx.MBeanResourceComponent<?>>, org.rhq.core.pluginapi.measurement.MeasurementFacet, org.rhq.core.pluginapi.operation.OperationFacet, org.rhq.plugins.jmx.JMXComponent<org.rhq.plugins.jmx.MBeanResourceComponent<?>>

public class CacheManagerComponent
extends org.rhq.plugins.jmx.MBeanResourceComponent<org.rhq.plugins.jmx.MBeanResourceComponent<?>>

The component class for the Infinispan manager

Author:
Heiko W. Rupp, Galder ZamarreƱo

Field Summary
protected  org.rhq.core.pluginapi.inventory.ResourceContext<org.rhq.plugins.jmx.MBeanResourceComponent<?>> context
           
 
Fields inherited from class org.rhq.plugins.jmx.MBeanResourceComponent
bean, OBJECT_NAME_PROP, PROPERTY_TRANSFORM, resourceContext
 
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP
 
Constructor Summary
CacheManagerComponent()
           
 
Method Summary
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
          Return availability of this resource.
 org.mc4j.ems.connection.EmsConnection getEmsConnection()
           
 void getValues(org.rhq.core.domain.measurement.MeasurementReport report, Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
          Gather measurement data
 void start(org.rhq.core.pluginapi.inventory.ResourceContext<org.rhq.plugins.jmx.MBeanResourceComponent<?>> context)
          Start the resource connection
 
Methods inherited from class org.rhq.plugins.jmx.MBeanResourceComponent
getAttributeName, getAttributeProperty, getBeanProperties, getEmsBean, getPropertyValueAsType, getResourceContext, getValues, invokeOperation, invokeOperation, loadBean, loadBean, loadResourceConfiguration, lookupAttributeProperty, setEmsBean, setResourceContext, stop, transformBeanName, updateResourceConfiguration, updateResourceConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected org.rhq.core.pluginapi.inventory.ResourceContext<org.rhq.plugins.jmx.MBeanResourceComponent<?>> context
Constructor Detail

CacheManagerComponent

public CacheManagerComponent()
Method Detail

getAvailability

public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
Return availability of this resource. We do this by checking the connection to it. If the Manager would expose some "run state" we could check for that too.

Specified by:
getAvailability in interface org.rhq.core.pluginapi.availability.AvailabilityFacet
Overrides:
getAvailability in class org.rhq.plugins.jmx.MBeanResourceComponent<org.rhq.plugins.jmx.MBeanResourceComponent<?>>
See Also:
AvailabilityFacet.getAvailability()

start

public void start(org.rhq.core.pluginapi.inventory.ResourceContext<org.rhq.plugins.jmx.MBeanResourceComponent<?>> context)
Start the resource connection

Specified by:
start in interface org.rhq.core.pluginapi.inventory.ResourceComponent<org.rhq.plugins.jmx.MBeanResourceComponent<?>>
Overrides:
start in class org.rhq.plugins.jmx.MBeanResourceComponent<org.rhq.plugins.jmx.MBeanResourceComponent<?>>

getEmsConnection

public org.mc4j.ems.connection.EmsConnection getEmsConnection()
Specified by:
getEmsConnection in interface org.rhq.plugins.jmx.JMXComponent<org.rhq.plugins.jmx.MBeanResourceComponent<?>>
Overrides:
getEmsConnection in class org.rhq.plugins.jmx.MBeanResourceComponent<org.rhq.plugins.jmx.MBeanResourceComponent<?>>

getValues

public void getValues(org.rhq.core.domain.measurement.MeasurementReport report,
                      Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
Gather measurement data

Specified by:
getValues in interface org.rhq.core.pluginapi.measurement.MeasurementFacet
Overrides:
getValues in class org.rhq.plugins.jmx.MBeanResourceComponent<org.rhq.plugins.jmx.MBeanResourceComponent<?>>
See Also:
MeasurementFacet.getValues(org.rhq.core.domain.measurement.MeasurementReport, java.util.Set)

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.