private void sendTableStatistic() { if (sw.getRole() != RoleState.MASTER) { return; } //Long statsXid = xidAtomic.getAndIncrement(); if (sw.factory().getVersion().compareTo(OFVersion.OF_10) > 0) { OFTableStatsRequest tableRequest = sw.factory() .buildTableStatsRequest() .setXid(1130) .build(); sw.sendMsg(tableRequest); } }
@Override public void run() { if (sw.getRole() == RoleState.MASTER) { log.trace("Collecting stats for {}", sw.getStringId()); OFTableStatsRequest request = sw.factory().buildTableStatsRequest() .build(); sw.sendMsg(request); } }