public class SnmpIfCollector extends AggregateTracker
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR
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 |
reportGenErr(String msg) |
protected void |
reportNoSuchNameErr(String msg) |
protected void |
reportTooBigErr(String msg) |
protected void |
storeResult(SnmpResult res) |
String |
toString()
toString
|
buildNextPdu, isFinished, setFailed, setMaxRepetitions, 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 storeResult(SnmpResult res)
storeResult
in class CollectionTracker
public boolean hasData()
hasData
public CollectionSet getCollectionSet()
getCollectionSet
CollectionSet
object.Copyright © 2015. All rights reserved.