|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.snmp.CollectionTracker
org.opennms.netmgt.snmp.AggregateTracker
org.opennms.netmgt.collectd.SnmpIfCollector
public class SnmpIfCollector
The SnmpIfCollector class is responsible for performing the actual SNMP data collection for a node over a specified network interface. The SnmpIfCollector implements the SnmpHandler class in order to receive notifications when an SNMP reply is received or error occurs. The SnmpIfCollector 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.
| Field Summary |
|---|
| Fields inherited from class org.opennms.netmgt.snmp.CollectionTracker |
|---|
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR |
| Constructor Summary | |
|---|---|
SnmpIfCollector(InetAddress address,
List<SnmpAttributeType> objList,
SnmpCollectionSet collectionSet)
The class constructor is used to initialize the collector and send out the initial SNMP packet requesting data. |
|
| Method Summary | |
|---|---|
CollectionSet |
getCollectionSet()
getCollectionSet |
List<SNMPCollectorEntry> |
getEntries()
Returns the list of all entry maps that can be used to access all the information from the service polling. |
boolean |
hasData()
hasData |
protected static ThreadCategory |
log()
log |
protected void |
reportGenErr(String msg)
|
protected void |
reportNoSuchNameErr(String msg)
|
protected void |
reportTooBigErr(String msg)
|
protected void |
storeResult(SnmpResult res)
|
String |
toString()
toString |
| Methods inherited from class org.opennms.netmgt.snmp.AggregateTracker |
|---|
buildNextPdu, isFinished, setFailed, setMaxRepetitions, setTimedOut |
| Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker |
|---|
failed, getCollectionTracker, getParent, setFinished, setParent, timedOut |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SnmpIfCollector(InetAddress address,
List<SnmpAttributeType> objList,
SnmpCollectionSet collectionSet)
address - a InetAddress object.objList - TODOcollectionSet - TODO| Method Detail |
|---|
public String toString()
toString
toString in class ObjectString object.protected static ThreadCategory log()
log
ThreadCategory object.public List<SNMPCollectorEntry> getEntries()
List object.protected void reportGenErr(String msg)
reportGenErr in class CollectionTrackerprotected void reportNoSuchNameErr(String msg)
reportNoSuchNameErr in class CollectionTrackerprotected void reportTooBigErr(String msg)
reportTooBigErr in class CollectionTrackerprotected void storeResult(SnmpResult res)
storeResult in class CollectionTrackerpublic boolean hasData()
hasData
public CollectionSet getCollectionSet()
getCollectionSet
CollectionSet object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||