|
||||||||||
| 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()
afterPropertiesSet |
void |
clearKnownIpsMap()
clearKnownIpsMap |
void |
dataSourceSync()
dataSourceSync |
DataSource |
getDataSource()
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)
setDataSource |
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()
dataSourceSync
dataSourceSync in interface TrapdIpMgrpublic long getNodeId(String addr)
getNodeId in interface TrapdIpMgraddr - The IP Address to query.
public long setNodeId(String addr,
long nodeid)
setNodeId in interface TrapdIpMgraddr - The IP Address to add.nodeid - The Node ID to add.
public long removeNodeId(String addr)
removeNodeId in interface TrapdIpMgraddr - The address to remove from the node ID map.
public void clearKnownIpsMap()
clearKnownIpsMap
clearKnownIpsMap in interface TrapdIpMgrpublic DataSource getDataSource()
getDataSource
DataSource object.public void setDataSource(DataSource dataSource)
setDataSource
dataSource - a DataSource object.
public void afterPropertiesSet()
throws Exception
afterPropertiesSet
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||