Class L2GatewayCacheImpl
- java.lang.Object
-
- org.opendaylight.netvirt.cache.impl.l2gw.L2GatewayCacheImpl
-
- All Implemented Interfaces:
L2GatewayCache
@Singleton public class L2GatewayCacheImpl extends java.lang.Object implements L2GatewayCache
Implementation of L2GatewayCache.- Author:
- Thomas Pantelis
-
-
Constructor Summary
Constructors Constructor Description L2GatewayCacheImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.String deviceName, L2GatewayDevice l2GatewayDevice)
L2GatewayDevice
addOrGet(java.lang.String deviceName)
L2GatewayDevice
get(java.lang.String deviceName)
java.util.Collection<L2GatewayDevice>
getAll()
L2GatewayDevice
getByNodeId(java.lang.String nodeId)
java.util.concurrent.ConcurrentMap<java.lang.String,L2GatewayDevice>
getCache()
L2GatewayDevice
remove(java.lang.String deviceName)
L2GatewayDevice
updateL2GatewayCache(java.lang.String deviceName, java.lang.String hwvtepNodeId, java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.physical._switch.attributes.TunnelIps> tunnelIps)
L2GatewayDevice
updateL2GatewayCache(java.lang.String deviceName, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid l2gwUuid)
-
-
-
Method Detail
-
addOrGet
public L2GatewayDevice addOrGet(java.lang.String deviceName)
- Specified by:
addOrGet
in interfaceL2GatewayCache
-
add
public void add(java.lang.String deviceName, L2GatewayDevice l2GatewayDevice)
- Specified by:
add
in interfaceL2GatewayCache
-
remove
public L2GatewayDevice remove(java.lang.String deviceName)
- Specified by:
remove
in interfaceL2GatewayCache
-
get
public L2GatewayDevice get(java.lang.String deviceName)
- Specified by:
get
in interfaceL2GatewayCache
-
getByNodeId
public L2GatewayDevice getByNodeId(java.lang.String nodeId)
- Specified by:
getByNodeId
in interfaceL2GatewayCache
-
getAll
public java.util.Collection<L2GatewayDevice> getAll()
- Specified by:
getAll
in interfaceL2GatewayCache
-
updateL2GatewayCache
public L2GatewayDevice updateL2GatewayCache(java.lang.String deviceName, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid l2gwUuid)
- Specified by:
updateL2GatewayCache
in interfaceL2GatewayCache
-
updateL2GatewayCache
public L2GatewayDevice updateL2GatewayCache(java.lang.String deviceName, java.lang.String hwvtepNodeId, java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.physical._switch.attributes.TunnelIps> tunnelIps)
- Specified by:
updateL2GatewayCache
in interfaceL2GatewayCache
-
getCache
public java.util.concurrent.ConcurrentMap<java.lang.String,L2GatewayDevice> getCache()
- Specified by:
getCache
in interfaceL2GatewayCache
-
-