Class ReconciliationFrameworkServiceDelegate
java.lang.Object
org.opendaylight.openflowplugin.impl.mastership.ReconciliationFrameworkServiceDelegate
- All Implemented Interfaces:
AutoCloseable
,ReconciliationFrameworkEvent
,ReconciliationFrameworkRegistration
public class ReconciliationFrameworkServiceDelegate
extends Object
implements ReconciliationFrameworkEvent, ReconciliationFrameworkRegistration
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
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.toString()
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
onDevicePrepared
public com.google.common.util.concurrent.ListenableFuture<ResultState> onDevicePrepared(@NonNull DeviceInfo deviceInfo) 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:
deviceInfo
- 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 deviceInfo) 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:
deviceInfo
- connected switch identification- Returns:
- future
- See Also:
-
toString
-