public class ContainerStoppedEvent extends Object implements HistoryEvent
| Constructor and Description |
|---|
ContainerStoppedEvent() |
ContainerStoppedEvent(org.apache.hadoop.yarn.api.records.ContainerId containerId,
long stopTime,
int exitStatus,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromProto(RecoveryProtos.ContainerStoppedProto proto) |
void |
fromProtoStream(InputStream inputStream) |
org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getApplicationAttemptId() |
org.apache.hadoop.yarn.api.records.ContainerId |
getContainerId() |
HistoryEventType |
getEventType() |
int |
getExitStatus() |
long |
getStoppedTime() |
boolean |
isHistoryEvent() |
boolean |
isRecoveryEvent() |
RecoveryProtos.ContainerStoppedProto |
toProto() |
void |
toProtoStream(OutputStream outputStream) |
String |
toString() |
public ContainerStoppedEvent()
public ContainerStoppedEvent(org.apache.hadoop.yarn.api.records.ContainerId containerId,
long stopTime,
int exitStatus,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
public HistoryEventType getEventType()
getEventType in interface HistoryEventpublic boolean isRecoveryEvent()
isRecoveryEvent in interface HistoryEventpublic boolean isHistoryEvent()
isHistoryEvent in interface HistoryEventpublic RecoveryProtos.ContainerStoppedProto toProto()
public void fromProto(RecoveryProtos.ContainerStoppedProto proto)
public void toProtoStream(OutputStream outputStream) throws IOException
toProtoStream in interface HistoryEventIOExceptionpublic void fromProtoStream(InputStream inputStream) throws IOException
fromProtoStream in interface HistoryEventIOExceptionpublic org.apache.hadoop.yarn.api.records.ContainerId getContainerId()
public long getStoppedTime()
public int getExitStatus()
public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
Copyright © 2015 Apache Software Foundation. All rights reserved.