use of org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.statistics.rev170120.result.counterresult.GroupsBuilder in project netvirt by opendaylight.
the class StatisticsImpl method createGroupsResult.
private Groups createGroupsResult(String groupName, Map<String, BigInteger> countersMap) {
GroupsBuilder gb = new GroupsBuilder();
gb.setName(groupName);
Map<String, Counters> counters = new HashMap<>();
List<Counters> countersList = new ArrayList<>();
for (String counterName : countersMap.keySet()) {
addCountersToMap(countersMap, counters, counterName);
}
for (Counters counter : counters.values()) {
countersList.add(counter);
}
gb.setCounters(countersList);
return gb.build();
}
Aggregations