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

项目:athena    文件:GroupStatsCollector.java   
private void sendGroupStatistic() {
    if (log.isTraceEnabled()) {
        log.trace("sendGroupStatistics {}:{}", sw.getStringId(), sw.getRole());
    }
    if (sw.getRole() != RoleState.MASTER) {
        return;
    }
    Long statsXid = OpenFlowGroupProvider.getXidAndAdd(2);
    OFGroupStatsRequest statsRequest = sw.factory().buildGroupStatsRequest()
            .setGroup(OFGroup.ALL)
            .setXid(statsXid)
            .build();
    sw.sendMsg(statsRequest);

    Long descXid = statsXid + 1;
    OFGroupDescStatsRequest descStatsRequest =
            sw.factory().buildGroupDescStatsRequest()
                    .setXid(descXid)
                    .build();
    sw.sendMsg(descStatsRequest);
}
项目:ravikumaran201504    文件:GroupStatsCollector.java   
private void sendGroupStatistic() {
    if (log.isTraceEnabled()) {
        log.trace("sendGroupStatistics {}:{}", sw.getStringId(), sw.getRole());
    }
    if (sw.getRole() != RoleState.MASTER) {
        return;
    }
    Long statsXid = OpenFlowGroupProvider.getXidAndAdd(2);
    OFGroupStatsRequest statsRequest = sw.factory().buildGroupStatsRequest()
            .setGroup(OFGroup.ALL)
            .setXid(statsXid)
            .build();
    sw.sendMsg(statsRequest);

    Long descXid = statsXid + 1;
    OFGroupDescStatsRequest descStatsRequest =
            sw.factory().buildGroupDescStatsRequest()
                    .setXid(descXid)
                    .build();
    sw.sendMsg(descStatsRequest);
}
项目:onos    文件:GroupStatsCollector.java   
private void sendGroupStatisticRequest(long xid) {
    OFGroupStatsRequest statsRequest = sw.factory().buildGroupStatsRequest()
        .setGroup(OFGroup.ALL)
        .setXid(xid)
        .build();
    sw.sendMsg(statsRequest);
}