30ff91d68b366779a1179ee79a0eee48a8e92f5d
[appc.git] / appc-common / src / main / java / org / openecomp / appc / logging / LoggingConstants.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
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
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  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25 package org.onap.appc.logging;
26
27 /**
28  * Constant definition of logging
29  */
30 public class LoggingConstants {
31     private LoggingConstants() {
32         throw new IllegalAccessError("LoggingConstants");
33     }
34
35     /**
36      * Constants of MDC property keys
37      */
38     public static class MDCKeys {
39         private MDCKeys() {
40             throw new IllegalAccessError("MDCKeys");
41         }
42
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";
57     }
58
59     /**
60      * Constants of status code values
61      */
62     public static class StatusCodes {
63         private StatusCodes() {
64             throw new IllegalAccessError("StatusCodes");
65         }
66         public static final String COMPLETE = "COMPLETE";
67         public static final String ERROR = "ERROR";
68     }
69
70     /**
71      * Constants of APPC target names
72      */
73     public static class TargetNames {
74         private TargetNames() {
75             throw new IllegalAccessError("TargetNames");
76         }
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";
87     }
88
89     /**
90      * Constants of targeted service names
91      */
92     public static class TargetServiceNames {
93         private TargetServiceNames() {
94             throw new IllegalAccessError("TargetServiceNames");
95         }
96
97         /**
98          * Constants of AAI service names
99          */
100         public static class AAIServiceNames {
101             private AAIServiceNames() {
102                 throw new IllegalAccessError("AAIServiceNames");
103             }
104             public static final String QUERY = "query";
105             public static final String GET_VNF_DATA = "getVnfData";
106         }
107
108     }
109
110 }