Class FrmNodeAndTablesBuilder
- java.lang.Object
-
- org.opendaylight.genius.interfacemanager.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)
-
-
-
Method Detail
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.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 interfaceorg.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 interfaceorg.opendaylight.openflowplugin.applications.reconciliation.ReconciliationNotificationListener
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceorg.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 interfaceorg.opendaylight.openflowplugin.applications.reconciliation.ReconciliationNotificationListener
-
getPriority
public int getPriority()
- Specified by:
getPriority
in interfaceorg.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)
-
-