Class ElanGroupCache

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.util.EventListener, org.opendaylight.controller.md.sal.binding.api.ClusteredDataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group>, org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group>, org.opendaylight.serviceutils.tools.mdsal.listener.ChainableDataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group>

    @Singleton
    public class ElanGroupCache
    extends org.opendaylight.genius.datastoreutils.AsyncClusteredDataTreeChangeListenerBase<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group,​ElanGroupCache>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.opendaylight.genius.datastoreutils.AsyncClusteredDataTreeChangeListenerBase

        org.opendaylight.genius.datastoreutils.AsyncClusteredDataTreeChangeListenerBase.DataTreeChangeHandler
    • Field Summary

      • Fields inherited from class org.opendaylight.genius.datastoreutils.AsyncClusteredDataTreeChangeListenerBase

        clazz
    • Constructor Summary

      Constructors 
      Constructor Description
      ElanGroupCache​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, Scheduler scheduler)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void add​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group added)  
      void addJobToWaitList​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key, java.lang.Runnable job)  
      protected ElanGroupCache getDataTreeChangeListener()  
      com.google.common.base.Optional<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> getGroup​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key)  
      protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> getWildCardPath()  
      void init()  
      protected void remove​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group deleted)  
      protected void update​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group old, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group updated)  
      • Methods inherited from class org.opendaylight.genius.datastoreutils.AsyncClusteredDataTreeChangeListenerBase

        addAfterListener, addBeforeListener, close, deregisterListener, onDataTreeChanged, registerListener
      • Methods inherited from class java.lang.Object

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

      • ElanGroupCache

        @Inject
        public ElanGroupCache​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
                              Scheduler scheduler)
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • getWildCardPath

        protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> getWildCardPath()
        Specified by:
        getWildCardPath in class org.opendaylight.genius.datastoreutils.AsyncClusteredDataTreeChangeListenerBase<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group,​ElanGroupCache>
      • addJobToWaitList

        public void addJobToWaitList​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key,
                                     java.lang.Runnable job)
      • getDataTreeChangeListener

        protected ElanGroupCache getDataTreeChangeListener()
        Specified by:
        getDataTreeChangeListener in class org.opendaylight.genius.datastoreutils.AsyncClusteredDataTreeChangeListenerBase<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group,​ElanGroupCache>
      • remove

        protected void remove​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key,
                              org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group deleted)
        Specified by:
        remove in class org.opendaylight.genius.datastoreutils.AsyncClusteredDataTreeChangeListenerBase<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group,​ElanGroupCache>
      • update

        protected void update​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key,
                              org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group old,
                              org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group updated)
        Specified by:
        update in class org.opendaylight.genius.datastoreutils.AsyncClusteredDataTreeChangeListenerBase<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group,​ElanGroupCache>
      • add

        protected void add​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key,
                           org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group added)
        Specified by:
        add in class org.opendaylight.genius.datastoreutils.AsyncClusteredDataTreeChangeListenerBase<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group,​ElanGroupCache>
      • getGroup

        public com.google.common.base.Optional<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> getGroup​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key)
                                                                                                                                   throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.ReadFailedException