Package org.opennms.netmgt.collectd
Class SnmpNodeCollector
- java.lang.Object
- 
- org.opennms.netmgt.snmp.CollectionTracker
- 
- org.opennms.netmgt.snmp.AggregateTracker
- 
- org.opennms.netmgt.collectd.SnmpNodeCollector
 
 
 
- 
- All Implemented Interfaces:
- Collectable,- ProxiableTracker
 
 public class SnmpNodeCollector extends AggregateTracker The SnmpNodeCollector class is responsible for performing the actual SNMP data collection for a node over a specified network interface. The SnmpNodeCollector implements the SnmpHandler class in order to receive notifications when an SNMP reply is received or error occurs. The SnmpNodeCollector is provided a list of MIB objects to collect and an interface over which to collect the data. Data collection can be via SNMPv1 GetNext requests or SNMPv2 GetBulk requests depending upon the parms used to construct the collector.
- 
- 
Constructor SummaryConstructors Constructor Description SnmpNodeCollector(java.net.InetAddress address, java.util.Collection<SnmpAttributeType> objList, SnmpCollectionSet collectionSet)The class constructor is used to initialize the collector and send out the initial SNMP packet requesting data.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SnmpCollectionSetgetCollectionSet()getCollectionSetSNMPCollectorEntrygetEntry()Returns the list of all entry maps that can be used to access all the information from the service polling.protected voidreportFatalErr(ErrorStatusException ex)protected voidreportGenErr(java.lang.String msg)protected voidreportNonFatalErr(ErrorStatus status)protected voidreportNoSuchNameErr(java.lang.String msg)protected voidstoreResult(SnmpResult res)- 
Methods inherited from class org.opennms.netmgt.snmp.AggregateTrackerbuildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setFailed, setMaxRepetitions, setMaxRetries, setTimedOut
 - 
Methods inherited from class org.opennms.netmgt.snmp.CollectionTrackerfailed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
 
- 
 
- 
- 
- 
Constructor Detail- 
SnmpNodeCollectorpublic SnmpNodeCollector(java.net.InetAddress address, java.util.Collection<SnmpAttributeType> objList, SnmpCollectionSet collectionSet)The class constructor is used to initialize the collector and send out the initial SNMP 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:
- address- TODO
- objList- The list of object id's to be collected.
- collectionSet- TODO
 
 
- 
 - 
Method Detail- 
getEntrypublic SNMPCollectorEntry getEntry() Returns the list of all entry maps that can be used to access all the information from the service polling.- Returns:
- a SNMPCollectorEntryobject.
 
 - 
reportGenErrprotected void reportGenErr(java.lang.String msg) - Overrides:
- reportGenErrin class- CollectionTracker
 
 - 
reportNoSuchNameErrprotected void reportNoSuchNameErr(java.lang.String msg) - Overrides:
- reportNoSuchNameErrin class- CollectionTracker
 
 - 
reportFatalErrprotected void reportFatalErr(ErrorStatusException ex) - Overrides:
- reportFatalErrin class- CollectionTracker
 
 - 
reportNonFatalErrprotected void reportNonFatalErr(ErrorStatus status) - Overrides:
- reportNonFatalErrin class- CollectionTracker
 
 - 
storeResultprotected void storeResult(SnmpResult res) - Overrides:
- storeResultin class- CollectionTracker
 
 - 
getCollectionSetpublic SnmpCollectionSet getCollectionSet() getCollectionSet - Returns:
- a SnmpCollectionSetobject.
 
 
- 
 
-