public class CountersPBImpl extends ProtoBase<MRProtos.CountersProto> implements Counters
Constructor and Description |
---|
CountersPBImpl() |
CountersPBImpl(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) |
MRProtos.CountersProto |
getProto() |
void |
incrCounter(Enum<?> key,
long amount) |
void |
removeCounterGroup(String key) |
void |
setCounterGroup(String key,
CounterGroup val) |
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
public CountersPBImpl()
public CountersPBImpl(MRProtos.CountersProto proto)
public MRProtos.CountersProto getProto()
getProto
in class ProtoBase<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 © 2013 Apache Software Foundation. All rights reserved.