2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.openecomp.vid.mso;
\r
23 import org.openecomp.portalsdk.core.util.SystemProperties;
\r
25 import java.text.DateFormat;
\r
26 import java.text.SimpleDateFormat;
\r
27 import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
\r
30 * The Class MsoProperties.
\r
32 public class MsoProperties extends SystemProperties {
\r
34 /** The Constant MSO_SERVER_URL. */
\r
35 //VID Properties related to MSO
\r
36 public static final String MSO_SERVER_URL = "mso.server.url";
\r
38 /** The Constant MSO_DME2_SERVER_URL. */
\r
39 public static final String MSO_DME2_SERVER_URL = "mso.dme2.server.url";
\r
41 /** The Constant MSO_DME2_CLIENT_TIMEOUT. */
\r
42 public static final String MSO_DME2_CLIENT_TIMEOUT = "mso.dme2.client.timeout";
\r
44 /** The Constant MSO_DME2_CLIENT_READ_TIMEOUT. */
\r
45 public static final String MSO_DME2_CLIENT_READ_TIMEOUT = "mso.dme2.client.read.timeout";
\r
47 /** The Constant MSO_SERVER_URL_DEFAULT. */
\r
48 public static final String MSO_SERVER_URL_DEFAULT= "";
\r
50 /** The Constant MSO_POLLING_INTERVAL_MSECS. */
\r
51 // number of msecs to wait between polling requests
\r
52 public static final String MSO_POLLING_INTERVAL_MSECS = "mso.polling.interval.msecs";
\r
54 /** The Constant MSO_POLLING_INTERVAL_MSECS_DEFAULT. */
\r
55 public static final String MSO_POLLING_INTERVAL_MSECS_DEFAULT = "60000";
\r
57 /** The Constant MSO_DME2_ENABLED. */
\r
58 public static final String MSO_DME2_ENABLED = "mso.dme2.enabled";
\r
60 /** The Constant MSO_MAX_POLLS. */
\r
61 public static final String MSO_MAX_POLLS = "mso.max.polls";
\r
63 /** The Constant MSO_MAX_POLLS_DEFAULT. */
\r
64 public static final String MSO_MAX_POLLS_DEFAULT = "10"; //10
\r
66 /** The Constant MSO_USER_NAME. */
\r
67 public static final String MSO_USER_NAME = "mso.user.name"; //m03346
\r
69 /** The Constant MSO_PASSWORD. */
\r
70 public static final String MSO_PASSWORD = "mso.password.x";
\r
72 /** The Constant MSO_REST_API_SVC_INSTANCE. */
\r
73 public static final String MSO_REST_API_SVC_INSTANCE = "mso.restapi.svc.instance"; // /serviceInstances/v2
\r
75 /** The Constant MSO_REST_API_VNF_INSTANCE. */
\r
76 public static final String MSO_REST_API_VNF_INSTANCE = "mso.restapi.vnf.instance"; // /serviceInstances/v2/{service_instance_id}/vnfs
\r
78 /** The Constant MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE. */
\r
79 public static final String MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE = "mso.restapi.vnf.changemanagement.instance"; // /serviceInstances/v2/{service_instance_id}/vnfs/{request_type}
\r
81 /** The Constant MSO_REST_API_NETWORK_INSTANCE. */
\r
82 public static final String MSO_REST_API_NETWORK_INSTANCE = "mso.restapi.network.instance"; // /serviceInstances/v2/{serviceInstanceId}/networks
\r
84 /** The Constant MSO_REST_API_GET_ORC_REQ. */
\r
85 public static final String MSO_REST_API_GET_ORC_REQ = "mso.restapi.get.orc.req";
\r
87 /** The Constant MSO_REST_API_GET_ORC_REQS. */
\r
88 public static final String MSO_REST_API_GET_ORC_REQS = "mso.restapi.get.orc.reqs";
\r
90 /** The Constant MSO_REST_API_GET_MAN_TASK. */
\r
91 public static final String MSO_REST_API_GET_MAN_TASKS = "mso.restapi.get.man.tasks";
\r
93 /** The Constant MSO_REST_API_VF_MODULE_INSTANCE. */
\r
94 public static final String MSO_REST_API_VF_MODULE_INSTANCE = "mso.restapi.vf.module.instance";
\r
96 /** The Constant MSO_REST_API_VOLUME_GROUP_INSTANCE. */
\r
97 public static final String MSO_REST_API_VOLUME_GROUP_INSTANCE = "mso.restapi.volume.group.instance"; //serviceInstances/v2/{serviceInstanceId}/volumeGroups
\r
100 public EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoProperties.class);
\r
102 /** The Constant dateFormat. */
\r
103 final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
\r