aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/mass-pnf-sim/pnf-sim-lightweight/src/main/java/org/onap/pnfsimulator/message/MessageConstants.java
blob: 95e8f69f31936cf512c0cc14c31912e3799477a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
 * ============LICENSE_START=======================================================
 * PNF-REGISTRATION-HANDLER
 * ================================================================================
 * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
 * ================================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END=========================================================
 */

package org.onap.pnfsimulator.message;

public final class MessageConstants {

    public static final String SIMULATOR_PARAMS = "simulatorParams";
    public static final String COMMON_EVENT_HEADER_PARAMS = "commonEventHeaderParams";
    public static final String PNF_REGISTRATION_PARAMS = "pnfRegistrationParams";
    public static final String NOTIFICATION_PARAMS = "notificationParams";

    static final String COMMON_EVENT_HEADER = "commonEventHeader";
    static final String PNF_REGISTRATION_FIELDS = "pnfRegistrationFields";
    static final String NOTIFICATION_FIELDS = "notificationFields";
    static final String EVENT = "event";

    //=============================================================================================
    //Simulation parameters
    public static final String VES_SERVER_URL = "vesServerUrl";
    public static final String TEST_DURATION = "testDuration";
    public static final String MESSAGE_INTERVAL = "messageInterval";

    //=============================================================================================
    //commonEventHeader
    //parameters
    static final String DOMAIN = "domain";
    static final String EVENT_ID = "eventId";
    static final String EVENT_TYPE = "eventType";
    static final String LAST_EPOCH_MICROSEC = "lastEpochMicrosec";
    static final String PRIORITY = "priority";
    static final String SEQUENCE = "sequence";
    static final String START_EPOCH_MICROSEC = "startEpochMicrosec";
    static final String INTERNAL_HEADER_FIELDS = "internalHeaderFields";
    static final String VERSION = "version";
    static final String VES_EVENT_LISTENER_VERSION = "vesEventListenerVersion";
    //constant values
    static final int SEQUENCE_NUMBER = 0;
    static final String VERSION_NUMBER = "4.0.1";
    static final String VES_EVENT_LISTENER_VERSION_NUMBER = "7.0.1";
    static final String PRIORITY_NORMAL = "Normal";

    //=============================================================================================
    //PNF registration
    //parameters
    static final String PNF_REGISTRATION_FIELDS_VERSION = "pnfRegistrationFieldsVersion";
    static final String PNF_LAST_SERVICE_DATE = "lastServiceDate";
    static final String PNF_MANUFACTURE_DATE = "manufactureDate";
    //constant values
    static final String PNF_REGISTRATION_FIELDS_VERSION_VALUE = "2.0";
    static final String DOMAIN_PNF_REGISTRATION ="pnfRegistration";

    //=============================================================================================
    // Notifications
    //parameters
    static final String NOTIFICATION_FIELDS_VERSION = "notificationFieldsVersion";
    //constant values
    static final String NOTIFICATION_FIELDS_VERSION_VALUE = "2.0";
    static final String DOMAIN_NOTIFICATION ="notification";

    private MessageConstants() {
    }

}