本文整理了Java中org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow.getKey()
方法的一些代码示例,展示了Flow.getKey()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flow.getKey()
方法的具体详情如下:
包路径:org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow
类名称:Flow
方法名:getKey
暂无
代码示例来源:origin: org.opendaylight.controller.md/statistics-manager
List<InstanceIdentifier<Flow>> notStatReportedConfigFlows() {
if (configFlows != null) {
final List<InstanceIdentifier<Flow>> returnList = new ArrayList<>(configFlows.size());
for (final Flow confFlow : configFlows) {
final InstanceIdentifier<Flow> confFlowIdent = tableRef.child(Flow.class, confFlow.getKey());
returnList.add(confFlowIdent);
}
return returnList;
}
return Collections.emptyList();
}
}
代码示例来源:origin: org.opendaylight.openflowplugin.applications/statistics-manager
List<InstanceIdentifier<Flow>> notStatReportedConfigFlows() {
if (configFlows != null) {
final List<InstanceIdentifier<Flow>> returnList = new ArrayList<>(configFlows.size());
for (final Flow confFlow : configFlows) {
final InstanceIdentifier<Flow> confFlowIdent = tableRef.child(Flow.class, confFlow.getKey());
returnList.add(confFlowIdent);
}
return returnList;
}
return Collections.emptyList();
}
}
代码示例来源:origin: org.opendaylight.controller.md/statistics-manager
private FlowKey searchInConfiguration(final FlowAndStatisticsMapList flowStat, final ReadWriteTransaction trans) {
initConfigFlows(trans);
final Iterator<Flow> it = configFlows.iterator();
while(it.hasNext()) {
final Flow cfgFlow = it.next();
final FlowKey cfgKey = cfgFlow.getKey();
if(flowIdByHash.inverse().containsKey(cfgKey)) {
it.remove();
} else if(FlowComparator.flowEquals(flowStat, cfgFlow)) {
it.remove();
return cfgKey;
}
}
return null;
}
代码示例来源:origin: org.opendaylight.openflowplugin.applications/statistics-manager
private FlowKey searchInConfiguration(final FlowAndStatisticsMapList flowStat, final ReadWriteTransaction trans) {
initConfigFlows();
final Iterator<Flow> it = configFlows.iterator();
while(it.hasNext()) {
final Flow cfgFlow = it.next();
final FlowKey cfgKey = cfgFlow.getKey();
final FlowId cfgFlowId = cfgKey.getId();
if(! flowIdByHash.inverse().containsKey(cfgFlowId)) {
if(FlowComparator.flowEquals(flowStat, cfgFlow)) {
return cfgKey;
}
}
}
return null;
}
代码示例来源:origin: org.opendaylight.openflowplugin.model/model-flow-service
return false;
if (!Objects.equals(_key, other.getKey())) {
return false;
代码示例来源:origin: org.opendaylight.openflowplugin.model/model-flow-service
public FlowBuilder(Flow base) {
if (base.getKey() == null) {
this._key = new FlowKey(
base.getId()
this._id = base.getId();
} else {
this._key = base.getKey();
this._id = _key.getId();
代码示例来源:origin: org.opendaylight.openflowplugin/test-provider
for (Iterator<Flow> iterator3 = flows.iterator(); iterator3.hasNext();) {
flowCount++;
FlowKey flowKey = iterator3.next().getKey();
InstanceIdentifier<Flow> flowRef = InstanceIdentifier
.create(Nodes.class).child(Node.class, nodeKey)
代码示例来源:origin: org.opendaylight.openflowplugin.applications/forwardingrules-manager
for (Flow flow : flows) {
final KeyedInstanceIdentifier<Flow, FlowKey> flowIdent =
tableIdent.child(Flow.class, flow.getKey());
provider.getFlowCommiter().add(flowIdent, flow, nodeIdentity);
代码示例来源:origin: org.opendaylight.openflowplugin.applications/forwardingrules-manager
tableIdent.child(Flow.class, toBeDeletedFlow.getKey());
代码示例来源:origin: org.opendaylight.tsdr/tsdr-datacollection
.child(Table.class, t.getKey())
.child(Flow.class,
flow.getKey())
.augmentation(
FlowStatisticsData.class);
内容来源于网络,如有侵权,请联系作者删除!