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 intINSTANCE_TYPE_IPV4protected static intINSTANCE_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- aInetAddressobject.ipAddresses- aSetobject.
-
-
Method Detail
-
createTableEntry
protected IpAddressTableEntry createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
createTableEntry
- Specified by:
createTableEntryin classSnmpTable<IpAddressTableEntry>- Parameters:
base- aSnmpObjIdobject.inst- aSnmpInstIdobject.val- aObjectobject.- Returns:
- a T object.
-
getIfAddress
public InetAddress getIfAddress(int ifIndex)
getIfAddress
- Parameters:
ifIndex- a int.- Returns:
- a
InetAddressobject.
-
getNetMask
public InetAddress getNetMask(int ifIndex)
getNetMask
- Parameters:
ifIndex- a int.- Returns:
- a
InetAddressobject.
-
getNetMask
public InetAddress getNetMask(InetAddress address)
getNetMask
- Parameters:
address- aInetAddressobject.- Returns:
- a
InetAddressobject.
-
getIfIndex
public Integer getIfIndex(InetAddress address)
getIfIndex
- Parameters:
address- aInetAddressobject.- Returns:
- a
Integerobject.
-
getEntryByIfIndex
public IpAddressTableEntry getEntryByIfIndex(int ifIndex)
getEntryByIfIndex
- Parameters:
ifIndex- a int.- Returns:
- a
IpAddressTableEntryobject.
-
getEntry
public IpAddressTableEntry getEntry(InetAddress address)
getEntry
- Parameters:
address- aInetAddressobject.- Returns:
- a
IpAddressTableEntryobject.
-
updateIpInterfaceData
public void updateIpInterfaceData(OnmsNode node)
updateIpInterfaceData
- Parameters:
node- aOnmsNodeobject.
-
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)
-
-