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(com.google.protobuf.CodedInputStream 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(com.google.protobuf.CodedOutputStream 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(com.google.protobuf.CodedOutputStream outputStream)
throws IOException
toProtoStream in interface HistoryEventIOExceptionpublic void fromProtoStream(com.google.protobuf.CodedInputStream 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 © 2019 Apache Software Foundation. All rights reserved.