Constructor and Description |
---|
CountersPBImpl() |
CountersPBImpl(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProto proto) |
Modifier and Type | Method and Description |
---|---|
void |
addAllCounterGroups(Map<String,CounterGroup> counterGroups) |
void |
clearCounterGroups() |
Map<String,CounterGroup> |
getAllCounterGroups() |
Counter |
getCounter(Enum<?> key) |
CounterGroup |
getCounterGroup(String key) |
org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProto |
getProto() |
void |
incrCounter(Enum<?> key,
long amount) |
void |
removeCounterGroup(String key) |
void |
setCounterGroup(String key,
CounterGroup val) |
public CountersPBImpl()
public CountersPBImpl(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProto proto)
public org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProto getProto()
getProto
in class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProto>
public Map<String,CounterGroup> getAllCounterGroups()
getAllCounterGroups
in interface Counters
public CounterGroup getCounterGroup(String key)
getCounterGroup
in interface Counters
public Counter getCounter(Enum<?> key)
getCounter
in interface Counters
public void incrCounter(Enum<?> key, long amount)
incrCounter
in interface Counters
public void addAllCounterGroups(Map<String,CounterGroup> counterGroups)
addAllCounterGroups
in interface Counters
public void setCounterGroup(String key, CounterGroup val)
setCounterGroup
in interface Counters
public void removeCounterGroup(String key)
removeCounterGroup
in interface Counters
public void clearCounterGroups()
clearCounterGroups
in interface Counters
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.