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

项目:athena    文件:TableStatsCollector.java   
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);
    }
}
项目:athena    文件:TableStatisticsCollector.java   
@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);
    }
}
项目:onos    文件:TableStatisticsCollector.java   
@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);
    }
}