org.apache.hadoop.mapreduce.v2.api.records.impl.pb
Class CounterGroupPBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.ProtoBase<MRProtos.CounterGroupProto>
org.apache.hadoop.mapreduce.v2.api.records.impl.pb.CounterGroupPBImpl
- All Implemented Interfaces:
- CounterGroup
public class CounterGroupPBImpl
- extends org.apache.hadoop.yarn.api.records.ProtoBase<MRProtos.CounterGroupProto>
- implements CounterGroup
| Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase |
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString |
CounterGroupPBImpl
public CounterGroupPBImpl()
CounterGroupPBImpl
public CounterGroupPBImpl(MRProtos.CounterGroupProto proto)
getProto
public MRProtos.CounterGroupProto getProto()
- Specified by:
getProto in class org.apache.hadoop.yarn.api.records.ProtoBase<MRProtos.CounterGroupProto>
getName
public String getName()
- Specified by:
getName in interface CounterGroup
setName
public void setName(String name)
- Specified by:
setName in interface CounterGroup
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName in interface CounterGroup
setDisplayName
public void setDisplayName(String displayName)
- Specified by:
setDisplayName in interface CounterGroup
getAllCounters
public Map<String,Counter> getAllCounters()
- Specified by:
getAllCounters in interface CounterGroup
getCounter
public Counter getCounter(String key)
- Specified by:
getCounter in interface CounterGroup
addAllCounters
public void addAllCounters(Map<String,Counter> counters)
- Specified by:
addAllCounters in interface CounterGroup
setCounter
public void setCounter(String key,
Counter val)
- Specified by:
setCounter in interface CounterGroup
removeCounter
public void removeCounter(String key)
- Specified by:
removeCounter in interface CounterGroup
clearCounters
public void clearCounters()
- Specified by:
clearCounters in interface CounterGroup
Copyright © 2012 Apache Software Foundation. All Rights Reserved.