Interface OwnershipChangeListener
- All Superinterfaces:
ReconciliationFrameworkRegistrar
- All Known Subinterfaces:
MastershipChangeServiceManager
- All Known Implementing Classes:
MastershipChangeServiceManagerImpl
Internal OFP interface used by mastership service.
- Since:
- 0.5.0 Nitrogen
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
becomeMaster
(@NonNull DeviceInfo deviceInfo) This event is called when device is fully mastered.com.google.common.util.concurrent.ListenableFuture<ResultState>
becomeMasterBeforeSubmittedDS
(@NonNull DeviceInfo deviceInfo) Should be called when device is being mastered as inbecomeMaster(DeviceInfo)
.void
becomeSlaveOrDisconnect
(@NonNull DeviceInfo deviceInfo) Should be called when device is disconnected or going to be slaved.void
setMasterChecker
(@NonNull MasterChecker masterChecker) Set the device mastership checker.Methods inherited from interface org.opendaylight.openflowplugin.api.openflow.lifecycle.ReconciliationFrameworkRegistrar
isReconciliationFrameworkRegistered
-
Method Details
-
becomeMaster
This event is called when device is fully mastered. All condition have to been done successful.- Transaction chain created
- RPC services started
- Initial statistics gathering.
- Initial DS submit.
- Flow registry filled. - this step is not mandatory
- Parameters:
deviceInfo
- connected switch identification
-
becomeSlaveOrDisconnect
Should be called when device is disconnected or going to be slaved.- Parameters:
deviceInfo
- connected switch identification
-
becomeMasterBeforeSubmittedDS
com.google.common.util.concurrent.ListenableFuture<ResultState> becomeMasterBeforeSubmittedDS(@NonNull DeviceInfo deviceInfo) Should be called when device is being mastered as inbecomeMaster(DeviceInfo)
.But before: Initial DS submit
This is special call designed only for reconciliation framework.- Parameters:
deviceInfo
- connected switch identification- Returns:
- future to be able handle device after reconciliation
- See Also:
-
setMasterChecker
Set the device mastership checker.- Parameters:
masterChecker
-MasterChecker
-