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

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

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

Flow.getAugmentation介绍

暂无

代码示例

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

if (!e.getValue().equals(other.getAugmentation(e.getKey()))) {
  return false;

代码示例来源:origin: org.opendaylight.openflowplugin/test-provider

if (flow != null) {
 FlowStatisticsData data = flow
  .getAugmentation(FlowStatisticsData.class);
 if (null != data) {
 flowStatsCount++;

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

@Override
public FlowOnNode readFlow(final Node node, final org.opendaylight.controller.sal.flowprogrammer.Flow targetFlow, final boolean cached) {
  FlowOnNode ret = null;
  final Table table = readOperationalTable(node, OPENFLOWV10_TABLE_ID);
  if (table != null) {
    final List<Flow> flows = table.getFlow();
    InventoryAndReadAdapter.LOG.trace("Number of flows installed in table 0 of node {} : {}", node, flows.size());
    for (final Flow mdsalFlow : flows) {
      if(FromSalConversionsUtils.flowEquals(mdsalFlow, MDFlowMapping.toMDSalflow(targetFlow))) {
        final FlowStatisticsData statsFromDataStore = mdsalFlow.getAugmentation(FlowStatisticsData.class);
        if (statsFromDataStore != null) {
          InventoryAndReadAdapter.LOG.debug("Found matching flow in the data store flow table ");
          ret = addFlowStats(new FlowOnNode(targetFlow), statsFromDataStore.getFlowStatistics());
          // FIXME: break; ?
        }
      }
    }
  }
  //TODO: Refer TODO (main)
  final GetFlowStatisticsFromFlowTableInputBuilder input = new GetFlowStatisticsFromFlowTableInputBuilder().setNode(NodeMapping.toNodeRef(node));
  input.fieldsFrom(MDFlowMapping.toMDSalflow(targetFlow));
  getFlowStatisticsService().getFlowStatisticsFromFlowTable(input.build());
  return ret;
}

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

final FlowStatisticsData statsFromDataStore = flow.getAugmentation(FlowStatisticsData.class);
if (statsFromDataStore != null) {
  final FlowOnNode it = new FlowOnNode(ToSalConversionsUtils.toFlow(flow, node));

代码示例来源:origin: org.opendaylight.centinel/centinel-streamhandler

for (Flow flow : table.getFlow()) {
  FlowStatisticsData flowStatisticsData = flow
      .getAugmentation(FlowStatisticsData.class);
  if (flowStatisticsData != null) {
    manageOpenFlowStatistics(flowStatisticsData, FlowStatisticsData.class);

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

flow.getAugmentation(FlowStatisticsData.class);
if (data != null) {
  GenericStatistics fstats = data.getFlowStatistics();

代码示例来源:origin: org.opendaylight.tsdr/tsdr-datacollection

for (Flow flow : t.getFlow()) {
  FlowStatisticsData flowStatisticsData = flow
      .getAugmentation(FlowStatisticsData.class);
  if (flowStatisticsData != null) {
    InstanceIdentifier<FlowStatisticsData> tIID = InstanceIdentifier

相关文章