Change nexus values to properties
[appc.git] / app-c / appc / appc-common / src / main / java / org / openecomp / appc / i18n / Msg.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * openECOMP : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights
6  *                                              reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.openecomp.appc.i18n;
23
24 import com.att.eelf.i18n.EELFResolvableErrorEnum;
25 import com.att.eelf.i18n.EELFResourceManager;
26
27 /**
28  * The messages issued by APPC components.
29  * <p>
30  * This message definition is shared by all APPC components.
31  * </p>
32  *
33  */
34 @SuppressWarnings("nls")
35 public enum Msg implements EELFResolvableErrorEnum {
36
37     /**
38      * ECOMP Application Controller (APP-C) initialization started at {0}
39      */
40     CONFIGURATION_STARTED,
41
42     /**
43      * Prior configuration has been cleared
44      */
45     CONFIGURATION_CLEARED,
46
47     /**
48      * Loading configuration properties from file "{0}"
49      */
50     LOADING_CONFIGURATION_OVERRIDES,
51
52     /**
53      * Configuration defaults loaded from resource file "{0}"
54      */
55     LOADING_DEFAULTS,
56
57     /**
58      * No default property resource "{0}" was found!
59      */
60     NO_DEFAULTS_FOUND,
61
62     /**
63      * Property "{0}" ="{1}"
64      */
65     PROPERTY_VALUE,
66
67     /**
68      * No configuration file named [{0}] was found on the configuration search path [{1}]. \ If a configuration file
69      * should have been loaded, check the file name and search path specified. CDP will proceed using the \ default
70      * values and command-line overrides (if any).
71      */
72     NO_OVERRIDE_PROPERTY_FILE_LOADED,
73
74     /**
75      * Searching path "{0}" for configuration settings "{1}"
76      */
77     SEARCHING_CONFIGURATION_OVERRIDES,
78
79     /**
80      * Loading application-specific override properties
81      */
82     LOADING_APPLICATION_OVERRIDES,
83
84     /**
85      * No application-specific override properties were provided!
86      */
87     NO_APPLICATION_OVERRIDES,
88
89     /**
90      * Merging system properties into configuration
91      */
92     MERGING_SYSTEM_PROPERTIES,
93
94     /**
95      * Setting property "{0}={1}" in system properties
96      */
97     SETTING_SPECIAL_PROPERTY,
98
99     /**
100      * Loading resource bundle "{0}"
101      */
102     LOADING_RESOURCE_BUNDLE,
103
104     /**
105      * Logging has already been initialized, check the container logging definitions to ensure they represent your
106      * desired logging configuration.
107      */
108     LOGGING_ALREADY_INITIALIZED,
109
110     /**
111      * Searching path "{0}" for log configuration file "{1}"
112      */
113     SEARCHING_LOG_CONFIGURATION,
114
115     /**
116      * Loading default logging configuration from system resource file "{0}"
117      */
118     LOADING_DEFAULT_LOG_CONFIGURATION,
119
120     /**
121      * No log configuration could be found or defaulted!
122      */
123     NO_LOG_CONFIGURATION,
124
125     /**
126      * An unsupported logging framework is bound to SLF4J. Only Logback or Log4J are supported.
127      */
128     UNSUPPORTED_LOGGING_FRAMEWORK,
129
130     /**
131      * Loading logging configuration from file "{0}"
132      */
133     LOADING_LOG_CONFIGURATION,
134
135     /**
136      * Provider {0} cannot be found or cannot be resolved to a valid provider.
137      */
138     UNKNOWN_PROVIDER,
139
140     /**
141      * Server name "{0}" with id "{1}" in tenant "{2}" and region "{3}" did not change state within the alloted time.
142      * Current state is "{4}" and the desired state(s) are "{5}"
143      */
144     SERVER_STATE_CHANGE_TIMEOUT,
145
146     /**
147      * Server name "{0}" with id "{1}" in tenant "{2}" has a state of deleted and cannot be {3}.
148      */
149     SERVER_DELETED,
150
151     /**
152      * Server name "{0}" with id "{1}" in tenant "{2}" has an unknown state of "{3}".
153      */
154     UNKNOWN_SERVER_STATE,
155
156     /**
157      * {0} component {1} is being initialized...
158      */
159     COMPONENT_INITIALIZING,
160
161     /**
162      * {0} component {1} has completed initialization
163      */
164     COMPONENT_INITIALIZED,
165
166     /**
167      * {0} component {1} is terminating...
168      */
169     COMPONENT_TERMINATING,
170
171     /**
172      * {0} component {1} has terminated
173      */
174     COMPONENT_TERMINATED,
175
176     /**
177      * Operation {0} is not supported or implemented at this time.
178      */
179     IAAS_ADAPTER_UNSUPPORTED_OPERATION,
180
181     /**
182      * Operation {0} called. Input document:\n{1}
183      */
184     IAAS_ADAPTER_RPC_CALLED,
185
186     /**
187      * Unable to locate the {0} service in the OSGi container
188      */
189     NO_SERVICE_FOUND,
190
191     /**
192      * Dump of context parameters for module {0}, RPC {1}, and version {2}
193      */
194     CONTEXT_PARAMETERS_DISPLAY,
195
196     /**
197      * Response properties from execution of module '{0}', RPC '{1}', and version '{2}' are:
198      */
199     RESPONSE_PARAMETERS_DISPLAY,
200
201     /**
202      * Service {0}:{1} was provided a null (empty) or invalid argument, '{2}' = '{3}'
203      */
204     NULL_OR_INVALID_ARGUMENT,
205
206     /**
207      * Service {0}:{1} is processing service '{2}' with request id '{3}'
208      */
209     PROCESSING_REQUEST,
210
211     /**
212      * Service {0}:{1} received request for service '{2}' but that service is invalid or unknown.
213      */
214     INVALID_SERVICE_REQUEST,
215
216     /**
217      * {0} registering service {1} using class {2}
218      */
219     REGISTERING_SERVICE,
220
221     /**
222      * {0} unregistering service {1}
223      */
224     UNREGISTERING_SERVICE,
225
226     /**
227      * {0} IAAS Adapter initializing provider {1} as {2}
228      */
229     LOADING_PROVIDER_DEFINITIONS,
230
231     /**
232      * {0} IAAS Adapter restart of server requested
233      */
234     RESTARTING_SERVER,
235
236     /**
237      * {0} IAAS Adapter rebuild of server requested
238      */
239     REBUILDING_SERVER,
240
241     /**
242      * {0} IAAS Adapter migrate of server requested
243      */
244     MIGRATING_SERVER,
245
246     /**
247      * {0} IAAS Adapter evacuate of server requested
248      */
249     EVACUATING_SERVER,
250
251     /**
252      * {0} IAAS Adapter create snapshot of server requested
253      */
254     SNAPSHOTING_SERVER,
255
256     /**
257      * {0} IAAS Adapter cannot perform requested service, VM url '{1}' is invalid
258      */
259     INVALID_SELF_LINK_URL,
260
261     /**
262      * Located server '{0}' on tenant '{1}' and in state '{2}'
263      */
264     SERVER_FOUND,
265
266     /**
267      * No server found in provider with self-link URL [{0}]
268      */
269     SERVER_NOT_FOUND,
270
271     /**
272      * Exception {0} was caught attempting {1} of server [{2}] on tenant [{3}]
273      */
274     SERVER_OPERATION_EXCEPTION,
275
276     /**
277      * One or more properties for [{0}] are missing, null, or empty. They are:
278      */
279     MISSING_REQUIRED_PROPERTIES,
280
281     /**
282      * The server [{0}] (id={1}) in tenant {2} is in error state, {3} is not allowed
283      */
284     SERVER_ERROR_STATE,
285
286     /**
287      * The image {0} could not be located for {1}
288      */
289     IMAGE_NOT_FOUND,
290
291     /**
292      * Time out waiting for {0} with name {1} (and id {2}) to reach one of {3} states, current state is {4}
293      */
294     STATE_CHANGE_TIMEOUT,
295
296     /**
297      * Exception {0} waiting for {1} with name {2} (and id {3}) to reach one of {4} states, current state is {5}
298      * cause={6}
299      */
300     STATE_CHANGE_EXCEPTION,
301
302     /**
303      * Server {0} is being stopped...
304      */
305     STOP_SERVER,
306
307     /**
308      * Server {0} is being started...
309      */
310     START_SERVER,
311
312     /**
313      * Server {0} is being resumed...
314      */
315     RESUME_SERVER,
316
317     /**
318      * Server {0} is being unpaused...
319      */
320     UNPAUSE_SERVER,
321
322     /**
323      * Connection to provider {0} at identity {1} using tenant name {2} (id {3}) failed, reason={4}, retrying in {5}
324      * seconds, attempt {6} of {7}.
325      */
326     CONNECTION_FAILED_RETRY,
327
328     /**
329      * Connection to provider {0} at service {1} failed after all retry attempts.
330      */
331     CONNECTION_FAILED,
332
333     /**
334      * {0} IAAS Adapter stop server requested
335      */
336     STOPPING_SERVER,
337
338     /**
339      * Server {0} (id {1}) failed to rebuild, reason {2}
340      */
341     REBUILD_SERVER_FAILED,
342
343     /**
344      * Application {0} graph {1} response did not set the {2} parameter. This parameter is required for synchronization
345      * with the controller. Absence of this parameter is assumed to be a failure. Please correct the DG.
346      */
347     PARAMETER_IS_MISSING,
348
349     /**
350      * Application {0} graph {1} did not set parameter {2} to a valid numeric value ({3}). Please correct the DG.
351      */
352     PARAMETER_NOT_NUMERIC,
353
354     /**
355      * Application {0} graph {1} completed with failure: error code = {2}, message = {3}
356      */
357     DG_FAILED_RESPONSE,
358
359     /**
360      * Application {0} received exception {1} attempting to call graph {2}, exception message = {3}
361      */
362     EXCEPTION_CALLING_DG,
363
364     /**
365      * Application {0} was unable to locate graph {1}
366      */
367     GRAPH_NOT_FOUND,
368
369     /**
370      * Application {0} graph {1} responded with {3} properties
371      */
372     DEBUG_GRAPH_RESPONSE_HEADER,
373
374     /**
375      * {0}:{1} - {2} = {3}
376      */
377     DEBUG_GRAPH_RESPONSE_DETAIL,
378
379     /**
380      * Application {0} request {1} was supplied a property '{2}' with the value '{3}' that does not meet the required
381      * form(s):
382      */
383     INVALID_REQUIRED_PROPERTY,
384
385     /**
386      * Server {0} (id {1}) failed to migrate during {2} phase, reason {3}
387      */
388     MIGRATE_SERVER_FAILED,
389
390     /**
391      * Server {0} (id {1}) failed to evacuate, reason {2}
392      */
393     EVACUATE_SERVER_FAILED,
394
395     /**
396      * APP-C instance is too busy
397      */
398     APPC_TOO_BUSY,
399
400     /**
401      * Concurrent access to server "{0}"
402      */
403     VF_SERVER_BUSY,
404
405     /**
406      * Server "{0}" does not support command "{1}" in the current state "{2}"
407      */
408     VF_ILLEGAL_COMMAND,
409
410     /**
411      * Server "{0}" cannot handle command "{1}" because of its doubtful state
412      */
413     VF_UNDEFINED_STATE,
414
415     /**
416      * No resource found with ID "{0}" in A&AI system
417      */
418     APPC_NO_RESOURCE_FOUND,
419
420     /**
421      * The request "{0}" for server "{1}" has exceeded its TTL limit of "{3}" seconds
422      */
423     APPC_EXPIRED_REQUEST,
424
425     /**
426      * Workflow for vnfType = "{0}" and command = "{1}" not found.
427      */
428     APPC_WORKFLOW_NOT_FOUND,
429
430     /**
431      * Null vnfId and command provided
432      */
433     APPC_INVALID_INPUT,
434
435     /**
436      * Operation '{0}' for VNF type '{1}' from Source '{2}' with RequestID '{3}' was started at '{4}' and ended at '{5}'
437      * with status code '{6}'
438      */
439     APPC_AUDIT_MSG,
440
441     /**
442      * APP-C is unable to communicate with A&AI
443      */
444     AAI_CONNECTION_FAILED,
445
446     /**
447      * APP-C is unable to update COMPONENT_ID {0} to {1} for reason {2}
448      */
449     AAI_UPDATE_FAILED,
450
451     /**
452      * APP-C is unable to retrieve VF/VFC {0} data for Transaction ID{1}as a result of A&AI communication failure or its
453      * internal error.
454      */
455     AAI_GET_DATA_FAILED,
456
457     /**
458      * A&AI at identity {0} using VNF_ID {1} failed, reason={2}, retrying in {3} seconds, attempt {4} of {5}
459      */
460     AAI_CONNECTION_FAILED_RETRY,
461
462     /**
463      * APP-C is unable to delete COMPONENT_ID {0} for reason {1}
464      */
465     AAI_DELETE_FAILED,
466
467     /**
468      * VNF {0} is configured
469      */
470     VNF_CONFIGURED,
471
472     /**
473      * VNF {0} is being configured
474      */
475     VNF_CONFIGURATION_STARTED,
476
477     /**
478      * VNF {0} configuration failed for reason {1}
479      */
480     VNF_CONFIGURATION_FAILED,
481
482     /**
483      * VNF {0} is being tested
484      */
485     VNF_TEST_STARTED,
486
487     /**
488      * VNF {0} was tested
489      */
490     VNF_TESTED,
491
492     /**
493      * VNF {0} test failed for reason {1}
494      */
495     VNF_TEST_FAILED,
496
497     /**
498      * Server {0} (id {1}) failed to stop during {2} phase, reason {3}
499      */
500     STOP_SERVER_FAILED,
501
502     /**
503      * Server {0} (id {1}) failed to terminate during {2} phase, reason {3}
504      */
505     TERMINATE_SERVER_FAILED,
506
507     /**
508      * {0} IAAS Adapter terminate server requested
509      */
510     TERMINATING_SERVER,
511
512     /**
513      * Server {0} is being terminated...
514      */
515     TERMINATE_SERVER,
516
517     /**
518      * Migrate {0} finished with status {1}. Start Time: {2}. End Time: {3}. Request ID: {4}. Reason:{5}...
519      */
520     MIGRATE_COMPLETE,
521
522     /**
523      * Restart {0} finished with status {1}. Start Time: {2}. End Time: {3}. Request ID: {4}. Reason:{5}...
524      */
525     RESTART_COMPLETE,
526
527     /**
528      * Rebuild {0} finished with status {1}. Start Time: {2}. End Time: {3}. Request ID: {4}. Reason:{5}...
529      */
530     REBUILD_COMPLETE,
531
532     /**
533      * Located stack '{0}' on tenant '{1}' and in state '{2}'
534      */
535     STACK_FOUND,
536
537     /**
538      * {0} IAAS Adapter terminate stack requested
539      */
540
541     TERMINATING_STACK,
542
543     /**
544      * stack {0} is being terminated...
545      */
546     TERMINATE_STACK,
547     /**
548      * No stack found in provider with self-link URL [{0}]
549      */
550
551     STACK_NOT_FOUND,
552
553     /**
554      * Exception {0} was caught attempting {1} of stack [{2}] on tenant [{3}]
555      */
556     STACK_OPERATION_EXCEPTION,
557
558     /**
559      * Stack {0} (id {1}) failed to terminate during {2} phase, reason {3}
560      */
561
562     TERMINATE_STACK_FAILED,
563
564     /**
565      * Exception {0} was caught attempting to close provider context for {1}.
566      */
567
568     CLOSE_CONTEXT_FAILED,
569
570     /**
571      * Stack {0} is being snapshoted...
572      */
573     SNAPSHOTING_STACK,
574
575     /**
576      * Stack {0} snapshoted, snapshot ID = [{1}].
577      */
578     STACK_SNAPSHOTED,
579
580     /**
581      * Stack {0} is being restored to snapshot {1}...
582      */
583     RESTORING_STACK,
584
585     /**
586      * Stack {0} is restored to snapshot {1}.
587      */
588     STACK_RESTORED,
589
590     /**
591      * Parameter {0} is missing in svc request of {1}.
592      */
593     MISSING_PARAMETER_IN_REQUEST,
594
595     /**
596      * Cannot establish connection to server {0} port {1} with user {2}.
597      */
598     CANNOT_ESTABLISH_CONNECTION,
599
600     /**
601      * Operation '{0}' for VNF type '{1}' from Source '{2}' with RequestID '{3}' on '{4}' with action '{5}'
602      * ended in {6}ms with result '{7}'
603      */
604     APPC_METRIC_MSG;
605
606     /**
607      * Static initializer to ensure the resource bundles for this class are loaded...
608      */
609     static {
610         EELFResourceManager.loadMessageBundle("org/openecomp/appc/i18n/MessageResources");
611     }
612 }