Class IpAddressTable
- java.lang.Object
-
- org.opennms.netmgt.snmp.CollectionTracker
-
- org.opennms.netmgt.snmp.AggregateTracker
-
- org.opennms.netmgt.provision.service.snmp.SnmpTable<IpAddressTableEntry>
-
- org.opennms.netmgt.provision.service.snmp.IpAddressTable
-
- All Implemented Interfaces:
Collectable
,ProxiableTracker
public class IpAddressTable extends SnmpTable<IpAddressTableEntry>
IpAddressTable uses a SnmpSession to collect the IpAddressTable 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
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
INSTANCE_TYPE_IPV4
protected static int
INSTANCE_TYPE_IPV6
-
Constructor Summary
Constructors Constructor Description IpAddressTable(InetAddress address)
Constructs an IpAddressTable object that is used to collect the address elements from the remote agent.IpAddressTable(InetAddress address, Set<InetAddress> inetAddresses, Set<SnmpInstId> ipAddresses)
Constructor for IpAddressTable.
-
Method Summary
-
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
-
-
-
-
Field Detail
-
INSTANCE_TYPE_IPV4
protected static final int INSTANCE_TYPE_IPV4
- See Also:
- Constant Field Values
-
INSTANCE_TYPE_IPV6
protected static final int INSTANCE_TYPE_IPV6
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IpAddressTable
public IpAddressTable(InetAddress address)
Constructs an IpAddressTable 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:
IpAddressTableEntry
-
IpAddressTable
public IpAddressTable(InetAddress address, Set<InetAddress> inetAddresses, Set<SnmpInstId> ipAddresses)
Constructor for IpAddressTable.
- Parameters:
address
- aInetAddress
object.ipAddresses
- aSet
object.
-
-
Method Detail
-
createTableEntry
protected IpAddressTableEntry createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
createTableEntry
- Specified by:
createTableEntry
in classSnmpTable<IpAddressTableEntry>
- 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 IpAddressTableEntry getEntryByIfIndex(int ifIndex)
getEntryByIfIndex
- Parameters:
ifIndex
- a int.- Returns:
- a
IpAddressTableEntry
object.
-
getEntry
public IpAddressTableEntry getEntry(InetAddress address)
getEntry
- Parameters:
address
- aInetAddress
object.- Returns:
- a
IpAddressTableEntry
object.
-
updateIpInterfaceData
public void updateIpInterfaceData(OnmsNode node)
updateIpInterfaceData
- Parameters:
node
- aOnmsNode
object.
-
updateIpInterfaceData
public boolean updateIpInterfaceData(OnmsNode node, InetAddress ipAddr)
updateIpInterfaceData
-
createTable
public static IpAddressTable createTable(InetAddress address, Set<InetAddress> ipAddresses)
-
getInstanceIds
public static Set<SnmpInstId> getInstanceIds(Set<InetAddress> ipAddresses)
-
getInstanceForAddress
public static SnmpInstId getInstanceForAddress(InetAddress address)
-
-