@Override public OFStatistics instantiate() { return new OFFlowStatisticsRequest(); } }, new Instantiable<OFStatistics>() {
OFFlowStatisticsRequest specificReq = new OFFlowStatisticsRequest(); specificReq.setMatch(match); specificReq.setOutPort(OFPort.OFPP_NONE.getValue()); specificReq.setTableId((byte) 0xff); req.setStatistics(Collections .singletonList((OFStatistics) specificReq)); requestLength += specificReq.getLength(); type = "FLOW"; } else if (statsType == OFStatisticsType.VENDOR) {
OFFlowStatisticsRequest specificReq = new OFFlowStatisticsRequest(); specificReq.setMatch(match); specificReq.setOutPort(OFPort.OFPP_NONE.getValue()); specificReq.setTableId((byte) 0xff); req.setStatistics(Collections .singletonList((OFStatistics) specificReq)); requestLength += specificReq.getLength(); type = "FLOW"; } else if (statsType == OFStatisticsType.VENDOR) {