org.ow2.jasmine.probe.collectors.jmx.internal
Class JmxProxy

java.lang.Object
  extended by org.ow2.jasmine.probe.collectors.jmx.internal.JmxProxy

public class JmxProxy
extends Object

An instance is associated to a Test JmxCollector. Its to role is to collect values from MBean attributes.

Author:
danesa

Constructor Summary
JmxProxy()
           
 
Method Summary
protected  List<Metric> collectMetrics(ObjectName objname, String indicatorName, List<String> names)
          Collect Metrics corresponding to the mbeans and a given names list to poll.
 JmxConnectionService getJmxConnectionService()
           
 JasmineTarget getTarget()
           
protected  void resetMBeanServerConnection()
           
 void setJmxConnectionService(JmxConnectionService jmxConnectionService)
           
 void setTarget(JasmineTarget target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxProxy

public JmxProxy()
Method Detail

getJmxConnectionService

public JmxConnectionService getJmxConnectionService()

setJmxConnectionService

public void setJmxConnectionService(JmxConnectionService jmxConnectionService)

getTarget

public JasmineTarget getTarget()

setTarget

public void setTarget(JasmineTarget target)

collectMetrics

protected List<Metric> collectMetrics(ObjectName objname,
                                      String indicatorName,
                                      List<String> names)
                               throws JmxConnectionException
Collect Metrics corresponding to the mbeans and a given names list to poll.

Parameters:
objname - pattern for MBean ObjectNames
indicatorName - the corresponding indicator name
names - the list of names to poll
Returns:
a list of Metrics, one Metric per MBean
Throws:
JmxConnectionException

resetMBeanServerConnection

protected void resetMBeanServerConnection()


Copyright © 2012 OW2 Consortium. All Rights Reserved.