Class InternalTunnelListener

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.util.EventListener, org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<InternalTunnel>, org.opendaylight.serviceutils.tools.mdsal.listener.ChainableDataTreeChangeListener<InternalTunnel>

    public class InternalTunnelListener
    extends org.opendaylight.serviceutils.tools.mdsal.listener.AbstractSyncDataTreeChangeListener<InternalTunnel>
    This class listens for Internal Tunnel in Configuration DS. This deletes the entries incase of upgrade from non-ItmDirectTunnel way to ItmDirectTunnel.
    • Constructor Summary

      Constructors 
      Constructor Description
      InternalTunnelListener​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.infrautils.jobcoordinator.JobCoordinator coordinator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      void add​(@NonNull org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalTunnel> key, @NonNull InternalTunnel internalTunnel)  
      void add​(T arg0)
      Deprecated.
      void addAfterListener​(org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T> arg0)  
      void addBeforeListener​(org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T> arg0)  
      void close()  
      protected org.opendaylight.controller.md.sal.binding.api.DataBroker getDataBroker()  
      protected org.opendaylight.serviceutils.tools.mdsal.listener.DataStoreMetrics getDataStoreMetrics()  
      default void onDataTreeChanged​(java.util.Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<T>> arg0, org.opendaylight.serviceutils.tools.mdsal.listener.DataStoreMetrics arg1)
      Deprecated.
       
      void register()  
      void remove​(@NonNull org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalTunnel> key, @NonNull InternalTunnel interfaceOld)  
      void remove​(T arg0)
      Deprecated.
      void update​(@NonNull org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalTunnel> key, @NonNull InternalTunnel internalTunnelOld, @NonNull InternalTunnel internalTunnelNew)  
      void update​(T arg0, T arg1)
      Deprecated.
      • Methods inherited from class org.opendaylight.serviceutils.tools.mdsal.listener.AbstractSyncDataTreeChangeListener

        onDataTreeChanged
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InternalTunnelListener

        public InternalTunnelListener​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                                      org.opendaylight.infrautils.jobcoordinator.JobCoordinator coordinator)
    • Method Detail

      • remove

        public void remove​(@NonNull org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalTunnel> key,
                           @NonNull InternalTunnel interfaceOld)
      • update

        public void update​(@NonNull org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalTunnel> key,
                           @NonNull InternalTunnel internalTunnelOld,
                           @NonNull InternalTunnel internalTunnelNew)
      • add

        public void add​(@NonNull org.opendaylight.yangtools.yang.binding.InstanceIdentifier<InternalTunnel> key,
                        @NonNull InternalTunnel internalTunnel)
      • addBeforeListener

        public void addBeforeListener​(org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T> arg0)
        Specified by:
        addBeforeListener in interface org.opendaylight.serviceutils.tools.mdsal.listener.ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
      • addAfterListener

        public void addAfterListener​(org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T> arg0)
        Specified by:
        addAfterListener in interface org.opendaylight.serviceutils.tools.mdsal.listener.ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
      • register

        @PostConstruct
        public void register()
      • getDataBroker

        protected org.opendaylight.controller.md.sal.binding.api.DataBroker getDataBroker()
      • getDataStoreMetrics

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

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

        @Deprecated
        public void add​(T arg0)
        Deprecated.
      • remove

        @Deprecated
        public void remove​(T arg0)
        Deprecated.
      • update

        @Deprecated
        public void update​(T arg0,
                           T arg1)
        Deprecated.
      • onDataTreeChanged

        public default void onDataTreeChanged​(java.util.Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<T>> arg0,
                                              org.opendaylight.serviceutils.tools.mdsal.listener.DataStoreMetrics arg1)
        Deprecated.