org.opennms.netmgt.linkd.snmp
Class InetCidrRouteTable

java.lang.Object
  extended by org.opennms.netmgt.snmp.CollectionTracker
      extended by org.opennms.netmgt.snmp.AggregateTracker
          extended by org.opennms.netmgt.capsd.snmp.SnmpTable<InetCidrRouteTableEntry>
              extended by org.opennms.netmgt.linkd.snmp.InetCidrRouteTable
All Implemented Interfaces:
Iterable<InetCidrRouteTableEntry>, Collection<InetCidrRouteTableEntry>, Collectable

public class InetCidrRouteTable
extends SnmpTable<InetCidrRouteTableEntry>

InetCidrRouteTable uses a SnmpSession to collect the ipRouteTable entries It implements the SnmpHandler to receive notifications when a reply is received/error occurs in the SnmpSession used to send requests/receive replies.

Author:
Antonio Russo
See Also:
RFC1213

Field Summary
 
Fields inherited from class org.opennms.netmgt.snmp.CollectionTracker
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR
 
Constructor Summary
InetCidrRouteTable(InetAddress address)
          Constructs an InetCidrRouteTable object that is used to collect the address elements from the remote agent.
 
Method Summary
protected  InetCidrRouteTableEntry createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
          createTableEntry
protected  ThreadCategory log()
           
 
Methods inherited from class org.opennms.netmgt.capsd.snmp.SnmpTable
add, addAll, clear, contains, containsAll, getEntries, isEmpty, iterator, remove, removeAll, reportGenErr, reportNoSuchNameErr, retainAll, size, storeResult, toArray, toArray
 
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, reportTooBigErr, setFinished, setParent, timedOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

InetCidrRouteTable

public InetCidrRouteTable(InetAddress address)

Constructs an InetCidrRouteTable object that is used to collect the address elements from the remote agent. Once all the elements are collected, or there is an error in the collection the signaler object is notified to inform other threads.

Parameters:
session - The session with the remote agent.
signaler - The object to notify waiters.
See Also:
InetCidrRouteTableEntry
Method Detail

createTableEntry

protected InetCidrRouteTableEntry createTableEntry(SnmpObjId base,
                                                   SnmpInstId inst,
                                                   Object val)
Description copied from class: SnmpTable

createTableEntry

Specified by:
createTableEntry in class SnmpTable<InetCidrRouteTableEntry>
Parameters:
base - a SnmpObjId object.
inst - a SnmpInstId object.
val - a Object object.
Returns:
a T object.

log

protected final ThreadCategory log()


Copyright © 2011. All Rights Reserved.