本文整理了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
暂无
代码示例来源: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();
内容来源于网络,如有侵权,请联系作者删除!