@Override public String getName() { CounterGroupProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasName()) { return null; } return (p.getName()); }
@Override public String getDisplayName() { CounterGroupProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasDisplayName()) { return null; } return (p.getDisplayName()); }
private void initCounters() { if (this.counters != null) { return; } CounterGroupProtoOrBuilder p = viaProto ? proto : builder; List<StringCounterMapProto> list = p.getCountersList(); this.counters = new HashMap<String, Counter>(); for (StringCounterMapProto c : list) { this.counters.put(c.getKey(), convertFromProtoFormat(c.getValue())); } }