|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.snmp.CollectionTracker
org.opennms.netmgt.snmp.AggregateTracker
org.opennms.netmgt.capsd.snmp.SnmpTable<IpAddrTableEntry>
org.opennms.netmgt.capsd.snmp.IpAddrTable
public class IpAddrTable
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.
| Field Summary |
|---|
| Fields inherited from class org.opennms.netmgt.snmp.CollectionTracker |
|---|
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR |
| Constructor Summary | |
|---|---|
IpAddrTable(InetAddress address)
Constructs an IpAddrTable object that is used to collect the address elements from the remote agent. |
|
| Method Summary | |
|---|---|
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. |
protected ThreadCategory |
log()
log |
| Methods inherited from class org.opennms.netmgt.capsd.snmp.SnmpTable |
|---|
getEntries, reportGenErr, reportNoSuchNameErr, storeResult |
| 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 |
| Constructor Detail |
|---|
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.
address - TODOIpAddrTableEntry| Method Detail |
|---|
protected 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.
protected final ThreadCategory log()
log
ThreadCategory object.public List<InetAddress> getIpAddresses(int index)
index - a int.
public List<InetAddress> getIpAddresses()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||