|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.trapd.HibernateTrapdIpMgr
public class HibernateTrapdIpMgr
This class represents a singular instance that is used to map trap IP addresses to known nodes.
| Constructor Summary | |
|---|---|
HibernateTrapdIpMgr()
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. |
IpInterfaceDao |
getIpInterfaceDao()
|
long |
getNodeId(String addr)
Returns the nodeid for the IP Address |
long |
removeNodeId(String addr)
Removes an address from the node ID map. |
void |
setIpInterfaceDao(IpInterfaceDao ipInterfaceDao)
|
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 HibernateTrapdIpMgr()
| Method Detail |
|---|
@Transactional(readOnly=true) 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 TrapdIpMgr
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic IpInterfaceDao getIpInterfaceDao()
public void setIpInterfaceDao(IpInterfaceDao ipInterfaceDao)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||