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
MastershipChangeException
public NotificationRegistration registerService(ReconciliationNotificationListener reconciliationTask)
registerService
in interface ReconciliationManager
public Map<Integer,List<ReconciliationNotificationListener>> getRegisteredServices()
getRegisteredServices
in interface ReconciliationManager
public void close() throws Exception
close
in interface AutoCloseable
Exception
public com.google.common.util.concurrent.ListenableFuture<ResultState> onDevicePrepared(@Nonnull DeviceInfo node)
ReconciliationFrameworkEvent
OwnershipChangeListener.becomeMasterBeforeSubmittedDS(DeviceInfo)
onDevicePrepared
in interface ReconciliationFrameworkEvent
node
- connected switch identificationpublic com.google.common.util.concurrent.ListenableFuture<Void> onDeviceDisconnected(@Nonnull DeviceInfo node)
ReconciliationFrameworkEvent
MastershipChangeService.onLoseOwnership(DeviceInfo)
. This event is used by
reconciliation framework that the framework don't need to register MastershipChangeService
onDeviceDisconnected
in interface ReconciliationFrameworkEvent
node
- connected switch identificationMastershipChangeService
Copyright © 2018 OpenDaylight. All rights reserved.