Class IpAddrTable
- java.lang.Object
-
- org.opennms.netmgt.snmp.CollectionTracker
-
- org.opennms.netmgt.snmp.AggregateTracker
-
- org.opennms.netmgt.provision.service.snmp.SnmpTable<IpAddrTableEntry>
-
- org.opennms.netmgt.provision.service.snmp.IpAddrTable
-
- All Implemented Interfaces:
Collectable
,ProxiableTracker
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
- See Also:
- RFC1213
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IpAddrTableEntry
createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
createTableEntryIpAddrTableEntry
getEntry(InetAddress address)
getEntryIpAddrTableEntry
getEntryByIfIndex(int ifIndex)
getEntryByIfIndexInetAddress
getIfAddress(int ifIndex)
getIfAddressInteger
getIfIndex(InetAddress address)
getIfIndexSet<Integer>
getIfIndices()
getIfIndicesSet<String>
getIpAddresses()
getIpAddressesInetAddress
getNetMask(int ifIndex)
getNetMaskInetAddress
getNetMask(InetAddress address)
getNetMaskvoid
updateIpInterfaceData(OnmsNode node)
updateIpInterfaceDataboolean
updateIpInterfaceData(OnmsNode node, InetAddress ipAddr)
updateIpInterfaceData-
Methods inherited from class org.opennms.netmgt.provision.service.snmp.SnmpTable
getEntries, getEntry, getEntry, getInstances, reportFatalErr, reportGenErr, reportNonFatalErr, reportNoSuchNameErr, storeResult
-
Methods inherited from class org.opennms.netmgt.snmp.AggregateTracker
buildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setFailed, setMaxRepetitions, setMaxRetries, setTimedOut
-
Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
-
-
-
-
Constructor Detail
-
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
-
IpAddrTable
public IpAddrTable(InetAddress address, Set<SnmpInstId> ipAddrs)
Constructor for IpAddrTable.
- Parameters:
address
- aInetAddress
object.ipAddrs
- aSet
object.
-
-
Method Detail
-
createTableEntry
protected IpAddrTableEntry createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
createTableEntry
- Specified by:
createTableEntry
in classSnmpTable<IpAddrTableEntry>
- Parameters:
base
- aSnmpObjId
object.inst
- aSnmpInstId
object.val
- aObject
object.- Returns:
- a T object.
-
getIfAddress
public InetAddress getIfAddress(int ifIndex)
getIfAddress
- Parameters:
ifIndex
- a int.- Returns:
- a
InetAddress
object.
-
getNetMask
public InetAddress getNetMask(int ifIndex)
getNetMask
- Parameters:
ifIndex
- a int.- Returns:
- a
InetAddress
object.
-
getNetMask
public InetAddress getNetMask(InetAddress address)
getNetMask
- Parameters:
address
- aInetAddress
object.- Returns:
- a
InetAddress
object.
-
getIfIndex
public Integer getIfIndex(InetAddress address)
getIfIndex
- Parameters:
address
- aInetAddress
object.- Returns:
- a
Integer
object.
-
getEntryByIfIndex
public IpAddrTableEntry getEntryByIfIndex(int ifIndex)
getEntryByIfIndex
- Parameters:
ifIndex
- a int.- Returns:
- a
IpAddrTableEntry
object.
-
getEntry
public IpAddrTableEntry getEntry(InetAddress address)
getEntry
- Parameters:
address
- aInetAddress
object.- Returns:
- a
IpAddrTableEntry
object.
-
updateIpInterfaceData
public void updateIpInterfaceData(OnmsNode node)
updateIpInterfaceData
- Parameters:
node
- aOnmsNode
object.
-
updateIpInterfaceData
public boolean updateIpInterfaceData(OnmsNode node, InetAddress ipAddr)
updateIpInterfaceData
- Parameters:
node
- aOnmsNode
object.ipAddr
- aInetAddress
object.
-
-