Class CounterGroupPBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto>
org.apache.hadoop.mapreduce.v2.api.records.impl.pb.CounterGroupPBImpl
- All Implemented Interfaces:
CounterGroup
public class CounterGroupPBImpl
extends org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto>
implements CounterGroup
-
Constructor Summary
ConstructorsConstructorDescriptionCounterGroupPBImpl(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto proto) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllCounters(Map<String, Counter> counters) voidgetCounter(String key) getName()org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProtogetProto()voidremoveCounter(String key) voidsetCounter(String key, Counter val) voidsetDisplayName(String displayName) voidMethods inherited from class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
-
Constructor Details
-
CounterGroupPBImpl
public CounterGroupPBImpl() -
CounterGroupPBImpl
public CounterGroupPBImpl(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto getProto()- Specified by:
getProtoin classorg.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterGroupProto>
-
getName
- Specified by:
getNamein interfaceCounterGroup
-
setName
- Specified by:
setNamein interfaceCounterGroup
-
getDisplayName
- Specified by:
getDisplayNamein interfaceCounterGroup
-
setDisplayName
- Specified by:
setDisplayNamein interfaceCounterGroup
-
getAllCounters
- Specified by:
getAllCountersin interfaceCounterGroup
-
getCounter
- Specified by:
getCounterin interfaceCounterGroup
-
addAllCounters
- Specified by:
addAllCountersin interfaceCounterGroup
-
setCounter
- Specified by:
setCounterin interfaceCounterGroup
-
removeCounter
- Specified by:
removeCounterin interfaceCounterGroup
-
clearCounters
public void clearCounters()- Specified by:
clearCountersin interfaceCounterGroup
-