Interface ReconciliationFrameworkEvent
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ReconciliationFrameworkServiceDelegate
,ReconciliationManagerImpl
public interface ReconciliationFrameworkEvent extends AutoCloseable
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.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.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
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:
MastershipChangeService
-
-