本文整理了Java中org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow.getPriority()
方法的一些代码示例,展示了Flow.getPriority()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flow.getPriority()
方法的具体详情如下:
包路径:org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow
类名称:Flow
方法名:getPriority
暂无
代码示例来源:origin: org.opendaylight.alto.basic/alto-simple-ecs-impl
@Override
public int compare(Flow f1, Flow f2) {
if (f1.getPriority() < f2.getPriority()){
return 1;
} else if (f1.getPriority() > f2.getPriority()) {
return -1;
} else {
return 0;
}
}
});
代码示例来源:origin: org.opendaylight.netvirt/utils.netvirt-it-utils
private boolean checkFlowsEqual(Flow configFlow, Flow opFlow) {
Integer configPrio = configFlow.getPriority();
Integer opPrio = opFlow.getPriority();
if (!Objects.equals(configPrio == null ? DEFAULT_PRIORITY : configPrio,
opPrio == null ? DEFAULT_PRIORITY : opPrio)) {
return false;
}
return areMatchesEqual(configFlow.getMatch(), opFlow.getMatch());
}
代码示例来源:origin: org.opendaylight.alto.basic/alto-simple-ecs-impl
private short lookUpFlowTable(short tableId, MatchFields matchFields) {
List<Flow> flows = indexTables.get(tableId).getFlow();
sortFlowByPriority(flows);
for (Flow flow : flows) {
if (flowEntryMatcher.match(flow.getMatch(), matchFields)) {
log.info("Priority: " + flow.getPriority());
Instructions inss = flow.getInstructions();
if (inss == null) {
return tableId;
}
short nextTableId = lookUpInstructions(inss.getInstruction());
return (nextTableId != -1) ? nextTableId : tableId;
}
}
return tableId;
}
代码示例来源:origin: org.opendaylight.openflowplugin.model/model-flow-service
return false;
if (!Objects.equals(_priority, other.getPriority())) {
return false;
代码示例来源:origin: org.opendaylight.groupbasedpolicy/ofoverlay-renderer
return false;
if (!Objects.equals(a.getPriority(), b.getPriority())) {
return false;
代码示例来源:origin: org.opendaylight.groupbasedpolicy/ofoverlay-renderer
result = prime * result + ((flow.getOutGroup() == null) ? 0 : flow.getOutGroup().hashCode());
result = prime * result + ((flow.getOutPort() == null) ? 0 : flow.getOutPort().hashCode());
result = prime * result + ((flow.getPriority() == null) ? 0 : flow.getPriority().hashCode());
result = prime * result + ((flow.getTableId() == null) ? 0 : flow.getTableId().hashCode());
result = prime * result + ((flow.isBarrier() == null) ? 0 : flow.isBarrier().hashCode());
代码示例来源:origin: org.opendaylight.openflowplugin.legacy/sal-compatibility
return false;
if (statsFlow.getPriority() == null) {
if (storedFlow.getPriority() != null) {
return false;
} else if(!statsFlow.getPriority().equals(storedFlow.getPriority())) {
return false;
代码示例来源:origin: org.opendaylight.openflowplugin.model/model-flow-service
this._outGroup = base.getOutGroup();
this._outPort = base.getOutPort();
this._priority = base.getPriority();
this._tableId = base.getTableId();
this._barrier = base.isBarrier();
代码示例来源:origin: org.opendaylight.vtn/manager.implementation
Integer pri = flow.getPriority();
if (Objects.equals(vpri, pri)) {
result = flow;
内容来源于网络,如有侵权,请联系作者删除!