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


Java OFControllerRoleReason类代码示例

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


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

示例1: readFrom

import org.projectfloodlight.openflow.protocol.OFControllerRoleReason; //导入依赖的package包/类
public static OFControllerRoleReason readFrom(ChannelBuffer bb) throws OFParseError {
    try {
        return ofWireValue(bb.readByte());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:8,代码来源:OFControllerRoleReasonSerializerVer14.java

示例2: ofWireValue

import org.projectfloodlight.openflow.protocol.OFControllerRoleReason; //导入依赖的package包/类
public static OFControllerRoleReason ofWireValue(byte val) {
    switch(val) {
        case MASTER_REQUEST_VAL:
            return OFControllerRoleReason.MASTER_REQUEST;
        case CONFIG_VAL:
            return OFControllerRoleReason.CONFIG;
        case EXPERIMENTER_VAL:
            return OFControllerRoleReason.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFControllerRoleReason in version 1.4: " + val);
    }
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:13,代码来源:OFControllerRoleReasonSerializerVer14.java

示例3: toWireValue

import org.projectfloodlight.openflow.protocol.OFControllerRoleReason; //导入依赖的package包/类
public static byte toWireValue(OFControllerRoleReason e) {
    switch(e) {
        case MASTER_REQUEST:
            return MASTER_REQUEST_VAL;
        case CONFIG:
            return CONFIG_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFControllerRoleReason in version 1.4: " + e);
    }
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:13,代码来源:OFControllerRoleReasonSerializerVer14.java

示例4: readFrom

import org.projectfloodlight.openflow.protocol.OFControllerRoleReason; //导入依赖的package包/类
public static OFControllerRoleReason readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readByte());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
 
开发者ID:floodlight,项目名称:loxigen-artifacts,代码行数:8,代码来源:OFControllerRoleReasonSerializerVer15.java

示例5: ofWireValue

import org.projectfloodlight.openflow.protocol.OFControllerRoleReason; //导入依赖的package包/类
public static OFControllerRoleReason ofWireValue(byte val) {
    switch(val) {
        case MASTER_REQUEST_VAL:
            return OFControllerRoleReason.MASTER_REQUEST;
        case CONFIG_VAL:
            return OFControllerRoleReason.CONFIG;
        case EXPERIMENTER_VAL:
            return OFControllerRoleReason.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFControllerRoleReason in version 1.5: " + val);
    }
}
 
开发者ID:floodlight,项目名称:loxigen-artifacts,代码行数:13,代码来源:OFControllerRoleReasonSerializerVer15.java

示例6: toWireValue

import org.projectfloodlight.openflow.protocol.OFControllerRoleReason; //导入依赖的package包/类
public static byte toWireValue(OFControllerRoleReason e) {
    switch(e) {
        case MASTER_REQUEST:
            return MASTER_REQUEST_VAL;
        case CONFIG:
            return CONFIG_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFControllerRoleReason in version 1.5: " + e);
    }
}
 
开发者ID:floodlight,项目名称:loxigen-artifacts,代码行数:13,代码来源:OFControllerRoleReasonSerializerVer15.java

示例7: writeTo

import org.projectfloodlight.openflow.protocol.OFControllerRoleReason; //导入依赖的package包/类
public static void writeTo(ChannelBuffer bb, OFControllerRoleReason e) {
    bb.writeByte(toWireValue(e));
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:4,代码来源:OFControllerRoleReasonSerializerVer14.java

示例8: putTo

import org.projectfloodlight.openflow.protocol.OFControllerRoleReason; //导入依赖的package包/类
public static void putTo(OFControllerRoleReason e, PrimitiveSink sink) {
    sink.putByte(toWireValue(e));
}
 
开发者ID:o3project,项目名称:openflowj-otn,代码行数:4,代码来源:OFControllerRoleReasonSerializerVer14.java

示例9: writeTo

import org.projectfloodlight.openflow.protocol.OFControllerRoleReason; //导入依赖的package包/类
public static void writeTo(ByteBuf bb, OFControllerRoleReason e) {
    bb.writeByte(toWireValue(e));
}
 
开发者ID:floodlight,项目名称:loxigen-artifacts,代码行数:4,代码来源:OFControllerRoleReasonSerializerVer15.java


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