| Constructor | Description |
|---|---|
CountersPBImpl() |
|
CountersPBImpl(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProto proto) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAllCounterGroups(java.util.Map<java.lang.String,CounterGroup> counterGroups) |
|
void |
clearCounterGroups() |
|
java.util.Map<java.lang.String,CounterGroup> |
getAllCounterGroups() |
|
Counter |
getCounter(java.lang.Enum<?> key) |
|
CounterGroup |
getCounterGroup(java.lang.String key) |
|
org.apache.hadoop.mapreduce.v2.proto.MRProtos.CountersProto |
getProto() |
|
void |
incrCounter(java.lang.Enum<?> key,
long amount) |
|
void |
removeCounterGroup(java.lang.String key) |
|
void |
setCounterGroup(java.lang.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 java.util.Map<java.lang.String,CounterGroup> getAllCounterGroups()
getAllCounterGroups in interface Counterspublic CounterGroup getCounterGroup(java.lang.String key)
getCounterGroup in interface Counterspublic Counter getCounter(java.lang.Enum<?> key)
getCounter in interface Counterspublic void incrCounter(java.lang.Enum<?> key,
long amount)
incrCounter in interface Counterspublic void addAllCounterGroups(java.util.Map<java.lang.String,CounterGroup> counterGroups)
addAllCounterGroups in interface Counterspublic void setCounterGroup(java.lang.String key,
CounterGroup val)
setCounterGroup in interface Counterspublic void removeCounterGroup(java.lang.String key)
removeCounterGroup in interface Counterspublic void clearCounterGroups()
clearCounterGroups in interface CountersCopyright © 2008–2025 Apache Software Foundation. All rights reserved.