@Override public Void call() throws Exception { final GetAllFlowsStatisticsFromAllFlowTablesInputBuilder builder = new GetAllFlowsStatisticsFromAllFlowTablesInputBuilder(); builder.setNode(nodeRef); registrationRpcFutureCallBack(flowStatsService .getAllFlowsStatisticsFromAllFlowTables(builder.build()), null, nodeRef, result); return null; } };
@Override public Void call() throws Exception { final GetAggregateFlowStatisticsFromFlowTableForAllFlowsInputBuilder builder = new GetAggregateFlowStatisticsFromFlowTableForAllFlowsInputBuilder(); builder.setNode(nodeRef); builder.setTableId(tableId); final TableBuilder tbuilder = new TableBuilder(); tbuilder.setId(tableId.getValue()); tbuilder.setKey(new TableKey(tableId.getValue())); registrationRpcFutureCallBack(flowStatsService .getAggregateFlowStatisticsFromFlowTableForAllFlows(builder.build()), tbuilder.build(), nodeRef, null); return null; } };
getFlowStatisticsService().getAllFlowStatisticsFromFlowTable(input);
@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; }
@Override public Void call() throws Exception { final GetAggregateFlowStatisticsFromFlowTableForAllFlowsInputBuilder builder = new GetAggregateFlowStatisticsFromFlowTableForAllFlowsInputBuilder(); builder.setNode(nodeRef); builder.setTableId(tableId); final TableBuilder tbuilder = new TableBuilder(); tbuilder.setId(tableId.getValue()); tbuilder.setKey(new TableKey(tableId.getValue())); registrationRpcFutureCallBack(flowStatsService .getAggregateFlowStatisticsFromFlowTableForAllFlows(builder.build()), tbuilder.build(), nodeRef, null); return null; } };
@Override public Void call() throws Exception { final GetAllFlowsStatisticsFromAllFlowTablesInputBuilder builder = new GetAllFlowsStatisticsFromAllFlowTablesInputBuilder(); builder.setNode(nodeRef); registrationRpcFutureCallBack(flowStatsService .getAllFlowsStatisticsFromAllFlowTables(builder.build()), null, nodeRef, result); return null; } };