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

项目:openflowj-otn    文件:OFTableReasonSerializerVer14.java   
public static OFTableReason readFrom(ChannelBuffer bb) throws OFParseError {
    try {
        return ofWireValue(bb.readByte());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:openflowj-otn    文件:OFTableReasonSerializerVer14.java   
public static OFTableReason ofWireValue(byte val) {
    switch(val) {
        case VACANCY_DOWN_VAL:
            return OFTableReason.VACANCY_DOWN;
        case VACANCY_UP_VAL:
            return OFTableReason.VACANCY_UP;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFTableReason in version 1.4: " + val);
    }
}
项目:openflowj-otn    文件:OFTableReasonSerializerVer14.java   
public static byte toWireValue(OFTableReason e) {
    switch(e) {
        case VACANCY_DOWN:
            return VACANCY_DOWN_VAL;
        case VACANCY_UP:
            return VACANCY_UP_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFTableReason in version 1.4: " + e);
    }
}
项目:loxigen-artifacts    文件:OFTableReasonSerializerVer15.java   
public static OFTableReason readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readByte());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFTableReasonSerializerVer15.java   
public static OFTableReason ofWireValue(byte val) {
    switch(val) {
        case VACANCY_DOWN_VAL:
            return OFTableReason.VACANCY_DOWN;
        case VACANCY_UP_VAL:
            return OFTableReason.VACANCY_UP;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFTableReason in version 1.5: " + val);
    }
}
项目:loxigen-artifacts    文件:OFTableReasonSerializerVer15.java   
public static byte toWireValue(OFTableReason e) {
    switch(e) {
        case VACANCY_DOWN:
            return VACANCY_DOWN_VAL;
        case VACANCY_UP:
            return VACANCY_UP_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFTableReason in version 1.5: " + e);
    }
}
项目:loxigen-artifacts    文件:OFTableReasonSerializerVer14.java   
public static OFTableReason readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readByte());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFTableReasonSerializerVer14.java   
public static OFTableReason ofWireValue(byte val) {
    switch(val) {
        case VACANCY_DOWN_VAL:
            return OFTableReason.VACANCY_DOWN;
        case VACANCY_UP_VAL:
            return OFTableReason.VACANCY_UP;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFTableReason in version 1.4: " + val);
    }
}
项目:loxigen-artifacts    文件:OFTableReasonSerializerVer14.java   
public static byte toWireValue(OFTableReason e) {
    switch(e) {
        case VACANCY_DOWN:
            return VACANCY_DOWN_VAL;
        case VACANCY_UP:
            return VACANCY_UP_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFTableReason in version 1.4: " + e);
    }
}
项目:openflowj-otn    文件:OFTableReasonSerializerVer14.java   
public static void writeTo(ChannelBuffer bb, OFTableReason e) {
    bb.writeByte(toWireValue(e));
}
项目:openflowj-otn    文件:OFTableReasonSerializerVer14.java   
public static void putTo(OFTableReason e, PrimitiveSink sink) {
    sink.putByte(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFTableReasonSerializerVer15.java   
public static void writeTo(ByteBuf bb, OFTableReason e) {
    bb.writeByte(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFTableReasonSerializerVer15.java   
public static void putTo(OFTableReason e, PrimitiveSink sink) {
    sink.putByte(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFTableReasonSerializerVer14.java   
public static void writeTo(ByteBuf bb, OFTableReason e) {
    bb.writeByte(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFTableReasonSerializerVer14.java   
public static void putTo(OFTableReason e, PrimitiveSink sink) {
    sink.putByte(toWireValue(e));
}