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.
| Modifier and Type | Field and Description |
|---|---|
protected static int |
INSTANCE_TYPE_IPV4 |
protected static int |
INSTANCE_TYPE_IPV6 |
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
static IpAddressTable |
createTable(InetAddress address,
Set<InetAddress> ipAddresses) |
protected IpAddressTableEntry |
createTableEntry(SnmpObjId base,
SnmpInstId inst,
Object val)
createTableEntry
|
IpAddressTableEntry |
getEntry(InetAddress address)
getEntry
|
IpAddressTableEntry |
getEntryByIfIndex(int ifIndex)
getEntryByIfIndex
|
InetAddress |
getIfAddress(int ifIndex)
getIfAddress
|
Integer |
getIfIndex(InetAddress address)
getIfIndex
|
Set<Integer> |
getIfIndices()
getIfIndices
|
static SnmpInstId |
getInstanceForAddress(InetAddress address) |
static Set<SnmpInstId> |
getInstanceIds(Set<InetAddress> ipAddresses) |
Set<String> |
getIpAddresses()
getIpAddresses
|
InetAddress |
getNetMask(InetAddress address)
getNetMask
|
InetAddress |
getNetMask(int ifIndex)
getNetMask
|
void |
updateIpInterfaceData(OnmsNode node)
updateIpInterfaceData
|
void |
updateIpInterfaceData(OnmsNode node,
String ipAddr)
updateIpInterfaceData
|
getEntries, getEntry, getEntry, getInstances, reportFatalErr, reportGenErr, reportNonFatalErr, reportNoSuchNameErr, storeResultbuildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setFailed, setMaxRepetitions, setMaxRetries, setTimedOutfailed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOutprotected static final int INSTANCE_TYPE_IPV4
protected static final int INSTANCE_TYPE_IPV6
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.
address - TODOIpAddressTableEntrypublic IpAddressTable(InetAddress address, Set<InetAddress> inetAddresses, Set<SnmpInstId> ipAddresses)
Constructor for IpAddressTable.
address - a InetAddress object.ipAddresses - a Set object.protected IpAddressTableEntry createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
createTableEntry
createTableEntry in class SnmpTable<IpAddressTableEntry>base - a SnmpObjId object.inst - a SnmpInstId object.val - a Object object.public InetAddress getIfAddress(int ifIndex)
getIfAddress
ifIndex - a int.InetAddress object.public InetAddress getNetMask(int ifIndex)
getNetMask
ifIndex - a int.InetAddress object.public InetAddress getNetMask(InetAddress address)
getNetMask
address - a InetAddress object.InetAddress object.public Integer getIfIndex(InetAddress address)
getIfIndex
address - a InetAddress object.Integer object.public IpAddressTableEntry getEntryByIfIndex(int ifIndex)
getEntryByIfIndex
ifIndex - a int.IpAddressTableEntry object.public IpAddressTableEntry getEntry(InetAddress address)
getEntry
address - a InetAddress object.IpAddressTableEntry object.public void updateIpInterfaceData(OnmsNode node)
updateIpInterfaceData
node - a OnmsNode object.public void updateIpInterfaceData(OnmsNode node, String ipAddr)
updateIpInterfaceData
public static IpAddressTable createTable(InetAddress address, Set<InetAddress> ipAddresses)
public static Set<SnmpInstId> getInstanceIds(Set<InetAddress> ipAddresses)
public static SnmpInstId getInstanceForAddress(InetAddress address)
Copyright © 2020. All rights reserved.