Aharoni, Pavel (pa0916) | ca3cb01 | 2018-10-22 15:29:57 +0300 | [diff] [blame] | 1 | /*-
|
| 2 | * ============LICENSE_START=======================================================
|
| 3 | * OSAM
|
| 4 | * ================================================================================
|
| 5 | * Copyright (C) 2018 AT&T
|
| 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 |
|
| 22 |
|
| 23 | package org.onap.osam.mso;
|
| 24 |
|
| 25 | import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate;
|
| 26 | import org.onap.portalsdk.core.util.SystemProperties;
|
| 27 |
|
| 28 | import java.text.DateFormat;
|
| 29 | import java.text.SimpleDateFormat;
|
| 30 |
|
| 31 | public class MsoProperties extends SystemProperties {
|
| 32 |
|
| 33 | //VID Properties related to MSO
|
| 34 | public static final String MSO_SERVER_URL = "mso.server.url";
|
| 35 |
|
| 36 | /** The Constant MSO_DME2_SERVER_URL. */
|
| 37 | public static final String MSO_DME2_SERVER_URL = "mso.dme2.server.url";
|
| 38 |
|
| 39 | /** The Constant MSO_DME2_CLIENT_TIMEOUT. */
|
| 40 | public static final String MSO_DME2_CLIENT_TIMEOUT = "mso.dme2.client.timeout";
|
| 41 |
|
| 42 | /** The Constant MSO_DME2_CLIENT_READ_TIMEOUT. */
|
| 43 | public static final String MSO_DME2_CLIENT_READ_TIMEOUT = "mso.dme2.client.read.timeout";
|
| 44 |
|
| 45 | /** The Constant MSO_SERVER_URL_DEFAULT. */
|
| 46 | public static final String MSO_SERVER_URL_DEFAULT= "";
|
| 47 |
|
| 48 | /** The Constant MSO_POLLING_INTERVAL_MSECS. */
|
| 49 | // number of msecs to wait between polling requests
|
| 50 | public static final String MSO_POLLING_INTERVAL_MSECS = "mso.polling.interval.msecs";
|
| 51 |
|
| 52 | /** The Constant MSO_POLLING_INTERVAL_MSECS_DEFAULT. */
|
| 53 | public static final String MSO_POLLING_INTERVAL_MSECS_DEFAULT = "60000";
|
| 54 |
|
| 55 | /** The Constant MSO_DME2_ENABLED. */
|
| 56 | public static final String MSO_DME2_ENABLED = "mso.dme2.enabled";
|
| 57 |
|
| 58 | /** The Constant MSO_MAX_POLLS. */
|
| 59 | public static final String MSO_MAX_POLLS = "mso.max.polls";
|
| 60 |
|
| 61 | /** The Constant MSO_MAX_POLLS_DEFAULT. */
|
| 62 | public static final String MSO_MAX_POLLS_DEFAULT = "10"; //10
|
| 63 |
|
| 64 | /** The Constant MSO_USER_NAME. */
|
| 65 | public static final String MSO_USER_NAME = "mso.user.name"; //m03346
|
| 66 |
|
| 67 | /** The Constant MSO_PASSWORD. */
|
| 68 | public static final String MSO_PASSWORD = "mso.password.x";
|
| 69 |
|
| 70 | /** The Constant MSO_REST_API_SVC_INSTANCE. */
|
| 71 | public static final String MSO_REST_API_E2E_SVC_INSTANCE = "mso.restapi.svc.e2einstance"; // /e2eServiceInstances/v3
|
| 72 |
|
| 73 | /** The Constant MSO_REST_API_SVC_INSTANCE. */
|
| 74 | public static final String MSO_REST_API_SVC_INSTANCE = "mso.restapi.svc.instance"; // /serviceInstances/v2
|
| 75 |
|
| 76 | /** The Constant MSO_DELETE_OR_UNASSIGN_REST_API_SVC_INSTANCE. */
|
| 77 | public static final String MSO_DELETE_OR_UNASSIGN_REST_API_SVC_INSTANCE = "mso.restapi.svc.instance.deleteAndUnassign";
|
| 78 |
|
| 79 | /** The Constant MSO_REST_API_VNF_INSTANCE. */
|
| 80 | public static final String MSO_REST_API_VNF_INSTANCE = "mso.restapi.vnf.instance"; // /serviceInstances/v2/{service_instance_id}/vnfs
|
| 81 |
|
| 82 | /** The Constant MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE. */
|
| 83 | public static final String MSO_REST_API_VNF_CHANGE_MANAGEMENT_INSTANCE = "mso.restapi.vnf.changemanagement.instance"; // /serviceInstances/v2/{service_instance_id}/vnfs/{request_type}
|
| 84 |
|
| 85 | /** The Constant MSO_REST_API_NETWORK_INSTANCE. */
|
| 86 | public static final String MSO_REST_API_NETWORK_INSTANCE = "mso.restapi.network.instance"; // /serviceInstances/v2/{serviceInstanceId}/networks
|
| 87 |
|
| 88 | /** The Constant MSO_REST_API_GET_ORC_REQ. */
|
| 89 | public static final String MSO_REST_API_GET_ORC_REQ = "mso.restapi.get.orc.req";
|
| 90 |
|
| 91 | /** The Constant MSO_REST_API_GET_ORC_REQS. */
|
| 92 | public static final String MSO_REST_API_GET_ORC_REQS = "mso.restapi.get.orc.reqs";
|
| 93 |
|
| 94 | /** The Constant MSO_REST_API_GET_MAN_TASK. */
|
| 95 | public static final String MSO_REST_API_GET_MAN_TASKS = "mso.restapi.get.man.tasks";
|
| 96 |
|
| 97 | /** The Constant MSO_REST_API_VF_MODULE_INSTANCE. */
|
| 98 | public static final String MSO_REST_API_VF_MODULE_INSTANCE = "mso.restapi.vf.module.instance";
|
| 99 |
|
| 100 | public static final String MSO_REST_API_VF_MODULE_SCALE_OUT = "mso.restapi.vf.module.scaleout";
|
| 101 |
|
| 102 | /** The Constant MSO_REST_API_VOLUME_GROUP_INSTANCE. */
|
| 103 | public static final String MSO_REST_API_VOLUME_GROUP_INSTANCE = "mso.restapi.volume.group.instance"; //serviceInstances/v2/{serviceInstanceId}/volumeGroups
|
| 104 |
|
| 105 | /** The Constant MSO_REST_API_CONFIGURATION_INSTANCE. */
|
| 106 | public static final String MSO_REST_API_CONFIGURATIONS = "mso.restapi.configurations"; //serviceInstances/v5/{serviceInstanceId}/configurations
|
| 107 | public static final String MSO_REST_API_CONFIGURATION_INSTANCE = "mso.restapi.configuration.instance"; //serviceInstances/v5/{serviceInstanceId}/configurations/{configurationId}
|
| 108 |
|
| 109 | /** The Constant MSO_REST_API_OPERATIONAL_ENVIRONMENT */
|
| 110 | public static final String MSO_REST_API_OPERATIONAL_ENVIRONMENT_ACTIVATE = "mso.restapi.operationalEnvironment.activate";
|
| 111 | public static final String MSO_REST_API_OPERATIONAL_ENVIRONMENT_DEACTIVATE = "mso.restapi.operationalEnvironment.deactivate";
|
| 112 |
|
| 113 | /** The Constant MSO_REST_API_OPERATIONAL_ENVIRONMENT_CREATE */
|
| 114 | public static final String MSO_REST_API_OPERATIONAL_ENVIRONMENT_CREATE = "mso.restapi.operationalEnvironment.create";
|
| 115 |
|
| 116 | /** The Constant MSO_REST_API_CLOUD_RESOURCES_REQUEST_STATUS */
|
| 117 | public static final String MSO_REST_API_CLOUD_RESOURCES_REQUEST_STATUS = "mso.restapi.operationalEnvironment.cloudResourcesRequests.status";
|
| 118 |
|
| 119 | /** The logger. */
|
| 120 | public EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(MsoProperties.class);
|
| 121 |
|
| 122 | /** The Constant dateFormat. */
|
| 123 | final static DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss:SSSS");
|
| 124 |
|
| 125 | }
|