[VID-6] Initial rebase push
[vid.git] / vid-app-common / src / main / java / org / openecomp / vid / mso / MsoProperties.java
1 /*-\r
2  * ============LICENSE_START=======================================================\r
3  * VID\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
10  * \r
11  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  * \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
19  */\r
20 \r
21 package org.openecomp.vid.mso;\r
22 \r
23 import org.openecomp.portalsdk.core.util.SystemProperties;\r
24 \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
29 \r
30 /**\r
31  * The Class MsoProperties.\r
32  */\r
33 public class MsoProperties extends SystemProperties {\r
34 \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
38         \r
39         /** The Constant MSO_DME2_SERVER_URL. */\r
40         public static final String MSO_DME2_SERVER_URL = "mso.dme2.server.url";\r
41         \r
42         /** The Constant MSO_DME2_CLIENT_TIMEOUT. */\r
43         public static final String MSO_DME2_CLIENT_TIMEOUT = "mso.dme2.client.timeout";\r
44         \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
47         \r
48         /** The Constant MSO_SERVER_URL_DEFAULT. */\r
49         public static final String MSO_SERVER_URL_DEFAULT= "";\r
50         \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
54         \r
55         /** The Constant MSO_POLLING_INTERVAL_MSECS_DEFAULT. */\r
56         public static final String MSO_POLLING_INTERVAL_MSECS_DEFAULT = "60000";\r
57         \r
58         /** The Constant MSO_DME2_ENABLED. */\r
59         public static final String MSO_DME2_ENABLED = "mso.dme2.enabled";\r
60         \r
61         /** The Constant MSO_MAX_POLLS. */\r
62         public static final String MSO_MAX_POLLS = "mso.max.polls";\r
63         \r
64         /** The Constant MSO_MAX_POLLS_DEFAULT. */\r
65         public static final String MSO_MAX_POLLS_DEFAULT = "10"; //10\r
66         \r
67         /** The Constant MSO_USER_NAME. */\r
68         public static final String MSO_USER_NAME = "mso.user.name"; //m03346\r
69         \r
70         /** The Constant MSO_PASSWORD. */\r
71         public static final String MSO_PASSWORD = "mso.password.x"; \r
72         \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
75         \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
78         \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
81         \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
84         \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
87         \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
90         \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
93         \r
94         /** The logger. */\r
95         public EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoProperties.class);\r
96         \r
97         /** The Constant dateFormat. */\r
98         final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");\r
99         \r
100 }\r