Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.rhq
Class CacheComponent

java.lang.Object
  extended by org.rhq.plugins.jmx.MBeanResourceComponent<CacheManagerComponent>
      extended by org.infinispan.rhq.CacheComponent
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<CacheManagerComponent>, org.rhq.core.pluginapi.measurement.MeasurementFacet, org.rhq.core.pluginapi.operation.OperationFacet, org.rhq.plugins.jmx.JMXComponent<CacheManagerComponent>

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

Component class for Caches within Infinispan

Author:
Heiko W. Rupp, Galder ZamarreƱo, Tristan Tarrant

Field Summary
 
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
CacheComponent()
           
 
Method Summary
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
          Return availability of this resource
 void getValues(org.rhq.core.domain.measurement.MeasurementReport report, Set<org.rhq.core.domain.measurement.MeasurementScheduleRequest> metrics)
          Gather measurement data
 org.rhq.core.pluginapi.operation.OperationResult invokeOperation(String fullName, org.rhq.core.domain.configuration.Configuration parameters)
          Invoke operations on the Cache MBean instance
protected static boolean isCacheComponent(org.mc4j.ems.connection.bean.EmsBean bean, String componentName)
           
 void start(org.rhq.core.pluginapi.inventory.ResourceContext<CacheManagerComponent> context)
          Start the resource connection
 void stop()
          Tear down the rescource connection
 
Methods inherited from class org.rhq.plugins.jmx.MBeanResourceComponent
getAttributeName, getAttributeProperty, getBeanProperties, getEmsBean, getEmsConnection, getPropertyValueAsType, getResourceContext, getValues, invokeOperation, loadBean, loadBean, loadResourceConfiguration, lookupAttributeProperty, setEmsBean, setResourceContext, transformBeanName, updateResourceConfiguration, updateResourceConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheComponent

public CacheComponent()
Method Detail

getAvailability

public org.rhq.core.domain.measurement.AvailabilityType getAvailability()
Return availability of this resource

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

start

public void start(org.rhq.core.pluginapi.inventory.ResourceContext<CacheManagerComponent> context)
Start the resource connection

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

stop

public void stop()
Tear down the rescource connection

Specified by:
stop in interface org.rhq.core.pluginapi.inventory.ResourceComponent<CacheManagerComponent>
Overrides:
stop in class org.rhq.plugins.jmx.MBeanResourceComponent<CacheManagerComponent>
See Also:
ResourceComponent.stop()

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

invokeOperation

public org.rhq.core.pluginapi.operation.OperationResult invokeOperation(String fullName,
                                                                        org.rhq.core.domain.configuration.Configuration parameters)
                                                                 throws Exception
Invoke operations on the Cache MBean instance

Specified by:
invokeOperation in interface org.rhq.core.pluginapi.operation.OperationFacet
Overrides:
invokeOperation in class org.rhq.plugins.jmx.MBeanResourceComponent<CacheManagerComponent>
Parameters:
fullOpName - Name of the operation
parameters - Parameters of the Operation
Returns:
OperationResult object if successful
Throws:
Exception - If operation was not successful

isCacheComponent

protected static boolean isCacheComponent(org.mc4j.ems.connection.bean.EmsBean bean,
                                          String componentName)

Infinispan Distribution 5.2.6.Final-redhat-2

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