aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/crud/util
diff options
context:
space:
mode:
authorGurjeet Bedi <gurjeetb@amdocs.com>2017-12-06 15:16:34 -0500
committerGurjeet Bedi <gurjeetb@amdocs.com>2017-12-06 16:36:28 -0500
commit382e07e97ccd5f7bd47bdd735143ab3658661a68 (patch)
treee9aa166a92017b16b289262ceb073fd5871d9e76 /src/main/java/org/onap/crud/util
parent3cba0debb7ef72781ecbab25474d27918d4d2407 (diff)
Port async pipeline for gizmo
Port async pipeline for gizmo Issue-ID: AAI-552 Change-Id: I255127174d1154849f440bab8b1f0bda3311ec9f Signed-off-by: Gurjeet Bedi <gurjeetb@amdocs.com>
Diffstat (limited to 'src/main/java/org/onap/crud/util')
-rw-r--r--src/main/java/org/onap/crud/util/CrudServiceConstants.java2
-rw-r--r--src/main/java/org/onap/crud/util/CrudServiceUtil.java11
2 files changed, 13 insertions, 0 deletions
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();
+ }
}