org.opennms.netmgt.collectd
Class JMXCollectorEntry

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.TreeMap
          extended by org.opennms.netmgt.collectd.JMXCollectorEntry
All Implemented Interfaces:
Serializable, Cloneable, Map, NavigableMap, SortedMap

public class JMXCollectorEntry
extends TreeMap

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
JMXCollectorEntry()
           Creates a default instance of the JMXCollector entry map.
JMXCollectorEntry(String objectName, String[] vars, String[] types)
           The class constructor used to initialize the object to its initial state.
 
Method Summary
 Set attributeNames()
           
 String getObjectName()
           
 void setObjectName(String objectName)
           
 
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty
 

Constructor Detail

JMXCollectorEntry

public JMXCollectorEntry()

Creates a default instance of the JMXCollector entry map. The map represents a singular instance from the MibObject. Each column in the table for the loaded instance may be retrieved through its OID from the MIBObject.

The initial table is constructed with zero elements in the map.


JMXCollectorEntry

public JMXCollectorEntry(String objectName,
                         String[] vars,
                         String[] types)

The class constructor used to initialize the object to its initial state. Although the object's member variables can change after an instance is created, this constructor will initialize all the variables as per their named variable from the passed array of JMX varbinds.

If the information in the object should not be modified then a final modifier can be applied to the created object.

Parameters:
vars - The array of collected JMX variable bindings
objList - List of MibObject objects representing each of of the oid's configured for collection.
ifIndex - The ifIndex (as a String) of the interface for which the collected JMX data is relevant. NOTE: NULL if the collected JMX data is for the node.
Method Detail

attributeNames

public Set attributeNames()

getObjectName

public String getObjectName()

setObjectName

public void setObjectName(String objectName)


Copyright © 2009. All Rights Reserved.