org.opennms.netmgt.collectd
Class JMXNodeCollector

java.lang.Object
  extended by org.opennms.netmgt.collectd.JMXNodeCollector

public class JMXNodeCollector
extends Object

The JMXNodeCollector class is responsible for performing the actual JMX data collection for a node over a specified network interface. The JMXNodeCollector implements the SnmpHandler class in order to receive notifications when an JMX reply is received or error occurs. The JMXNodeCollector is provided a list of MIB objects to collect and an interface over which to collect the data. Data collection can be via JMXv1 GetNext requests or JMXv2 GetBulk requests depending upon the parms used to construct the collector.

Author:
Mike Jamison , OpenNMS

Constructor Summary
JMXNodeCollector(List objList)
          The class constructor is used to initialize the collector and send out the initial JMX packet requesting data.
 
Method Summary
 boolean failed()
          Returns the success or failure code for collection of the data.
 JMXCollectorEntry getEntry()
          Returns the list of all entry maps that can be used to access all the information from the service polling.
 boolean timedout()
          Returns true if JMX collection failed due to timeout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXNodeCollector

public JMXNodeCollector(List objList)
The class constructor is used to initialize the collector and send out the initial JMX packet requesting data. The data is then received and store by the object. When all the data has been collected the passed signaler object is notified using the notifyAll() method.

Parameters:
session - The JMX session with the remote agent.
signaler - The object signaled when data collection is done.
objList - The list of object id's to be collected.
Method Detail

failed

public boolean failed()
Returns the success or failure code for collection of the data.


timedout

public boolean timedout()
Returns true if JMX collection failed due to timeout. Otherwise, returns false.


getEntry

public JMXCollectorEntry getEntry()
Returns the list of all entry maps that can be used to access all the information from the service polling.



Copyright © 2009. All Rights Reserved.