org.apache.tez.dag.history.events
Class TaskAttemptFinishedEvent

java.lang.Object
  extended by org.apache.tez.dag.history.events.TaskAttemptFinishedEvent
All Implemented Interfaces:
HistoryEvent

public class TaskAttemptFinishedEvent
extends Object
implements HistoryEvent


Constructor Summary
TaskAttemptFinishedEvent()
           
TaskAttemptFinishedEvent(org.apache.tez.dag.records.TezTaskAttemptID taId, String vertexName, long startTime, long finishTime, TaskAttemptState state, String diagnostics, org.apache.tez.common.counters.TezCounters counters)
           
 
Method Summary
 org.codehaus.jettison.json.JSONObject convertToATSJSON()
           
 void fromProto(RecoveryProtos.TaskAttemptFinishedProto proto)
           
 void fromProtoStream(InputStream inputStream)
           
 org.apache.tez.common.counters.TezCounters getCounters()
           
 String getDiagnostics()
           
 HistoryEventType getEventType()
           
 long getFinishTime()
           
 TaskAttemptState getState()
           
 org.apache.tez.dag.records.TezTaskAttemptID getTaskAttemptID()
           
 boolean isHistoryEvent()
           
 boolean isRecoveryEvent()
           
 RecoveryProtos.TaskAttemptFinishedProto toProto()
           
 void toProtoStream(OutputStream outputStream)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskAttemptFinishedEvent

public TaskAttemptFinishedEvent(org.apache.tez.dag.records.TezTaskAttemptID taId,
                                String vertexName,
                                long startTime,
                                long finishTime,
                                TaskAttemptState state,
                                String diagnostics,
                                org.apache.tez.common.counters.TezCounters counters)

TaskAttemptFinishedEvent

public TaskAttemptFinishedEvent()
Method Detail

getEventType

public HistoryEventType getEventType()
Specified by:
getEventType in interface HistoryEvent

convertToATSJSON

public org.codehaus.jettison.json.JSONObject convertToATSJSON()
                                                       throws org.codehaus.jettison.json.JSONException
Specified by:
convertToATSJSON in interface HistoryEvent
Throws:
org.codehaus.jettison.json.JSONException

isRecoveryEvent

public boolean isRecoveryEvent()
Specified by:
isRecoveryEvent in interface HistoryEvent

isHistoryEvent

public boolean isHistoryEvent()
Specified by:
isHistoryEvent in interface HistoryEvent

toProto

public RecoveryProtos.TaskAttemptFinishedProto toProto()

fromProto

public void fromProto(RecoveryProtos.TaskAttemptFinishedProto proto)

toProtoStream

public void toProtoStream(OutputStream outputStream)
                   throws IOException
Specified by:
toProtoStream in interface HistoryEvent
Throws:
IOException

fromProtoStream

public void fromProtoStream(InputStream inputStream)
                     throws IOException
Specified by:
fromProtoStream in interface HistoryEvent
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

getTaskAttemptID

public org.apache.tez.dag.records.TezTaskAttemptID getTaskAttemptID()

getCounters

public org.apache.tez.common.counters.TezCounters getCounters()

getDiagnostics

public String getDiagnostics()

getFinishTime

public long getFinishTime()

getState

public TaskAttemptState getState()


Copyright © 2014 Apache Software Foundation. All rights reserved.