org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow.getCookie()方法的使用及代码示例

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

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

Flow.getCookie介绍

暂无

代码示例

代码示例来源:origin: org.opendaylight.vtn/manager.implementation

/**
 * Add the given flow information into this instance.
 *
 * @param data  An {@link IdentifiedData} instance which contains
 *              flow statistics.
 */
public void add(IdentifiedData<Flow> data) {
  Flow flow = data.getValue();
  FlowCookie cookie = flow.getCookie();
  VtnFlowId vtnId = FlowUtils.getVtnFlowId(cookie);
  if (vtnId == null) {
    LOG.debug("{}: Unwanted flow cookie: {}",
         flow.getId().getValue(), cookie);
  } else {
    InstanceIdentifier<Flow> path = data.getIdentifier();
    SalNode snode = SalNode.create(path.firstKeyOf(Node.class));
    if (snode == null) {
      LOG.debug("{}: Invalid flow path: {}",
           flow.getId().getValue(), path);
    } else {
      Map<SalNode, Flow> flowMap = addedFlows.get(vtnId);
      if (flowMap == null) {
        flowMap = new HashMap<>();
        addedFlows.put(vtnId, flowMap);
      }
      flowMap.put(snode, flow);
    }
  }
}

代码示例来源:origin: org.opendaylight.openflowplugin.model/model-flow-service

return false;
if (!Objects.equals(_cookie, other.getCookie())) {
  return false;

代码示例来源:origin: org.opendaylight.groupbasedpolicy/ofoverlay-renderer

return false;
if (!Objects.equals(a.getCookie(), b.getCookie())) {
  return false;

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

return false;
if (statsFlow.getCookie()== null) {
  if (storedFlow.getCookie()!= null) {
    return false;
} else if(!statsFlow.getCookie().equals(storedFlow.getCookie())) {
  return false;
  return false;
if (statsFlow.getCookie()== null) {
  if (storedFlow.getCookie()!= null) {
    return false;
} else if(!statsFlow.getCookie().equals(storedFlow.getCookie())) {
  return false;

代码示例来源:origin: org.opendaylight.groupbasedpolicy/ofoverlay-renderer

result = prime * result + ((flow.getCookie() == null) ? 0 : flow.getCookie().hashCode());
result = prime * result + ((flow.getCookieMask() == null) ? 0 : flow.getCookieMask().hashCode());
result = prime * result + ((flow.getFlags() == null) ? 0 : flow.getFlags().hashCode());

代码示例来源:origin: org.opendaylight.openflowplugin.model/model-flow-service

this._cookie = base.getCookie();
this._cookieMask = base.getCookieMask();
this._flags = base.getFlags();

相关文章