org.infinispan.jopr
Class CacheComponent

java.lang.Object
  extended by org.infinispan.jopr.CacheComponent
All Implemented Interfaces:
org.rhq.core.pluginapi.inventory.ResourceComponent<CacheManagerComponent>, org.rhq.core.pluginapi.measurement.MeasurementFacet, org.rhq.core.pluginapi.operation.OperationFacet

public class CacheComponent
extends Object
implements org.rhq.core.pluginapi.inventory.ResourceComponent<CacheManagerComponent>, org.rhq.core.pluginapi.measurement.MeasurementFacet, org.rhq.core.pluginapi.operation.OperationFacet

Component class for Caches within Infinispan

Author:
Heiko W. Rupp, Galder ZamarreƱo

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 name, org.rhq.core.domain.configuration.Configuration parameters)
          Invoke operations on the Cache MBean instance
 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 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.inventory.ResourceComponent<CacheManagerComponent>
See Also:
ResourceComponent.getAvailability()

start

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

Specified by:
start in interface org.rhq.core.pluginapi.inventory.ResourceComponent<CacheManagerComponent>
Throws:
Exception
See Also:
ResourceComponent.start(org.rhq.core.pluginapi.inventory.ResourceContext)

stop

public void stop()
Tear down the rescource connection

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

getValues

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

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

invokeOperation

public org.rhq.core.pluginapi.operation.OperationResult invokeOperation(String name,
                                                                        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
Parameters:
name - Name of the operation
parameters - Parameters of the Operation
Returns:
OperationResult object if successful
Throws:
Exception - If operation was not successful

Google Analytics

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