blob: 6bdb702ba5d2fe34c833b58e6417e50c9fb63295 [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;
31
32 public CordMcastStatistics(IpAddress groupAddress, String sourceAddresss, VlanId vlanId) {
33 this.vlanId = vlanId;
34 this.sourceAddress = sourceAddresss;
35 this.groupAddress = groupAddress;
36 }
37
38 public IpAddress getGroupAddress() {
39 return groupAddress;
40 }
41
42 public void setGroupAddress(IpAddress groupAddress) {
43 this.groupAddress = groupAddress;
44 }
45
46 public String getSourceAddress() {
47 return sourceAddress;
48 }
49
50 public void setSourceAddress(String sourceAddress) {
51 this.sourceAddress = sourceAddress;
52 }
53
54 public VlanId getVlanId() {
55 return vlanId;
56 }
57
58 public void setVlanId(VlanId vlanId) {
59 this.vlanId = vlanId;
60 }
61}