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.
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR| Constructor and Description |
|---|
IpAddrTable(InetAddress address)
Constructs an IpAddrTable object that is used to collect the address
elements from the remote agent.
|
| Modifier and Type | Method and Description |
|---|---|
protected IpAddrTableEntry |
createTableEntry(SnmpObjId base,
SnmpInstId inst,
Object val)
createTableEntry
|
InetAddress[] |
getIfAddressAndMask(int ifIndex)
getIfAddressAndMask
|
int |
getIfIndex(InetAddress address)
getIfIndex
|
List<InetAddress> |
getIpAddresses()
Returns all Internet addresses in the ipAddrEntry list.
|
List<InetAddress> |
getIpAddresses(int index)
Returns all Internet addresses at the corresponding index.
|
add, addAll, clear, contains, containsAll, getEntries, isEmpty, iterator, remove, removeAll, reportGenErr, reportNoSuchNameErr, retainAll, size, storeResult, toArray, toArraybuildNextPdu, isFinished, setFailed, setMaxRepetitions, setTimedOutfailed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCodepublic 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.
address - TODOIpAddrTableEntryprotected IpAddrTableEntry createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
createTableEntry
createTableEntry in class SnmpTable<IpAddrTableEntry>base - a SnmpObjId object.inst - a SnmpInstId object.val - a Object object.public InetAddress[] getIfAddressAndMask(int ifIndex)
getIfAddressAndMask
ifIndex - a int.InetAddress objects.public int getIfIndex(InetAddress address)
getIfIndex
address - a InetAddress object.public List<InetAddress> getIpAddresses(int index)
index - a int.public List<InetAddress> getIpAddresses()
Copyright © 2015. All rights reserved.