Class TableForwarder
- java.lang.Object
 - 
- org.opendaylight.openflowplugin.applications.frm.impl.AbstractListeningCommiter<TableFeatures>
 - 
- org.opendaylight.openflowplugin.applications.frm.impl.TableForwarder
 
 
 
- 
- All Implemented Interfaces:
 AutoCloseable,EventListener,org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<TableFeatures>,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<TableFeatures>,ForwardingRulesCommiter<TableFeatures>,org.opendaylight.serviceutils.srm.RecoverableListener
public class TableForwarder extends AbstractListeningCommiter<TableFeatures>
 
- 
- 
Field Summary
- 
Fields inherited from class org.opendaylight.openflowplugin.applications.frm.impl.AbstractListeningCommiter
dataBroker 
 - 
 
- 
Constructor Summary
Constructors Constructor Description TableForwarder(ForwardingRulesManager manager, org.opendaylight.mdsal.binding.api.DataBroker db) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Future<? extends org.opendaylight.yangtools.yang.common.RpcResult<?>>add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> identifier, TableFeatures addDataObj, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)Method adds the DataObject which is identified by InstanceIdentifier to device.voidclose()voidcreateStaleMarkEntity(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> identifier, TableFeatures del, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)Method creates stale-marked DataObject which is identified by InstanceIdentifier from device.voidderegisterListener()protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures>getWildCardPath()Method return wildCardPath for Listener registration and for identify the correct KeyInstanceIdentifier from data.voidregisterListener()voidremove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> identifier, TableFeatures removeDataObj, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)Method removes DataObject which is identified by InstanceIdentifier from device.Future<? extends org.opendaylight.yangtools.yang.common.RpcResult<?>>removeWithResult(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> identifier, TableFeatures del, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)voidupdate(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> identifier, TableFeatures original, TableFeatures update, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)Method updates the original DataObject to the update DataObject in device.- 
Methods inherited from class org.opendaylight.openflowplugin.applications.frm.impl.AbstractListeningCommiter
onDataTreeChanged 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
TableForwarder
public TableForwarder(ForwardingRulesManager manager, org.opendaylight.mdsal.binding.api.DataBroker db)
 
 - 
 
- 
Method Detail
- 
registerListener
public void registerListener()
 
- 
deregisterListener
public void deregisterListener()
 
- 
close
public void close()
 
- 
getWildCardPath
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> getWildCardPath()
Description copied from class:AbstractListeningCommiterMethod return wildCardPath for Listener registration and for identify the correct KeyInstanceIdentifier from data.- Specified by:
 getWildCardPathin classAbstractListeningCommiter<TableFeatures>
 
- 
remove
public void remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> identifier, TableFeatures removeDataObj, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
Description copied from interface:ForwardingRulesCommiterMethod removes DataObject which is identified by InstanceIdentifier from device.- Parameters:
 identifier- - the whole path to DataObjectremoveDataObj- - DataObject for removingnodeIdent- Node InstanceIdentifier
 
- 
update
public void update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> identifier, TableFeatures original, TableFeatures update, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
Description copied from interface:ForwardingRulesCommiterMethod updates the original DataObject to the update DataObject in device. Both are identified by same InstanceIdentifier- Parameters:
 identifier- - the whole path to DataObjectoriginal- - original DataObject (for update)update- - changed DataObject (contain updates)nodeIdent- Node InstanceIdentifier
 
- 
add
public Future<? extends org.opendaylight.yangtools.yang.common.RpcResult<?>> add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> identifier, TableFeatures addDataObj, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
Description copied from interface:ForwardingRulesCommiterMethod adds the DataObject which is identified by InstanceIdentifier to device.- Parameters:
 identifier- - the whole path to new DataObjectaddDataObj- - new DataObjectnodeIdent- Node InstanceIdentifier- Returns:
 - A future associated with RPC task. 
nullis set to the future if this method does not invoke RPC. 
 
- 
createStaleMarkEntity
public void createStaleMarkEntity(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> identifier, TableFeatures del, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
Description copied from interface:ForwardingRulesCommiterMethod creates stale-marked DataObject which is identified by InstanceIdentifier from device.- Parameters:
 identifier- - the whole path to DataObjectdel- - DataObject removed. Stale-Mark object to be created from this objectnodeIdent- Node InstanceIdentifier
 
- 
removeWithResult
public Future<? extends org.opendaylight.yangtools.yang.common.RpcResult<?>> removeWithResult(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> identifier, TableFeatures del, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
 
 - 
 
 -