本文整理汇总了Java中org.projectfloodlight.openflow.protocol.OFMeterModFailedCode.BAD_COMMAND属性的典型用法代码示例。如果您正苦于以下问题:Java OFMeterModFailedCode.BAD_COMMAND属性的具体用法?Java OFMeterModFailedCode.BAD_COMMAND怎么用?Java OFMeterModFailedCode.BAD_COMMAND使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.projectfloodlight.openflow.protocol.OFMeterModFailedCode
的用法示例。
在下文中一共展示了OFMeterModFailedCode.BAD_COMMAND属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ofWireValue
public static OFMeterModFailedCode ofWireValue(short val) {
switch(val) {
case UNKNOWN_VAL:
return OFMeterModFailedCode.UNKNOWN;
case METER_EXISTS_VAL:
return OFMeterModFailedCode.METER_EXISTS;
case INVALID_METER_VAL:
return OFMeterModFailedCode.INVALID_METER;
case UNKNOWN_METER_VAL:
return OFMeterModFailedCode.UNKNOWN_METER;
case BAD_COMMAND_VAL:
return OFMeterModFailedCode.BAD_COMMAND;
case BAD_FLAGS_VAL:
return OFMeterModFailedCode.BAD_FLAGS;
case BAD_RATE_VAL:
return OFMeterModFailedCode.BAD_RATE;
case BAD_BURST_VAL:
return OFMeterModFailedCode.BAD_BURST;
case BAD_BAND_VAL:
return OFMeterModFailedCode.BAD_BAND;
case BAD_BAND_VALUE_VAL:
return OFMeterModFailedCode.BAD_BAND_VALUE;
case OUT_OF_METERS_VAL:
return OFMeterModFailedCode.OUT_OF_METERS;
case OUT_OF_BANDS_VAL:
return OFMeterModFailedCode.OUT_OF_BANDS;
default:
throw new IllegalArgumentException("Illegal wire value for type OFMeterModFailedCode in version 1.3: " + val);
}
}
示例2: ofWireValue
public static OFMeterModFailedCode ofWireValue(short val) {
switch(val) {
case UNKNOWN_VAL:
return OFMeterModFailedCode.UNKNOWN;
case METER_EXISTS_VAL:
return OFMeterModFailedCode.METER_EXISTS;
case INVALID_METER_VAL:
return OFMeterModFailedCode.INVALID_METER;
case UNKNOWN_METER_VAL:
return OFMeterModFailedCode.UNKNOWN_METER;
case BAD_COMMAND_VAL:
return OFMeterModFailedCode.BAD_COMMAND;
case BAD_FLAGS_VAL:
return OFMeterModFailedCode.BAD_FLAGS;
case BAD_RATE_VAL:
return OFMeterModFailedCode.BAD_RATE;
case BAD_BURST_VAL:
return OFMeterModFailedCode.BAD_BURST;
case BAD_BAND_VAL:
return OFMeterModFailedCode.BAD_BAND;
case BAD_BAND_VALUE_VAL:
return OFMeterModFailedCode.BAD_BAND_VALUE;
case OUT_OF_METERS_VAL:
return OFMeterModFailedCode.OUT_OF_METERS;
case OUT_OF_BANDS_VAL:
return OFMeterModFailedCode.OUT_OF_BANDS;
default:
throw new IllegalArgumentException("Illegal wire value for type OFMeterModFailedCode in version 1.4: " + val);
}
}
示例3: ofWireValue
public static OFMeterModFailedCode ofWireValue(short val) {
switch(val) {
case UNKNOWN_VAL:
return OFMeterModFailedCode.UNKNOWN;
case METER_EXISTS_VAL:
return OFMeterModFailedCode.METER_EXISTS;
case INVALID_METER_VAL:
return OFMeterModFailedCode.INVALID_METER;
case UNKNOWN_METER_VAL:
return OFMeterModFailedCode.UNKNOWN_METER;
case BAD_COMMAND_VAL:
return OFMeterModFailedCode.BAD_COMMAND;
case BAD_FLAGS_VAL:
return OFMeterModFailedCode.BAD_FLAGS;
case BAD_RATE_VAL:
return OFMeterModFailedCode.BAD_RATE;
case BAD_BURST_VAL:
return OFMeterModFailedCode.BAD_BURST;
case BAD_BAND_VAL:
return OFMeterModFailedCode.BAD_BAND;
case BAD_BAND_VALUE_VAL:
return OFMeterModFailedCode.BAD_BAND_VALUE;
case OUT_OF_METERS_VAL:
return OFMeterModFailedCode.OUT_OF_METERS;
case OUT_OF_BANDS_VAL:
return OFMeterModFailedCode.OUT_OF_BANDS;
default:
throw new IllegalArgumentException("Illegal wire value for type OFMeterModFailedCode in version 1.5: " + val);
}
}