org.apache.hadoop.mapreduce.v2.api.records.impl.pb
Class CountersPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<MRProtos.CountersProto>
      extended by 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


Constructor Summary
CountersPBImpl()
           
CountersPBImpl(MRProtos.CountersProto proto)
           
 
Method Summary
 void addAllCounterGroups(Map<String,CounterGroup> counterGroups)
           
 void clearCounterGroups()
           
 Map<String,CounterGroup> getAllCounterGroups()
           
 Counter getCounter(Enum<?> key)
           
 CounterGroup getCounterGroup(String key)
           
 MRProtos.CountersProto getProto()
           
 void incrCounter(Enum<?> key, long amount)
           
 void removeCounterGroup(String key)
           
 void setCounterGroup(String key, CounterGroup val)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CountersPBImpl

public CountersPBImpl()

CountersPBImpl

public CountersPBImpl(MRProtos.CountersProto proto)
Method Detail

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 © 2014 Apache Software Foundation. All Rights Reserved.