public class ReconciliationManagerImpl extends Object implements ReconciliationManager, ReconciliationFrameworkEvent
| Constructor and Description |
|---|
ReconciliationManagerImpl(MastershipChangeServiceManager mastershipChangeServiceManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Map<Integer,List<ReconciliationNotificationListener>> |
getRegisteredServices() |
com.google.common.util.concurrent.ListenableFuture<Void> |
onDeviceDisconnected(DeviceInfo node)
This event occurs after device is disconnected or being slaved.
|
com.google.common.util.concurrent.ListenableFuture<ResultState> |
onDevicePrepared(DeviceInfo node)
Event when device is ready as a master but not yet submitted in data store.
|
NotificationRegistration |
registerService(ReconciliationNotificationListener reconciliationTask) |
void |
start() |
public ReconciliationManagerImpl(MastershipChangeServiceManager mastershipChangeServiceManager)
public void start()
throws MastershipChangeException
MastershipChangeExceptionpublic NotificationRegistration registerService(ReconciliationNotificationListener reconciliationTask)
registerService in interface ReconciliationManagerpublic Map<Integer,List<ReconciliationNotificationListener>> getRegisteredServices()
getRegisteredServices in interface ReconciliationManagerpublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic com.google.common.util.concurrent.ListenableFuture<ResultState> onDevicePrepared(@Nonnull DeviceInfo node)
ReconciliationFrameworkEventOwnershipChangeListener.becomeMasterBeforeSubmittedDS(DeviceInfo)onDevicePrepared in interface ReconciliationFrameworkEventnode - connected switch identificationpublic com.google.common.util.concurrent.ListenableFuture<Void> onDeviceDisconnected(@Nonnull DeviceInfo node)
ReconciliationFrameworkEventMastershipChangeService.onLoseOwnership(DeviceInfo). This event is used by
reconciliation framework that the framework don't need to register MastershipChangeServiceonDeviceDisconnected in interface ReconciliationFrameworkEventnode - connected switch identificationMastershipChangeServiceCopyright © 2019 OpenDaylight. All rights reserved.