Class InterVpnLinkCacheImpl
- java.lang.Object
-
- org.opendaylight.netvirt.vpnmanager.intervpnlink.InterVpnLinkCacheImpl
-
- All Implemented Interfaces:
InterVpnLinkCache
@Singleton public class InterVpnLinkCacheImpl extends java.lang.Object implements InterVpnLinkCache
Implementation of InterVpnLinkCache.
-
-
Constructor Summary
Constructors Constructor Description InterVpnLinkCacheImpl(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInterVpnLinkStateToCaches(InterVpnLinkState interVpnLinkState)
void
addInterVpnLinkToCaches(InterVpnLink interVpnLink)
java.util.List<InterVpnLinkDataComposite>
getAllInterVpnLinks()
com.google.common.base.Optional<InterVpnLinkDataComposite>
getInterVpnLinkByEndpoint(java.lang.String endpointIp)
com.google.common.base.Optional<InterVpnLinkDataComposite>
getInterVpnLinkByName(java.lang.String interVpnLinkName)
com.google.common.base.Optional<InterVpnLinkDataComposite>
getInterVpnLinkByVpnId(java.lang.String vpnId)
void
initialFeed()
void
removeInterVpnLinkFromCache(InterVpnLink interVpnLink)
void
removeInterVpnLinkStateFromCache(InterVpnLinkState interVpnLinkState)
-
-
-
Method Detail
-
initialFeed
@PostConstruct public void initialFeed()
-
addInterVpnLinkToCaches
public void addInterVpnLinkToCaches(InterVpnLink interVpnLink)
- Specified by:
addInterVpnLinkToCaches
in interfaceInterVpnLinkCache
-
addInterVpnLinkStateToCaches
public void addInterVpnLinkStateToCaches(InterVpnLinkState interVpnLinkState)
- Specified by:
addInterVpnLinkStateToCaches
in interfaceInterVpnLinkCache
-
removeInterVpnLinkFromCache
public void removeInterVpnLinkFromCache(InterVpnLink interVpnLink)
- Specified by:
removeInterVpnLinkFromCache
in interfaceInterVpnLinkCache
-
removeInterVpnLinkStateFromCache
public void removeInterVpnLinkStateFromCache(InterVpnLinkState interVpnLinkState)
- Specified by:
removeInterVpnLinkStateFromCache
in interfaceInterVpnLinkCache
-
getInterVpnLinkByName
public com.google.common.base.Optional<InterVpnLinkDataComposite> getInterVpnLinkByName(java.lang.String interVpnLinkName)
- Specified by:
getInterVpnLinkByName
in interfaceInterVpnLinkCache
-
getInterVpnLinkByEndpoint
public com.google.common.base.Optional<InterVpnLinkDataComposite> getInterVpnLinkByEndpoint(java.lang.String endpointIp)
- Specified by:
getInterVpnLinkByEndpoint
in interfaceInterVpnLinkCache
-
getInterVpnLinkByVpnId
public com.google.common.base.Optional<InterVpnLinkDataComposite> getInterVpnLinkByVpnId(java.lang.String vpnId)
- Specified by:
getInterVpnLinkByVpnId
in interfaceInterVpnLinkCache
-
getAllInterVpnLinks
public java.util.List<InterVpnLinkDataComposite> getAllInterVpnLinks()
- Specified by:
getAllInterVpnLinks
in interfaceInterVpnLinkCache
-
-