use of org.openkilda.rulemanager.group.GroupType in project open-kilda by telstra.
the class OfGroupConverter method convertToGroupSpeakerData.
/**
* Convert stats entry.
*/
public GroupSpeakerData convertToGroupSpeakerData(OFGroupDescStatsEntry entry) {
GroupId groupId = new GroupId(entry.getGroup().getGroupNumber());
GroupType type = fromOfGroupType(entry.getGroupType());
List<Bucket> buckets = new ArrayList<>();
List<OFBucket> ofBuckets = entry.getBuckets();
for (OFBucket bucket : ofBuckets) {
buckets.add(fromOfBucket(bucket));
}
return GroupSpeakerData.builder().groupId(groupId).type(type).buckets(buckets).build();
}
Aggregations