org.apache.tez.dag.history.events
Class TaskAttemptStartedEvent
java.lang.Object
org.apache.tez.dag.history.events.TaskAttemptStartedEvent
- All Implemented Interfaces:
- HistoryEvent
public class TaskAttemptStartedEvent
- extends Object
- implements HistoryEvent
TaskAttemptStartedEvent
public TaskAttemptStartedEvent(org.apache.tez.dag.records.TezTaskAttemptID taId,
String vertexName,
long startTime,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
org.apache.hadoop.yarn.api.records.NodeId nodeId,
String inProgressLogsUrl,
String completedLogsUrl)
TaskAttemptStartedEvent
public TaskAttemptStartedEvent()
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.TaskAttemptStartedProto toProto()
fromProto
public void fromProto(RecoveryProtos.TaskAttemptStartedProto 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()
getStartTime
public long getStartTime()
getContainerId
public org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
getNodeId
public org.apache.hadoop.yarn.api.records.NodeId getNodeId()
Copyright © 2014 Apache Software Foundation. All rights reserved.