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
|
boolean |
updateIpInterfaceData(OnmsNode node,
InetAddress ipAddr)
updateIpInterfaceData
|
getEntries, getEntry, getEntry, getInstances, reportFatalErr, reportGenErr, reportNonFatalErr, reportNoSuchNameErr, storeResult
buildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setFailed, setMaxRepetitions, setMaxRetries, setTimedOut
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
protected 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
- TODOIpAddressTableEntry
public 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 boolean updateIpInterfaceData(OnmsNode node, InetAddress 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 © 2021. All rights reserved.