public class SnmpIfCollector extends AggregateTracker
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 void |
reportFatalErr(ErrorStatusException ex) |
protected void |
reportGenErr(String msg) |
protected void |
reportNonFatalErr(ErrorStatus status) |
protected void |
reportNoSuchNameErr(String msg) |
protected void |
reportTooBigErr(String msg) |
protected void |
storeResult(SnmpResult res) |
String |
toString()
toString
|
buildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setFailed, setMaxRepetitions, setMaxRetries, setTimedOut
failed, getCollectionTracker, getParent, setFinished, setParent, timedOut
public SnmpIfCollector(InetAddress address, List<SnmpAttributeType> objList, SnmpCollectionSet collectionSet)
address
- a InetAddress
object.objList
- TODOcollectionSet
- TODOpublic String toString()
toString
public List<SNMPCollectorEntry> getEntries()
List
object.protected void reportGenErr(String msg)
reportGenErr
in class CollectionTracker
protected void reportNoSuchNameErr(String msg)
reportNoSuchNameErr
in class CollectionTracker
protected void reportTooBigErr(String msg)
reportTooBigErr
in class CollectionTracker
protected void reportFatalErr(ErrorStatusException ex)
reportFatalErr
in class CollectionTracker
protected void reportNonFatalErr(ErrorStatus status)
reportNonFatalErr
in class CollectionTracker
protected void storeResult(SnmpResult res)
storeResult
in class CollectionTracker
public boolean hasData()
hasData
public CollectionSet getCollectionSet()
getCollectionSet
CollectionSet
object.Copyright © 2021. All rights reserved.