public class ContainerLaunchedEvent extends Object implements HistoryEvent
| Constructor and Description |
|---|
ContainerLaunchedEvent() |
ContainerLaunchedEvent(org.apache.hadoop.yarn.api.records.ContainerId containerId,
long launchTime,
org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromProto(RecoveryProtos.ContainerLaunchedProto 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() |
long |
getLaunchTime() |
boolean |
isHistoryEvent() |
boolean |
isRecoveryEvent() |
RecoveryProtos.ContainerLaunchedProto |
toProto() |
void |
toProtoStream(com.google.protobuf.CodedOutputStream outputStream) |
String |
toString() |
public ContainerLaunchedEvent()
public ContainerLaunchedEvent(org.apache.hadoop.yarn.api.records.ContainerId containerId,
long launchTime,
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.ContainerLaunchedProto toProto()
public void fromProto(RecoveryProtos.ContainerLaunchedProto 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 getLaunchTime()
public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
Copyright © 2019 Apache Software Foundation. All rights reserved.