public class CounterGroupPBImpl extends org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<MRProtos.CounterGroupProto> implements CounterGroup
| Constructor and Description |
|---|
CounterGroupPBImpl() |
CounterGroupPBImpl(MRProtos.CounterGroupProto proto) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllCounters(Map<String,Counter> counters) |
void |
clearCounters() |
Map<String,Counter> |
getAllCounters() |
Counter |
getCounter(String key) |
String |
getDisplayName() |
String |
getName() |
MRProtos.CounterGroupProto |
getProto() |
void |
removeCounter(String key) |
void |
setCounter(String key,
Counter val) |
void |
setDisplayName(String displayName) |
void |
setName(String name) |
public CounterGroupPBImpl()
public CounterGroupPBImpl(MRProtos.CounterGroupProto proto)
public MRProtos.CounterGroupProto getProto()
getProto in class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<MRProtos.CounterGroupProto>public String getName()
getName in interface CounterGrouppublic void setName(String name)
setName in interface CounterGrouppublic String getDisplayName()
getDisplayName in interface CounterGrouppublic void setDisplayName(String displayName)
setDisplayName in interface CounterGrouppublic Map<String,Counter> getAllCounters()
getAllCounters in interface CounterGrouppublic Counter getCounter(String key)
getCounter in interface CounterGrouppublic void addAllCounters(Map<String,Counter> counters)
addAllCounters in interface CounterGrouppublic void setCounter(String key, Counter val)
setCounter in interface CounterGrouppublic void removeCounter(String key)
removeCounter in interface CounterGrouppublic void clearCounters()
clearCounters in interface CounterGroupCopyright © 2022 Apache Software Foundation. All rights reserved.