Update license date and text
[aai/rest-client.git] / src / main / java / org / onap / aai / restclient / logging / RestClientMsgs.java
1 /**\r
2  * ============LICENSE_START=======================================================\r
3  * org.onap.aai\r
4  * ================================================================================\r
5  * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.\r
6  * Copyright © 2017-2018 Amdocs\r
7  * ================================================================================\r
8  * Licensed under the Apache License, Version 2.0 (the "License");\r
9  * you may not use this file except in compliance with the License.\r
10  * You may obtain a copy of the License at\r
11  *\r
12  *       http://www.apache.org/licenses/LICENSE-2.0\r
13  *\r
14  * Unless required by applicable law or agreed to in writing, software\r
15  * distributed under the License is distributed on an "AS IS" BASIS,\r
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
17  * See the License for the specific language governing permissions and\r
18  * limitations under the License.\r
19  * ============LICENSE_END=========================================================\r
20  */\r
21 package org.onap.aai.restclient.logging;\r
22 \r
23 import com.att.eelf.i18n.EELFResourceManager;\r
24 import org.onap.aai.cl.eelf.LogMessageEnum;\r
25 \r
26 public enum RestClientMsgs implements LogMessageEnum {\r
27 \r
28   /**\r
29    * Arguments: \r
30    *    {0} = HTTP operation \r
31    *    {1} = URL\r
32    */\r
33   HTTP_REQUEST,\r
34 \r
35   /**\r
36    * Arguments: \r
37    *    {0} = HTTP operation \r
38    *    {1} = URL \r
39    *    {2} = Attempt count.\r
40    */\r
41   HTTP_REQUEST_WITH_RETRIES,\r
42 \r
43   /**\r
44    * Arguments: \r
45    *    {0} = HTTP operation \r
46    *    {1} - URL \r
47    *    {2} - Operation time in ms.\r
48    */\r
49   HTTP_REQUEST_TIME,\r
50 \r
51   /**\r
52    * Arguments: \r
53    *    {0} = HTTP operation \r
54    *    {1} - URL \r
55    *    {2} - Operation time in ms. \r
56    *    {3} - Retry count.\r
57    */\r
58   HTTP_REQUEST_TIME_WITH_RETRIES,\r
59 \r
60   /**\r
61    * Arguments: \r
62    *    {0} = HTTP operation \r
63    *    {1} - URL \r
64    *    {2} - Error message.\r
65    */\r
66   HTTP_REQUEST_INTERRUPTED,\r
67 \r
68   /**\r
69    * Arguments: \r
70    *    {0} = HTTP operation \r
71    *    {1} - URL \r
72    *    {2} - Error message.\r
73    */\r
74   HTTP_REQUEST_ERROR,\r
75 \r
76   /**\r
77    * . Arguments: \r
78    *    {0} = Target URL\r
79    */\r
80   HEALTH_CHECK_ATTEMPT,\r
81 \r
82   /**\r
83    * . Arguments: \r
84    *    {0} = Target URL\r
85    */\r
86   HEALTH_CHECK_SUCCESS,\r
87 \r
88   /**\r
89    * . Arguments: \r
90    *    {0} = Target URL \r
91    *    {1} = failure cause\r
92    */\r
93   HEALTH_CHECK_FAILURE,\r
94 \r
95 \r
96   /**\r
97    * . Arguments: \r
98    *    {0} = URL \r
99    *    {1} - Response code\r
100    */\r
101   HTTP_RESPONSE,\r
102 \r
103   /**\r
104    * . Arguments: \r
105    *     {0} = failure cause\r
106    */\r
107   CLIENT_INITIALIZATION_FAILURE;\r
108 \r
109   /**\r
110    * Static initializer to ensure the resource bundles for this class are loaded...\r
111    */\r
112   static {\r
113     EELFResourceManager.loadMessageBundle("logging/RESTClientMsgs");\r
114   }\r
115 }\r