Interface OwnershipChangeListener

All Superinterfaces:
ReconciliationFrameworkRegistrar
All Known Subinterfaces:
MastershipChangeServiceManager
All Known Implementing Classes:
MastershipChangeServiceManagerImpl

public interface OwnershipChangeListener extends ReconciliationFrameworkRegistrar
Internal OFP interface used by mastership service.
Since:
0.5.0 Nitrogen
See Also:
  • Method Details

    • becomeMaster

      void becomeMaster(@NonNull DeviceInfo deviceInfo)
      This event is called when device is fully mastered. All condition have to been done successful.
      • Transaction chain created
      • RPC services started
      • Initial statistics gathering.
      • Initial DS submit.
      • Flow registry filled. - this step is not mandatory
      Parameters:
      deviceInfo - connected switch identification
    • becomeSlaveOrDisconnect

      void becomeSlaveOrDisconnect(@NonNull DeviceInfo deviceInfo)
      Should be called when device is disconnected or going to be slaved.
      Parameters:
      deviceInfo - connected switch identification
    • becomeMasterBeforeSubmittedDS

      com.google.common.util.concurrent.ListenableFuture<ResultState> becomeMasterBeforeSubmittedDS(@NonNull DeviceInfo deviceInfo)
      Should be called when device is being mastered as in becomeMaster(DeviceInfo).

      But before: Initial DS submit

      This is special call designed only for reconciliation framework.
      Parameters:
      deviceInfo - connected switch identification
      Returns:
      future to be able handle device after reconciliation
      See Also:
    • setMasterChecker

      void setMasterChecker(@NonNull MasterChecker masterChecker)
      Set the device mastership checker.
      Parameters:
      masterChecker - MasterChecker