public class ForwardingRulesManagerImpl extends Object implements ForwardingRulesManager
Manager and middle point for whole module. It contains ActiveNodeHolder and provide all RPC services.
| Constructor and Description |
|---|
ForwardingRulesManagerImpl(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcRegistry,
ForwardingRulesManagerConfig config,
MastershipChangeServiceManager mastershipChangeServiceManager,
org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService,
ConfigurationService configurationService,
ReconciliationManager reconciliationManager,
OpenflowServiceRecoveryHandler openflowServiceRecoveryHandler,
org.opendaylight.serviceutils.srm.ServiceRecoveryRegistry serviceRecoveryRegistry) |
| Modifier and Type | Method and Description |
|---|---|
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"?.
|
void |
close() |
ArbitratorReconcileService |
getArbitratorReconciliationManager()
Method exposes the ArbitratorReconciliationManager service used for performing Arbitrator Based Reconciliation.
|
DevicesGroupRegistry |
getDevicesGroupRegistry()
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.
|
FlowNodeConnectorInventoryTranslatorImpl |
getFlowNodeConnectorInventoryTranslatorImpl()
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.
|
String |
getNewTransactionId()
Method returns generated transaction ID, which is unique for every
transaction.
|
NodeConfigurator |
getNodeConfigurator()
Return the NodeConfigurator which could be used to serialize jobs.
|
FlowNodeReconciliation |
getNodeListener() |
org.opendaylight.controller.md.sal.binding.api.ReadOnlyTransaction |
getReadTransaction()
Method returns Read Transaction.
|
int |
getReconciliationRetryCount()
Return number of reconciliation retry are allowed.
|
SalBundleService |
getSalBundleService()
Bundle RPC service.
|
SalFlowService |
getSalFlowService()
Flow RPC service.
|
SalGroupService |
getSalGroupService()
Group RPC service.
|
SalMeterService |
getSalMeterService()
Meter RPC service.
|
SalTableService |
getSalTableService()
Table RPC service.
|
ForwardingRulesCommiter<TableFeatures> |
getTableFeaturesCommiter()
Content definition method and prevent code duplicity.
|
boolean |
isBundleBasedReconciliationEnabled()
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 |
isReconciliationDisabled()
Check if reconciliation is disabled by user.
|
boolean |
isStaleMarkingEnabled()
Check if stale marking is enabled for switch reconciliation.
|
void |
onPropertyChanged(String propertyName,
String propertyValue)
Method invoked on configuration property change.
|
void |
setDeviceMastershipManager(DeviceMastershipManager deviceMastershipManager) |
void |
start() |
public ForwardingRulesManagerImpl(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcRegistry,
ForwardingRulesManagerConfig config,
MastershipChangeServiceManager mastershipChangeServiceManager,
org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService,
ConfigurationService configurationService,
ReconciliationManager reconciliationManager,
OpenflowServiceRecoveryHandler openflowServiceRecoveryHandler,
org.opendaylight.serviceutils.srm.ServiceRecoveryRegistry serviceRecoveryRegistry)
public void start()
start in interface ForwardingRulesManagerpublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic org.opendaylight.controller.md.sal.binding.api.ReadOnlyTransaction getReadTransaction()
ForwardingRulesManagergetReadTransaction in interface ForwardingRulesManagerpublic String getNewTransactionId()
ForwardingRulesManagergetNewTransactionId in interface ForwardingRulesManagerpublic boolean isNodeActive(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ident)
ForwardingRulesManagerisNodeActive in interface ForwardingRulesManagerident - - the key of the nodepublic boolean checkNodeInOperationalDataStore(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ident)
ForwardingRulesManagercheckNodeInOperationalDataStore in interface ForwardingRulesManagerident - - the key of the nodepublic SalFlowService getSalFlowService()
ForwardingRulesManagergetSalFlowService in interface ForwardingRulesManagerpublic SalGroupService getSalGroupService()
ForwardingRulesManagergetSalGroupService in interface ForwardingRulesManagerpublic SalMeterService getSalMeterService()
ForwardingRulesManagergetSalMeterService in interface ForwardingRulesManagerpublic SalTableService getSalTableService()
ForwardingRulesManagergetSalTableService in interface ForwardingRulesManagerpublic DevicesGroupRegistry getDevicesGroupRegistry()
ForwardingRulesManagergetDevicesGroupRegistry in interface ForwardingRulesManagerpublic SalBundleService getSalBundleService()
ForwardingRulesManagergetSalBundleService in interface ForwardingRulesManagerpublic ForwardingRulesCommiter<Flow> getFlowCommiter()
ForwardingRulesManagergetFlowCommiter in interface ForwardingRulesManagerpublic ForwardingRulesCommiter<Group> getGroupCommiter()
ForwardingRulesManagergetGroupCommiter in interface ForwardingRulesManagerpublic ForwardingRulesCommiter<Meter> getMeterCommiter()
ForwardingRulesManagergetMeterCommiter in interface ForwardingRulesManagerpublic ForwardingRulesCommiter<TableFeatures> getTableFeaturesCommiter()
ForwardingRulesManagergetTableFeaturesCommiter in interface ForwardingRulesManagerpublic ArbitratorReconcileService getArbitratorReconciliationManager()
ForwardingRulesManagergetArbitratorReconciliationManager in interface ForwardingRulesManagerpublic boolean isReconciliationDisabled()
ForwardingRulesManagerisReconciliationDisabled in interface ForwardingRulesManagerpublic boolean isStaleMarkingEnabled()
ForwardingRulesManagerisStaleMarkingEnabled in interface ForwardingRulesManagerpublic int getReconciliationRetryCount()
ForwardingRulesManagergetReconciliationRetryCount in interface ForwardingRulesManagerpublic void addRecoverableListener(org.opendaylight.serviceutils.srm.RecoverableListener recoverableListener)
ForwardingRulesManageraddRecoverableListener in interface ForwardingRulesManagerpublic FlowNodeConnectorInventoryTranslatorImpl getFlowNodeConnectorInventoryTranslatorImpl()
ForwardingRulesManagergetFlowNodeConnectorInventoryTranslatorImpl in interface ForwardingRulesManagerpublic NodeConfigurator getNodeConfigurator()
ForwardingRulesManagergetNodeConfigurator in interface ForwardingRulesManagerpublic FlowNodeReconciliation getNodeListener()
public boolean isBundleBasedReconciliationEnabled()
ForwardingRulesManagerisBundleBasedReconciliationEnabled in interface ForwardingRulesManagerpublic boolean isNodeOwner(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> ident)
ForwardingRulesManagerisNodeOwner in interface ForwardingRulesManagerpublic void setDeviceMastershipManager(DeviceMastershipManager deviceMastershipManager)
public void onPropertyChanged(@Nonnull String propertyName, @Nonnull String propertyValue)
ConfigurationListeneronPropertyChanged in interface ConfigurationListenerpropertyName - the property namepropertyValue - the property valueCopyright © 2019 OpenDaylight. All rights reserved.