Class CountersPBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProto>
org.apache.hadoop.mapreduce.v2.api.records.impl.pb.CountersPBImpl
- All Implemented Interfaces:
Counters
public class CountersPBImpl
extends org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProto>
implements Counters
-
Constructor Summary
ConstructorsConstructorDescriptionCountersPBImpl(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProto proto) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllCounterGroups(Map<String, CounterGroup> counterGroups) voidgetCounter(Enum<?> key) getCounterGroup(String key) org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProtogetProto()voidincrCounter(Enum<?> key, long amount) voidremoveCounterGroup(String key) voidsetCounterGroup(String key, CounterGroup val) Methods inherited from class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
-
Constructor Details
-
CountersPBImpl
public CountersPBImpl() -
CountersPBImpl
public CountersPBImpl(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProto getProto()- Specified by:
getProtoin classorg.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProto>
-
getAllCounterGroups
- Specified by:
getAllCounterGroupsin interfaceCounters
-
getCounterGroup
- Specified by:
getCounterGroupin interfaceCounters
-
getCounter
- Specified by:
getCounterin interfaceCounters
-
incrCounter
- Specified by:
incrCounterin interfaceCounters
-
addAllCounterGroups
- Specified by:
addAllCounterGroupsin interfaceCounters
-
setCounterGroup
- Specified by:
setCounterGroupin interfaceCounters
-
removeCounterGroup
- Specified by:
removeCounterGroupin interfaceCounters
-
clearCounterGroups
public void clearCounterGroups()- Specified by:
clearCounterGroupsin interfaceCounters
-