Class FrmNodeAndTablesBuilder

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.opendaylight.openflowplugin.applications.reconciliation.ReconciliationNotificationListener

    @Singleton
    public class FrmNodeAndTablesBuilder
    extends java.lang.Object
    implements org.opendaylight.openflowplugin.applications.reconciliation.ReconciliationNotificationListener
    Pre-creates the nodes and tables in the FRM config/inventory datastore whenever a switch is connected. This class implements the callback provided by openflowplugin to do the node and tables pre-creation.
    • Constructor Summary

      Constructors 
      Constructor Description
      FrmNodeAndTablesBuilder​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.openflowplugin.applications.reconciliation.ReconciliationManager reconciliationManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node buildDpnNode​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)  
      void close()  
      com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> endReconciliation​(org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo node)  
      java.lang.String getName()  
      int getPriority()  
      org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflowplugin.rf.state.rev170713.ResultState getResultState()  
      com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> startReconciliation​(org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo connectedNode)  
      • Methods inherited from class java.lang.Object

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

      • FrmNodeAndTablesBuilder

        @Inject
        public FrmNodeAndTablesBuilder​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker,
                                       org.opendaylight.openflowplugin.applications.reconciliation.ReconciliationManager reconciliationManager)
    • Method Detail

      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception
      • startReconciliation

        public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> startReconciliation​(org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo connectedNode)
        Specified by:
        startReconciliation in interface org.opendaylight.openflowplugin.applications.reconciliation.ReconciliationNotificationListener
      • endReconciliation

        public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> endReconciliation​(org.opendaylight.openflowplugin.api.openflow.device.DeviceInfo node)
        Specified by:
        endReconciliation in interface org.opendaylight.openflowplugin.applications.reconciliation.ReconciliationNotificationListener
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.opendaylight.openflowplugin.applications.reconciliation.ReconciliationNotificationListener
      • getResultState

        public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflowplugin.rf.state.rev170713.ResultState getResultState()
        Specified by:
        getResultState in interface org.opendaylight.openflowplugin.applications.reconciliation.ReconciliationNotificationListener
      • getPriority

        public int getPriority()
        Specified by:
        getPriority in interface org.opendaylight.openflowplugin.applications.reconciliation.ReconciliationNotificationListener
      • buildDpnNode

        protected org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node buildDpnNode​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)