Class CounterPBImpl
java.lang.Object
org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterProto>
org.apache.hadoop.mapreduce.v2.api.records.impl.pb.CounterPBImpl
- All Implemented Interfaces:
Counter
public class CounterPBImpl
extends org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterProto>
implements Counter
-
Constructor Summary
ConstructorsConstructorDescriptionCounterPBImpl(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterProto proto) -
Method Summary
Methods inherited from class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
-
Constructor Details
-
CounterPBImpl
public CounterPBImpl() -
CounterPBImpl
public CounterPBImpl(org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterProto getProto()- Specified by:
getProtoin classorg.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.mapreduce.v2.proto.MRProtos.CounterProto>
-
getName
-
setName
-
getValue
public long getValue() -
setValue
public void setValue(long value) -
getDisplayName
- Specified by:
getDisplayNamein interfaceCounter
-
setDisplayName
- Specified by:
setDisplayNamein interfaceCounter
-