Class ReconciliationManagerImpl
java.lang.Object
org.opendaylight.openflowplugin.applications.reconciliation.impl.ReconciliationManagerImpl
- All Implemented Interfaces:
AutoCloseable
,ReconciliationFrameworkEvent
,ReconciliationManager
@Singleton
public final class ReconciliationManagerImpl
extends Object
implements ReconciliationManager, ReconciliationFrameworkEvent, AutoCloseable
-
Constructor Summary
ConstructorDescriptionReconciliationManagerImpl
(MastershipChangeServiceManager mastershipChangeServiceManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
com.google.common.util.concurrent.ListenableFuture
<Void> onDeviceDisconnected
(@NonNull DeviceInfo node) This event occurs after device is disconnected or being slaved.com.google.common.util.concurrent.ListenableFuture
<ResultState> onDevicePrepared
(@NonNull DeviceInfo node) Event when device is ready as a master but not yet submitted in data store.registerService
(ReconciliationNotificationListener reconciliationTask)
-
Constructor Details
-
ReconciliationManagerImpl
@Inject public ReconciliationManagerImpl(MastershipChangeServiceManager mastershipChangeServiceManager) throws MastershipChangeException - Throws:
MastershipChangeException
-
-
Method Details
-
close
@PreDestroy public void close()- Specified by:
close
in interfaceAutoCloseable
-
registerService
public NotificationRegistration registerService(ReconciliationNotificationListener reconciliationTask) - Specified by:
registerService
in interfaceReconciliationManager
-
getRegisteredServices
- Specified by:
getRegisteredServices
in interfaceReconciliationManager
-
onDevicePrepared
public com.google.common.util.concurrent.ListenableFuture<ResultState> onDevicePrepared(@NonNull DeviceInfo node) Description copied from interface:ReconciliationFrameworkEvent
Event when device is ready as a master but not yet submitted in data store. This event is evoked byOwnershipChangeListener.becomeMasterBeforeSubmittedDS(DeviceInfo)
- Specified by:
onDevicePrepared
in interfaceReconciliationFrameworkEvent
- Parameters:
node
- connected switch identification- Returns:
- result state if the device can continue with connecting or should be disconnected
-
onDeviceDisconnected
public com.google.common.util.concurrent.ListenableFuture<Void> onDeviceDisconnected(@NonNull DeviceInfo node) Description copied from interface:ReconciliationFrameworkEvent
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
- Specified by:
onDeviceDisconnected
in interfaceReconciliationFrameworkEvent
- Parameters:
node
- connected switch identification- Returns:
- future
- See Also:
-