本文整理汇总了Java中org.projectfloodlight.openflow.protocol.OFFlowModFailedCode.BAD_PRIORITY属性的典型用法代码示例。如果您正苦于以下问题:Java OFFlowModFailedCode.BAD_PRIORITY属性的具体用法?Java OFFlowModFailedCode.BAD_PRIORITY怎么用?Java OFFlowModFailedCode.BAD_PRIORITY使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.projectfloodlight.openflow.protocol.OFFlowModFailedCode
的用法示例。
在下文中一共展示了OFFlowModFailedCode.BAD_PRIORITY属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ofWireValue
public static OFFlowModFailedCode ofWireValue(short val) {
switch(val) {
case UNKNOWN_VAL:
return OFFlowModFailedCode.UNKNOWN;
case TABLE_FULL_VAL:
return OFFlowModFailedCode.TABLE_FULL;
case BAD_TABLE_ID_VAL:
return OFFlowModFailedCode.BAD_TABLE_ID;
case OVERLAP_VAL:
return OFFlowModFailedCode.OVERLAP;
case EPERM_VAL:
return OFFlowModFailedCode.EPERM;
case BAD_TIMEOUT_VAL:
return OFFlowModFailedCode.BAD_TIMEOUT;
case BAD_COMMAND_VAL:
return OFFlowModFailedCode.BAD_COMMAND;
case BAD_FLAGS_VAL:
return OFFlowModFailedCode.BAD_FLAGS;
case CANT_SYNC_VAL:
return OFFlowModFailedCode.CANT_SYNC;
case BAD_PRIORITY_VAL:
return OFFlowModFailedCode.BAD_PRIORITY;
default:
throw new IllegalArgumentException("Illegal wire value for type OFFlowModFailedCode in version 1.4: " + val);
}
}
示例2: ofWireValue
public static OFFlowModFailedCode ofWireValue(short val) {
switch(val) {
case UNKNOWN_VAL:
return OFFlowModFailedCode.UNKNOWN;
case TABLE_FULL_VAL:
return OFFlowModFailedCode.TABLE_FULL;
case BAD_TABLE_ID_VAL:
return OFFlowModFailedCode.BAD_TABLE_ID;
case OVERLAP_VAL:
return OFFlowModFailedCode.OVERLAP;
case EPERM_VAL:
return OFFlowModFailedCode.EPERM;
case BAD_TIMEOUT_VAL:
return OFFlowModFailedCode.BAD_TIMEOUT;
case BAD_COMMAND_VAL:
return OFFlowModFailedCode.BAD_COMMAND;
case BAD_FLAGS_VAL:
return OFFlowModFailedCode.BAD_FLAGS;
case CANT_SYNC_VAL:
return OFFlowModFailedCode.CANT_SYNC;
case BAD_PRIORITY_VAL:
return OFFlowModFailedCode.BAD_PRIORITY;
case IS_SYNC_VAL:
return OFFlowModFailedCode.IS_SYNC;
default:
throw new IllegalArgumentException("Illegal wire value for type OFFlowModFailedCode in version 1.5: " + val);
}
}