Applying license changes to all files
[appc.git] / appc-common / src / main / java / org / openecomp / appc / i18n / Msg.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.openecomp.appc.i18n;
26
27 import com.att.eelf.i18n.EELFResolvableErrorEnum;
28 import com.att.eelf.i18n.EELFResourceManager;
29
30 /**
31  * The messages issued by APPC components.
32  * <p>
33  * This message definition is shared by all APPC components.
34  * </p>
35  *
36  */
37 @SuppressWarnings("nls")
38 public enum Msg implements EELFResolvableErrorEnum {
39
40     /**
41      * ECOMP Application Controller (APP-C) initialization started at {0}
42      */
43     CONFIGURATION_STARTED,
44
45     /**
46      * Prior configuration has been cleared
47      */
48     CONFIGURATION_CLEARED,
49
50     /**
51      * Loading configuration properties from file "{0}"
52      */
53     LOADING_CONFIGURATION_OVERRIDES,
54
55     /**
56      * Configuration defaults loaded from resource file "{0}"
57      */
58     LOADING_DEFAULTS,
59
60     /**
61      * No default property resource "{0}" was found!
62      */
63     NO_DEFAULTS_FOUND,
64
65     /**
66      * Property "{0}" ="{1}"
67      */
68     PROPERTY_VALUE,
69
70     /**
71      * No configuration file named [{0}] was found on the configuration search path [{1}]. \ If a configuration file
72      * should have been loaded, check the file name and search path specified. CDP will proceed using the \ default
73      * values and command-line overrides (if any).
74      */
75     NO_OVERRIDE_PROPERTY_FILE_LOADED,
76
77     /**
78      * Searching path "{0}" for configuration settings "{1}"
79      */
80     SEARCHING_CONFIGURATION_OVERRIDES,
81
82     /**
83      * Loading application-specific override properties
84      */
85     LOADING_APPLICATION_OVERRIDES,
86
87     /**
88      * No application-specific override properties were provided!
89      */
90     NO_APPLICATION_OVERRIDES,
91
92     /**
93      * Merging system properties into configuration
94      */
95     MERGING_SYSTEM_PROPERTIES,
96
97     /**
98      * Setting property "{0}={1}" in system properties
99      */
100     SETTING_SPECIAL_PROPERTY,
101
102     /**
103      * Loading resource bundle "{0}"
104      */
105     LOADING_RESOURCE_BUNDLE,
106
107     /**
108      * Logging has already been initialized, check the container logging definitions to ensure they represent your
109      * desired logging configuration.
110      */
111     LOGGING_ALREADY_INITIALIZED,
112
113     /**
114      * Searching path "{0}" for log configuration file "{1}"
115      */
116     SEARCHING_LOG_CONFIGURATION,
117
118     /**
119      * Loading default logging configuration from system resource file "{0}"
120      */
121     LOADING_DEFAULT_LOG_CONFIGURATION,
122
123     /**
124      * No log configuration could be found or defaulted!
125      */
126     NO_LOG_CONFIGURATION,
127
128     /**
129      * An unsupported logging framework is bound to SLF4J. Only Logback or Log4J are supported.
130      */
131     UNSUPPORTED_LOGGING_FRAMEWORK,
132
133     /**
134      * Loading logging configuration from file "{0}"
135      */
136     LOADING_LOG_CONFIGURATION,
137
138     /**
139      * Provider {0} cannot be found or cannot be resolved to a valid provider.
140      */
141     UNKNOWN_PROVIDER,
142
143     /**
144      * Server name "{0}" with id "{1}" in tenant "{2}" and region "{3}" did not change state within the alloted time.
145      * Current state is "{4}" and the desired state(s) are "{5}"
146      */
147     SERVER_STATE_CHANGE_TIMEOUT,
148
149     /**
150      * Server name "{0}" with id "{1}" in tenant "{2}" has a state of deleted and cannot be {3}.
151      */
152     SERVER_DELETED,
153
154     /**
155      * Server name "{0}" with id "{1}" in tenant "{2}" has an unknown state of "{3}".
156      */
157     UNKNOWN_SERVER_STATE,
158
159     /**
160      * {0} component {1} is being initialized...
161      */
162     COMPONENT_INITIALIZING,
163
164     /**
165      * {0} component {1} has completed initialization
166      */
167     COMPONENT_INITIALIZED,
168
169     /**
170      * {0} component {1} is terminating...
171      */
172     COMPONENT_TERMINATING,
173
174     /**
175      * {0} component {1} has terminated
176      */
177     COMPONENT_TERMINATED,
178
179     /**
180      * Operation {0} is not supported or implemented at this time.
181      */
182     IAAS_ADAPTER_UNSUPPORTED_OPERATION,
183
184     /**
185      * Operation {0} called. Input document:\n{1}
186      */
187     IAAS_ADAPTER_RPC_CALLED,
188
189     /**
190      * Unable to locate the {0} service in the OSGi container
191      */
192     NO_SERVICE_FOUND,
193
194     /**
195      * Dump of context parameters for module {0}, RPC {1}, and version {2}
196      */
197     CONTEXT_PARAMETERS_DISPLAY,
198
199     /**
200      * Response properties from execution of module '{0}', RPC '{1}', and version '{2}' are:
201      */
202     RESPONSE_PARAMETERS_DISPLAY,
203
204     /**
205      * Service {0}:{1} was provided a null (empty) or invalid argument, '{2}' = '{3}'
206      */
207     NULL_OR_INVALID_ARGUMENT,
208
209     /**
210      * Service {0}:{1} is processing service '{2}' with request id '{3}'
211      */
212     PROCESSING_REQUEST,
213
214     /**
215      * Service {0}:{1} received request for service '{2}' but that service is invalid or unknown.
216      */
217     INVALID_SERVICE_REQUEST,
218
219     /**
220      * {0} registering service {1} using class {2}
221      */
222     REGISTERING_SERVICE,
223
224     /**
225      * {0} unregistering service {1}
226      */
227     UNREGISTERING_SERVICE,
228
229     /**
230      * {0} IAAS Adapter initializing provider {1} as {2}
231      */
232     LOADING_PROVIDER_DEFINITIONS,
233
234     /**
235      * {0} IAAS Adapter restart of server requested
236      */
237     RESTARTING_SERVER,
238
239     /**
240      * {0} IAAS Adapter rebuild of server requested
241      */
242     REBUILDING_SERVER,
243
244     /**
245      * {0} IAAS Adapter migrate of server requested
246      */
247     MIGRATING_SERVER,
248
249     /**
250      * {0} IAAS Adapter evacuate of server requested
251      */
252     EVACUATING_SERVER,
253
254     /**
255      * {0} IAAS Adapter create snapshot of server requested
256      */
257     SNAPSHOTING_SERVER,
258
259     /**
260      * {0} IAAS Adapter look for server requested
261      */
262     LOOKING_SERVER_UP,
263
264     /**
265      * {0} IAAS Adapter cannot perform requested service, VM url '{1}' is invalid
266      */
267     INVALID_SELF_LINK_URL,
268
269     /**
270      * Located server '{0}' on tenant '{1}' and in state '{2}'
271      */
272     SERVER_FOUND,
273
274     /**
275      * No server found in provider with self-link URL [{0}]
276      */
277     SERVER_NOT_FOUND,
278
279     /**
280      * Exception {0} was caught attempting {1} of server [{2}] on tenant [{3}]
281      */
282     SERVER_OPERATION_EXCEPTION,
283
284     /**
285      * One or more properties for [{0}] are missing, null, or empty. They are:
286      */
287     MISSING_REQUIRED_PROPERTIES,
288
289     /**
290      * The server [{0}] (id={1}) in tenant {2} is in error state, {3} is not allowed
291      */
292     SERVER_ERROR_STATE,
293
294     /**
295      * The image {0} could not be located for {1}
296      */
297     IMAGE_NOT_FOUND,
298
299     /**
300      * Time out waiting for {0} with name {1} (and id {2}) to reach one of {3} states, current state is {4}
301      */
302     STATE_CHANGE_TIMEOUT,
303
304     /**
305      * Exception {0} waiting for {1} with name {2} (and id {3}) to reach one of {4} states, current state is {5}
306      * cause={6}
307      */
308     STATE_CHANGE_EXCEPTION,
309
310     /**
311      * Server {0} is being stopped...
312      */
313     STOP_SERVER,
314
315     /**
316      * Server {0} is being started...
317      */
318     START_SERVER,
319
320     /**
321      * Server {0} is being resumed...
322      */
323     RESUME_SERVER,
324
325     /**
326      * Server {0} is being unpaused...
327      */
328     UNPAUSE_SERVER,
329
330     /**
331      * Server {0} is being rebuilt...
332      */
333     REBUILD_SERVER,
334
335     /**
336      * Connection to provider {0} at identity {1} using tenant name {2} (id {3}) failed, reason={4}, retrying in {5}
337      * seconds, attempt {6} of {7}.
338      */
339     CONNECTION_FAILED_RETRY,
340
341     /**
342      * Connection to provider {0} at service {1} failed after all retry attempts.
343      */
344     CONNECTION_FAILED,
345
346     /**
347      * {0} IAAS Adapter stop server requested
348      */
349     STOPPING_SERVER,
350
351     /**
352      * {0} IAAS Adapter start server requested
353      */
354     STARTING_SERVER,
355
356     /**
357      * Server {0} (id {1}) failed to rebuild, reason {2}
358      */
359     REBUILD_SERVER_FAILED,
360
361     /**
362      * Application {0} graph {1} response did not set the {2} parameter. This parameter is required for synchronization
363      * with the controller. Absence of this parameter is assumed to be a failure. Please correct the DG.
364      */
365     PARAMETER_IS_MISSING,
366
367     /**
368      * Application {0} graph {1} did not set parameter {2} to a valid numeric value ({3}). Please correct the DG.
369      */
370     PARAMETER_NOT_NUMERIC,
371
372     /**
373      * Application {0} graph {1} completed with failure: error code = {2}, message = {3}
374      */
375     DG_FAILED_RESPONSE,
376
377     /**
378      * Application {0} received exception {1} attempting to call graph {2}, exception message = {3}
379      */
380     EXCEPTION_CALLING_DG,
381
382     /**
383      * Application {0} was unable to locate graph {1}
384      */
385     GRAPH_NOT_FOUND,
386
387     /**
388      * Application {0} graph {1} responded with {3} properties
389      */
390     DEBUG_GRAPH_RESPONSE_HEADER,
391
392     /**
393      * {0}:{1} - {2} = {3}
394      */
395     DEBUG_GRAPH_RESPONSE_DETAIL,
396
397     /**
398      * Application {0} request {1} was supplied a property '{2}' with the value '{3}' that does not meet the required
399      * form(s):
400      */
401     INVALID_REQUIRED_PROPERTY,
402
403     /**
404      * Server {0} (id {1}) failed to migrate during {2} phase, reason {3}
405      */
406     MIGRATE_SERVER_FAILED,
407
408     /**
409      * Server {0} (id {1}) failed to evacuate, reason {2}
410      */
411     EVACUATE_SERVER_FAILED,
412     
413     /**
414      * Server {0} evacuate from host {1} to host {2} failed during the rebuild on host {2}, reason {3}
415      */
416     EVACUATE_SERVER_REBUILD_FAILED,
417
418     /**
419      * APP-C instance is too busy
420      */
421     APPC_TOO_BUSY,
422
423     /**
424      * Concurrent access to server "{0}"
425      */
426     VF_SERVER_BUSY,
427
428     /**
429      * Server "{0}" does not support command "{1}" in the current state "{2}"
430      */
431     VF_ILLEGAL_COMMAND,
432
433     /**
434      * Server "{0}" cannot handle command "{1}" because of its doubtful state
435      */
436     VF_UNDEFINED_STATE,
437
438     /**
439      * No resource found with ID "{0}" in A&AI system
440      */
441     APPC_NO_RESOURCE_FOUND,
442
443     /**
444      * The request "{0}" for server "{1}" has exceeded its TTL limit of "{3}" seconds
445      */
446     APPC_EXPIRED_REQUEST,
447
448     /**
449      * Workflow for vnfType = "{0}" and command = "{1}" not found.
450      */
451     APPC_WORKFLOW_NOT_FOUND,
452
453     /**
454      * Null vnfId and command provided
455      */
456     APPC_INVALID_INPUT,
457
458     /**
459      * Operation '{0}' for VNF type '{1}' from Source '{2}' with RequestID '{3}' was started at '{4}' and ended at '{5}'
460      * with status code '{6}'
461      */
462     APPC_AUDIT_MSG,
463
464     /**
465      * APP-C is unable to communicate with A&AI
466      */
467     AAI_CONNECTION_FAILED,
468
469     /**
470      * APP-C is unable to update COMPONENT_ID {0} to {1} for reason {2}
471      */
472     AAI_UPDATE_FAILED,
473
474     /**
475      * APP-C is unable to retrieve VF/VFC {0} data for Transaction ID{1}as a result of A&AI communication failure or its
476      * internal error.
477      */
478     AAI_GET_DATA_FAILED,
479
480     /**
481      * A&AI at identity {0} using VNF_ID {1} failed, reason={2}, retrying in {3} seconds, attempt {4} of {5}
482      */
483     AAI_CONNECTION_FAILED_RETRY,
484
485     /**
486      * APP-C is unable to delete COMPONENT_ID {0} for reason {1}
487      */
488     AAI_DELETE_FAILED,
489
490     /**
491      * APP-C is unable to query AAI for VNF_ID {0}
492      */
493     AAI_QUERY_FAILED,
494
495     /**
496      * VNF {0} is configured
497      */
498     VNF_CONFIGURED,
499
500     /**
501      * VNF {0} is being configured
502      */
503     VNF_CONFIGURATION_STARTED,
504
505     /**
506      * VNF {0} configuration failed for reason {1}
507      */
508     VNF_CONFIGURATION_FAILED,
509
510     /**
511      * VNF {0} is being tested
512      */
513     VNF_TEST_STARTED,
514
515     /**
516      * VNF {0} was tested
517      */
518     VNF_TESTED,
519
520     /**
521      * VNF {0} test failed for reason {1}
522      */
523     VNF_TEST_FAILED,
524
525     /**
526      * VNF {0} test failed for reason {1}
527      */
528     VNF_NOT_FOUND,
529
530     /**
531      * VNF {0} Healthcheck operation failed for reason {1}
532      */
533     VNF_HEALTHCECK_FAILED,
534
535     /**
536      * VM {0} Healthcheck operation failed for reason {1}
537      */
538     VM_HEALTHCECK_FAILED,
539
540     /**
541      * Server {0} (id {1}) failed to stop during {2} phase, reason {3}
542      */
543     STOP_SERVER_FAILED,
544
545     /**
546      * Server {0} (id {1}) failed to terminate during {2} phase, reason {3}
547      */
548     TERMINATE_SERVER_FAILED,
549
550     /**
551      * {0} IAAS Adapter terminate server requested
552      */
553     TERMINATING_SERVER,
554
555     /**
556      * Server {0} is being terminated...
557      */
558     TERMINATE_SERVER,
559
560     /**
561      * Migrate {0} finished with status {1}. Start Time: {2}. End Time: {3}. Request ID: {4}. Reason:{5}...
562      */
563     MIGRATE_COMPLETE,
564
565     /**
566      * Restart {0} finished with status {1}. Start Time: {2}. End Time: {3}. Request ID: {4}. Reason:{5}...
567      */
568     RESTART_COMPLETE,
569
570     /**
571      * Rebuild {0} finished with status {1}. Start Time: {2}. End Time: {3}. Request ID: {4}. Reason:{5}...
572      */
573     REBUILD_COMPLETE,
574
575     /**
576      * Located stack '{0}' on tenant '{1}' and in state '{2}'
577      */
578     STACK_FOUND,
579
580     /**
581      * {0} IAAS Adapter terminate stack requested
582      */
583
584     TERMINATING_STACK,
585
586     /**
587      * stack {0} is being terminated...
588      */
589     TERMINATE_STACK,
590     /**
591      * No stack found in provider with self-link URL [{0}]
592      */
593
594     STACK_NOT_FOUND,
595
596     /**
597      * Exception {0} was caught attempting {1} of stack [{2}] on tenant [{3}]
598      */
599     STACK_OPERATION_EXCEPTION,
600
601     /**
602      * Stack {0} (id {1}) failed to terminate during {2} phase, reason {3}
603      */
604
605     TERMINATE_STACK_FAILED,
606
607     /**
608      * Exception {0} was caught attempting to close provider context for {1}.
609      */
610
611     CLOSE_CONTEXT_FAILED,
612
613     /**
614      * {0} IAAS Adapter snapshoting stack
615      */
616     SNAPSHOTING_STACK,
617
618     /**
619      * Stack {0} snapshoted, snapshot ID = [{1}].
620      */
621     STACK_SNAPSHOTED,
622
623     /**
624      * {0} IAAS Adapter restoring stack
625      */
626     RESTORING_STACK,
627
628     /**
629      * Stack {0} is restored to snapshot {1}.
630      */
631     STACK_RESTORED,
632
633     /**
634      * {0} IAAS Adapter checking server
635      */
636     CHECKING_SERVER,
637
638     /**
639      * Parameter {0} is missing in svc request of {1}.
640      */
641     MISSING_PARAMETER_IN_REQUEST,
642
643     /**
644      * Cannot establish connection to server {0} port {1} with user {2}.
645      */
646     CANNOT_ESTABLISH_CONNECTION,
647
648     /**
649      * Operation '{0}' for VNF type '{1}' from Source '{2}' with RequestID '{3}' on '{4}' with action '{5}'
650      * ended in {6}ms with result '{7}'
651      */
652     APPC_METRIC_MSG,
653
654     /**
655      * Parsing failied for{0}
656      */
657     INPUT_PAYLOAD_PARSING_FAILED,
658
659     /**
660      * Error occurred for due to {0}
661      */
662     APPC_EXCEPTION,
663
664     /**
665      * SSH Data Exception occurred due to {0}
666      */
667     SSH_DATA_EXCEPTION,
668
669     /**
670      * Json processing exception occurred due to {0}
671      */
672     JSON_PROCESSING_EXCEPTION,
673
674    /**
675      * Operation {0} succeed for {1}
676      */
677     SUCCESS_EVENT_MESSAGE,
678
679     /**
680      * Dependency model not found for VNF type {0} due to {1}
681      */
682     DEPENDENCY_MODEL_NOT_FOUND,
683
684     /**
685      * Invalid Dependency model for VNF Type {0} due to {1}
686      */
687     INVALID_DEPENDENCY_MODEL,
688
689     /**
690      * Failed to retrieve VNFC DG
691      */
692     FAILURE_RETRIEVE_VNFC_DG,
693
694     /**
695      * Network check for Server {0} failed for Port {1}
696      *
697      */
698     SERVER_NETWORK_ERROR,
699
700     /**
701      * Hypervisor check for Server {0} failed. Status is DOWN or UNKNOWN
702      *
703      */
704     HYPERVISOR_DOWN_ERROR,
705
706     /**
707      * Hypervisor Network check for Server {0} failed. Not reachable by APPC
708      *
709      */
710     HYPERVISOR_NETWORK_ERROR,
711
712     /**
713      * Restart application operation failed on server : {0}, reason {1}
714      */
715     APPLICATION_RESTART_FAILED,
716
717     /**
718      * Start application operation failed on server : {0}, reason {1}
719      */
720     APPLICATION_START_FAILED,
721
722     /**
723      * Start application operation failed on server : {0}, reason {1}
724      */
725     APPLICATION_STOP_FAILED,
726
727     /**
728      * Application on server {0} is being restarted...
729      */
730     RESTART_APPLICATION,
731
732     /**
733      * Application on server {0} is being started...
734      */
735     START_APPLICATION,
736
737     /**
738      * Application on server {0} is being started...
739      */
740     STOP_APPLICATION,
741
742     /**
743      * APPC LCM operations are disabled
744      */
745     LCM_OPERATIONS_DISABLED,
746
747     /**
748      * Application {0} received exception {1} while attempting to execute oam operation {2}, exception message = {3}|\
749      */
750     OAM_OPERATION_EXCEPTION,
751
752     /**
753      *   Application {0} is stopping... Waiting for  {1} LCM request to complete
754      */
755     OAM_OPERATION_STOPPING,
756
757     /**
758      * Application {0} is stopped
759      */
760     OAM_OPERATION_STOPPED,
761
762
763     /**
764      * Application {0} is started
765      */
766     OAM_OPERATION_STARTING,
767
768     /**
769      * Application {0} is started
770      */
771     OAM_OPERATION_STARTED,
772
773     ;
774     /**
775      * Static initializer to ensure the resource bundles for this class are loaded...
776      */
777     static {
778         EELFResourceManager.loadMessageBundle("org/openecomp/appc/i18n/MessageResources");
779     }
780 }