org.onap migration
[vid.git] / vid-app-common / src / main / java / org / onap / vid / mso / MsoProperties.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.onap.vid.mso;
22
23 import org.openecomp.portalsdk.core.logging.logic.EELFLoggerDelegate;
24 import org.openecomp.portalsdk.core.util.SystemProperties;
25
26 import java.text.DateFormat;
27 import java.text.SimpleDateFormat;
28
29 /**
30  * The Class MsoProperties.
31  */
32 public class MsoProperties extends SystemProperties {
33
34         /** The Constant MSO_SERVER_URL. */
35         //VID Properties related to MSO
36         public static final String MSO_SERVER_URL = "mso.server.url";
37
38         /** The Constant MSO_DME2_SERVER_URL. */
39         public static final String MSO_DME2_SERVER_URL = "mso.dme2.server.url";
40
41         /** The Constant MSO_DME2_CLIENT_TIMEOUT. */
42         public static final String MSO_DME2_CLIENT_TIMEOUT = "mso.dme2.client.timeout";
43         
44         /** The Constant MSO_DME2_CLIENT_READ_TIMEOUT. */
45         public static final String MSO_DME2_CLIENT_READ_TIMEOUT = "mso.dme2.client.read.timeout";
46         
47         /** The Constant MSO_SERVER_URL_DEFAULT. */
48         public static final String MSO_SERVER_URL_DEFAULT= "";
49         
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";
53
54         /** The Constant MSO_POLLING_INTERVAL_MSECS_DEFAULT. */
55         public static final String MSO_POLLING_INTERVAL_MSECS_DEFAULT = "60000";
56         
57         /** The Constant MSO_DME2_ENABLED. */
58         public static final String MSO_DME2_ENABLED = "mso.dme2.enabled";
59         
60         /** The Constant MSO_MAX_POLLS. */
61         public static final String MSO_MAX_POLLS = "mso.max.polls";
62         
63         /** The Constant MSO_MAX_POLLS_DEFAULT. */
64         public static final String MSO_MAX_POLLS_DEFAULT = "10"; //10
65         
66         /** The Constant MSO_USER_NAME. */
67         public static final String MSO_USER_NAME = "mso.user.name"; //m03346
68         
69         /** The Constant MSO_PASSWORD. */
70         public static final String MSO_PASSWORD = "mso.password.x";
71         
72         /** The Constant MSO_REST_API_SVC_INSTANCE. */
73         public static final String MSO_REST_API_SVC_INSTANCE = "mso.restapi.svc.instance"; // /serviceInstances/v2
74         
75         /** The Constant MSO_REST_API_VNF_INSTANCE. */
76         public static final String MSO_REST_API_VNF_INSTANCE = "mso.restapi.vnf.instance"; // /serviceInstances/v2/{service_instance_id}/vnfs
77         
78         /** The Constant MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE. */
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}
80         
81         /** The Constant MSO_REST_API_NETWORK_INSTANCE. */
82         public static final String MSO_REST_API_NETWORK_INSTANCE = "mso.restapi.network.instance"; // /serviceInstances/v2/{serviceInstanceId}/networks
83         
84         /** The Constant MSO_REST_API_GET_ORC_REQ. */
85         public static final String MSO_REST_API_GET_ORC_REQ = "mso.restapi.get.orc.req";
86         
87         /** The Constant MSO_REST_API_GET_ORC_REQS. */
88         public static final String MSO_REST_API_GET_ORC_REQS = "mso.restapi.get.orc.reqs";
89
90         /** The Constant MSO_REST_API_GET_MAN_TASK. */
91         public static final String MSO_REST_API_GET_MAN_TASKS = "mso.restapi.get.man.tasks";
92
93         /** The Constant MSO_REST_API_VF_MODULE_INSTANCE. */
94         public static final String MSO_REST_API_VF_MODULE_INSTANCE = "mso.restapi.vf.module.instance";
95
96         /** The Constant MSO_REST_API_VOLUME_GROUP_INSTANCE. */
97         public static final String MSO_REST_API_VOLUME_GROUP_INSTANCE = "mso.restapi.volume.group.instance"; //serviceInstances/v2/{serviceInstanceId}/volumeGroups
98
99         /** The Constant MSO_REST_API_CONFIGURATION_INSTANCE. */
100         public static final String MSO_REST_API_CONFIGURATIONS = "mso.restapi.configurations"; //serviceInstances/v5/{serviceInstanceId}/configurations/
101         public static final String MSO_REST_API_CONFIGURATION_INSTANCE = "mso.restapi.configuration.instance"; //serviceInstances/v5/{serviceInstanceId}/configurations/{configurationId}
102
103         /** The Constant MSO_REST_API_OPERATIONAL_ENVIRONMENT */
104         public static final String MSO_REST_API_OPERATIONAL_ENVIRONMENT_ACTIVATE = "mso.restapi.operationalEnvironment.activate";
105         public static final String MSO_REST_API_OPERATIONAL_ENVIRONMENT_DEACTIVATE = "mso.restapi.operationalEnvironment.deactivate";
106
107         /** The Constant MSO_REST_API_OPERATIONAL_ENVIRONMENT_CREATE */
108         public static final String MSO_REST_API_OPERATIONAL_ENVIRONMENT_CREATE = "mso.restapi.operationalEnvironment.create";
109
110         /** The Constant MSO_REST_API_CLOUD_RESOURCES_REQUEST_STATUS */
111         public static final String MSO_REST_API_CLOUD_RESOURCES_REQUEST_STATUS = "mso.restapi.operationalEnvironment.cloudResourcesRequests.status";
112
113         /** The logger. */
114         public EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoProperties.class);
115         
116         /** The Constant dateFormat. */
117         final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
118         
119 }