public class CounterGroupPBImpl extends org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<MRProtos.CounterGroupProto> implements CounterGroup
Constructor and Description |
---|
CounterGroupPBImpl() |
CounterGroupPBImpl(MRProtos.CounterGroupProto proto) |
Modifier and Type | Method and Description |
---|---|
void |
addAllCounters(Map<String,Counter> counters) |
void |
clearCounters() |
Map<String,Counter> |
getAllCounters() |
Counter |
getCounter(String key) |
String |
getDisplayName() |
String |
getName() |
MRProtos.CounterGroupProto |
getProto() |
void |
removeCounter(String key) |
void |
setCounter(String key,
Counter val) |
void |
setDisplayName(String displayName) |
void |
setName(String name) |
public CounterGroupPBImpl()
public CounterGroupPBImpl(MRProtos.CounterGroupProto proto)
public MRProtos.CounterGroupProto getProto()
getProto
in class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<MRProtos.CounterGroupProto>
public String getName()
getName
in interface CounterGroup
public void setName(String name)
setName
in interface CounterGroup
public String getDisplayName()
getDisplayName
in interface CounterGroup
public void setDisplayName(String displayName)
setDisplayName
in interface CounterGroup
public Map<String,Counter> getAllCounters()
getAllCounters
in interface CounterGroup
public Counter getCounter(String key)
getCounter
in interface CounterGroup
public void addAllCounters(Map<String,Counter> counters)
addAllCounters
in interface CounterGroup
public void setCounter(String key, Counter val)
setCounter
in interface CounterGroup
public void removeCounter(String key)
removeCounter
in interface CounterGroup
public void clearCounters()
clearCounters
in interface CounterGroup
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.