Move HashMapDb to its own bundle 64/24064/2
authorFlorin Coras <fcoras@cisco.com>
Mon, 13 Jul 2015 00:20:28 +0000 (02:20 +0200)
committerFlorin Coras <fcoras@cisco.com>
Tue, 14 Jul 2015 11:17:58 +0000 (13:17 +0200)
commit6e425e7db05425792380c0ae5e0bea028b25a111
treeeae0fd970b494bc6905dd9280df73c41aca1c35d
parent43e89256c264d51daeee0d37f900fb6edcca3f64
Move HashMapDb to its own bundle

HashMapDb is a simple, in memory implementation of ILispDAO, the
interface that defines the API for the interaction with the Map-Server's
mappings database. Until now, HashMapDb was part of
mappingservice.implementation but with this commit it is moved to its
own mappingservice.inmemorydb bundle.

An important feature is that a ILispDAO implementation is now injected
into mappingservice.implementation at runtime through config-subsystem.
As a result, InMemoryDb can be easily swapped with other implementations.

Change-Id: I29af97b831414eecbbf3c29e6fbec086a627a770
Signed-off-by: Florin Coras <fcoras@cisco.com>
21 files changed:
artifacts/pom.xml
commons/parent/pom.xml
features/pom.xml
features/src/main/resources/features.xml
mappingservice/api/pom.xml
mappingservice/api/src/main/yang/lfm-ms-dao.yang [new file with mode: 0644]
mappingservice/implementation/pom.xml
mappingservice/implementation/src/main/config/default-config.xml
mappingservice/implementation/src/main/java/org/opendaylight/controller/config/yang/config/lfm_mappingservice/impl/LfmMappingServiceModule.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/LispMappingService.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/lisp/AbstractLispComponent.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/lisp/MapServer.java
mappingservice/implementation/src/main/yang/lfm-mappingservice-impl.yang
mappingservice/inmemorydb/pom.xml [new file with mode: 0644]
mappingservice/inmemorydb/src/main/config/default-config.xml [new file with mode: 0644]
mappingservice/inmemorydb/src/main/java/org/opendaylight/controller/config/yang/config/lfm/ms/dao/inmemorydb/InMemoryDbModule.java [new file with mode: 0644]
mappingservice/inmemorydb/src/main/java/org/opendaylight/controller/config/yang/config/lfm/ms/dao/inmemorydb/InMemoryDbModuleFactory.java [new file with mode: 0644]
mappingservice/inmemorydb/src/main/java/org/opendaylight/lispflowmapping/inmemorydb/HashMapDb.java [moved from mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/dao/HashMapDb.java with 95% similarity]
mappingservice/inmemorydb/src/main/yang/lfm-ms-inmemorydb.yang [new file with mode: 0644]
mappingservice/neutron/pom.xml
mappingservice/pom.xml