org.opennms.netmgt.linkd
Class DbEventWriter
java.lang.Object
org.opennms.netmgt.linkd.DbEventWriter
- All Implemented Interfaces:
- QueryManager
public class DbEventWriter
- extends java.lang.Object
- implements QueryManager
This class is used to store informations owned by SnmpCollection and
DiscoveryLink Classes in DB. When saving Snmp Collection it populate Bean
LinkableNode with information for DiscoveryLink. It performes data test for
DiscoveryLink. Also take correct action on DB tables in case node is deleted
service SNMP is discovered, service SNMP is Lost and Regained Also this class
holds
- Author:
- antonio
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DbEventWriter
public DbEventWriter()
storeDiscoveryLink
public void storeDiscoveryLink(DiscoveryLink discovery)
throws java.sql.SQLException
- Specified by:
storeDiscoveryLink in interface QueryManager
- Parameters:
discovery -
- Throws:
java.sql.SQLException
storeSnmpCollection
public LinkableNode storeSnmpCollection(LinkableNode node,
SnmpCollection snmpcoll)
throws java.sql.SQLException
- Specified by:
storeSnmpCollection in interface QueryManager
- Throws:
java.sql.SQLException
update
public void update(int nodeid,
char status)
throws java.sql.SQLException
- Specified by:
update in interface QueryManager
- Throws:
java.sql.SQLException
setDbConnectionFactory
public void setDbConnectionFactory(javax.sql.DataSource dbConnectionFactory)
- Specified by:
setDbConnectionFactory in interface QueryManager
getSnmpNode
public LinkableNode getSnmpNode(int nodeid)
throws java.sql.SQLException
- Specified by:
getSnmpNode in interface QueryManager
- Throws:
java.sql.SQLException
getSnmpNodeList
public java.util.List<LinkableNode> getSnmpNodeList()
throws java.sql.SQLException
- Specified by:
getSnmpNodeList in interface QueryManager
- Returns:
-
- Throws:
java.sql.SQLException
updateDeletedNodes
public void updateDeletedNodes()
throws java.sql.SQLException
- Specified by:
updateDeletedNodes in interface QueryManager
- Throws:
java.sql.SQLException
getSnmpPrimaryIp
public java.lang.String getSnmpPrimaryIp(int nodeid)
throws java.sql.SQLException
- Specified by:
getSnmpPrimaryIp in interface QueryManager
- Throws:
java.sql.SQLException
Copyright © 2007. All Rights Reserved.