95e8f69f31936cf512c0cc14c31912e3799477a6
[integration.git] /
1 /*
2  * ============LICENSE_START=======================================================
3  * PNF-REGISTRATION-HANDLER
4  * ================================================================================
5  * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.pnfsimulator.message;
22
23 public final class MessageConstants {
24
25     public static final String SIMULATOR_PARAMS = "simulatorParams";
26     public static final String COMMON_EVENT_HEADER_PARAMS = "commonEventHeaderParams";
27     public static final String PNF_REGISTRATION_PARAMS = "pnfRegistrationParams";
28     public static final String NOTIFICATION_PARAMS = "notificationParams";
29
30     static final String COMMON_EVENT_HEADER = "commonEventHeader";
31     static final String PNF_REGISTRATION_FIELDS = "pnfRegistrationFields";
32     static final String NOTIFICATION_FIELDS = "notificationFields";
33     static final String EVENT = "event";
34
35     //=============================================================================================
36     //Simulation parameters
37     public static final String VES_SERVER_URL = "vesServerUrl";
38     public static final String TEST_DURATION = "testDuration";
39     public static final String MESSAGE_INTERVAL = "messageInterval";
40
41     //=============================================================================================
42     //commonEventHeader
43     //parameters
44     static final String DOMAIN = "domain";
45     static final String EVENT_ID = "eventId";
46     static final String EVENT_TYPE = "eventType";
47     static final String LAST_EPOCH_MICROSEC = "lastEpochMicrosec";
48     static final String PRIORITY = "priority";
49     static final String SEQUENCE = "sequence";
50     static final String START_EPOCH_MICROSEC = "startEpochMicrosec";
51     static final String INTERNAL_HEADER_FIELDS = "internalHeaderFields";
52     static final String VERSION = "version";
53     static final String VES_EVENT_LISTENER_VERSION = "vesEventListenerVersion";
54     //constant values
55     static final int SEQUENCE_NUMBER = 0;
56     static final String VERSION_NUMBER = "4.0.1";
57     static final String VES_EVENT_LISTENER_VERSION_NUMBER = "7.0.1";
58     static final String PRIORITY_NORMAL = "Normal";
59
60     //=============================================================================================
61     //PNF registration
62     //parameters
63     static final String PNF_REGISTRATION_FIELDS_VERSION = "pnfRegistrationFieldsVersion";
64     static final String PNF_LAST_SERVICE_DATE = "lastServiceDate";
65     static final String PNF_MANUFACTURE_DATE = "manufactureDate";
66     //constant values
67     static final String PNF_REGISTRATION_FIELDS_VERSION_VALUE = "2.0";
68     static final String DOMAIN_PNF_REGISTRATION ="pnfRegistration";
69
70     //=============================================================================================
71     // Notifications
72     //parameters
73     static final String NOTIFICATION_FIELDS_VERSION = "notificationFieldsVersion";
74     //constant values
75     static final String NOTIFICATION_FIELDS_VERSION_VALUE = "2.0";
76     static final String DOMAIN_NOTIFICATION ="notification";
77
78     private MessageConstants() {
79     }
80
81 }