org.opennms.netmgt.linkd
Class DbEventWriter

java.lang.Object
  extended by org.opennms.netmgt.linkd.DbEventWriter
All Implemented Interfaces:
java.lang.Runnable

public class DbEventWriter
extends java.lang.Object
implements java.lang.Runnable

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

Author:
antonio

Constructor Summary
DbEventWriter(org.opennms.netmgt.linkd.DiscoveryLink discoverLink)
           
DbEventWriter(int nodeid, char action)
           
DbEventWriter(int nodeid, SnmpCollection m_snmpcoll)
           
 
Method Summary
 LinkableNode getLinkableNode()
           
 boolean isAutoDiscovery()
           
 void run()
           
 void setAutoDiscovery(boolean autoDiscovery)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbEventWriter

public DbEventWriter(int nodeid,
                     SnmpCollection m_snmpcoll)
Parameters:
m_snmpcoll -

DbEventWriter

public DbEventWriter(int nodeid,
                     char action)
Parameters:
nodeid -
action -

DbEventWriter

public DbEventWriter(org.opennms.netmgt.linkd.DiscoveryLink discoverLink)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

getLinkableNode

public LinkableNode getLinkableNode()

isAutoDiscovery

public boolean isAutoDiscovery()

setAutoDiscovery

public void setAutoDiscovery(boolean autoDiscovery)


Copyright © 2007. All Rights Reserved.