Interface MastershipChangeServiceManager
- All Superinterfaces:
OwnershipChangeListener
,ReconciliationFrameworkRegistrar
- All Known Implementing Classes:
MastershipChangeServiceManagerImpl
Provider to register mastership change listener.
Provider to set mastership reconciliation framework.
- Since:
- 0.5.0 Nitrogen
-
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.concepts.Registration
reconciliationFrameworkRegistration
(@NonNull ReconciliationFrameworkEvent mastershipRFRegistration) Setter for reconciliation framework event listener.@NonNull org.opendaylight.yangtools.concepts.Registration
register
(@NonNull MastershipChangeService service) Register of mastership change listener.Methods inherited from interface org.opendaylight.openflowplugin.api.openflow.lifecycle.OwnershipChangeListener
becomeMaster, becomeMasterBeforeSubmittedDS, becomeSlaveOrDisconnect, setMasterChecker
Methods inherited from interface org.opendaylight.openflowplugin.api.openflow.lifecycle.ReconciliationFrameworkRegistrar
isReconciliationFrameworkRegistered
-
Method Details
-
register
@NonNull org.opendaylight.yangtools.concepts.Registration register(@NonNull MastershipChangeService service) Register of mastership change listener. Returned registration need to be closed by client. It doesn't contain event for reconciliation framework event.- Parameters:
service
- implementation ofMastershipChangeService
- Returns:
- registration
- See Also:
-
reconciliationFrameworkRegistration
org.opendaylight.yangtools.concepts.Registration reconciliationFrameworkRegistration(@NonNull ReconciliationFrameworkEvent mastershipRFRegistration) throws MastershipChangeException Setter for reconciliation framework event listener. It can be registered only once. Another registrations will throw an exception- Parameters:
mastershipRFRegistration
- reconciliation framework- Returns:
- registration object, which can be closed to unregister
- Throws:
MastershipChangeException
- if already reconciliation framework registered
-