|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.trapd.JdbcTrapdIpMgr
public class JdbcTrapdIpMgr
This class represents a singular instance that is used to map trap IP addresses to known nodes.
| Constructor Summary | |
|---|---|
JdbcTrapdIpMgr()
Default construct for the instance. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
clearKnownIpsMap()
|
void |
dataSourceSync()
Clears and synchronizes the internal known IP address cache with the current information contained in the database. |
DataSource |
getDataSource()
|
long |
getNodeId(String addr)
Returns the nodeid for the IP Address |
long |
removeNodeId(String addr)
Removes an address from the node ID map. |
void |
setDataSource(DataSource dataSource)
|
long |
setNodeId(String addr,
long 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 |
| Constructor Detail |
|---|
public JdbcTrapdIpMgr()
| Method Detail |
|---|
public void dataSourceSync()
TrapdIpMgr
dataSourceSync in interface TrapdIpMgrpublic long getNodeId(String addr)
TrapdIpMgr
getNodeId in interface TrapdIpMgraddr - The IP Address to query.
public long setNodeId(String addr,
long nodeid)
TrapdIpMgr
setNodeId in interface TrapdIpMgraddr - The IP Address to add.nodeid - The Node ID to add.
public long removeNodeId(String addr)
TrapdIpMgr
removeNodeId in interface TrapdIpMgraddr - The address to remove from the node ID map.
public void clearKnownIpsMap()
clearKnownIpsMap in interface TrapdIpMgrpublic DataSource getDataSource()
public void setDataSource(DataSource dataSource)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||