org.infinispan.jopr
Class CacheManagerComponent

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

public class CacheManagerComponent
extends Object
implements org.rhq.core.pluginapi.inventory.ResourceComponent, org.rhq.core.pluginapi.measurement.MeasurementFacet

The component class for the Infinispan manager

Author:
Heiko W. Rupp, Galder ZamarreƱo

Constructor Summary
CacheManagerComponent()
           
 
Method Summary
 org.rhq.core.domain.measurement.AvailabilityType getAvailability()
          Return availability of this resource.
protected  org.mc4j.ems.connection.EmsConnection getConnection()
          Helper to obtain a connection
 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 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

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.inventory.ResourceComponent
See Also:
ResourceComponent.getAvailability()

start

public void start(org.rhq.core.pluginapi.inventory.ResourceContext context)
           throws org.rhq.core.pluginapi.inventory.InvalidPluginConfigurationException,
                  Exception
Start the resource connection

Specified by:
start in interface org.rhq.core.pluginapi.inventory.ResourceComponent
Throws:
org.rhq.core.pluginapi.inventory.InvalidPluginConfigurationException
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
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)

getConnection

protected org.mc4j.ems.connection.EmsConnection getConnection()
Helper to obtain a connection

Returns:
EmsConnection object

Google Analytics

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