public class TableForwarder extends AbstractListeningCommiter<TableFeatures>
dataBroker
Constructor and Description |
---|
TableForwarder(ForwardingRulesManager manager,
org.opendaylight.controller.md.sal.binding.api.DataBroker db) |
Modifier and Type | Method and 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.
|
void |
close() |
void |
createStaleMarkEntity(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.
|
void |
deregisterListener() |
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> |
getWildCardPath()
Method return wildCardPath for Listener registration
and for identify the correct KeyInstanceIdentifier from data.
|
void |
registerListener() |
void |
remove(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) |
void |
update(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.
|
onDataTreeChanged
public TableForwarder(ForwardingRulesManager manager, org.opendaylight.controller.md.sal.binding.api.DataBroker db)
public void registerListener()
public void deregisterListener()
public void close()
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> getWildCardPath()
AbstractListeningCommiter
getWildCardPath
in class AbstractListeningCommiter<TableFeatures>
public void remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> identifier, TableFeatures removeDataObj, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
ForwardingRulesCommiter
identifier
- - the whole path to DataObjectremoveDataObj
- - DataObject for removingnodeIdent
- Node InstanceIdentifierpublic void update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> identifier, TableFeatures original, TableFeatures update, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
ForwardingRulesCommiter
identifier
- - the whole path to DataObjectoriginal
- - original DataObject (for update)update
- - changed DataObject (contain updates)nodeIdent
- Node InstanceIdentifierpublic 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)
ForwardingRulesCommiter
identifier
- - the whole path to new DataObjectaddDataObj
- - new DataObjectnodeIdent
- Node InstanceIdentifiernull
is set to the future
if this method does not invoke RPC.public void createStaleMarkEntity(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<TableFeatures> identifier, TableFeatures del, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> nodeIdent)
ForwardingRulesCommiter
identifier
- - the whole path to DataObjectdel
- - DataObject removed. Stale-Mark object to be created from this
objectnodeIdent
- Node InstanceIdentifierpublic 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)
Copyright © 2019 OpenDaylight. All rights reserved.