blob: 10c05af96b0e1d4074713218f9ffbd857763d6e7 [file] [log] [blame]
Arjun E Kabf9e6e2020-03-02 10:15:21 +00001/*
2 * Copyright 2018-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 */
16package org.opencord.cordmcast;
17
18import org.onlab.packet.IpAddress;
19import org.onlab.packet.VlanId;
20
21/**
22 * POJO Class to store group data from mcast event.
23 */
24public class CordMcastStatistics {
25 //Group Address
26 private IpAddress groupAddress;
27 //Set of source address in a group.
28 private String sourceAddress;
29 //vlan id used in mcast event.
30 private VlanId vlanId;
Esin Karamane4890012020-04-19 11:58:54 +000031 private VlanId innerVlanId;
Arjun E Kabf9e6e2020-03-02 10:15:21 +000032
Esin Karamane4890012020-04-19 11:58:54 +000033 public CordMcastStatistics(IpAddress groupAddress, String sourceAddresss, VlanId vlanId, VlanId innerVlanId) {
Arjun E Kabf9e6e2020-03-02 10:15:21 +000034 this.vlanId = vlanId;
Esin Karamane4890012020-04-19 11:58:54 +000035 this.innerVlanId = innerVlanId;
Arjun E Kabf9e6e2020-03-02 10:15:21 +000036 this.sourceAddress = sourceAddresss;
37 this.groupAddress = groupAddress;
38 }
39
40 public IpAddress getGroupAddress() {
41 return groupAddress;
42 }
43
44 public void setGroupAddress(IpAddress groupAddress) {
45 this.groupAddress = groupAddress;
46 }
47
48 public String getSourceAddress() {
49 return sourceAddress;
50 }
51
52 public void setSourceAddress(String sourceAddress) {
53 this.sourceAddress = sourceAddress;
54 }
55
56 public VlanId getVlanId() {
57 return vlanId;
58 }
59
60 public void setVlanId(VlanId vlanId) {
61 this.vlanId = vlanId;
62 }
Esin Karamane4890012020-04-19 11:58:54 +000063
64 public VlanId getInnerVlanId() {
65 return innerVlanId;
66 }
67
68 public void setInnerVlanId(VlanId innerVlanId) {
69 this.innerVlanId = innerVlanId;
70 }
Arjun E Kabf9e6e2020-03-02 10:15:21 +000071}