org.opennms.netmgt.capsd
Class ReparentViaSmb

java.lang.Object
  extended by org.opennms.netmgt.capsd.ReparentViaSmb

public final class ReparentViaSmb
extends Object

This class is designed to reparent interfaces in the database based on the SMB protocol. Specifically, if two nodes in the 'node' table have identical NetBIOS names it is assumed that those two nodes actually represent different interfaces (physical or alias'd) on the same box. The node with the lowest nodeID becomes the "reparent node" and the other nodes are considered duplicates. All interfaces under each duplicate node are then reparented under the "reparent node" and the duplicate node(s) are flagged in the database as deleted (nodeType='D').

Version:
1.1.1.1
Author:
Mike , OpenNMS , Mike , OpenNMS

Constructor Summary
ReparentViaSmb(Connection connection)
          Class constructor.
 
Method Summary
 void sync()
          Performs reparenting if necessary and generates appropriate events to inform other OpenNMS processes of any database changes..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReparentViaSmb

public ReparentViaSmb(Connection connection)
Class constructor.

Parameters:
connection - Database connection
Method Detail

sync

public void sync()
          throws SQLException
Performs reparenting if necessary and generates appropriate events to inform other OpenNMS processes of any database changes..

Throws:
SQLException - if error occurs updating the database


Copyright © 2011. All Rights Reserved.