org.apache.tez.dag.history.events
Class TaskFinishedEvent
java.lang.Object
org.apache.tez.dag.history.events.TaskFinishedEvent
- All Implemented Interfaces:
- HistoryEvent
public class TaskFinishedEvent
- extends Object
- implements HistoryEvent
|
Constructor Summary |
TaskFinishedEvent()
|
TaskFinishedEvent(org.apache.tez.dag.records.TezTaskID taskID,
String vertexName,
long startTime,
long finishTime,
org.apache.tez.dag.records.TezTaskAttemptID successfulAttemptID,
TaskState state,
org.apache.tez.common.counters.TezCounters counters)
|
TaskFinishedEvent
public TaskFinishedEvent(org.apache.tez.dag.records.TezTaskID taskID,
String vertexName,
long startTime,
long finishTime,
org.apache.tez.dag.records.TezTaskAttemptID successfulAttemptID,
TaskState state,
org.apache.tez.common.counters.TezCounters counters)
TaskFinishedEvent
public TaskFinishedEvent()
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.TaskFinishedProto toProto()
fromProto
public void fromProto(RecoveryProtos.TaskFinishedProto 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
getTaskID
public org.apache.tez.dag.records.TezTaskID getTaskID()
getState
public TaskState getState()
getFinishTime
public long getFinishTime()
getTezCounters
public org.apache.tez.common.counters.TezCounters getTezCounters()
getSuccessfulAttemptID
public org.apache.tez.dag.records.TezTaskAttemptID getSuccessfulAttemptID()
Copyright © 2014 Apache Software Foundation. All rights reserved.