Class ElanInterfaceCache

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    @Singleton
    public class ElanInterfaceCache
    extends org.opendaylight.genius.mdsalutil.cache.InstanceIdDataObjectCache<ElanInterface>
    Caches ElanInterface instances by name and the set of ElanInterfacenames by elen instance name.
    Author:
    Thomas Pantelis
    • Constructor Summary

      Constructors 
      Constructor Description
      ElanInterfaceCache​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.infrautils.caches.CacheProvider cacheProvider)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void added​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInterface> path, ElanInterface elanInterface)  
      @NonNull java.util.Optional<ElanInterface> get​(@NonNull java.lang.String interfaceName)  
      @NonNull java.util.Optional<EtreeInterface> getEtreeInterface​(@NonNull java.lang.String interfaceName)  
      @NonNull java.util.Collection<java.lang.String> getInterfaceNames​(@NonNull java.lang.String elanInstanceName)  
      protected void removed​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInterface> path, ElanInterface elanInterface)  
      • Methods inherited from class org.opendaylight.genius.mdsalutil.cache.DataObjectCache

        checkIsClosed, close, get, getAllPresent
      • Methods inherited from class java.lang.Object

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

      • ElanInterfaceCache

        @Inject
        public ElanInterfaceCache​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker,
                                  org.opendaylight.infrautils.caches.CacheProvider cacheProvider)
    • Method Detail

      • get

        public @NonNull java.util.Optional<ElanInterface> get​(@NonNull java.lang.String interfaceName)
      • getEtreeInterface

        public @NonNull java.util.Optional<EtreeInterface> getEtreeInterface​(@NonNull java.lang.String interfaceName)
      • getInterfaceNames

        public @NonNull java.util.Collection<java.lang.String> getInterfaceNames​(@NonNull java.lang.String elanInstanceName)
      • added

        protected void added​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInterface> path,
                             ElanInterface elanInterface)
        Overrides:
        added in class org.opendaylight.genius.mdsalutil.cache.DataObjectCache<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInterface>,​ElanInterface>
      • removed

        protected void removed​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInterface> path,
                               ElanInterface elanInterface)
        Overrides:
        removed in class org.opendaylight.genius.mdsalutil.cache.DataObjectCache<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInterface>,​ElanInterface>