Class ReconciliationManagerImpl
- java.lang.Object
 - 
- org.opendaylight.openflowplugin.applications.reconciliation.impl.ReconciliationManagerImpl
 
 
- 
- All Implemented Interfaces:
 AutoCloseable,ReconciliationFrameworkEvent,ReconciliationManager
@Singleton public class ReconciliationManagerImpl extends Object implements ReconciliationManager, ReconciliationFrameworkEvent
 
- 
- 
Constructor Summary
Constructors Constructor Description ReconciliationManagerImpl(MastershipChangeServiceManager mastershipChangeServiceManager) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Map<Integer,List<ReconciliationNotificationListener>>getRegisteredServices()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.NotificationRegistrationregisterService(ReconciliationNotificationListener reconciliationTask)voidstart() 
 - 
 
- 
- 
Constructor Detail
- 
ReconciliationManagerImpl
@Inject public ReconciliationManagerImpl(MastershipChangeServiceManager mastershipChangeServiceManager)
 
 - 
 
- 
Method Detail
- 
start
@PostConstruct public void start() throws MastershipChangeException- Throws:
 MastershipChangeException
 
- 
registerService
public NotificationRegistration registerService(ReconciliationNotificationListener reconciliationTask)
- Specified by:
 registerServicein interfaceReconciliationManager
 
- 
getRegisteredServices
public Map<Integer,List<ReconciliationNotificationListener>> getRegisteredServices()
- Specified by:
 getRegisteredServicesin interfaceReconciliationManager
 
- 
close
@PreDestroy public void close()
- Specified by:
 closein interfaceAutoCloseable
 
- 
onDevicePrepared
public com.google.common.util.concurrent.ListenableFuture<ResultState> onDevicePrepared(@NonNull DeviceInfo node)
Description copied from interface:ReconciliationFrameworkEventEvent when device is ready as a master but not yet submitted in data store. This event is evoked byOwnershipChangeListener.becomeMasterBeforeSubmittedDS(DeviceInfo)- Specified by:
 onDevicePreparedin 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:ReconciliationFrameworkEventThis 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:
 onDeviceDisconnectedin interfaceReconciliationFrameworkEvent- Parameters:
 node- connected switch identification- Returns:
 - future
 - See Also:
 MastershipChangeService
 
 - 
 
 -