@Override public OFStatistics instantiate() { return new OFQueueStatisticsRequest(); } }, new Instantiable<OFStatistics>() {
type = "PORT"; } else if (statsType == OFStatisticsType.QUEUE) { OFQueueStatisticsRequest specificReq = new OFQueueStatisticsRequest(); specificReq.setPortNumber(OFPort.OFPP_ALL.getValue()); specificReq.setQueueId(0xffffffff); req.setStatistics(Collections .singletonList((OFStatistics) specificReq)); requestLength += specificReq.getLength(); type = "QUEUE"; } else if (statsType == OFStatisticsType.DESC) {
type = "PORT"; } else if (statsType == OFStatisticsType.QUEUE) { OFQueueStatisticsRequest specificReq = new OFQueueStatisticsRequest(); specificReq.setPortNumber((short) OFPort.OFPP_ALL.getValue()); specificReq.setQueueId(0xffffffff); req.setStatistics(Collections .singletonList((OFStatistics) specificReq)); requestLength += specificReq.getLength(); type = "QUEUE"; } else if (statsType == OFStatisticsType.DESC) {