org.apache.hadoop.mapreduce.v2.api.records.impl.pb
Class CountersPBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<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<MRProtos.CountersProto>
- implements Counters
| Methods inherited from class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase |
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString |
CountersPBImpl
public CountersPBImpl()
CountersPBImpl
public CountersPBImpl(MRProtos.CountersProto proto)
getProto
public MRProtos.CountersProto getProto()
- Specified by:
getProto in class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<MRProtos.CountersProto>
getAllCounterGroups
public Map<String,CounterGroup> getAllCounterGroups()
- Specified by:
getAllCounterGroups in interface Counters
getCounterGroup
public CounterGroup getCounterGroup(String key)
- Specified by:
getCounterGroup in interface Counters
getCounter
public Counter getCounter(Enum<?> key)
- Specified by:
getCounter in interface Counters
incrCounter
public void incrCounter(Enum<?> key,
long amount)
- Specified by:
incrCounter in interface Counters
addAllCounterGroups
public void addAllCounterGroups(Map<String,CounterGroup> counterGroups)
- Specified by:
addAllCounterGroups in interface Counters
setCounterGroup
public void setCounterGroup(String key,
CounterGroup val)
- Specified by:
setCounterGroup in interface Counters
removeCounterGroup
public void removeCounterGroup(String key)
- Specified by:
removeCounterGroup in interface Counters
clearCounterGroups
public void clearCounterGroups()
- Specified by:
clearCounterGroups in interface Counters
Copyright © 2013 Apache Software Foundation. All Rights Reserved.