- All Implemented Interfaces:
Method SummaryModifier and TypeMethodDescription
voidThis event is called when device is fully mastered.
com.google.common.util.concurrent.ListenableFuture<ResultState>Should be called when device is being mastered as in
voidShould be called when device is disconnected or going to be slaved.
booleanCheck if reconciliation framework is registered.
(@NonNull ReconciliationFrameworkEvent reconciliationFrameworkEvent)Setter for reconciliation framework event listener.
@NonNull MastershipChangeRegistrationRegister of mastership change listener.
voidSet the device mastership checker.
registerDescription copied from interface:
MastershipChangeServiceManagerRegister of mastership change listener. Returned registration need to be closed by client. It doesn't contain event for reconciliation framework event.
reconciliationFrameworkRegistrationpublic ReconciliationFrameworkRegistration reconciliationFrameworkRegistration
(@NonNull ReconciliationFrameworkEvent reconciliationFrameworkEvent) throws MastershipChangeExceptionDescription copied from interface:
MastershipChangeServiceManagerSetter for reconciliation framework event listener. It can be registered only once. Another registrations will throw an exception
- Specified by:
reconciliationFrameworkEvent- reconciliation framework
- registration object, which can be closed to unregister
MastershipChangeException- if already reconciliation framework registered
closepublic void close()
becomeMasterpublic void becomeMaster
(@NonNull DeviceInfo deviceInfo)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
becomeSlaveOrDisconnectpublic void becomeSlaveOrDisconnect
(@NonNull DeviceInfo deviceInfo)Should be called when device is disconnected or going to be slaved.
becomeMasterBeforeSubmittedDSpublic com.google.common.util.concurrent.ListenableFuture<ResultState> becomeMasterBeforeSubmittedDS
(@NonNull DeviceInfo deviceInfo)Should be called when device is being mastered as in
But before: Initial DS submitThis is special call designed only for reconciliation framework.
- Specified by:
deviceInfo- connected switch identification
- future to be able handle device after reconciliation
- See Also:
setMasterCheckerpublic void setMasterChecker
(@NonNull MasterChecker masterChecker)Set the device mastership checker.
isReconciliationFrameworkRegisteredpublic boolean isReconciliationFrameworkRegistered()Description copied from interface:
ReconciliationFrameworkRegistrarCheck if reconciliation framework is registered. If not the event
OwnershipChangeListener.becomeMasterBeforeSubmittedDS(DeviceInfo)will not be triggered.