Interface ReconciliationFrameworkEvent
- All Known Implementing Classes:
ReconciliationManagerImpl
public interface ReconciliationFrameworkEvent
Service provide one event designed for reconciliation framework.
onDeviceDisconnected(DeviceInfo)
is called when device is being mastered by controller but not yet submitted into data store. This method is being called only if theReconciliationFrameworkRegistrar.isReconciliationFrameworkRegistered()
is set toBoolean.TRUE
onDevicePrepared(DeviceInfo)
is called when device is disconnected or controller loses control of the switch
- Since:
- 0.5.0 Nitrogen
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<Void>
onDeviceDisconnected
(@NonNull DeviceInfo deviceInfo) This event occurs after device is disconnected or being slaved.com.google.common.util.concurrent.ListenableFuture<ResultState>
onDevicePrepared
(@NonNull DeviceInfo deviceInfo) Event when device is ready as a master but not yet submitted in data store.
-
Method Details
-
onDevicePrepared
com.google.common.util.concurrent.ListenableFuture<ResultState> onDevicePrepared(@NonNull DeviceInfo deviceInfo) Event when device is ready as a master but not yet submitted in data store. This event is evoked byOwnershipChangeListener.becomeMasterBeforeSubmittedDS(DeviceInfo)
- Parameters:
deviceInfo
- connected switch identification- Returns:
- result state if the device can continue with connecting or should be disconnected
-
onDeviceDisconnected
com.google.common.util.concurrent.ListenableFuture<Void> onDeviceDisconnected(@NonNull DeviceInfo deviceInfo) This event occurs after device is disconnected or being slaved. Event is similar to theMastershipChangeService.onLoseOwnership(DeviceInfo)
. This event is used by reconciliation framework that the framework don't need to registerMastershipChangeService
- Parameters:
deviceInfo
- connected switch identification- Returns:
- future
- See Also:
-