org.opennms.netmgt.capsd.snmp
Class IpAddrTable
java.lang.Object
org.opennms.netmgt.snmp.CollectionTracker
org.opennms.netmgt.snmp.AggregateTracker
org.opennms.netmgt.capsd.snmp.SnmpTable<IpAddrTableEntry>
org.opennms.netmgt.capsd.snmp.IpAddrTable
- All Implemented Interfaces:
- Collectable
public class IpAddrTable
- extends SnmpTable<IpAddrTableEntry>
IpAddrTable uses a SnmpSession to collect the ipAddrTable entries It
implements the SnmpHandler to receive notifications when a reply is
received/error occurs in the SnmpSession used to send requests /recieve
replies.
- Author:
- Matt Brozowski, James Zuo , Sowmya , Weave , OpenNMS
- See Also:
- RFC1213
|
Constructor Summary |
IpAddrTable(InetAddress address)
Constructs an IpAddrTable object that is used to collect the address
elements from the remote agent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IpAddrTable
public IpAddrTable(InetAddress address)
Constructs an IpAddrTable 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:
address - TODO- See Also:
IpAddrTableEntry
createTableEntry
protected IpAddrTableEntry createTableEntry(SnmpObjId base,
SnmpInstId inst,
Object val)
- Specified by:
createTableEntry in class SnmpTable<IpAddrTableEntry>
getIfAddressAndMask
public InetAddress[] getIfAddressAndMask(int ifIndex)
getIfIndex
public int getIfIndex(InetAddress address)
log
protected final Category log()
getIpAddresses
public List<InetAddress> getIpAddresses(int index)
- Returns all Internet addresses at the corresponding index. If the address
cannot be resolved then a null reference is returned.
- Parameters:
ifIndex - The index to search for.
- Returns:
- list of InetAddress objects representing each of the interfaces
IP addresses.
getIpAddresses
public List<InetAddress> getIpAddresses()
- Returns all Internet addresses in the ipAddrEntry list. If the address
cannot be resolved then a null reference is returned.
- Parameters:
ipAddrEntries - List of IpAddrTableEntry objects to search
- Returns:
- list of InetAddress objects representing each of the interfaces
IP addresses.
Copyright © 2009. All Rights Reserved.