Java 类org.projectfloodlight.openflow.protocol.OFMeterStatsRequest 实例源码

项目:athena    文件:MeterStatsCollector.java   
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());

}
项目:onos    文件:MeterStatsCollector.java   
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());

}