private void sendMeterStatistic() { if (log.isTraceEnabled()) { log.trace("sendMeterStatistics {}:{}", sw.getStringId(), sw.getRole()); } if (sw.getRole() != RoleState.MASTER) { return; } OFMeterStatsRequest.Builder builder = sw.factory().buildMeterStatsRequest(); builder.setXid(0).setMeterId(0xFFFFFFFF); sw.sendMsg(builder.build()); }
public void sendMeterStatisticRequest() { if (log.isTraceEnabled()) { log.trace("sendMeterStatistics {}:{}", sw.getStringId(), sw.getRole()); } if (sw.getRole() != RoleState.MASTER) { return; } OFMeterStatsRequest.Builder builder = sw.factory().buildMeterStatsRequest(); builder.setXid(0).setMeterId(0xFFFFFFFF); sw.sendMsg(builder.build()); }