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