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

项目:athena    文件:PortStatsCollector.java   
/**
 * Sends port statistic request to switch.
 */
private void sendPortStatistic() {
    if (sw.getRole() != RoleState.MASTER) {
        return;
    }
    Long statsXid = xidAtomic.getAndIncrement();
    OFPortStatsRequest statsRequest = sw.factory().buildPortStatsRequest()
            .setPortNo(OFPort.ANY)
            .setXid(1128)
            .build();
    sw.sendMsg(statsRequest);
}
项目:ravikumaran201504    文件:PortStatsCollector.java   
private void sendPortStatistic() {
    if (log.isTraceEnabled()) {
        log.trace("sendGroupStatistics {}:{}", sw.getStringId(), sw.getRole());
    }
    if (sw.getRole() != RoleState.MASTER) {
        return;
    }
    Long statsXid = xidAtomic.getAndIncrement();
    OFPortStatsRequest statsRequest = sw.factory().buildPortStatsRequest()
            .setPortNo(OFPort.ANY)
            .setXid(statsXid)
            .build();
    sw.sendMsg(statsRequest);
}
项目:onos    文件:PortStatsCollector.java   
/**
 * Sends port statistic request to switch.
 */
private void sendPortStatisticRequest() {
    if (sw.getRole() != RoleState.MASTER) {
        return;
    }
    Long statsXid = xidAtomic.getAndIncrement();
    OFPortStatsRequest statsRequest = sw.factory().buildPortStatsRequest()
            .setPortNo(OFPort.ANY)
            .setXid(statsXid)
            .build();
    sw.sendMsg(statsRequest);
}