Class ServiceRecoveryListener

All Implemented Interfaces:
AutoCloseable, EventListener, org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<Operations>, org.opendaylight.mdsal.binding.api.DataTreeChangeListener<Operations>, ChainableDataTreeChangeListener<Operations>

@Singleton @RequireServiceComponentRuntime public final class ServiceRecoveryListener extends AbstractClusteredSyncDataTreeChangeListener<Operations>
  • Constructor Summary

    Constructors
    Constructor
    Description
    ServiceRecoveryListener(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, ServiceRecoveryRegistry serviceRecoveryRegistry)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Operations> instanceIdentifier, Operations operations)
    Deprecated.
    void
    add(Operations newDataObject)
    Deprecated.
    void
    addAfterListener(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<Operations> listener)
    Adds a "chained" DataTreeChangeListener, to which DataTreeChangeListener.onDataTreeChanged(java.util.Collection) calls are forwarded AFTER having been processed by this DataTreeChangeListener.
    void
    addBeforeListener(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<Operations> listener)
    Adds a "chained" DataTreeChangeListener, to which DataTreeChangeListener.onDataTreeChanged(java.util.Collection) calls are forwarded BEFORE having been processed by this DataTreeChangeListener.
    void
     
    protected org.opendaylight.mdsal.binding.api.DataBroker
     
    protected org.opendaylight.serviceutils.tools.mdsal.listener.DataStoreMetrics
     
    default void
    onDataTreeChanged(@NonNull Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<Operations>> changes, org.opendaylight.serviceutils.tools.mdsal.listener.DataStoreMetrics dataStoreMetrics)
    Deprecated.
    Default method invoked upon data tree change, in turn it calls the appropriate method (add, update, remove) depending on the type of change.
    void
     
    void
    remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Operations> instanceIdentifier, Operations removedDataObject)
    Deprecated.
    void
    remove(Operations removedDataObject)
    Deprecated.
    void
    update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Operations> instanceIdentifier, Operations originalDataObject, Operations updatedDataObject)
    Deprecated.
    void
    update(Operations originalDataObject, Operations updatedDataObject)
    Deprecated.

    Methods inherited from class org.opendaylight.serviceutils.tools.mdsal.listener.AbstractClusteredSyncDataTreeChangeListener

    onDataTreeChanged

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.opendaylight.mdsal.binding.api.DataTreeChangeListener

    onInitialData
  • Constructor Details

    • ServiceRecoveryListener

      @Inject public ServiceRecoveryListener(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, ServiceRecoveryRegistry serviceRecoveryRegistry)
  • Method Details

    • add

      @Deprecated public void add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Operations> instanceIdentifier, Operations operations)
      Deprecated.
    • remove

      @Deprecated public void remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Operations> instanceIdentifier, Operations removedDataObject)
      Deprecated.
    • update

      @Deprecated public void update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Operations> instanceIdentifier, Operations originalDataObject, Operations updatedDataObject)
      Deprecated.
    • addBeforeListener

      public void addBeforeListener(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<Operations> listener)
      Description copied from interface: ChainableDataTreeChangeListener
      Adds a "chained" DataTreeChangeListener, to which DataTreeChangeListener.onDataTreeChanged(java.util.Collection) calls are forwarded BEFORE having been processed by this DataTreeChangeListener.

      If an asychronous DataTreeChangeListener supports chaining, it must forward the onDataTreeChanged() call BEFORE event are submitted to its async executor for processing.

      Specified by:
      addBeforeListener in interface ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
      Parameters:
      listener - the chained DataTreeChangeListener to invoke after this one
    • addAfterListener

      public void addAfterListener(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<Operations> listener)
      Description copied from interface: ChainableDataTreeChangeListener
      Adds a "chained" DataTreeChangeListener, to which DataTreeChangeListener.onDataTreeChanged(java.util.Collection) calls are forwarded AFTER having been processed by this DataTreeChangeListener.

      If an asychronous DataTreeChangeListener supports chaining, it must forward the onDataTreeChanged() call ONLY AFTER its async executor processed the event.

      Specified by:
      addAfterListener in interface ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
      Parameters:
      listener - the chained DataTreeChangeListener to invoke after this one
    • register

      @PostConstruct public void register()
    • getDataBroker

      protected org.opendaylight.mdsal.binding.api.DataBroker getDataBroker()
    • getDataStoreMetrics

      protected org.opendaylight.serviceutils.tools.mdsal.listener.DataStoreMetrics getDataStoreMetrics()
    • close

      @PreDestroy public void close()
      Specified by:
      close in interface AutoCloseable
    • add

      @Deprecated public void add(Operations newDataObject)
      Deprecated.
    • remove

      @Deprecated public void remove(Operations removedDataObject)
      Deprecated.
    • update

      @Deprecated public void update(Operations originalDataObject, Operations updatedDataObject)
      Deprecated.
    • onDataTreeChanged

      default void onDataTreeChanged(@NonNull Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<Operations>> changes, org.opendaylight.serviceutils.tools.mdsal.listener.DataStoreMetrics dataStoreMetrics)
      Deprecated.
      Default method invoked upon data tree change, in turn it calls the appropriate method (add, update, remove) depending on the type of change.
      Parameters:
      changes - collection of changes
      dataStoreMetrics - data store metrics