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 java.util.Date;
\r
28 import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
\r
31 * The Class MsoProperties.
\r
33 public class MsoProperties extends SystemProperties {
\r
35 /** The Constant MSO_SERVER_URL. */
\r
36 //VID Properties related to MSO
\r
37 public static final String MSO_SERVER_URL = "mso.server.url";
\r
39 /** The Constant MSO_DME2_SERVER_URL. */
\r
40 public static final String MSO_DME2_SERVER_URL = "mso.dme2.server.url";
\r
42 /** The Constant MSO_DME2_CLIENT_TIMEOUT. */
\r
43 public static final String MSO_DME2_CLIENT_TIMEOUT = "mso.dme2.client.timeout";
\r
45 /** The Constant MSO_DME2_CLIENT_READ_TIMEOUT. */
\r
46 public static final String MSO_DME2_CLIENT_READ_TIMEOUT = "mso.dme2.client.read.timeout";
\r
48 /** The Constant MSO_SERVER_URL_DEFAULT. */
\r
49 public static final String MSO_SERVER_URL_DEFAULT= "";
\r
51 /** The Constant MSO_POLLING_INTERVAL_MSECS. */
\r
52 // number of msecs to wait between polling requests
\r
53 public static final String MSO_POLLING_INTERVAL_MSECS = "mso.polling.interval.msecs";
\r
55 /** The Constant MSO_POLLING_INTERVAL_MSECS_DEFAULT. */
\r
56 public static final String MSO_POLLING_INTERVAL_MSECS_DEFAULT = "60000";
\r
58 /** The Constant MSO_DME2_ENABLED. */
\r
59 public static final String MSO_DME2_ENABLED = "mso.dme2.enabled";
\r
61 /** The Constant MSO_MAX_POLLS. */
\r
62 public static final String MSO_MAX_POLLS = "mso.max.polls";
\r
64 /** The Constant MSO_MAX_POLLS_DEFAULT. */
\r
65 public static final String MSO_MAX_POLLS_DEFAULT = "10"; //10
\r
67 /** The Constant MSO_USER_NAME. */
\r
68 public static final String MSO_USER_NAME = "mso.user.name"; //m03346
\r
70 /** The Constant MSO_PASSWORD. */
\r
71 public static final String MSO_PASSWORD = "mso.password.x";
\r
73 /** The Constant MSO_REST_API_SVC_INSTANCE. */
\r
74 public static final String MSO_REST_API_SVC_INSTANCE = "mso.restapi.svc.instance"; // /serviceInstances/v2
\r
76 /** The Constant MSO_REST_API_VNF_INSTANCE. */
\r
77 public static final String MSO_REST_API_VNF_INSTANCE = "mso.restapi.vnf.instance"; // /serviceInstances/v2/{service_instance_id}/vnfs
\r
79 /** The Constant MSO_REST_API_NETWORK_INSTANCE. */
\r
80 public static final String MSO_REST_API_NETWORK_INSTANCE = "mso.restapi.network.instance"; // /serviceInstances/v2/{serviceInstanceId}/networks
\r
82 /** The Constant MSO_REST_API_GET_ORC_REQ. */
\r
83 public static final String MSO_REST_API_GET_ORC_REQ = "mso.restapi.get.orc.req";
\r
85 /** The Constant MSO_REST_API_GET_ORC_REQS. */
\r
86 public static final String MSO_REST_API_GET_ORC_REQS = "mso.restapi.get.orc.reqs";
\r
88 /** The Constant MSO_REST_API_VF_MODULE_INSTANCE. */
\r
89 public static final String MSO_REST_API_VF_MODULE_INSTANCE = "mso.restapi.vf.module.instance";
\r
91 /** The Constant MSO_REST_API_VOLUME_GROUP_INSTANCE. */
\r
92 public static final String MSO_REST_API_VOLUME_GROUP_INSTANCE = "mso.restapi.volume.group.instance"; //serviceInstances/v2/{serviceInstanceId}/volumeGroups
\r
95 public EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoProperties.class);
\r
97 /** The Constant dateFormat. */
\r
98 final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
\r