blob: a1ce334278f16243d7d4050042ce0087b205517f [file] [log] [blame]
Srikanth Vavilapallib7258512014-09-29 13:24:11 -07001package net.floodlightcontroller.core.web;
2
Fahad Naeem Khanf52d92e2014-11-04 16:22:10 -08003import net.floodlightcontroller.core.IOFSwitch;
Srikanth Vavilapallib7258512014-09-29 13:24:11 -07004import net.floodlightcontroller.core.web.serializers.OFPortStatsEntrySerializer;
5
6import org.codehaus.jackson.map.annotate.JsonSerialize;
7import org.projectfloodlight.openflow.protocol.OFPortStatsEntry;
8
9@JsonSerialize(using = OFPortStatsEntrySerializer.class)
10public class OFPortStatsEntryMod {
Srikanth Vavilapallif25c7b02014-10-01 14:30:43 -070011 private OFPortStatsEntry portStatsEntry = null;
Fahad Naeem Khanf52d92e2014-11-04 16:22:10 -080012 private IOFSwitch sw= null;
Srikanth Vavilapallib7258512014-09-29 13:24:11 -070013
Srikanth Vavilapallif25c7b02014-10-01 14:30:43 -070014 public OFPortStatsEntryMod() {
15 }
Srikanth Vavilapallib7258512014-09-29 13:24:11 -070016
Fahad Naeem Khanf52d92e2014-11-04 16:22:10 -080017 public OFPortStatsEntryMod(OFPortStatsEntry portStatsEntry, IOFSwitch switch1) {
Srikanth Vavilapallif25c7b02014-10-01 14:30:43 -070018 this.portStatsEntry = portStatsEntry;
Fahad Naeem Khanf52d92e2014-11-04 16:22:10 -080019 this.sw = switch1;
Srikanth Vavilapallif25c7b02014-10-01 14:30:43 -070020 }
Srikanth Vavilapallib7258512014-09-29 13:24:11 -070021
Srikanth Vavilapallif25c7b02014-10-01 14:30:43 -070022 public OFPortStatsEntry getPortStatsEntry() {
23 return portStatsEntry;
24 }
Fahad Naeem Khanf52d92e2014-11-04 16:22:10 -080025
26 public IOFSwitch getSwitch(){
27 return this.sw;
28 }
Srikanth Vavilapallib7258512014-09-29 13:24:11 -070029}