use of org.onosproject.net.flow.TypedStoredFlowEntry in project onos by opennetworkinglab.
the class FlowStatisticManager method toFlowEntryWithLoad.
private List<TypedFlowEntryWithLoad> toFlowEntryWithLoad(List<FlowEntryWithLoad> loadList) {
// convert FlowEntryWithLoad list to TypedFlowEntryWithLoad list
List<TypedFlowEntryWithLoad> tfelList = new ArrayList<>();
loadList.forEach(fel -> {
StoredFlowEntry sfe = fel.storedFlowEntry();
TypedStoredFlowEntry.FlowLiveType liveType = toTypedStoredFlowEntryLiveType(sfe.liveType());
TypedStoredFlowEntry tfe = new DefaultTypedFlowEntry(sfe, liveType);
TypedFlowEntryWithLoad tfel = new TypedFlowEntryWithLoad(fel.connectPoint(), tfe, fel.load());
tfelList.add(tfel);
});
return tfelList;
}
Aggregations