Class NodeConnectedHandler


  • public class NodeConnectedHandler
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeConnectedHandler​(org.opendaylight.mdsal.binding.api.DataBroker db)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void copyChildPSOpToHAPS​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node childPsNode, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haPath, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haPspath, org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> tx)
      Copy child physical switch node data to HA physical switch data of Operational data tree.
      void copyHAPSConfigToChildPS​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node haPsNode, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> childPath, org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> tx)
      Copy HA physical switch data to Child Physical switch node of config data tree.
      void handleNodeConnected​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node childNode, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> childNodePath, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haNodePath, java.util.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haGlobalCfg, java.util.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haPSCfg, org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> confTx, org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> operTx)
      Takes care of merging the data when a node gets connected.
      void mergeOpManagedByAttributes​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.PhysicalSwitchAugmentation psAugmentation, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.PhysicalSwitchAugmentationBuilder builder, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haNodePath)
      Merge data to Physical switch from HA node path .
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodeConnectedHandler

        public NodeConnectedHandler​(org.opendaylight.mdsal.binding.api.DataBroker db)
    • Method Detail

      • handleNodeConnected

        public void handleNodeConnected​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node childNode,
                                        org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> childNodePath,
                                        org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haNodePath,
                                        java.util.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haGlobalCfg,
                                        java.util.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haPSCfg,
                                        org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> confTx,
                                        org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> operTx)
                                 throws java.util.concurrent.ExecutionException,
                                        java.lang.InterruptedException
        Takes care of merging the data when a node gets connected. When a ha child node gets connected , we perform the following. Merge the ha parent config data to child node. Merge the ha parent physical node config data to child physical node. Merge the child operational data to parent operational data. Merge the child physical switch node operational data to parent physical switch operational node .
        Parameters:
        childNode - Ha child node
        childNodePath - Ha child Iid
        haNodePath - Ha Iid
        haGlobalCfg - Ha Global Config Node
        haPSCfg - Ha Physical Config Node
        operTx - Transaction
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • mergeOpManagedByAttributes

        public void mergeOpManagedByAttributes​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.PhysicalSwitchAugmentation psAugmentation,
                                               org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.PhysicalSwitchAugmentationBuilder builder,
                                               org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haNodePath)
        Merge data to Physical switch from HA node path .
        Parameters:
        psAugmentation - Physical Switch Augmation of Node
        builder - Physical Switch Augmentation Builder
        haNodePath - HA node Path
      • copyHAPSConfigToChildPS

        public void copyHAPSConfigToChildPS​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node haPsNode,
                                            org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> childPath,
                                            org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> tx)
        Copy HA physical switch data to Child Physical switch node of config data tree.
        Parameters:
        haPsNode - HA physical Switch Node
        childPath - HA Child Node path
        tx - Transaction
      • copyChildPSOpToHAPS

        public void copyChildPSOpToHAPS​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node childPsNode,
                                        org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haPath,
                                        org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haPspath,
                                        org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Operational> tx)
                                 throws java.util.concurrent.ExecutionException,
                                        java.lang.InterruptedException
        Copy child physical switch node data to HA physical switch data of Operational data tree.
        Parameters:
        childPsNode - HA child PS node
        haPath - HA node path
        haPspath - Ha Physical Switch Node path
        tx - Transaction
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException