Interface ForwardingRulesManager
- All Superinterfaces:
ConfigurationListener
- All Known Implementing Classes:
ForwardingRulesManagerImpl
It represent a central point for whole module. Implementation Flow Provider
registers the link FlowChangeListener} and it holds all needed services for
link FlowChangeListener}.
- Author:
- Vaclav Demcak
-
Method Summary
Modifier and TypeMethodDescription@NonNull AddBundleMessages
@NonNull AddFlow
addFlow()
@NonNull AddGroup
addGroup()
@NonNull AddMeter
addMeter()
void
addRecoverableListener
(org.opendaylight.serviceutils.srm.RecoverableListener recoverableListener) Method for register RecoverableListener.boolean
checkNodeInOperationalDataStore
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ident) Method returns information : "is Node with send InstanceIdentifier present in operational data store"?.@NonNull ControlBundle
@NonNull GetActiveBundle
Return BundleFlowListener instance.Return BundleGroupListener instance.Return Devices Group Registry which can be used to track the groups present in a device.Content definition method and prevent code duplicity in Reconcil.Content definition method and prevent code duplicity.@NonNull FlowNodeReconciliation
Return theFlowNodeReconciliation
associated with this manager.Content definition method and prevent code duplicity in Reconcil.Content definition method and prevent code duplicity.Method returns generated transaction ID, which is unique for every transaction.Return the NodeConfigurator which could be used to serialize jobs.org.opendaylight.mdsal.binding.api.ReadTransaction
Method returns Read Transaction.int
Return number of reconciliation retry are allowed.Content definition method and prevent code duplicity.boolean
holds the value read from the configuration file openflowplugin.cfg file.boolean
isNodeActive
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ident) Method returns information : "is Node with send InstanceIdentifier connected"?.boolean
isNodeOwner
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ident) Method checks if *this* instance of openflowplugin is owner of the given openflow node.boolean
Check if reconciliation is disabled by user.boolean
Check if stale marking is enabled for switch reconciliation.@NonNull RemoveFlow
@NonNull RemoveGroup
@NonNull RemoveMeter
@NonNull UpdateFlow
@NonNull UpdateGroup
@NonNull UpdateMeter
@NonNull UpdateTable
Methods inherited from interface org.opendaylight.openflowplugin.api.openflow.configuration.ConfigurationListener
onPropertyChanged
-
Method Details
-
isNodeActive
boolean isNodeActive(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ident) Method returns information : "is Node with send InstanceIdentifier connected"?.- Parameters:
ident
- - the key of the node- Returns:
- boolean - true if device is connected
-
checkNodeInOperationalDataStore
boolean checkNodeInOperationalDataStore(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ident) Method returns information : "is Node with send InstanceIdentifier present in operational data store"?.- Parameters:
ident
- - the key of the node- Returns:
- boolean - true if device is present in operational data store
-
getNewTransactionId
String getNewTransactionId()Method returns generated transaction ID, which is unique for every transaction. ID is composite from prefix ("DOM") and unique number.- Returns:
- String transactionID for RPC transaction identification
-
getReadTransaction
org.opendaylight.mdsal.binding.api.ReadTransaction getReadTransaction()Method returns Read Transaction. It is need for Node reconciliation only.- Returns:
- ReadOnlyTransaction
-
addFlow
@NonNull AddFlow addFlow() -
removeFlow
@NonNull RemoveFlow removeFlow() -
updateFlow
@NonNull UpdateFlow updateFlow() -
addGroup
@NonNull AddGroup addGroup() -
removeGroup
@NonNull RemoveGroup removeGroup() -
updateGroup
@NonNull UpdateGroup updateGroup() -
addMeter
@NonNull AddMeter addMeter() -
removeMeter
@NonNull RemoveMeter removeMeter() -
updateMeter
@NonNull UpdateMeter updateMeter() -
updateTable
@NonNull UpdateTable updateTable() -
controlBundle
@NonNull ControlBundle controlBundle() -
addBundleMessages
@NonNull AddBundleMessages addBundleMessages() -
getActiveBundle
@NonNull GetActiveBundle getActiveBundle() -
getDevicesGroupRegistry
DevicesGroupRegistry getDevicesGroupRegistry()Return Devices Group Registry which can be used to track the groups present in a device.- Returns:
- devicesGroupRegistry
-
getFlowCommiter
ForwardingRulesCommiter<Flow> getFlowCommiter()Content definition method and prevent code duplicity in Reconcil.- Returns:
- ForwardingRulesCommiter<Flow>.
-
getGroupCommiter
ForwardingRulesCommiter<Group> getGroupCommiter()Content definition method and prevent code duplicity in Reconcil.- Returns:
- ForwardingRulesCommiter<Group>
-
getMeterCommiter
ForwardingRulesCommiter<Meter> getMeterCommiter()Content definition method and prevent code duplicity.- Returns:
- ForwardingRulesCommiter<Meter>
-
getTableFeaturesCommiter
ForwardingRulesCommiter<TableFeatures> getTableFeaturesCommiter()Content definition method and prevent code duplicity.- Returns:
- ForwardingRulesCommiter<Table>
-
getBundleFlowListener
BundleMessagesCommiter<Flow> getBundleFlowListener()Return BundleFlowListener instance.- Returns:
- BundleFlowListener
-
getBundleGroupListener
BundleMessagesCommiter<Group> getBundleGroupListener()Return BundleGroupListener instance.- Returns:
- BundleGroupListener
-
isReconciliationDisabled
boolean isReconciliationDisabled()Check if reconciliation is disabled by user.- Returns:
- true if reconciliation is disabled, else false
-
isStaleMarkingEnabled
boolean isStaleMarkingEnabled()Check if stale marking is enabled for switch reconciliation.- Returns:
- true if stale marking is enabled, else false
-
getReconciliationRetryCount
int getReconciliationRetryCount()Return number of reconciliation retry are allowed.- Returns:
- number of retries.
-
isNodeOwner
boolean isNodeOwner(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ident) Method checks if *this* instance of openflowplugin is owner of the given openflow node.- Returns:
- True if owner, else false
-
getFlowNodeConnectorInventoryTranslatorImpl
FlowNodeConnectorInventoryTranslatorImpl getFlowNodeConnectorInventoryTranslatorImpl()Content definition method and prevent code duplicity.- Returns:
- FlowNodeConnectorInventoryTranslatorImpl
-
isBundleBasedReconciliationEnabled
boolean isBundleBasedReconciliationEnabled()holds the value read from the configuration file openflowplugin.cfg file.- Returns:
- True if user enables bundle-based-reconciliation-enabled field in config file or False
-
getNodeConfigurator
NodeConfigurator getNodeConfigurator()Return the NodeConfigurator which could be used to serialize jobs.- Returns:
- modeConfigurator.
-
getFlowNodeReconciliation
@NonNull FlowNodeReconciliation getFlowNodeReconciliation()Return theFlowNodeReconciliation
associated with this manager.- Returns:
- the FlowNodeReconciliation
-
addRecoverableListener
void addRecoverableListener(org.opendaylight.serviceutils.srm.RecoverableListener recoverableListener) Method for register RecoverableListener.
-