|
||||||||||
| 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<IpAddrTableEntry>
org.opennms.netmgt.provision.service.snmp.IpAddrTable
public class IpAddrTable
IpAddrTable uses a SnmpSession to collect the ipAddrTable 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 |
|---|
| Fields inherited from class org.opennms.netmgt.snmp.CollectionTracker |
|---|
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR |
| Constructor Summary | |
|---|---|
IpAddrTable(InetAddress address)
Constructs an IpAddrTable object that is used to collect the address elements from the remote agent. |
|
IpAddrTable(InetAddress address,
Set<SnmpInstId> ipAddrs)
Constructor for IpAddrTable. |
|
| Method Summary | |
|---|---|
protected IpAddrTableEntry |
createTableEntry(SnmpObjId base,
SnmpInstId inst,
Object val)
createTableEntry |
IpAddrTableEntry |
getEntry(InetAddress address)
getEntry |
IpAddrTableEntry |
getEntryByIfIndex(int ifIndex)
getEntryByIfIndex |
InetAddress |
getIfAddress(int ifIndex)
getIfAddress |
InetAddress[] |
getIfAddressAndMask(int ifIndex)
getIfAddressAndMask |
Integer |
getIfIndex(InetAddress address)
getIfIndex |
Set<Integer> |
getIfIndices()
getIfIndices |
Set<String> |
getIpAddresses()
getIpAddresses |
InetAddress |
getNetMask(InetAddress address)
getNetMask |
InetAddress |
getNetMask(int ifIndex)
getNetMask |
protected ThreadCategory |
log()
log |
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 |
| Constructor Detail |
|---|
public IpAddrTable(InetAddress address)
Constructs an IpAddrTable 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 - TODOIpAddrTableEntry
public IpAddrTable(InetAddress address,
Set<SnmpInstId> ipAddrs)
Constructor for IpAddrTable.
address - a InetAddress object.ipAddrs - a Set object.| Method Detail |
|---|
protected IpAddrTableEntry createTableEntry(SnmpObjId base,
SnmpInstId inst,
Object val)
createTableEntry
createTableEntry in class SnmpTable<IpAddrTableEntry>base - a SnmpObjId object.inst - a SnmpInstId object.val - a Object object.
public Set<Integer> getIfIndices()
getIfIndices
Set object.public InetAddress[] getIfAddressAndMask(int ifIndex)
getIfAddressAndMask
ifIndex - a int.
InetAddress objects.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 IpAddrTableEntry getEntryByIfIndex(int ifIndex)
getEntryByIfIndex
ifIndex - a int.
IpAddrTableEntry object.public IpAddrTableEntry getEntry(InetAddress address)
getEntry
address - a InetAddress object.
IpAddrTableEntry object.protected final ThreadCategory log()
log
ThreadCategory 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||