本文整理了Java中org.opendaylight.controller.sal.flowprogrammer.Flow.getIdleTimeout()
方法的一些代码示例,展示了Flow.getIdleTimeout()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flow.getIdleTimeout()
方法的具体详情如下:
包路径:org.opendaylight.controller.sal.flowprogrammer.Flow
类名称:Flow
方法名:getIdleTimeout
暂无
代码示例来源:origin: org.opendaylight.openflowplugin.legacy/sal-compatibility
public static FlowAdded flowAdded(final Flow sourceFlow) {
Preconditions.checkArgument(sourceFlow != null);
return new FlowAddedBuilder()
.setHardTimeout(Integer.valueOf(sourceFlow.getHardTimeout()))
.setIdleTimeout(Integer.valueOf(sourceFlow.getIdleTimeout()))
.setCookie(new FlowCookie(BigInteger.valueOf(sourceFlow.getId())))
.setPriority(Integer.valueOf(sourceFlow.getPriority()))
.setInstructions(MDFlowMapping.toApplyInstruction(toMDActions(sourceFlow.getActions())))
.setMatch(FromSalConversionsUtils.toMatch(sourceFlow.getMatch()))
.setTableId((short)0)
.build();
}
代码示例来源:origin: org.opendaylight.openflowplugin.legacy/sal-compatibility
private static FlowBuilder internalToMDFlow(final Flow sourceFlow) {
Preconditions.checkArgument(sourceFlow != null);
// Instruct switch to let controller know when flow is removed.
FlowModFlags flags = new FlowModFlags(false, false, false, false, true);
return new FlowBuilder()
.setHardTimeout(Integer.valueOf(sourceFlow.getHardTimeout()))
.setIdleTimeout(Integer.valueOf(sourceFlow.getIdleTimeout()))
.setCookie(new FlowCookie(BigInteger.valueOf(sourceFlow.getId())))
.setPriority(Integer.valueOf((sourceFlow.getPriority())))
.setFlags(flags)
.setInstructions(MDFlowMapping.toApplyInstruction(toMDActions(sourceFlow.getActions())))
.setMatch(FromSalConversionsUtils.toMatch(sourceFlow.getMatch()));
}
代码示例来源:origin: org.opendaylight.controller/troubleshoot.web
row.put("durationSeconds",
((Integer) flowOnNode.getDurationSeconds()).toString());
row.put("idleTimeout", ((Short) flow.getIdleTimeout()).toString());
row.put("priority", String.valueOf(NetUtils.getUnsignedShort(flow.getPriority())));
return row;
代码示例来源:origin: org.opendaylight.controller/protocol_plugins.openflow
((OFFlowMod) fm).setLength(U16.t(OFFlowMod.MINIMUM_LENGTH
+ actionsLength));
((OFFlowMod) fm).setIdleTimeout(flow.getIdleTimeout());
((OFFlowMod) fm).setHardTimeout(flow.getHardTimeout());
((OFFlowMod) fm).setCommand(command);
+ ((V6Match) ofMatch).getIPv6MatchLen()
+ ((V6Match) ofMatch).getPadSize() + actionsLength));
((V6FlowMod) fm).setIdleTimeout(flow.getIdleTimeout());
((V6FlowMod) fm).setHardTimeout(flow.getHardTimeout());
((V6FlowMod) fm).setCommand(command);
代码示例来源:origin: org.opendaylight.openflowplugin.legacy/sal-compatibility
private FlowAndStatisticsMapList toOdFlowStatistics(FlowOnNode flowOnNode) {
FlowAndStatisticsMapListBuilder builder = new FlowAndStatisticsMapListBuilder();
builder.setByteCount(toCounter64(flowOnNode.getByteCount()));
builder.setPacketCount(toCounter64(flowOnNode.getPacketCount()));
builder.setDuration(extractDuration(flowOnNode));
builder.setMatch(FromSalConversionsUtils.toMatch(flowOnNode.getFlow().getMatch()));
builder.setPriority((int)flowOnNode.getFlow().getPriority());
builder.setHardTimeout((int)flowOnNode.getFlow().getHardTimeout());
builder.setIdleTimeout((int)flowOnNode.getFlow().getIdleTimeout());
//TODO: actions to instruction conversion
builder.setInstructions(null);
return builder.build();
}
内容来源于网络,如有侵权,请联系作者删除!