Revert "remove redundant code under appc-common-bundle/java"
[appc.git] / appc-core / appc-common-bundle / java / org / onap / appc / logging / LoggingConstants.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017-2018 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
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
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.
20  * 
21  * ============LICENSE_END=========================================================
22  */
23
24 package org.onap.appc.logging;
25
26 /**
27  * Constant definition of logging
28  */
29 public class LoggingConstants {
30     private LoggingConstants() {
31         throw new IllegalAccessError("LoggingConstants");
32     }
33
34     /**
35      * Constants of MDC property keys
36      */
37     public static class MDCKeys {
38         private MDCKeys() {
39             throw new IllegalAccessError("MDCKeys");
40         }
41
42         public static final String ERROR_CODE = "ErrorCode";
43         public static final String ERROR_DESCRIPTION = "ErrorDescription";
44         public static final String STATUS_CODE = "StatusCode";
45         public static final String RESPONSE_CODE = "ResponseCode";
46         public static final String RESPONSE_DESCRIPTION = "ResponseDescription";
47         public static final String TARGET_ENTITY = "TargetEntity";
48         public static final String TARGET_SERVICE_NAME = "TargetServiceName";
49         public static final String PARTNER_NAME = "PartnerName";
50         public static final String SERVER_NAME = "ServerName";
51         public static final String BEGIN_TIMESTAMP = "BeginTimestamp";
52         public static final String END_TIMESTAMP = "EndTimestamp";
53         public static final String ELAPSED_TIME = "ElapsedTime";
54         public static final String CLASS_NAME = "ClassName";
55         public static final String TARGET_VIRTUAL_ENTITY = "TargetVirtualEntity";
56     }
57
58     /**
59      * Constants of status code values
60      */
61     public static class StatusCodes {
62         private StatusCodes() {
63             throw new IllegalAccessError("StatusCodes");
64         }
65         public static final String COMPLETE = "COMPLETE";
66         public static final String ERROR = "ERROR";
67     }
68
69     /**
70      * Constants of APPC target names
71      */
72     public static class TargetNames {
73         private TargetNames() {
74             throw new IllegalAccessError("TargetNames");
75         }
76         public static final String APPC = "APPC";
77         public static final String AAI = "A&AI";
78         public static final String DB = "DataBase";
79         public static final String APPC_PROVIDER = "APPC Provider";
80         public static final String APPC_OAM_PROVIDER = "APPC OAM Provider";
81         public static final String STATE_MACHINE = "StateMachine";
82         public static final String WORKFLOW_MANAGER = "WorkflowManager";
83         public static final String REQUEST_VALIDATOR = "RequestValidator";
84         public static final String LOCK_MANAGER = "LockManager";
85         public static final String REQUEST_HANDLER = "RequestHandler";
86     }
87
88     /**
89      * Constants of targeted service names
90      */
91     public static class TargetServiceNames {
92         private TargetServiceNames() {
93             throw new IllegalAccessError("TargetServiceNames");
94         }
95
96         /**
97          * Constants of AAI service names
98          */
99         public static class AAIServiceNames {
100             private AAIServiceNames() {
101                 throw new IllegalAccessError("AAIServiceNames");
102             }
103             public static final String QUERY = "query";
104             public static final String GET_VNF_DATA = "getVnfData";
105         }
106
107     }
108
109 }