org.opendaylight.controller.sal.flowprogrammer.Flow.setHardTimeout()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(111)

本文整理了Java中org.opendaylight.controller.sal.flowprogrammer.Flow.setHardTimeout()方法的一些代码示例,展示了Flow.setHardTimeout()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flow.setHardTimeout()方法的具体详情如下:
包路径:org.opendaylight.controller.sal.flowprogrammer.Flow
类名称:Flow
方法名:setHardTimeout

Flow.setHardTimeout介绍

暂无

代码示例

代码示例来源:origin: org.opendaylight.openflowplugin.legacy/sal-compatibility

/**
 * @param source
 * @param target
 */
private static void genericFlowToAdFlow(GenericFlowAttributes source,
    final Flow target) {
  Integer hardTimeout = source.getHardTimeout();
  if (hardTimeout != null) {
    target.setHardTimeout(hardTimeout.shortValue());
  }
  Integer idleTimeout = source.getIdleTimeout();
  if (idleTimeout != null) {
    target.setIdleTimeout(idleTimeout.shortValue());
  }
  Integer priority = source.getPriority();
  if (priority != null) {
    target.setPriority(priority.shortValue());
  }
  target.setId(source.getCookie().getValue().longValue());
}

代码示例来源:origin: org.opendaylight.controller/protocol_plugins.stub

flow.setPriority(priority++);
flow.setIdleTimeout((short) 1000);
flow.setHardTimeout((short) 2000);
flow.setId(12345);

代码示例来源:origin: org.opendaylight.controller/forwardingrulesmanager

flow.setHardTimeout(Short.parseShort(this.hardTimeout));

代码示例来源:origin: org.opendaylight.controller/sal.implementation

flow.setHardTimeout((short) 360);
flow.setId(1234L);

代码示例来源:origin: org.opendaylight.controller/samples.simpleforwarding

flow.setHardTimeout((short) 0);
flow.setPriority(DEFAULT_IPSWITCH_PRIORITY);

代码示例来源:origin: org.opendaylight.controller/sal.implementation

flow.setHardTimeout((short) 240);
flow.setId(65536L);

代码示例来源:origin: org.opendaylight.controller/samples.loadbalancer

flow.setHardTimeout((short) 0);
flow.setPriority(LB_IPSWITCH_PRIORITY);

代码示例来源:origin: org.opendaylight.controller/protocol_plugins.openflow

flow.setPriority(ofFlowStat.getPriority());
flow.setIdleTimeout(ofFlowStat.getIdleTimeout());
flow.setHardTimeout(ofFlowStat.getHardTimeout());
flow.setId(ofFlowStat.getCookie());
flowOnNode = new FlowOnNode(flow);
flow.setPriority(v6StatsReply.getPriority());
flow.setIdleTimeout(v6StatsReply.getIdleTimeout());
flow.setHardTimeout(v6StatsReply.getHardTimeout());
flow.setId(v6StatsReply.getCookie());
flowOnNode = new FlowOnNode(flow);

相关文章