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.
| Constructor and Description |
|---|
IpAddrTable(InetAddress address)
Constructs an IpAddrTable object that is used to collect the address
elements from the remote agent.
|
IpAddrTable(InetAddress address,
Set<SnmpInstId> ipAddrs)
Constructor for IpAddrTable.
|
| Modifier and Type | Method and Description |
|---|---|
protected IpAddrTableEntry |
createTableEntry(SnmpObjId base,
SnmpInstId inst,
Object val)
createTableEntry
|
IpAddrTableEntry |
getEntry(InetAddress address)
getEntry
|
IpAddrTableEntry |
getEntryByIfIndex(int ifIndex)
getEntryByIfIndex
|
InetAddress |
getIfAddress(int ifIndex)
getIfAddress
|
Integer |
getIfIndex(InetAddress address)
getIfIndex
|
Set<Integer> |
getIfIndices()
getIfIndices
|
Set<String> |
getIpAddresses()
getIpAddresses
|
InetAddress |
getNetMask(InetAddress address)
getNetMask
|
InetAddress |
getNetMask(int ifIndex)
getNetMask
|
void |
updateIpInterfaceData(OnmsNode node)
updateIpInterfaceData
|
void |
updateIpInterfaceData(OnmsNode node,
String ipAddr)
updateIpInterfaceData
|
getEntries, getEntry, getEntry, getInstances, reportFatalErr, reportGenErr, reportNonFatalErr, reportNoSuchNameErr, storeResultbuildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setFailed, setMaxRepetitions, setMaxRetries, setTimedOutfailed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOutpublic 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 - TODOIpAddrTableEntrypublic IpAddrTable(InetAddress address, Set<SnmpInstId> ipAddrs)
Constructor for IpAddrTable.
address - a InetAddress object.ipAddrs - a Set object.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 getIfAddress(int ifIndex)
getIfAddress
ifIndex - a int.InetAddress object.public InetAddress getNetMask(int ifIndex)
getNetMask
ifIndex - a int.InetAddress object.public InetAddress getNetMask(InetAddress address)
getNetMask
address - a InetAddress object.InetAddress object.public Integer getIfIndex(InetAddress address)
getIfIndex
address - a InetAddress object.Integer object.public IpAddrTableEntry getEntryByIfIndex(int ifIndex)
getEntryByIfIndex
ifIndex - a int.IpAddrTableEntry object.public IpAddrTableEntry getEntry(InetAddress address)
getEntry
address - a InetAddress object.IpAddrTableEntry object.public void updateIpInterfaceData(OnmsNode node)
updateIpInterfaceData
node - a OnmsNode object.public void updateIpInterfaceData(OnmsNode node, String ipAddr)
updateIpInterfaceData
Copyright © 2020. All rights reserved.