|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.snmp.CollectionTracker
org.opennms.netmgt.snmp.AggregateTracker
org.opennms.netmgt.provision.service.snmp.SnmpTable<IpAddressTableEntry>
org.opennms.netmgt.provision.service.snmp.IpAddressTable
public class IpAddressTable
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.
| Field Summary | |
|---|---|
protected static int |
INSTANCE_TYPE_IPV4
|
protected static int |
INSTANCE_TYPE_IPV6
|
| Fields inherited from class org.opennms.netmgt.snmp.CollectionTracker |
|---|
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR |
| Constructor Summary | |
|---|---|
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 | |
|---|---|
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 |
| Methods inherited from class org.opennms.netmgt.provision.service.snmp.SnmpTable |
|---|
getEntries, getEntry, getEntry, getInstances, reportGenErr, reportNoSuchNameErr, storeResult |
| Methods inherited from class org.opennms.netmgt.snmp.AggregateTracker |
|---|
buildNextPdu, isFinished, setFailed, setMaxRepetitions, setTimedOut |
| Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker |
|---|
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int INSTANCE_TYPE_IPV4
protected static final int INSTANCE_TYPE_IPV6
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 Set<Integer> getIfIndices()
getIfIndices
Set 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
node - a OnmsNode object.ipAddr - a String object.public Set<String> getIpAddresses()
getIpAddresses
Set object.
public static IpAddressTable createTable(InetAddress address,
Set<InetAddress> ipAddresses)
public static Set<SnmpInstId> getInstanceIds(Set<InetAddress> ipAddresses)
public static SnmpInstId getInstanceForAddress(InetAddress address)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||