Class FlowNodeConnectorInventoryTranslatorImpl
java.lang.Object
org.opendaylight.openflowplugin.applications.frm.impl.AbstractNodeConnectorCommitter<FlowCapableNodeConnector>
org.opendaylight.openflowplugin.applications.frm.impl.FlowNodeConnectorInventoryTranslatorImpl
- All Implemented Interfaces:
AutoCloseable
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<FlowCapableNodeConnector>
,FlowCapableNodeConnectorCommitter<FlowCapableNodeConnector>
,FlowNodeConnectorInventoryTranslator
public final class FlowNodeConnectorInventoryTranslatorImpl
extends AbstractNodeConnectorCommitter<FlowCapableNodeConnector>
implements FlowNodeConnectorInventoryTranslator
-
Constructor Summary
ConstructorDescriptionFlowNodeConnectorInventoryTranslatorImpl
(org.opendaylight.mdsal.binding.api.DataBroker dataBroker) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector> identifier, FlowCapableNodeConnector add, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector> nodeConnIdent) Method adds the DataObject which is identified by InstanceIdentifier to device.void
close()
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector>
Method return wildCardPath for Listener registration and for identify the correct KeyInstanceIdentifier from data.boolean
isNodeConnectorUpdated
(BigInteger dpId, String portName) void
remove
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector> identifier, FlowCapableNodeConnector del, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector> nodeConnIdent) Method removes DataObject which is identified by InstanceIdentifier from device.void
update
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector> identifier, FlowCapableNodeConnector original, FlowCapableNodeConnector update, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector> nodeConnIdent) Method updates the original DataObject to the update DataObject in device.Methods inherited from class org.opendaylight.openflowplugin.applications.frm.impl.AbstractNodeConnectorCommitter
onDataTreeChanged
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.mdsal.binding.api.DataTreeChangeListener
onInitialData
-
Constructor Details
-
FlowNodeConnectorInventoryTranslatorImpl
public FlowNodeConnectorInventoryTranslatorImpl(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
-
Method Details
-
getWildCardPath
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector> getWildCardPath()Description copied from class:AbstractNodeConnectorCommitter
Method return wildCardPath for Listener registration and for identify the correct KeyInstanceIdentifier from data.- Specified by:
getWildCardPath
in classAbstractNodeConnectorCommitter<FlowCapableNodeConnector>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
remove
public void remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector> identifier, FlowCapableNodeConnector del, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector> nodeConnIdent) Description copied from interface:FlowCapableNodeConnectorCommitter
Method removes DataObject which is identified by InstanceIdentifier from device.- Specified by:
remove
in interfaceFlowCapableNodeConnectorCommitter<FlowCapableNodeConnector>
- Parameters:
identifier
- - the whole path to DataObjectdel
- - DataObject for removingnodeConnIdent
- NodeConnector InstanceIdentifier
-
update
public void update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector> identifier, FlowCapableNodeConnector original, FlowCapableNodeConnector update, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector> nodeConnIdent) Description copied from interface:FlowCapableNodeConnectorCommitter
Method updates the original DataObject to the update DataObject in device. Both are identified by same InstanceIdentifier- Specified by:
update
in interfaceFlowCapableNodeConnectorCommitter<FlowCapableNodeConnector>
- Parameters:
identifier
- - the whole path to DataObjectoriginal
- - original DataObject (for update)update
- - changed DataObject (contain updates)nodeConnIdent
- NodeConnector InstanceIdentifier
-
add
public void add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector> identifier, FlowCapableNodeConnector add, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNodeConnector> nodeConnIdent) Description copied from interface:FlowCapableNodeConnectorCommitter
Method adds the DataObject which is identified by InstanceIdentifier to device.- Specified by:
add
in interfaceFlowCapableNodeConnectorCommitter<FlowCapableNodeConnector>
- Parameters:
identifier
- - the whole path to new DataObjectadd
- - new DataObjectnodeConnIdent
- NodeConnector InstanceIdentifier
-
isNodeConnectorUpdated
- Specified by:
isNodeConnectorUpdated
in interfaceFlowNodeConnectorInventoryTranslator
-