Srikanth Vavilapalli | b725851 | 2014-09-29 13:24:11 -0700 | [diff] [blame] | 1 | package net.floodlightcontroller.core.web; |
| 2 | |
Fahad Naeem Khan | f52d92e | 2014-11-04 16:22:10 -0800 | [diff] [blame^] | 3 | import net.floodlightcontroller.core.IOFSwitch; |
Srikanth Vavilapalli | b725851 | 2014-09-29 13:24:11 -0700 | [diff] [blame] | 4 | import net.floodlightcontroller.core.web.serializers.OFPortStatsEntrySerializer; |
| 5 | |
| 6 | import org.codehaus.jackson.map.annotate.JsonSerialize; |
| 7 | import org.projectfloodlight.openflow.protocol.OFPortStatsEntry; |
| 8 | |
| 9 | @JsonSerialize(using = OFPortStatsEntrySerializer.class) |
| 10 | public class OFPortStatsEntryMod { |
Srikanth Vavilapalli | f25c7b0 | 2014-10-01 14:30:43 -0700 | [diff] [blame] | 11 | private OFPortStatsEntry portStatsEntry = null; |
Fahad Naeem Khan | f52d92e | 2014-11-04 16:22:10 -0800 | [diff] [blame^] | 12 | private IOFSwitch sw= null; |
Srikanth Vavilapalli | b725851 | 2014-09-29 13:24:11 -0700 | [diff] [blame] | 13 | |
Srikanth Vavilapalli | f25c7b0 | 2014-10-01 14:30:43 -0700 | [diff] [blame] | 14 | public OFPortStatsEntryMod() { |
| 15 | } |
Srikanth Vavilapalli | b725851 | 2014-09-29 13:24:11 -0700 | [diff] [blame] | 16 | |
Fahad Naeem Khan | f52d92e | 2014-11-04 16:22:10 -0800 | [diff] [blame^] | 17 | public OFPortStatsEntryMod(OFPortStatsEntry portStatsEntry, IOFSwitch switch1) { |
Srikanth Vavilapalli | f25c7b0 | 2014-10-01 14:30:43 -0700 | [diff] [blame] | 18 | this.portStatsEntry = portStatsEntry; |
Fahad Naeem Khan | f52d92e | 2014-11-04 16:22:10 -0800 | [diff] [blame^] | 19 | this.sw = switch1; |
Srikanth Vavilapalli | f25c7b0 | 2014-10-01 14:30:43 -0700 | [diff] [blame] | 20 | } |
Srikanth Vavilapalli | b725851 | 2014-09-29 13:24:11 -0700 | [diff] [blame] | 21 | |
Srikanth Vavilapalli | f25c7b0 | 2014-10-01 14:30:43 -0700 | [diff] [blame] | 22 | public OFPortStatsEntry getPortStatsEntry() { |
| 23 | return portStatsEntry; |
| 24 | } |
Fahad Naeem Khan | f52d92e | 2014-11-04 16:22:10 -0800 | [diff] [blame^] | 25 | |
| 26 | public IOFSwitch getSwitch(){ |
| 27 | return this.sw; |
| 28 | } |
Srikanth Vavilapalli | b725851 | 2014-09-29 13:24:11 -0700 | [diff] [blame] | 29 | } |