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