From f60a17c6abb6deef1c24f917488745cbc6e6a566 Mon Sep 17 00:00:00 2001 From: "Popescu, Serban" Date: Wed, 13 Feb 2019 10:29:59 -0500 Subject: Performance Improvements for Gizmo bulk API Use bulk operations with Gizmo/Champ to improve performance. Also allows for HA by allowing Champ to operate in stateless mode Change-Id: I63bbbf8d6071cecb4b22110c477d7dc592026200 Issue-ID: AAI-2147 Signed-off-by: Serban Popescu --- src/main/java/org/onap/crud/dao/GraphDao.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/main/java/org/onap/crud/dao/GraphDao.java') diff --git a/src/main/java/org/onap/crud/dao/GraphDao.java b/src/main/java/org/onap/crud/dao/GraphDao.java index 7cb3d4c..867cf56 100644 --- a/src/main/java/org/onap/crud/dao/GraphDao.java +++ b/src/main/java/org/onap/crud/dao/GraphDao.java @@ -24,6 +24,7 @@ import java.util.List; import java.util.Map; import java.util.Set; import org.onap.aai.restclient.client.OperationResult; +import org.onap.crud.dao.champ.ChampBulkPayload; import org.onap.crud.entity.Edge; import org.onap.crud.entity.Vertex; import org.onap.crud.exception.CrudException; @@ -91,7 +92,7 @@ public interface GraphDao { * @throws CrudException */ public OperationResult getEdge(String id, String type, Map queryParams) throws CrudException; - + /** * Retrieve a collection of {@link Edge} objects with a given type and which * match a set of supplied filter parameters. @@ -187,7 +188,7 @@ public interface GraphDao { public Vertex addVertex(String type, Map properties, String version, String txId) throws CrudException; public Edge addEdge(String type, Vertex source, Vertex target, Map properties, String version, String txId) - throws CrudException; + throws CrudException; public Vertex updateVertex(String id, String type, Map properties, String version, String txId) throws CrudException; @@ -198,6 +199,8 @@ public interface GraphDao { public void deleteEdge(String id, String txId) throws CrudException; public Edge getEdge(String id, String txId) throws CrudException; - + public Edge getEdge(String id) throws CrudException; + + public OperationResult bulkOperation(ChampBulkPayload champPayload) throws CrudException; } -- cgit 1.2.3-korg