|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.capsd.ReparentViaSmb
public final class ReparentViaSmb
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').
| Constructor Summary | |
|---|---|
ReparentViaSmb(java.sql.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 |
|---|
public ReparentViaSmb(java.sql.Connection connection)
connection - Database connection| Method Detail |
|---|
public void sync()
throws java.sql.SQLException
java.sql.SQLException - if error occurs updating the database
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||