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