当前位置: 首页>>代码示例>>Java>>正文


Java OFGetConfigReply.getMissSendLen方法代码示例

本文整理汇总了Java中org.projectfloodlight.openflow.protocol.OFGetConfigReply.getMissSendLen方法的典型用法代码示例。如果您正苦于以下问题:Java OFGetConfigReply.getMissSendLen方法的具体用法?Java OFGetConfigReply.getMissSendLen怎么用?Java OFGetConfigReply.getMissSendLen使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.projectfloodlight.openflow.protocol.OFGetConfigReply的用法示例。


在下文中一共展示了OFGetConfigReply.getMissSendLen方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: processOFGetConfigReply

import org.projectfloodlight.openflow.protocol.OFGetConfigReply; //导入方法依赖的package包/类
@Override
void processOFGetConfigReply(OFChannelHandler h, OFGetConfigReply m)
        throws IOException {
    if (m.getMissSendLen() == 0xffff) {
        log.trace("Config Reply from switch {} confirms "
                + "miss length set to 0xffff",
                h.getSwitchInfoString());
    } else {
        // FIXME: we can't really deal with switches that don't send
        // full packets. Shouldn't we drop the connection here?
        log.warn("Config Reply from switch {} has"
                + "miss length set to {}",
                h.getSwitchInfoString(),
                m.getMissSendLen());
    }
    h.sendHandshakeDescriptionStatsRequest();
    h.setState(WAIT_DESCRIPTION_STAT_REPLY);
}
 
开发者ID:shlee89,项目名称:athena,代码行数:19,代码来源:OFChannelHandler.java

示例2: processOFGetConfigReply

import org.projectfloodlight.openflow.protocol.OFGetConfigReply; //导入方法依赖的package包/类
@Override
void processOFGetConfigReply(OFGetConfigReply m) {
	if (m.getMissSendLen() == 0xffff) {
		log.trace("Config Reply from switch {} confirms "
				+ "miss length set to 0xffff",
				getSwitchInfoString());
	} else {
		// FIXME: we can't really deal with switches that don't send
		// full packets. Shouldn't we drop the connection here?
		// FIXME: count??
		log.warn("Config Reply from switch {} has"
				+ "miss length set to {}",
				getSwitchInfoString(),
				m.getMissSendLen());
	}
	setState(new WaitDescriptionStatReplyState());
}
 
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:18,代码来源:OFSwitchHandshakeHandler.java

示例3: processOFGetConfigReply

import org.projectfloodlight.openflow.protocol.OFGetConfigReply; //导入方法依赖的package包/类
@Override
void processOFGetConfigReply(OFChannelHandler h, OFGetConfigReply m)
        throws IOException {
    if (m.getMissSendLen() == 0xffff) {
        log.trace("Config Reply from switch {} confirms "
                + "miss length set to 0xffff",
                h.getSwitchInfoString());
    } else {
        // FIXME: we can't really deal with switches that don't send
        // full packets. Shouldn't we drop the connection here?
        log.warn("Config Reply from switch {} has "
                + "miss length set to {}",
                h.getSwitchInfoString(),
                m.getMissSendLen());
    }

    nextState(h);
}
 
开发者ID:opennetworkinglab,项目名称:onos,代码行数:19,代码来源:OFChannelHandler.java

示例4: processOFGetConfigReply

import org.projectfloodlight.openflow.protocol.OFGetConfigReply; //导入方法依赖的package包/类
@Override
@LogMessageDocs({
	@LogMessageDoc(level="WARN",
			message="Config Reply from {switch} has " +
					"miss length set to {length}",
					explanation="The controller requires that the switch " +
							"use a miss length of 0xffff for correct " +
							"function",
							recommendation="Use a different switch to ensure " +
			"correct function")
})
void processOFGetConfigReply(OFGetConfigReply m) {
	if (m.getMissSendLen() == 0xffff) {
		log.trace("Config Reply from switch {} confirms "
				+ "miss length set to 0xffff",
				getSwitchInfoString());
	} else {
		// FIXME: we can't really deal with switches that don't send
		// full packets. Shouldn't we drop the connection here?
		// FIXME: count??
		log.warn("Config Reply from switch {} has"
				+ "miss length set to {}",
				getSwitchInfoString(),
				m.getMissSendLen());
	}
	setState(new WaitDescriptionStatReplyState());
}
 
开发者ID:nsg-ethz,项目名称:iTAP-controller,代码行数:28,代码来源:OFSwitchHandshakeHandler.java

示例5: processOFGetConfigReply

import org.projectfloodlight.openflow.protocol.OFGetConfigReply; //导入方法依赖的package包/类
@Override
@LogMessageDocs({
        @LogMessageDoc(level = "WARN",
                message = "Config Reply from {switch} has " +
                        "miss length set to {length}",
                explanation = "The controller requires that the switch " +
                        "use a miss length of 0xffff for correct " +
                        "function",
                recommendation = "Use a different switch to ensure " +
                        "correct function")
})
void processOFGetConfigReply(OFChannelHandler h, OFGetConfigReply m)
        throws IOException {
    if (m.getMissSendLen() == 0xffff) {
        log.trace("Config Reply from switch {} confirms "
                + "miss length set to 0xffff",
                h.getSwitchInfoString());
    } else {
        // FIXME: we can't really deal with switches that don't send
        // full packets. Shouldn't we drop the connection here?
        log.warn("Config Reply from switch {} has"
                + "miss length set to {}",
                h.getSwitchInfoString(),
                m.getMissSendLen());
    }
    h.sendHandshakeDescriptionStatsRequest();
    h.setState(WAIT_DESCRIPTION_STAT_REPLY);
}
 
开发者ID:opennetworkinglab,项目名称:spring-open,代码行数:29,代码来源:OFChannelHandler.java


注:本文中的org.projectfloodlight.openflow.protocol.OFGetConfigReply.getMissSendLen方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。