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(InputStream 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(OutputStream 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(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 getLaunchTime()
public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
Copyright © 2015 Apache Software Foundation. All rights reserved.