org.infinispan.rhq
Class CacheManagerComponent
java.lang.Object
org.rhq.plugins.jmx.MBeanResourceComponent<org.rhq.plugins.jmx.JMXServerComponent<?>>
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.JMXServerComponent<?>>, org.rhq.core.pluginapi.measurement.MeasurementFacet, org.rhq.core.pluginapi.operation.OperationFacet, org.rhq.plugins.jmx.JMXComponent<org.rhq.plugins.jmx.JMXServerComponent<?>>
public class CacheManagerComponent
- extends org.rhq.plugins.jmx.MBeanResourceComponent<org.rhq.plugins.jmx.JMXServerComponent<?>>
The component class for the Infinispan manager
- Author:
- Heiko W. Rupp, Galder ZamarreƱo, Tristan Tarrant
Field Summary |
protected org.rhq.core.pluginapi.inventory.ResourceContext<org.rhq.plugins.jmx.JMXServerComponent<?>> |
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 |
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 |
org.rhq.core.pluginapi.operation.OperationResult |
invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration parameters)
|
protected static boolean |
isCacheManagerComponent(org.mc4j.ems.connection.bean.EmsBean bean)
|
protected org.mc4j.ems.connection.bean.EmsBean |
loadBean()
|
void |
start(org.rhq.core.pluginapi.inventory.ResourceContext<org.rhq.plugins.jmx.JMXServerComponent<?>> context)
Start the resource connection |
Methods inherited from class org.rhq.plugins.jmx.MBeanResourceComponent |
getAttributeName, getAttributeProperty, getBeanProperties, getEmsBean, getPropertyValueAsType, getResourceContext, getValues, invokeOperation, 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 |
context
protected org.rhq.core.pluginapi.inventory.ResourceContext<org.rhq.plugins.jmx.JMXServerComponent<?>> context
CacheManagerComponent
public CacheManagerComponent()
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.JMXServerComponent<?>>
- See Also:
AvailabilityFacet.getAvailability()
start
public void start(org.rhq.core.pluginapi.inventory.ResourceContext<org.rhq.plugins.jmx.JMXServerComponent<?>> context)
- Start the resource connection
- Specified by:
start
in interface org.rhq.core.pluginapi.inventory.ResourceComponent<org.rhq.plugins.jmx.JMXServerComponent<?>>
- Overrides:
start
in class org.rhq.plugins.jmx.MBeanResourceComponent<org.rhq.plugins.jmx.JMXServerComponent<?>>
getEmsConnection
public org.mc4j.ems.connection.EmsConnection getEmsConnection()
- Specified by:
getEmsConnection
in interface org.rhq.plugins.jmx.JMXComponent<org.rhq.plugins.jmx.JMXServerComponent<?>>
- Overrides:
getEmsConnection
in class org.rhq.plugins.jmx.MBeanResourceComponent<org.rhq.plugins.jmx.JMXServerComponent<?>>
loadBean
protected org.mc4j.ems.connection.bean.EmsBean loadBean()
- Overrides:
loadBean
in class org.rhq.plugins.jmx.MBeanResourceComponent<org.rhq.plugins.jmx.JMXServerComponent<?>>
invokeOperation
public org.rhq.core.pluginapi.operation.OperationResult invokeOperation(String name,
org.rhq.core.domain.configuration.Configuration parameters)
throws Exception
- Specified by:
invokeOperation
in interface org.rhq.core.pluginapi.operation.OperationFacet
- Overrides:
invokeOperation
in class org.rhq.plugins.jmx.MBeanResourceComponent<org.rhq.plugins.jmx.JMXServerComponent<?>>
- Throws:
Exception
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.JMXServerComponent<?>>
- See Also:
MeasurementFacet.getValues(org.rhq.core.domain.measurement.MeasurementReport,
java.util.Set)
isCacheManagerComponent
protected static boolean isCacheManagerComponent(org.mc4j.ems.connection.bean.EmsBean bean)
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.