From 382e07e97ccd5f7bd47bdd735143ab3658661a68 Mon Sep 17 00:00:00 2001 From: Gurjeet Bedi Date: Wed, 6 Dec 2017 15:16:34 -0500 Subject: Port async pipeline for gizmo Port async pipeline for gizmo Issue-ID: AAI-552 Change-Id: I255127174d1154849f440bab8b1f0bda3311ec9f Signed-off-by: Gurjeet Bedi --- src/main/java/org/onap/crud/util/CrudServiceConstants.java | 2 ++ src/main/java/org/onap/crud/util/CrudServiceUtil.java | 11 +++++++++++ 2 files changed, 13 insertions(+) (limited to 'src/main/java/org/onap/crud/util') diff --git a/src/main/java/org/onap/crud/util/CrudServiceConstants.java b/src/main/java/org/onap/crud/util/CrudServiceConstants.java index d3adaaa..70db5e3 100644 --- a/src/main/java/org/onap/crud/util/CrudServiceConstants.java +++ b/src/main/java/org/onap/crud/util/CrudServiceConstants.java @@ -36,4 +36,6 @@ public class CrudServiceConstants { public static final String CRD_AUTH_FILE = CRD_HOME_AUTH + "crud_policy.json"; public static final String CRD_CHAMP_AUTH_FILE = CRD_HOME_AUTH + "champ-cert.p12"; public static final String CRD_AUTH_POLICY_NAME = "crud"; + public static final String CRD_ASYNC_REQUEST_TIMEOUT = "crud.async.request.timeout"; + public static final String CRD_ASYNC_RESPONSE_PROCESS_POLL_INTERVAL = "crud.async.response.process.poll.interval"; } diff --git a/src/main/java/org/onap/crud/util/CrudServiceUtil.java b/src/main/java/org/onap/crud/util/CrudServiceUtil.java index 49b0317..88df8d1 100644 --- a/src/main/java/org/onap/crud/util/CrudServiceUtil.java +++ b/src/main/java/org/onap/crud/util/CrudServiceUtil.java @@ -23,7 +23,9 @@ */ package org.onap.crud.util; +import org.onap.aaiutils.oxm.OxmModelLoader; import org.onap.crud.exception.CrudException; +import org.onap.schema.RelationshipSchemaLoader; import javax.ws.rs.core.Response.Status; @@ -60,4 +62,13 @@ public class CrudServiceUtil { } } + public static void loadModels() throws CrudException { + // load the schemas + try { + OxmModelLoader.loadModels(); + } catch (Exception e) { + throw new CrudException(e); + } + RelationshipSchemaLoader.loadModels(); + } } -- cgit 1.2.3-korg