Interface ForwardingRulesManager
-
- All Superinterfaces:
AutoCloseable,ConfigurationListener
- All Known Implementing Classes:
ForwardingRulesManagerImpl
public interface ForwardingRulesManager extends ConfigurationListener, AutoCloseable
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddRecoverableListener(org.opendaylight.serviceutils.srm.RecoverableListener recoverableListener)Method for register RecoverableListener.booleancheckNodeInOperationalDataStore(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ident)Method returns information : "is Node with send InstanceIdentifier present in operational data store"?.ArbitratorReconcileServicegetArbitratorReconciliationManager()Method exposes the ArbitratorReconciliationManager service used for performing Arbitrator Based Reconciliation.BundleMessagesCommiter<Flow>getBundleFlowListener()Return BundleFlowListener instance.BundleMessagesCommiter<Group>getBundleGroupListener()Return BundleGroupListener instance.DevicesGroupRegistrygetDevicesGroupRegistry()Return Devices Group Registry which can be used to track the groups present in a device.ForwardingRulesCommiter<Flow>getFlowCommiter()Content definition method and prevent code duplicity in Reconcil.FlowNodeConnectorInventoryTranslatorImplgetFlowNodeConnectorInventoryTranslatorImpl()Content definition method and prevent code duplicity.ForwardingRulesCommiter<Group>getGroupCommiter()Content definition method and prevent code duplicity in Reconcil.ForwardingRulesCommiter<Meter>getMeterCommiter()Content definition method and prevent code duplicity.StringgetNewTransactionId()Method returns generated transaction ID, which is unique for every transaction.NodeConfiguratorgetNodeConfigurator()Return the NodeConfigurator which could be used to serialize jobs.org.opendaylight.mdsal.binding.api.ReadTransactiongetReadTransaction()Method returns Read Transaction.intgetReconciliationRetryCount()Return number of reconciliation retry are allowed.SalBundleServicegetSalBundleService()Bundle RPC service.SalFlowServicegetSalFlowService()Flow RPC service.SalGroupServicegetSalGroupService()Group RPC service.SalMeterServicegetSalMeterService()Meter RPC service.SalTableServicegetSalTableService()Table RPC service.ForwardingRulesCommiter<TableFeatures>getTableFeaturesCommiter()Content definition method and prevent code duplicity.booleanisBundleBasedReconciliationEnabled()holds the value read from the configuration file openflowplugin.cfg file.booleanisNodeActive(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ident)Method returns information : "is Node with send InstanceIdentifier connected"?.booleanisNodeOwner(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ident)Method checks if *this* instance of openflowplugin is owner of the given openflow node.booleanisReconciliationDisabled()Check if reconciliation is disabled by user.booleanisStaleMarkingEnabled()Check if stale marking is enabled for switch reconciliation.voidstart()-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface org.opendaylight.openflowplugin.api.openflow.configuration.ConfigurationListener
onPropertyChanged
-
-
-
-
Method Detail
-
start
void start()
-
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
-
getSalFlowService
SalFlowService getSalFlowService()
Flow RPC service.
-
getSalGroupService
SalGroupService getSalGroupService()
Group RPC service.
-
getSalMeterService
SalMeterService getSalMeterService()
Meter RPC service.
-
getSalTableService
SalTableService getSalTableService()
Table RPC service.
-
getDevicesGroupRegistry
DevicesGroupRegistry getDevicesGroupRegistry()
Return Devices Group Registry which can be used to track the groups present in a device.- Returns:
- devicesGroupRegistry
-
getSalBundleService
SalBundleService getSalBundleService()
Bundle RPC service.- Returns:
- salBundleService
-
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.
-
addRecoverableListener
void addRecoverableListener(org.opendaylight.serviceutils.srm.RecoverableListener recoverableListener)
Method for register RecoverableListener.
-
getArbitratorReconciliationManager
ArbitratorReconcileService getArbitratorReconciliationManager()
Method exposes the ArbitratorReconciliationManager service used for performing Arbitrator Based Reconciliation.- Returns:
- ArbitratorReconciliationManager
-
-