Interface MastershipChangeServiceManager

All Superinterfaces:
OwnershipChangeListener, ReconciliationFrameworkRegistrar
All Known Implementing Classes:
MastershipChangeServiceManagerImpl

public interface MastershipChangeServiceManager extends OwnershipChangeListener
Provider to register mastership change listener. Provider to set mastership reconciliation framework.
Since:
0.5.0 Nitrogen
  • Method Details

    • register

      @NonNull org.opendaylight.yangtools.concepts.Registration register(@NonNull MastershipChangeService service)
      Register of mastership change listener. Returned registration need to be closed by client. It doesn't contain event for reconciliation framework event.
      Parameters:
      service - implementation of MastershipChangeService
      Returns:
      registration
      See Also:
    • reconciliationFrameworkRegistration

      org.opendaylight.yangtools.concepts.Registration reconciliationFrameworkRegistration(@NonNull ReconciliationFrameworkEvent mastershipRFRegistration) throws MastershipChangeException
      Setter for reconciliation framework event listener. It can be registered only once. Another registrations will throw an exception
      Parameters:
      mastershipRFRegistration - reconciliation framework
      Returns:
      registration object, which can be closed to unregister
      Throws:
      MastershipChangeException - if already reconciliation framework registered