blob: 9ab93d81fedf1f5bef0c3a3aa59a7f0babc472dc [file] [log] [blame]
Niraj Dubeya8287192021-03-23 19:54:17 +05301/*
2 * Copyright 2021-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.bgpmonitoring;
18
19/**
20 * Enum to Provide the Different types of BMP stats.
21 */
22public enum StatsType {
23
24 PREFIXES_REJECTED(0),
25
26 DUPLICATE_PREFIX(1),
27
28 DUPLICATE_WITHDRAW(2),
29
30 CLUSTER_LIST(3),
31
32 AS_PATH(4),
33
34 ORIGINATOR_ID(5),
35
36 AS_CONFED(6),
37
38 ADJ_RIB_IN(7),
39
40 LOC_RIB(8),
41
42 ADJ_RIB_IN_AFI_SAFI(9),
43
44 LOC_RIB_AFI_SAFI(10),
45
46 UPDATES_SUBJECTED_WITHDRAW(11),
47
48 PREFIXES_SUBJECTED_WITHDRAW(12),
49
50 DUPLICATE_UPDATE_MESSAGES(13),
51
52 JNX_ADJ_RIB_IN(17);
53
54
55 private final int value;
56
57 /**
58 * Assign value with the value val as the types of BMP stats.
59 *
60 * @param val type of BMP stats
61 */
62 StatsType(int val) {
63 value = val;
64 }
65
66 /**
67 * Returns value as type of BMP stats.
68 *
69 * @return value type of BMP stats
70 */
71 public int getType() {
72 return value;
73 }
74}