Class ElanInterfaceCache
- java.lang.Object
-
- org.opendaylight.genius.mdsalutil.cache.DataObjectCache<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<V>,V>
-
- org.opendaylight.genius.mdsalutil.cache.InstanceIdDataObjectCache<ElanInterface>
-
- org.opendaylight.netvirt.elan.cache.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.controller.md.sal.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 com.google.common.base.Optional<ElanInterface>
get(@NonNull java.lang.String interfaceName)
@NonNull com.google.common.base.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)
-
-
-
Method Detail
-
get
public @NonNull com.google.common.base.Optional<ElanInterface> get(@NonNull java.lang.String interfaceName)
-
getEtreeInterface
public @NonNull com.google.common.base.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 classorg.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 classorg.opendaylight.genius.mdsalutil.cache.DataObjectCache<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInterface>,ElanInterface>
-
-