public abstract class SnmpTable<T extends SnmpTableEntry> extends AggregateTracker
Modifier | Constructor and Description |
---|---|
protected |
SnmpTable(InetAddress address,
String tableName,
NamedSnmpVar[] columns)
Constructor for SnmpTable.
|
protected |
SnmpTable(InetAddress address,
String tableName,
NamedSnmpVar[] columns,
Set<SnmpInstId> instances)
Constructor for SnmpTable.
|
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createTableEntry(SnmpObjId base,
SnmpInstId inst,
Object val)
createTableEntry
|
List<T> |
getEntries()
getEntries
|
T |
getEntry(int inst)
getEntry
|
T |
getEntry(SnmpInstId inst)
getEntry
|
Set<SnmpInstId> |
getInstances()
getInstances
|
protected void |
reportFatalErr(ErrorStatusException ex) |
protected void |
reportGenErr(String msg) |
protected void |
reportNonFatalErr(ErrorStatus status) |
protected void |
reportNoSuchNameErr(String msg) |
protected void |
storeResult(SnmpResult res) |
buildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setFailed, setMaxRepetitions, setMaxRetries, setTimedOut
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
protected SnmpTable(InetAddress address, String tableName, NamedSnmpVar[] columns)
Constructor for SnmpTable.
T
- a T object.address
- a InetAddress
object.tableName
- a String
object.columns
- an array of NamedSnmpVar
objects.protected SnmpTable(InetAddress address, String tableName, NamedSnmpVar[] columns, Set<SnmpInstId> instances)
Constructor for SnmpTable.
address
- a InetAddress
object.tableName
- a String
object.columns
- an array of NamedSnmpVar
objects.instances
- a Set
object.protected void storeResult(SnmpResult res)
storeResult
in class CollectionTracker
protected abstract T createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
createTableEntry
base
- a SnmpObjId
object.inst
- a SnmpInstId
object.val
- a Object
object.public Set<SnmpInstId> getInstances()
getInstances
Set
object.protected void reportGenErr(String msg)
reportGenErr
in class CollectionTracker
protected void reportFatalErr(ErrorStatusException ex)
reportFatalErr
in class CollectionTracker
protected void reportNonFatalErr(ErrorStatus status)
reportNonFatalErr
in class CollectionTracker
public T getEntry(SnmpInstId inst)
getEntry
inst
- a SnmpInstId
object.public T getEntry(int inst)
getEntry
inst
- a int.protected void reportNoSuchNameErr(String msg)
reportNoSuchNameErr
in class CollectionTracker
Copyright © 2021. All rights reserved.