Class SnmpTable<T extends SnmpTableEntry>
- java.lang.Object
-
- org.opennms.netmgt.snmp.CollectionTracker
-
- org.opennms.netmgt.snmp.AggregateTracker
-
- org.opennms.netmgt.provision.service.snmp.SnmpTable<T>
-
- All Implemented Interfaces:
Collectable,ProxiableTracker
- Direct Known Subclasses:
IfTable,IfXTable,IpAddressTable,IpAddrTable
public abstract class SnmpTable<T extends SnmpTableEntry> extends AggregateTracker
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSnmpTable(InetAddress address, String tableName, NamedSnmpVar[] columns)Constructor for SnmpTable.protectedSnmpTable(InetAddress address, String tableName, NamedSnmpVar[] columns, Set<SnmpInstId> instances)Constructor for SnmpTable.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TcreateTableEntry(SnmpObjId base, SnmpInstId inst, Object val)createTableEntryList<T>getEntries()getEntriesTgetEntry(int inst)getEntryTgetEntry(SnmpInstId inst)getEntrySet<SnmpInstId>getInstances()getInstancesprotected voidreportFatalErr(ErrorStatusException ex)protected voidreportGenErr(String msg)protected voidreportNonFatalErr(ErrorStatus status)protected voidreportNoSuchNameErr(String msg)protected voidstoreResult(SnmpResult res)-
Methods inherited from class org.opennms.netmgt.snmp.AggregateTracker
buildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setFailed, setMaxRepetitions, setMaxRetries, setTimedOut
-
Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
-
-
-
-
Constructor Detail
-
SnmpTable
protected SnmpTable(InetAddress address, String tableName, NamedSnmpVar[] columns)
Constructor for SnmpTable.
- Type Parameters:
T- a T object.- Parameters:
address- aInetAddressobject.tableName- aStringobject.columns- an array ofNamedSnmpVarobjects.
-
SnmpTable
protected SnmpTable(InetAddress address, String tableName, NamedSnmpVar[] columns, Set<SnmpInstId> instances)
Constructor for SnmpTable.
- Parameters:
address- aInetAddressobject.tableName- aStringobject.columns- an array ofNamedSnmpVarobjects.instances- aSetobject.
-
-
Method Detail
-
storeResult
protected void storeResult(SnmpResult res)
- Overrides:
storeResultin classCollectionTracker
-
createTableEntry
protected abstract T createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
createTableEntry
- Parameters:
base- aSnmpObjIdobject.inst- aSnmpInstIdobject.val- aObjectobject.- Returns:
- a T object.
-
getInstances
public Set<SnmpInstId> getInstances()
getInstances
- Returns:
- a
Setobject.
-
reportGenErr
protected void reportGenErr(String msg)
- Overrides:
reportGenErrin classCollectionTracker
-
reportFatalErr
protected void reportFatalErr(ErrorStatusException ex)
- Overrides:
reportFatalErrin classCollectionTracker
-
reportNonFatalErr
protected void reportNonFatalErr(ErrorStatus status)
- Overrides:
reportNonFatalErrin classCollectionTracker
-
getEntry
public T getEntry(SnmpInstId inst)
getEntry
- Parameters:
inst- aSnmpInstIdobject.- Returns:
- a T object.
-
getEntry
public T getEntry(int inst)
getEntry
- Parameters:
inst- a int.- Returns:
- a T object.
-
reportNoSuchNameErr
protected void reportNoSuchNameErr(String msg)
- Overrides:
reportNoSuchNameErrin classCollectionTracker
-
-