aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/mso/MsoProperties.java
blob: 1d71e9c759524d71aecd7ed79685efab5c37028b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/*-
 * ============LICENSE_START=======================================================
 * VID
 * ================================================================================
 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 * ================================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END=========================================================
 */

package org.onap.vid.mso;

import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate;
import org.onap.portalsdk.core.util.SystemProperties;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

/**
 * The Class MsoProperties.
 */
public class MsoProperties extends SystemProperties {

	/** The Constant MSO_SERVER_URL. */
	//VID Properties related to MSO
	public static final String MSO_SERVER_URL = "mso.server.url";

	/** The Constant MSO_DME2_SERVER_URL. */
	public static final String MSO_DME2_SERVER_URL = "mso.dme2.server.url";

	/** The Constant MSO_DME2_CLIENT_TIMEOUT. */
	public static final String MSO_DME2_CLIENT_TIMEOUT = "mso.dme2.client.timeout";
	
	/** The Constant MSO_DME2_CLIENT_READ_TIMEOUT. */
	public static final String MSO_DME2_CLIENT_READ_TIMEOUT = "mso.dme2.client.read.timeout";
	
	/** The Constant MSO_SERVER_URL_DEFAULT. */
	public static final String MSO_SERVER_URL_DEFAULT= "";
	
	/** The Constant MSO_POLLING_INTERVAL_MSECS. */
	// number of msecs to wait between polling requests
	public static final String MSO_POLLING_INTERVAL_MSECS = "mso.polling.interval.msecs";

	/** The Constant MSO_POLLING_INTERVAL_MSECS_DEFAULT. */
	public static final String MSO_POLLING_INTERVAL_MSECS_DEFAULT = "60000";
	
	/** The Constant MSO_DME2_ENABLED. */
	public static final String MSO_DME2_ENABLED = "mso.dme2.enabled";
	
	/** The Constant MSO_MAX_POLLS. */
	public static final String MSO_MAX_POLLS = "mso.max.polls";
	
	/** The Constant MSO_MAX_POLLS_DEFAULT. */
	public static final String MSO_MAX_POLLS_DEFAULT = "10"; //10
	
	/** The Constant MSO_USER_NAME. */
	public static final String MSO_USER_NAME = "mso.user.name"; //m03346
	
	/** The Constant MSO_PASSWORD. */
	public static final String MSO_PASSWORD = "mso.password.x";
	
	/** The Constant MSO_REST_API_SVC_INSTANCE. */
    public static final String MSO_REST_API_E2E_SVC_INSTANCE = "mso.restapi.svc.e2einstance"; // /e2eServiceInstances/v3
	
	/** The Constant MSO_REST_API_SVC_INSTANCE. */
	public static final String MSO_REST_API_SVC_INSTANCE = "mso.restapi.svc.instance"; // /serviceInstances/v2

	/** The Constant MSO_DELETE_OR_UNASSIGN_REST_API_SVC_INSTANCE. */
	public static final String MSO_DELETE_OR_UNASSIGN_REST_API_SVC_INSTANCE = "mso.restapi.svc.instance.deleteAndUnassign";

	/** The Constant MSO_REST_API_VNF_INSTANCE. */
	public static final String MSO_REST_API_VNF_INSTANCE = "mso.restapi.vnf.instance"; // /serviceInstances/v2/{service_instance_id}/vnfs
	
	/** The Constant MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE. */
	public static final String MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE = "mso.restapi.vnf.changemanagement.instance"; // /serviceInstances/v2/{service_instance_id}/vnfs/{request_type}
	
	/** The Constant MSO_REST_API_NETWORK_INSTANCE. */
	public static final String MSO_REST_API_NETWORK_INSTANCE = "mso.restapi.network.instance"; // /serviceInstances/v2/{serviceInstanceId}/networks
	
	/** The Constant MSO_REST_API_GET_ORC_REQ. */
	public static final String MSO_REST_API_GET_ORC_REQ = "mso.restapi.get.orc.req";
	
	/** The Constant MSO_REST_API_GET_ORC_REQS. */
	public static final String MSO_REST_API_GET_ORC_REQS = "mso.restapi.get.orc.reqs";

	/** The Constant MSO_REST_API_GET_MAN_TASK. */
	public static final String MSO_REST_API_GET_MAN_TASKS = "mso.restapi.get.man.tasks";

	/** The Constant MSO_REST_API_VF_MODULE_INSTANCE. */
	public static final String MSO_REST_API_VF_MODULE_INSTANCE = "mso.restapi.vf.module.instance";

	public static final String MSO_REST_API_VF_MODULE_SCALE_OUT = "mso.restapi.vf.module.scaleout";

	/** The Constant MSO_REST_API_VOLUME_GROUP_INSTANCE. */
	public static final String MSO_REST_API_VOLUME_GROUP_INSTANCE = "mso.restapi.volume.group.instance"; //serviceInstances/v2/{serviceInstanceId}/volumeGroups

	/** The Constant MSO_REST_API_CONFIGURATION_INSTANCE. */
	public static final String MSO_REST_API_CONFIGURATIONS = "mso.restapi.configurations"; //serviceInstances/v5/{serviceInstanceId}/configurations
	public static final String MSO_REST_API_CONFIGURATION_INSTANCE = "mso.restapi.configuration.instance"; //serviceInstances/v5/{serviceInstanceId}/configurations/{configurationId}

	/** The Constant MSO_REST_API_OPERATIONAL_ENVIRONMENT */
	public static final String MSO_REST_API_OPERATIONAL_ENVIRONMENT_ACTIVATE = "mso.restapi.operationalEnvironment.activate";
	public static final String MSO_REST_API_OPERATIONAL_ENVIRONMENT_DEACTIVATE = "mso.restapi.operationalEnvironment.deactivate";

	/** The Constant MSO_REST_API_OPERATIONAL_ENVIRONMENT_CREATE */
	public static final String MSO_REST_API_OPERATIONAL_ENVIRONMENT_CREATE = "mso.restapi.operationalEnvironment.create";

	/** The Constant MSO_REST_API_CLOUD_RESOURCES_REQUEST_STATUS */
	public static final String MSO_REST_API_CLOUD_RESOURCES_REQUEST_STATUS = "mso.restapi.operationalEnvironment.cloudResourcesRequests.status";

	/** The logger. */
	public EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoProperties.class);
	
	/** The Constant dateFormat. */
	final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");

}