Examples of OFAggregateStatisticsReply


Examples of org.openflow.protocol.statistics.OFAggregateStatisticsReply

    JSONArray jsonArray = new JSONArray();
   
 
  for (OFStatistics ofst : ofs) {

    OFAggregateStatisticsReply st = (OFAggregateStatisticsReply) ofst;

    JSONObject jsonObject = new JSONObject();
    jsonObject.put("packet_count", st.getPacketCount());
    jsonObject.put("flow_count", st.getFlowCount());

    jsonArray.add(jsonObject);

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.