public class CounterPBImpl extends org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<MRProtos.CounterProto> implements Counter
Constructor and Description |
---|
CounterPBImpl() |
CounterPBImpl(MRProtos.CounterProto proto) |
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName() |
String |
getName() |
MRProtos.CounterProto |
getProto() |
long |
getValue() |
void |
setDisplayName(String displayName) |
void |
setName(String name) |
void |
setValue(long value) |
public CounterPBImpl()
public CounterPBImpl(MRProtos.CounterProto proto)
public MRProtos.CounterProto getProto()
getProto
in class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<MRProtos.CounterProto>
public String getDisplayName()
getDisplayName
in interface Counter
public void setDisplayName(String displayName)
setDisplayName
in interface Counter
Copyright © 2022 Apache Software Foundation. All rights reserved.