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

项目:openflowj-otn    文件:OFMeterBandTypeSerializerVer13.java   
public static OFMeterBandType readFrom(ChannelBuffer bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:openflowj-otn    文件:OFMeterBandTypeSerializerVer13.java   
public static OFMeterBandType ofWireValue(short val) {
    switch(val) {
        case DROP_VAL:
            return OFMeterBandType.DROP;
        case DSCP_REMARK_VAL:
            return OFMeterBandType.DSCP_REMARK;
        case EXPERIMENTER_VAL:
            return OFMeterBandType.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFMeterBandType in version 1.3: " + val);
    }
}
项目:openflowj-otn    文件:OFMeterBandTypeSerializerVer13.java   
public static short toWireValue(OFMeterBandType e) {
    switch(e) {
        case DROP:
            return DROP_VAL;
        case DSCP_REMARK:
            return DSCP_REMARK_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFMeterBandType in version 1.3: " + e);
    }
}
项目:openflowj-otn    文件:OFMeterBandTypeSerializerVer14.java   
public static OFMeterBandType readFrom(ChannelBuffer bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:openflowj-otn    文件:OFMeterBandTypeSerializerVer14.java   
public static OFMeterBandType ofWireValue(short val) {
    switch(val) {
        case DROP_VAL:
            return OFMeterBandType.DROP;
        case DSCP_REMARK_VAL:
            return OFMeterBandType.DSCP_REMARK;
        case EXPERIMENTER_VAL:
            return OFMeterBandType.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFMeterBandType in version 1.4: " + val);
    }
}
项目:openflowj-otn    文件:OFMeterBandTypeSerializerVer14.java   
public static short toWireValue(OFMeterBandType e) {
    switch(e) {
        case DROP:
            return DROP_VAL;
        case DSCP_REMARK:
            return DSCP_REMARK_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFMeterBandType in version 1.4: " + e);
    }
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer13.java   
public static OFMeterBandType readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer13.java   
public static OFMeterBandType ofWireValue(short val) {
    switch(val) {
        case DROP_VAL:
            return OFMeterBandType.DROP;
        case DSCP_REMARK_VAL:
            return OFMeterBandType.DSCP_REMARK;
        case EXPERIMENTER_VAL:
            return OFMeterBandType.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFMeterBandType in version 1.3: " + val);
    }
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer13.java   
public static short toWireValue(OFMeterBandType e) {
    switch(e) {
        case DROP:
            return DROP_VAL;
        case DSCP_REMARK:
            return DSCP_REMARK_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFMeterBandType in version 1.3: " + e);
    }
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer15.java   
public static OFMeterBandType readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer15.java   
public static OFMeterBandType ofWireValue(short val) {
    switch(val) {
        case DROP_VAL:
            return OFMeterBandType.DROP;
        case DSCP_REMARK_VAL:
            return OFMeterBandType.DSCP_REMARK;
        case EXPERIMENTER_VAL:
            return OFMeterBandType.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFMeterBandType in version 1.5: " + val);
    }
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer15.java   
public static short toWireValue(OFMeterBandType e) {
    switch(e) {
        case DROP:
            return DROP_VAL;
        case DSCP_REMARK:
            return DSCP_REMARK_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFMeterBandType in version 1.5: " + e);
    }
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer14.java   
public static OFMeterBandType readFrom(ByteBuf bb) throws OFParseError {
    try {
        return ofWireValue(bb.readShort());
    } catch (IllegalArgumentException e) {
        throw new OFParseError(e);
    }
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer14.java   
public static OFMeterBandType ofWireValue(short val) {
    switch(val) {
        case DROP_VAL:
            return OFMeterBandType.DROP;
        case DSCP_REMARK_VAL:
            return OFMeterBandType.DSCP_REMARK;
        case EXPERIMENTER_VAL:
            return OFMeterBandType.EXPERIMENTER;
        default:
            throw new IllegalArgumentException("Illegal wire value for type OFMeterBandType in version 1.4: " + val);
    }
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer14.java   
public static short toWireValue(OFMeterBandType e) {
    switch(e) {
        case DROP:
            return DROP_VAL;
        case DSCP_REMARK:
            return DSCP_REMARK_VAL;
        case EXPERIMENTER:
            return EXPERIMENTER_VAL;
        default:
            throw new IllegalArgumentException("Illegal enum value for type OFMeterBandType in version 1.4: " + e);
    }
}
项目:openflowj-otn    文件:OFMeterBandTypeSerializerVer13.java   
public static void writeTo(ChannelBuffer bb, OFMeterBandType e) {
    bb.writeShort(toWireValue(e));
}
项目:openflowj-otn    文件:OFMeterBandTypeSerializerVer13.java   
public static void putTo(OFMeterBandType e, PrimitiveSink sink) {
    sink.putShort(toWireValue(e));
}
项目:openflowj-otn    文件:OFMeterBandTypeSerializerVer14.java   
public static void writeTo(ChannelBuffer bb, OFMeterBandType e) {
    bb.writeShort(toWireValue(e));
}
项目:openflowj-otn    文件:OFMeterBandTypeSerializerVer14.java   
public static void putTo(OFMeterBandType e, PrimitiveSink sink) {
    sink.putShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer13.java   
public static void writeTo(ByteBuf bb, OFMeterBandType e) {
    bb.writeShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer13.java   
public static void putTo(OFMeterBandType e, PrimitiveSink sink) {
    sink.putShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer15.java   
public static void writeTo(ByteBuf bb, OFMeterBandType e) {
    bb.writeShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer15.java   
public static void putTo(OFMeterBandType e, PrimitiveSink sink) {
    sink.putShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer14.java   
public static void writeTo(ByteBuf bb, OFMeterBandType e) {
    bb.writeShort(toWireValue(e));
}
项目:loxigen-artifacts    文件:OFMeterBandTypeSerializerVer14.java   
public static void putTo(OFMeterBandType e, PrimitiveSink sink) {
    sink.putShort(toWireValue(e));
}