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(java.net.InetAddress address)Constructs an IpAddressTable object that is used to collect the address elements from the remote agent.IpAddressTable(java.net.InetAddress address, java.util.Set<java.net.InetAddress> inetAddresses, java.util.Set<SnmpInstId> ipAddresses)Constructor for IpAddressTable. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IpAddressTablecreateTable(java.net.InetAddress address, java.util.Set<java.net.InetAddress> ipAddresses)protected IpAddressTableEntrycreateTableEntry(SnmpObjId base, SnmpInstId inst, java.lang.Object val)createTableEntryIpAddressTableEntrygetEntry(java.net.InetAddress address)getEntryIpAddressTableEntrygetEntryByIfIndex(int ifIndex)getEntryByIfIndexjava.net.InetAddressgetIfAddress(int ifIndex)getIfAddressjava.lang.IntegergetIfIndex(java.net.InetAddress address)getIfIndexjava.util.Set<java.lang.Integer>getIfIndices()getIfIndicesstatic SnmpInstIdgetInstanceForAddress(java.net.InetAddress address)static java.util.Set<SnmpInstId>getInstanceIds(java.util.Set<java.net.InetAddress> ipAddresses)java.util.Set<java.lang.String>getIpAddresses()getIpAddressesjava.net.InetAddressgetNetMask(int ifIndex)getNetMaskjava.net.InetAddressgetNetMask(java.net.InetAddress address)getNetMaskvoidupdateIpInterfaceData(OnmsNode node)updateIpInterfaceDatabooleanupdateIpInterfaceData(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 
 - 
 
 - 
 
- 
- 
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(java.net.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(java.net.InetAddress address, java.util.Set<java.net.InetAddress> inetAddresses, java.util.Set<SnmpInstId> ipAddresses)Constructor for IpAddressTable.
- Parameters:
 address- aInetAddressobject.ipAddresses- aSetobject.
 
 - 
 
- 
Method Detail
- 
createTableEntry
protected IpAddressTableEntry createTableEntry(SnmpObjId base, SnmpInstId inst, java.lang.Object val)
createTableEntry
- Specified by:
 createTableEntryin classSnmpTable<IpAddressTableEntry>- Parameters:
 base- aSnmpObjIdobject.inst- aSnmpInstIdobject.val- aObjectobject.- Returns:
 - a T object.
 
 
- 
getIfIndices
public java.util.Set<java.lang.Integer> getIfIndices()
getIfIndices
- Returns:
 - a 
Setobject. 
 
- 
getIfAddress
public java.net.InetAddress getIfAddress(int ifIndex)
getIfAddress
- Parameters:
 ifIndex- a int.- Returns:
 - a 
InetAddressobject. 
 
- 
getNetMask
public java.net.InetAddress getNetMask(int ifIndex)
getNetMask
- Parameters:
 ifIndex- a int.- Returns:
 - a 
InetAddressobject. 
 
- 
getNetMask
public java.net.InetAddress getNetMask(java.net.InetAddress address)
getNetMask
- Parameters:
 address- aInetAddressobject.- Returns:
 - a 
InetAddressobject. 
 
- 
getIfIndex
public java.lang.Integer getIfIndex(java.net.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(java.net.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, java.net.InetAddress ipAddr)
updateIpInterfaceData
- Parameters:
 node- aOnmsNodeobject.ipAddr- aStringobject.
 
- 
getIpAddresses
public java.util.Set<java.lang.String> getIpAddresses()
getIpAddresses
- Returns:
 - a 
Setobject. 
 
- 
createTable
public static IpAddressTable createTable(java.net.InetAddress address, java.util.Set<java.net.InetAddress> ipAddresses)
 
- 
getInstanceIds
public static java.util.Set<SnmpInstId> getInstanceIds(java.util.Set<java.net.InetAddress> ipAddresses)
 
- 
getInstanceForAddress
public static SnmpInstId getInstanceForAddress(java.net.InetAddress address)
 
 - 
 
 -