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(java.net.InetAddress address)
Constructs an IpAddrTable object that is used to collect the address elements from the remote agent.IpAddrTable(java.net.InetAddress address, java.util.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, java.lang.Object val)
createTableEntryIpAddrTableEntry
getEntry(java.net.InetAddress address)
getEntryIpAddrTableEntry
getEntryByIfIndex(int ifIndex)
getEntryByIfIndexjava.net.InetAddress
getIfAddress(int ifIndex)
getIfAddressjava.lang.Integer
getIfIndex(java.net.InetAddress address)
getIfIndexjava.util.Set<java.lang.Integer>
getIfIndices()
getIfIndicesjava.util.Set<java.lang.String>
getIpAddresses()
getIpAddressesjava.net.InetAddress
getNetMask(int ifIndex)
getNetMaskjava.net.InetAddress
getNetMask(java.net.InetAddress address)
getNetMaskvoid
updateIpInterfaceData(OnmsNode node)
updateIpInterfaceDataboolean
updateIpInterfaceData(OnmsNode node, java.net.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(java.net.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(java.net.InetAddress address, java.util.Set<SnmpInstId> ipAddrs)
Constructor for IpAddrTable.
- Parameters:
address
- aInetAddress
object.ipAddrs
- aSet
object.
-
-
Method Detail
-
createTableEntry
protected IpAddrTableEntry createTableEntry(SnmpObjId base, SnmpInstId inst, java.lang.Object val)
createTableEntry
- Specified by:
createTableEntry
in classSnmpTable<IpAddrTableEntry>
- Parameters:
base
- aSnmpObjId
object.inst
- aSnmpInstId
object.val
- aObject
object.- Returns:
- a T object.
-
getIfIndices
public java.util.Set<java.lang.Integer> getIfIndices()
getIfIndices
- Returns:
- a
Set
object.
-
getIfAddress
public java.net.InetAddress getIfAddress(int ifIndex)
getIfAddress
- Parameters:
ifIndex
- a int.- Returns:
- a
InetAddress
object.
-
getNetMask
public java.net.InetAddress getNetMask(int ifIndex)
getNetMask
- Parameters:
ifIndex
- a int.- Returns:
- a
InetAddress
object.
-
getNetMask
public java.net.InetAddress getNetMask(java.net.InetAddress address)
getNetMask
- Parameters:
address
- aInetAddress
object.- Returns:
- a
InetAddress
object.
-
getIfIndex
public java.lang.Integer getIfIndex(java.net.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(java.net.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, java.net.InetAddress ipAddr)
updateIpInterfaceData
- Parameters:
node
- aOnmsNode
object.ipAddr
- aInetAddress
object.
-
getIpAddresses
public java.util.Set<java.lang.String> getIpAddresses()
getIpAddresses
- Returns:
- a
Set
object.
-
-