2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Copyright (C) 2017 Amdocs
8 * =============================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 * ============LICENSE_END=========================================================
25 package org.openecomp.appc.logging;
28 * Constant definition of logging
30 public class LoggingConstants {
31 private LoggingConstants() {
32 throw new IllegalAccessError("LoggingConstants");
36 * Constants of MDC property keys
38 public static class MDCKeys {
40 throw new IllegalAccessError("MDCKeys");
43 public static final String ERROR_CODE = "ErrorCode";
44 public static final String ERROR_DESCRIPTION = "ErrorDescription";
45 public static final String STATUS_CODE = "StatusCode";
46 public static final String RESPONSE_CODE = "ResponseCode";
47 public static final String RESPONSE_DESCRIPTION = "ResponseDescription";
48 public static final String TARGET_ENTITY = "TargetEntity";
49 public static final String TARGET_SERVICE_NAME = "TargetServiceName";
50 public static final String PARTNER_NAME = "PartnerName";
51 public static final String SERVER_NAME = "ServerName";
52 public static final String BEGIN_TIMESTAMP = "BeginTimestamp";
53 public static final String END_TIMESTAMP = "EndTimestamp";
54 public static final String ELAPSED_TIME = "ElapsedTime";
55 public static final String CLASS_NAME = "ClassName";
56 public static final String TARGET_VIRTUAL_ENTITY = "TargetVirtualEntity";
60 * Constants of status code values
62 public static class StatusCodes {
63 private StatusCodes() {
64 throw new IllegalAccessError("StatusCodes");
66 public static final String COMPLETE = "COMPLETE";
67 public static final String ERROR = "ERROR";
71 * Constants of APPC target names
73 public static class TargetNames {
74 private TargetNames() {
75 throw new IllegalAccessError("TargetNames");
77 public static final String APPC = "APPC";
78 public static final String AAI = "A&AI";
79 public static final String DB = "DataBase";
80 public static final String APPC_PROVIDER = "APPC Provider";
81 public static final String APPC_OAM_PROVIDER = "APPC OAM Provider";
82 public static final String STATE_MACHINE = "StateMachine";
83 public static final String WORKFLOW_MANAGER = "WorkflowManager";
84 public static final String REQUEST_VALIDATOR = "RequestValidator";
85 public static final String LOCK_MANAGER = "LockManager";
86 public static final String REQUEST_HANDLER = "RequestHandler";
90 * Constants of targeted service names
92 public static class TargetServiceNames {
93 private TargetServiceNames() {
94 throw new IllegalAccessError("TargetServiceNames");
98 * Constants of AAI service names
100 public static class AAIServiceNames {
101 private AAIServiceNames() {
102 throw new IllegalAccessError("AAIServiceNames");
104 public static final String QUERY = "query";
105 public static final String GET_VNF_DATA = "getVnfData";