| 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 Counterspublic CounterGroup getCounterGroup(String key)
getCounterGroup in interface Counterspublic Counter getCounter(Enum<?> key)
getCounter in interface Counterspublic void incrCounter(Enum<?> key, long amount)
incrCounter in interface Counterspublic void addAllCounterGroups(Map<String,CounterGroup> counterGroups)
addAllCounterGroups in interface Counterspublic void setCounterGroup(String key, CounterGroup val)
setCounterGroup in interface Counterspublic void removeCounterGroup(String key)
removeCounterGroup in interface Counterspublic void clearCounterGroups()
clearCounterGroups in interface CountersCopyright © 2008–2024 Apache Software Foundation. All rights reserved.