|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.trapd.TrapdIPMgr
This class represents a singular instance that is used to map trap IP addresses to known nodes.
Field Summary | |
private static java.lang.String |
IP_LOAD_SQL
The SQL statement used to extract the list of currently known IP addresses and their node IDs from the IP Interface table. |
private static java.util.Map |
m_knownips
A Map of IP addresses and node IDs |
Constructor Summary | |
private |
TrapdIPMgr()
Default construct for the instance. |
Method Summary | |
(package private) static void |
dataSourceSync()
Clears and synchronizes the internal known IP address cache with the current information contained in the database. |
(package private) static java.lang.String |
getNodeId(java.lang.String addr)
Returns the nodeid for the IP Address |
(package private) static java.lang.String |
removeNodeId(java.lang.String addr)
Removes an address from the node ID map. |
(package private) static java.lang.String |
setNodeId(java.lang.String addr,
java.lang.String nodeid)
Sets the IP Address and Node ID in the Map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String IP_LOAD_SQL
private static java.util.Map m_knownips
Constructor Detail |
private TrapdIPMgr()
java.lang.UnsupportedOperationException
- Always thrown.Method Detail |
static void dataSourceSync() throws java.sql.SQLException
java.sql.SQLException
- Thrown if the connection cannot be created or a database
error occurs.static java.lang.String getNodeId(java.lang.String addr)
addr
- The IP Address to query.
static java.lang.String setNodeId(java.lang.String addr, java.lang.String nodeid)
addr
- The IP Address to add.nodeid
- The Node ID to add.
static java.lang.String removeNodeId(java.lang.String addr)
addr
- The address to remove from the node ID map.
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |