Class FlowNodeConnectorInventoryTranslatorImpl
- java.lang.Object
-
- org.opendaylight.openflowplugin.applications.frm.impl.AbstractNodeConnectorCommitter<FlowCapableNodeConnector>
-
- org.opendaylight.openflowplugin.applications.frm.impl.FlowNodeConnectorInventoryTranslatorImpl
-
- All Implemented Interfaces:
AutoCloseable
,EventListener
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<FlowCapableNodeConnector>
,FlowCapableNodeConnectorCommitter<FlowCapableNodeConnector>
,FlowNodeConnectorInventoryTranslator
public final class FlowNodeConnectorInventoryTranslatorImpl extends AbstractNodeConnectorCommitter<FlowCapableNodeConnector> implements FlowNodeConnectorInventoryTranslator
-
-
Constructor Summary
Constructors Constructor Description FlowNodeConnectorInventoryTranslatorImpl(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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>
getWildCardPath()
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
-
-
-
-
Method Detail
-
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
public boolean isNodeConnectorUpdated(BigInteger dpId, String portName)
- Specified by:
isNodeConnectorUpdated
in interfaceFlowNodeConnectorInventoryTranslator
-
-