}
return ret;
}
public static ThriftCounterGroup toThrift(Group g) {
ThriftCounterGroup ret = new ThriftCounterGroup();
ret.setName(g.getName());
ret.setDisplayName(g.getDisplayName());
ret.counters = new HashMap<String, ThriftCounter>();
for (Counters.Counter c : g) {
ret.counters.put(c.getDisplayName(), toThrift(c));
}
return ret;