summaryrefslogtreecommitdiffstats
path: root/aai-traversal/src/main/java/org
diff options
context:
space:
mode:
authorKajur, Harish (vk250x) <vk250x@att.com>2018-03-21 19:51:39 -0400
committerKajur, Harish (vk250x) <vk250x@att.com>2018-03-28 16:02:27 -0400
commit6da2faa2bbf183f43365ddad786a5aa945d5ed98 (patch)
tree7b02f35f0b5932e418ae45aaffacd15d737dd432 /aai-traversal/src/main/java/org
parent248c5f89fdf9505c2e81129ad7d95c0ee86de517 (diff)
Update the titan code to janus graph code
Issue-ID: AAI-949 Change-Id: Iabb282fb808742d2cc09791a189a5372a01f5be2 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
Diffstat (limited to 'aai-traversal/src/main/java/org')
-rw-r--r--aai-traversal/src/main/java/org/onap/aai/dbgraphmap/SearchGraph.java6
-rw-r--r--aai-traversal/src/main/java/org/onap/aai/rest/search/SearchProvider.java6
2 files changed, 6 insertions, 6 deletions
diff --git a/aai-traversal/src/main/java/org/onap/aai/dbgraphmap/SearchGraph.java b/aai-traversal/src/main/java/org/onap/aai/dbgraphmap/SearchGraph.java
index c986aa4..419743b 100644
--- a/aai-traversal/src/main/java/org/onap/aai/dbgraphmap/SearchGraph.java
+++ b/aai-traversal/src/main/java/org/onap/aai/dbgraphmap/SearchGraph.java
@@ -67,7 +67,7 @@ import org.onap.aai.serialization.db.DBSerializer;
import org.onap.aai.serialization.db.EdgeRule;
import org.onap.aai.serialization.db.EdgeRules;
import org.onap.aai.serialization.engines.QueryStyle;
-import org.onap.aai.serialization.engines.TitanDBEngine;
+import org.onap.aai.serialization.engines.JanusGraphDBEngine;
import org.onap.aai.serialization.engines.TransactionalGraphEngine;
import org.onap.aai.serialization.queryformats.exceptions.AAIFormatVertexException;
import org.onap.aai.serialization.queryformats.utils.UrlBuilder;
@@ -521,7 +521,7 @@ public class SearchGraph {
MoxyLoader loader = (MoxyLoader)LoaderFactory.createLoaderForVersion(ModelType.MOXY, AAIProperties.LATEST);
DynamicJAXBContext jaxbContext = loader.getJAXBContext();
- dbEngine = new TitanDBEngine(
+ dbEngine = new JanusGraphDBEngine(
QueryStyle.TRAVERSAL,
connectionType,
loader);
@@ -641,7 +641,7 @@ public class SearchGraph {
MoxyLoader loader = (MoxyLoader) LoaderFactory.createLoaderForVersion(ModelType.MOXY, AAIProperties.LATEST);
DynamicJAXBContext jaxbContext = loader.getJAXBContext();
- dbEngine = new TitanDBEngine(
+ dbEngine = new JanusGraphDBEngine(
QueryStyle.TRAVERSAL,
connectionType,
loader);
diff --git a/aai-traversal/src/main/java/org/onap/aai/rest/search/SearchProvider.java b/aai-traversal/src/main/java/org/onap/aai/rest/search/SearchProvider.java
index 73f6f50..e1d4400 100644
--- a/aai-traversal/src/main/java/org/onap/aai/rest/search/SearchProvider.java
+++ b/aai-traversal/src/main/java/org/onap/aai/rest/search/SearchProvider.java
@@ -53,7 +53,7 @@ import org.onap.aai.restcore.HttpMethod;
import org.onap.aai.restcore.RESTAPI;
import org.onap.aai.serialization.db.DBSerializer;
import org.onap.aai.serialization.engines.QueryStyle;
-import org.onap.aai.serialization.engines.TitanDBEngine;
+import org.onap.aai.serialization.engines.JanusGraphDBEngine;
import org.onap.aai.serialization.engines.TransactionalGraphEngine;
import org.onap.aai.serialization.queryformats.utils.UrlBuilder;
import org.onap.aai.util.AAIConstants;
@@ -153,7 +153,7 @@ public class SearchProvider extends RESTAPI {
}
final ModelType factoryType = ModelType.MOXY;
Loader loader = LoaderFactory.createLoaderForVersion(factoryType, version);
- TransactionalGraphEngine dbEngine = new TitanDBEngine(
+ TransactionalGraphEngine dbEngine = new JanusGraphDBEngine(
QueryStyle.TRAVERSAL,
type,
loader);
@@ -287,7 +287,7 @@ public class SearchProvider extends RESTAPI {
}
final ModelType factoryType = ModelType.MOXY;
Loader loader = LoaderFactory.createLoaderForVersion(factoryType, version);
- TransactionalGraphEngine dbEngine = new TitanDBEngine(
+ TransactionalGraphEngine dbEngine = new JanusGraphDBEngine(
QueryStyle.TRAVERSAL,
type,
loader);