Package org.openflow.protocol.statistics

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

Related Classes of org.openflow.protocol.statistics.OFAggregateStatisticsReply

Copyright © 2018 www.massapicom. 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.