码迷,mamicode.com
首页 > 其他好文 > 详细

在floodlight控制器中统计进入packed-in数量的代码(sdn)

时间:2015-03-28 18:51:10      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:sdn   floodlight   开发   

<p class="NewStyle15"><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">在</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">floodlight</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">控制器中统计进入</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">packed</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">-</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">in</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">数量的代码:</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">package edu.wzu.steve.trafficanalyser;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import java.util.ArrayList;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import java.util.Collection;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import java.util.HashMap;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import java.util.Iterator;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import java.util.Map;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import java.util.Map.Entry;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.restlet.resource.ResourceException;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.restlet.resource.ServerResource;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.counter.CounterValue;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.counter.ICounter;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.restlet.resource.Get;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.FloodlightContext;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.IFloodlightProviderService;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.IOFMessageListener;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.IOFSwitch;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.module.FloodlightModuleContext;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.module.FloodlightModuleException;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.module.IFloodlightModule;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.module.IFloodlightService;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.counter.ICounterStoreService;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.openflow.protocol.OFMessage;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.openflow.protocol.OFType;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.slf4j.Logger;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.slf4j.LoggerFactory;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">public class TrafficAnalyser extends ServerResource implements IOFMessageListener, IFloodlightModule{</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">protected ICounterStoreService counterStore;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">protected IFloodlightProviderService floodlightProvider;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">protected static Logger logger;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public String getName() {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        // TODO Auto-generated method stub</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> return TrafficAnalyser.class.getSimpleName();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public boolean isCallbackOrderingPrereq(OFType type, String name) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        // TODO Auto-generated method stub</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        return false;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public boolean isCallbackOrderingPostreq(OFType type, String name) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        // TODO Auto-generated method stub</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        return false;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public Collection<Class<? extends IFloodlightService>> getModuleServices() {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        // TODO Auto-generated method stub</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        return null;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public Map<Class<? extends IFloodlightService>, IFloodlightService> getServiceImpls() {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        // TODO Auto-generated method stub</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        return null;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public Collection<Class<? extends IFloodlightService>> getModuleDependencies() {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        // TODO Auto-generated method stub</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> Collection<Class<? extends IFloodlightService>> l =</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        new ArrayList<Class<? extends IFloodlightService>>();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    l.add(IFloodlightProviderService.class);</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    return l;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public void init(FloodlightModuleContext context)</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            throws FloodlightModuleException {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">this.floodlightProvider = context.getServiceImpl(IFloodlightProviderService.class);</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">this.counterStore = context.getServiceImpl(ICounterStoreService.class);</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">     </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        logger = LoggerFactory.getLogger(TrafficAnalyser.class);</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public void startUp(FloodlightModuleContext context) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">floodlightProvider.addOFMessageListener(OFType.PACKET_IN, this);</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Get("json")</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public Map<String, Object> retrieve(){</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">      String counterTitle = </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            (String) getRequestAttributes().get("counterTitle");</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        Map<String, Object> model = new HashMap<String,Object>();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        CounterValue v;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        if (counterTitle.equalsIgnoreCase("all")) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            Map<String, ICounter> counters = this.counterStore.getAll();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            if (counters != null) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                Iterator<Map.Entry<String, ICounter>> it = </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    counters.entrySet().iterator();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                while (it.hasNext()) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    Entry<String, ICounter> entry = it.next();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    String counterName = entry.getKey();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    v = entry.getValue().getCounterValue();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    if (CounterValue.CounterType.LONG == v.getType()) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                        model.put(counterName, v.getLong());</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    } else if (v.getType() == CounterValue.CounterType.DOUBLE) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                        model.put(counterName, v.getDouble());</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    }   </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                }   </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            }   </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        } else {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            ICounter counter = this.counterStore.getCounter(counterTitle);</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            if (counter != null) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                v = counter.getCounterValue();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            } else {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                v = new CounterValue(CounterValue.CounterType.LONG);</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            }   </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            if (CounterValue.CounterType.LONG == v.getType()) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                model.put(counterTitle, v.getLong());</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            } else if (v.getType() == CounterValue.CounterType.DOUBLE) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                model.put(counterTitle, v.getDouble());</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            }   </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        return model;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    protected void doInit() throws ResourceException {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        super.doInit();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        counterStore = </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            (ICounterStoreService)getContext().getAttributes().</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                get(ICounterStoreService.class.getCanonicalName());</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">   </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public net.floodlightcontroller.core.IListener.Command receive(IOFSwitch sw, OFMessage msg, FloodlightContext cntx) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">         </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">   </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">System.out.println(retrieve().toString());</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">return Command.CONTINUE;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">     }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">}</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">这代码没有报错,可是,控制器只能连接到</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">ovs,</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">在</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">mininet</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">中用</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">hosts</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">去</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">pingall</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">的时候就会一下连接,一下断开,无法</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">ping</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">通。</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">于是就简化了一下代码,去掉觉得有</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">bug</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">的代码,抛出的异常是没有实例化;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">代码如下:</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">package edu.wzu.steve.trafficanalyser;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import java.util.ArrayList;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import java.util.Collection;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import java.util.HashMap;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import java.util.Iterator;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import java.util.Map;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import java.util.Map.Entry;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.restlet.resource.ResourceException;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.restlet.resource.ServerResource;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.counter.CounterValue;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.counter.ICounter;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.restlet.resource.Get;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.FloodlightContext;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.IFloodlightProviderService;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.IOFMessageListener;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.IOFSwitch;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.module.FloodlightModuleContext;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.module.FloodlightModuleException;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.module.IFloodlightModule;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.core.module.IFloodlightService;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import net.floodlightcontroller.counter.ICounterStoreService;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.openflow.protocol.OFMessage;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.openflow.protocol.OFType;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.slf4j.Logger;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">import org.slf4j.LoggerFactory;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">public class TrafficAnalyser extends ServerResource implements IOFMessageListener, IFloodlightModule{</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">protected ICounterStoreService counterStore;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">protected IFloodlightProviderService floodlightProvider;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">protected static Logger logger;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public String getName() {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        // TODO Auto-generated method stub</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> return TrafficAnalyser.class.getSimpleName();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public boolean isCallbackOrderingPrereq(OFType type, String name) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        // TODO Auto-generated method stub</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        return false;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public boolean isCallbackOrderingPostreq(OFType type, String name) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        // TODO Auto-generated method stub</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        return false;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public Collection<Class<? extends IFloodlightService>> getModuleServices() {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        // TODO Auto-generated method stub</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        return null;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public Map<Class<? extends IFloodlightService>, IFloodlightService> getServiceImpls() {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        // TODO Auto-generated method stub</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        return null;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public Collection<Class<? extends IFloodlightService>> getModuleDependencies() {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        // TODO Auto-generated method stub</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> Collection<Class<? extends IFloodlightService>> l =</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        new ArrayList<Class<? extends IFloodlightService>>();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    l.add(IFloodlightProviderService.class);</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    return l;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public void init(FloodlightModuleContext context)</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            throws FloodlightModuleException {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">this.floodlightProvider = context.getServiceImpl(IFloodlightProviderService.class);</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">this.counterStore = context.getServiceImpl(ICounterStoreService.class);</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">     </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        logger = LoggerFactory.getLogger(TrafficAnalyser.class);</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public void startUp(FloodlightModuleContext context) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">floodlightProvider.addOFMessageListener(OFType.PACKET_IN, this);</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Get("json")</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public Map<String, Object> retrieve(){</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        Map<String, Object> model = new HashMap<String,Object>();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        CounterValue v;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">     </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            Map<String, ICounter> counters = this.counterStore.getAll();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            if (counters != null) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                Iterator<Map.Entry<String, ICounter>> it = </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    counters.entrySet().iterator();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                while (it.hasNext()) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    Entry<String, ICounter> entry = it.next();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    String counterName = entry.getKey();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    v = entry.getValue().getCounterValue();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    if (CounterValue.CounterType.LONG == v.getType()) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                        model.put(counterName, v.getLong());</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    } else if (v.getType() == CounterValue.CounterType.DOUBLE) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                        model.put(counterName, v.getDouble());</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                    }   </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                }   </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            }   </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        return model;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    protected void doInit() throws ResourceException {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        super.doInit();</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        counterStore = </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">            (ICounterStoreService)getContext().getAttributes().</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">                get(ICounterStoreService.class.getCanonicalName());</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">   </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    @Override</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    public net.floodlightcontroller.core.IListener.Command receive(IOFSwitch sw, OFMessage msg, FloodlightContext cntx) {</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">         </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">   </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">System.out.println(retrieve().toString());</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">    </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">return Command.CONTINUE;</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">        </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">     }</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">}</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">用</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> sudo mn --topo single,3 --mac --switch ovsk --controller=remote,ip=10.0.2.15,port=6633</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">建立</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">hosts</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">去</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">pingall</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> <img src="http://img.blog.csdn.net/20150328171053489?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvVG9tc3Ryb25nXzM2OQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" /></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">eclipse</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">中控制台出来的信息截图如上,完整信息如下:</span><span style="font-family: 'Times New Roman'; font-size: 10.5pt; letter-spacing: 0pt; text-indent: 24pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:01.133 INFO [n.f.c.m.FloodlightModuleLoader:main] Loading default modules</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:01.846 INFO [n.f.c.i.Controller:main] Controller role set to MASTER</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:01.869 INFO [n.f.c.i.Controller:main] Flush switches on reconnect -- Disabled</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:02.968 ERROR [o.s.s.i.c.DelegatingCCProvider:main] Failed to initialize provider org.sdnplatform.sync.internal.config.SyncStoreCCProvider</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">org.sdnplatform.sync.error.PersistException: Could not initialize persistent storage</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.sdnplatform.sync.internal.store.JavaDBStorageEngine.<init>(JavaDBStorageEngine.java:106) ~[bin/:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.sdnplatform.sync.internal.StoreRegistry.register(StoreRegistry.java:116) ~[bin/:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.sdnplatform.sync.internal.SyncManager.registerPersistentStore(SyncManager.java:184) [bin/:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.sdnplatform.sync.internal.config.SyncStoreCCProvider.init(SyncStoreCCProvider.java:85) ~[bin/:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.sdnplatform.sync.internal.config.DelegatingCCProvider.init(DelegatingCCProvider.java:37) ~[bin/:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.sdnplatform.sync.internal.SyncManager.init(SyncManager.java:489) [bin/:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at net.floodlightcontroller.core.module.FloodlightModuleLoader.initModules(FloodlightModuleLoader.java:436) [bin/:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at net.floodlightcontroller.core.module.FloodlightModuleLoader.loadModulesFromList(FloodlightModuleLoader.java:353) [bin/:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at net.floodlightcontroller.core.module.FloodlightModuleLoader.loadModulesFromList(FloodlightModuleLoader.java:362) [bin/:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at net.floodlightcontroller.core.module.FloodlightModuleLoader.loadModulesFromConfig(FloodlightModuleLoader.java:200) [bin/:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at net.floodlightcontroller.core.Main.main(Main.java:55) [bin/:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">Caused by: java.sql.SQLException: DDL is not permitted for a read-only connection, user or database.</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.jdbc.EmbedStatement.execute(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.sdnplatform.sync.internal.store.JavaDBStorageEngine.initTable(JavaDBStorageEngine.java:379) ~[bin/:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.sdnplatform.sync.internal.store.JavaDBStorageEngine.<init>(JavaDBStorageEngine.java:104) ~[bin/:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">... 10 common frames omitted</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">Caused by: org.apache.derby.impl.jdbc.EmbedSQLException: DDL is not permitted for a read-only connection, user or database.</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">... 21 common frames omitted</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">Caused by: org.apache.derby.iapi.error.StandardException: DDL is not permitted for a read-only connection, user or database.</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.sql.conn.GenericAuthorizer.authorize(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.sql.execute.GenericResultSetFactory.getDDLResultSet(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.sql.execute.ConstantActionActivation.execute(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.sql.GenericActivationHolder.execute(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source) ~[derby-10.9.1.0.jar:na]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">	</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">... 15 common frames omitted</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:03.244 INFO [n.f.l.i.LinkDiscoveryManager:main] Setting autoportfast feature to OFF</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:03.431 INFO [o.s.s.i.c.FallbackCCProvider:main] Cluster not yet configured; using fallback local configuration</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:03.436 INFO [o.s.s.i.SyncManager:main] [32767] Updating sync configuration ClusterConfig [allNodes={32767=Node [hostname=localhost, port=6642, nodeId=32767, domainId=32767]}, authScheme=CHALLENGE_RESPONSE, keyStorePath=/etc/floodlight/auth_credentials.jceks, keyStorePassword is unset]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:03.660 INFO [o.s.s.i.r.RPCService:main] Listening for internal floodlight RPC on localhost/127.0.0.1:6642</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:04.128 INFO [n.f.c.i.Controller:main] Listening for switch connections on 0.0.0.0/0.0.0.0:6633</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:09.232 INFO [n.f.c.i.OFChannelHandler:New I/O server worker #2-1] New switch connection from /10.0.2.15:59701</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:09.495 INFO [n.f.c.i.OFChannelHandler:New I/O server worker #2-1] Switch OFSwitchBase [/10.0.2.15:59701 DPID[00:00:00:00:00:00:00:01]] bound to class class net.floodlightcontroller.core.internal.OFSwitchImpl, writeThrottle=false, description Switch Desc - Vendor: Nicira, Inc.  Model: Open vSwitch  Make: None  Version: 2.1.0  S/N: None</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:09.509 INFO [n.f.c.OFSwitchBase:New I/O server worker #2-1] Clearing all flows on switch OFSwitchBase [/10.0.2.15:59701 DPID[00:00:00:00:00:00:00:01]]</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:09.519 WARN [n.f.c.i.C.s.notification:main] Switch 00:00:00:00:00:00:00:01 connected.</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">{StorageQuery__controller_staticflowtableentry=1, controller__OFPacketIn__broadcast=0, controller__OFPacketIn=0, 00:00:00:00:00:00:00:01__OFPacketIn=0, controller__OFPacketIn__L3_ARP=0, StorageQuery__controller_forwardingconfig=1, StorageQuery__controller_switchconfig=1, StorageQuery__controller_link=1, 00:00:00:00:00:00:00:01__OFPacketIn__broadcast=0, StorageQuery=6, StorageQuery__controller_firewallrules=1, StorageQuery__controller_topologyconfig=1, 00:00:00:00:00:00:00:01__OFPacketIn__L3_ARP=0}</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">{controller__OFPacketIn=1, 00:00:00:00:00:00:00:01__OFPacketIn=1, controller__OFPacketIn__L3_ARP=1, controller__OFPacketOut=0, StorageQuery__controller_forwardingconfig=1, 00:00:00:00:00:00:00:01__OFPacketOut=0, 00:00:00:00:00:00:00:01__OFPacketIn__broadcast=1, StorageQuery=6, StorageQuery__controller_topologyconfig=1, StorageQuery__controller_firewallrules=1, 00:00:00:00:00:00:00:01__OFFlowMod=0, StorageQuery__controller_staticflowtableentry=1, controller__OFPacketIn__broadcast=1, StorageQuery__controller_switchconfig=1, StorageQuery__controller_link=1, controller__OFFlowMod=0, 00:00:00:00:00:00:00:01__OFPacketIn__L3_ARP=1}</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">{controller__OFPacketIn__L4_ICMP=0, 00:00:00:00:00:00:00:01__OFPacketIn__L3_IPv4=0, controller__OFPacketIn=2, 00:00:00:00:00:00:00:01__OFPacketIn__unicast=0, 00:00:00:00:00:00:00:01__OFPacketIn=2, controller__OFPacketIn__unicast=0, controller__OFPacketIn__L3_ARP=2, controller__OFPacketOut=1, StorageQuery__controller_forwardingconfig=1, 00:00:00:00:00:00:00:01__OFPacketOut=1, 00:00:00:00:00:00:00:01__OFPacketIn__broadcast=2, StorageQuery=6, StorageQuery__controller_firewallrules=1, StorageQuery__controller_topologyconfig=1, 00:00:00:00:00:00:00:01__OFFlowMod=1, StorageQuery__controller_staticflowtableentry=1, controller__OFPacketIn__broadcast=2, controller__OFPacketIn__L3_IPv4=0, StorageQuery__controller_switchconfig=1, StorageQuery__controller_link=1, controller__OFFlowMod=1, 00:00:00:00:00:00:00:01__OFPacketIn__L4_ICMP=0, 00:00:00:00:00:00:00:01__OFPacketIn__L3_ARP=2}</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">{controller__OFPacketIn__L4_ICMP=1, 00:00:00:00:00:00:00:01__OFPacketIn__L3_IPv4=1, controller__OFPacketIn=3, 00:00:00:00:00:00:00:01__OFPacketIn__unicast=1, 00:00:00:00:00:00:00:01__OFPacketIn=3, controller__OFPacketIn__unicast=1, controller__OFPacketIn__L3_ARP=2, controller__OFPacketOut=2, StorageQuery__controller_forwardingconfig=1, 00:00:00:00:00:00:00:01__OFPacketOut=2, 00:00:00:00:00:00:00:01__OFPacketIn__broadcast=2, StorageQuery=6, StorageQuery__controller_firewallrules=1, StorageQuery__controller_topologyconfig=1, 00:00:00:00:00:00:00:01__OFFlowMod=2, StorageQuery__controller_staticflowtableentry=1, controller__OFPacketIn__broadcast=2, controller__OFPacketIn__L3_IPv4=1, StorageQuery__controller_switchconfig=1, StorageQuery__controller_link=1, controller__OFFlowMod=2, 00:00:00:00:00:00:00:01__OFPacketIn__L4_ICMP=1, 00:00:00:00:00:00:00:01__OFPacketIn__L3_ARP=2}</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">{controller__OFPacketIn__L4_ICMP=1, 00:00:00:00:00:00:00:01__OFPacketIn__L3_IPv4=1, controller__OFPacketIn=4, 00:00:00:00:00:00:00:01__OFPacketIn__unicast=1, 00:00:00:00:00:00:00:01__OFPacketIn=4, controller__OFPacketIn__unicast=1, controller__OFPacketIn__L3_ARP=3, controller__OFPacketOut=2, StorageQuery__controller_forwardingconfig=1, 00:00:00:00:00:00:00:01__OFPacketOut=2, 00:00:00:00:00:00:00:01__OFPacketIn__broadcast=3, StorageQuery=6, StorageQuery__controller_firewallrules=1, StorageQuery__controller_topologyconfig=1, 00:00:00:00:00:00:00:01__OFFlowMod=2, StorageQuery__controller_staticflowtableentry=1, controller__OFPacketIn__broadcast=3, controller__OFPacketIn__L3_IPv4=1, StorageQuery__controller_switchconfig=1, StorageQuery__controller_link=1, controller__OFFlowMod=2, 00:00:00:00:00:00:00:01__OFPacketIn__L4_ICMP=1, 00:00:00:00:00:00:00:01__OFPacketIn__L3_ARP=3}</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">{controller__OFPacketIn__L4_ICMP=1, 00:00:00:00:00:00:00:01__OFPacketIn__L3_IPv4=1, controller__OFPacketIn=5, 00:00:00:00:00:00:00:01__OFPacketIn__unicast=1, 00:00:00:00:00:00:00:01__OFPacketIn=5, controller__OFPacketIn__unicast=1, controller__OFPacketIn__L3_ARP=4, controller__OFPacketOut=3, StorageQuery__controller_forwardingconfig=1, 00:00:00:00:00:00:00:01__OFPacketOut=3, 00:00:00:00:00:00:00:01__OFPacketIn__broadcast=4, StorageQuery=6, StorageQuery__controller_firewallrules=1, StorageQuery__controller_topologyconfig=1, 00:00:00:00:00:00:00:01__OFFlowMod=3, StorageQuery__controller_staticflowtableentry=1, controller__OFPacketIn__broadcast=4, controller__OFPacketIn__L3_IPv4=1, StorageQuery__controller_switchconfig=1, StorageQuery__controller_link=1, controller__OFFlowMod=3, 00:00:00:00:00:00:00:01__OFPacketIn__L4_ICMP=1, 00:00:00:00:00:00:00:01__OFPacketIn__L3_ARP=4}</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">{controller__OFPacketIn__L4_ICMP=2, 00:00:00:00:00:00:00:01__OFPacketIn__L3_IPv4=2, controller__OFPacketIn=6, 00:00:00:00:00:00:00:01__OFPacketIn__unicast=2, 00:00:00:00:00:00:00:01__OFPacketIn=6, controller__OFPacketIn__unicast=2, controller__OFPacketIn__L3_ARP=4, controller__OFPacketOut=4, StorageQuery__controller_forwardingconfig=1, 00:00:00:00:00:00:00:01__OFPacketOut=4, 00:00:00:00:00:00:00:01__OFPacketIn__broadcast=4, StorageQuery=6, StorageQuery__controller_firewallrules=1, StorageQuery__controller_topologyconfig=1, 00:00:00:00:00:00:00:01__OFFlowMod=4, StorageQuery__controller_staticflowtableentry=1, controller__OFPacketIn__broadcast=4, controller__OFPacketIn__L3_IPv4=2, StorageQuery__controller_switchconfig=1, StorageQuery__controller_link=1, controller__OFFlowMod=4, 00:00:00:00:00:00:00:01__OFPacketIn__L4_ICMP=2, 00:00:00:00:00:00:00:01__OFPacketIn__L3_ARP=4}</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">{controller__OFPacketIn__L4_ICMP=2, 00:00:00:00:00:00:00:01__OFPacketIn__L3_IPv4=2, controller__OFPacketIn=7, 00:00:00:00:00:00:00:01__OFPacketIn__unicast=2, 00:00:00:00:00:00:00:01__OFPacketIn=7, controller__OFPacketIn__unicast=2, controller__OFPacketIn__L3_ARP=5, controller__OFPacketOut=4, StorageQuery__controller_forwardingconfig=1, 00:00:00:00:00:00:00:01__OFPacketOut=4, 00:00:00:00:00:00:00:01__OFPacketIn__broadcast=5, StorageQuery=6, StorageQuery__controller_firewallrules=1, StorageQuery__controller_topologyconfig=1, 00:00:00:00:00:00:00:01__OFFlowMod=4, StorageQuery__controller_staticflowtableentry=1, controller__OFPacketIn__broadcast=5, controller__OFPacketIn__L3_IPv4=2, StorageQuery__controller_switchconfig=1, StorageQuery__controller_link=1, controller__OFFlowMod=4, 00:00:00:00:00:00:00:01__OFPacketIn__L4_ICMP=2, 00:00:00:00:00:00:00:01__OFPacketIn__L3_ARP=5}</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">{controller__OFPacketIn__L4_ICMP=2, 00:00:00:00:00:00:00:01__OFPacketIn__L3_IPv4=2, controller__OFPacketIn=8, 00:00:00:00:00:00:00:01__OFPacketIn__unicast=2, 00:00:00:00:00:00:00:01__OFPacketIn=8, controller__OFPacketIn__unicast=2, controller__OFPacketIn__L3_ARP=6, controller__OFPacketOut=5, StorageQuery__controller_forwardingconfig=1, 00:00:00:00:00:00:00:01__OFPacketOut=5, 00:00:00:00:00:00:00:01__OFPacketIn__broadcast=6, StorageQuery=6, StorageQuery__controller_firewallrules=1, StorageQuery__controller_topologyconfig=1, 00:00:00:00:00:00:00:01__OFFlowMod=5, StorageQuery__controller_staticflowtableentry=1, controller__OFPacketIn__broadcast=6, controller__OFPacketIn__L3_IPv4=2, StorageQuery__controller_switchconfig=1, StorageQuery__controller_link=1, controller__OFFlowMod=5, 00:00:00:00:00:00:00:01__OFPacketIn__L4_ICMP=2, 00:00:00:00:00:00:00:01__OFPacketIn__L3_ARP=6}</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">00:58:11.966 INFO [n.f.j.JythonServer:debugserver-main] Starting DebugServer on :6655</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"> </span></p><p class="NewStyle15" style="text-indent:24.0000pt; "><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;">把流量数目统计完了接下去就是流量种类分析了。</span><span style="font-family: 'Times New Roman'; letter-spacing: 0pt; font-size: 10.5pt;"><o:p></o:p></span></p>

在floodlight控制器中统计进入packed-in数量的代码(sdn)

标签:sdn   floodlight   开发   

原文地址:http://blog.csdn.net/tomstrong_369/article/details/44703027

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!