org.apache.hadoop.mapreduce.v2.api.records.impl.pb
Class TaskAttemptCompletionEventPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<MRProtos.TaskAttemptCompletionEventProto>
      extended by org.apache.hadoop.mapreduce.v2.api.records.impl.pb.TaskAttemptCompletionEventPBImpl
All Implemented Interfaces:
TaskAttemptCompletionEvent

public class TaskAttemptCompletionEventPBImpl
extends org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<MRProtos.TaskAttemptCompletionEventProto>
implements TaskAttemptCompletionEvent


Constructor Summary
TaskAttemptCompletionEventPBImpl()
           
TaskAttemptCompletionEventPBImpl(MRProtos.TaskAttemptCompletionEventProto proto)
           
 
Method Summary
static ByteBuffer convertGeneralFromProtoFormat(com.google.protobuf.ByteString byteString)
           
static com.google.protobuf.ByteString convertGeneralToProtoFormat(ByteBuffer byteBuffer)
           
 TaskAttemptId getAttemptId()
           
 int getAttemptRunTime()
           
 int getEventId()
           
 String getMapOutputServerAddress()
           
 MRProtos.TaskAttemptCompletionEventProto getProto()
           
 Map<String,ByteBuffer> getServicesMetaData()
           
 TaskAttemptCompletionEventStatus getStatus()
           
 void setAttemptId(TaskAttemptId attemptId)
           
 void setAttemptRunTime(int attemptRunTime)
           
 void setEventId(int eventId)
           
 void setMapOutputServerAddress(String mapOutputServerAddress)
           
 void setServicesMetaData(Map<String,ByteBuffer> meta)
           
 void setStatus(TaskAttemptCompletionEventStatus status)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskAttemptCompletionEventPBImpl

public TaskAttemptCompletionEventPBImpl()

TaskAttemptCompletionEventPBImpl

public TaskAttemptCompletionEventPBImpl(MRProtos.TaskAttemptCompletionEventProto proto)
Method Detail

getProto

public MRProtos.TaskAttemptCompletionEventProto getProto()
Specified by:
getProto in class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<MRProtos.TaskAttemptCompletionEventProto>

getAttemptId

public TaskAttemptId getAttemptId()
Specified by:
getAttemptId in interface TaskAttemptCompletionEvent

setAttemptId

public void setAttemptId(TaskAttemptId attemptId)
Specified by:
setAttemptId in interface TaskAttemptCompletionEvent

getStatus

public TaskAttemptCompletionEventStatus getStatus()
Specified by:
getStatus in interface TaskAttemptCompletionEvent

setStatus

public void setStatus(TaskAttemptCompletionEventStatus status)
Specified by:
setStatus in interface TaskAttemptCompletionEvent

getMapOutputServerAddress

public String getMapOutputServerAddress()
Specified by:
getMapOutputServerAddress in interface TaskAttemptCompletionEvent

setMapOutputServerAddress

public void setMapOutputServerAddress(String mapOutputServerAddress)
Specified by:
setMapOutputServerAddress in interface TaskAttemptCompletionEvent

getAttemptRunTime

public int getAttemptRunTime()
Specified by:
getAttemptRunTime in interface TaskAttemptCompletionEvent

setAttemptRunTime

public void setAttemptRunTime(int attemptRunTime)
Specified by:
setAttemptRunTime in interface TaskAttemptCompletionEvent

getEventId

public int getEventId()
Specified by:
getEventId in interface TaskAttemptCompletionEvent

setEventId

public void setEventId(int eventId)
Specified by:
setEventId in interface TaskAttemptCompletionEvent

convertGeneralFromProtoFormat

public static ByteBuffer convertGeneralFromProtoFormat(com.google.protobuf.ByteString byteString)

convertGeneralToProtoFormat

public static com.google.protobuf.ByteString convertGeneralToProtoFormat(ByteBuffer byteBuffer)

getServicesMetaData

public Map<String,ByteBuffer> getServicesMetaData()
Specified by:
getServicesMetaData in interface TaskAttemptCompletionEvent

setServicesMetaData

public void setServicesMetaData(Map<String,ByteBuffer> meta)
Specified by:
setServicesMetaData in interface TaskAttemptCompletionEvent


Copyright © 2014 Apache Software Foundation. All Rights Reserved.