public class ApplicationAttemptStateDataPBImpl extends org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto> implements ApplicationAttemptStateData
| Constructor and Description |
|---|
ApplicationAttemptStateDataPBImpl() |
ApplicationAttemptStateDataPBImpl(org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto proto) |
| Modifier and Type | Method and Description |
|---|---|
static RMAppAttemptState |
convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.RMAppAttemptStateProto e) |
static org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.RMAppAttemptStateProto |
convertToProtoFormat(RMAppAttemptState e) |
ByteBuffer |
getAppAttemptTokens()
The application attempt tokens that belong to this attempt
|
org.apache.hadoop.yarn.api.records.ApplicationAttemptId |
getAttemptId()
The ApplicationAttemptId for the application attempt
|
String |
getDiagnostics()
Get the diagnositic information of the attempt
|
org.apache.hadoop.yarn.api.records.FinalApplicationStatus |
getFinalApplicationStatus()
Get the final finish status of the application.
|
String |
getFinalTrackingUrl()
Get the original not-proxied final tracking url for the
application.
|
org.apache.hadoop.yarn.api.records.Container |
getMasterContainer() |
org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto |
getProto() |
long |
getStartTime()
Get the start time of the application.
|
RMAppAttemptState |
getState()
Get the final state of the application attempt.
|
static ApplicationAttemptStateData |
newApplicationAttemptStateData(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId,
org.apache.hadoop.yarn.api.records.Container container,
ByteBuffer attemptTokens,
long startTime,
RMAppAttemptState finalState,
String finalTrackingUrl,
String diagnostics,
org.apache.hadoop.yarn.api.records.FinalApplicationStatus amUnregisteredFinalStatus) |
void |
setAppAttemptTokens(ByteBuffer attemptTokens) |
void |
setAttemptId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId) |
void |
setDiagnostics(String diagnostics) |
void |
setFinalApplicationStatus(org.apache.hadoop.yarn.api.records.FinalApplicationStatus finishState) |
void |
setFinalTrackingUrl(String url)
Set the final tracking Url of the AM.
|
void |
setMasterContainer(org.apache.hadoop.yarn.api.records.Container container) |
void |
setStartTime(long startTime) |
void |
setState(RMAppAttemptState state) |
public ApplicationAttemptStateDataPBImpl()
public ApplicationAttemptStateDataPBImpl(org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto proto)
public org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto getProto()
getProto in class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto>public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getAttemptId()
ApplicationAttemptStateDatagetAttemptId in interface ApplicationAttemptStateDatapublic void setAttemptId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
setAttemptId in interface ApplicationAttemptStateDatapublic org.apache.hadoop.yarn.api.records.Container getMasterContainer()
getMasterContainer in interface ApplicationAttemptStateDatapublic void setMasterContainer(org.apache.hadoop.yarn.api.records.Container container)
setMasterContainer in interface ApplicationAttemptStateDatapublic ByteBuffer getAppAttemptTokens()
ApplicationAttemptStateDatagetAppAttemptTokens in interface ApplicationAttemptStateDatapublic void setAppAttemptTokens(ByteBuffer attemptTokens)
setAppAttemptTokens in interface ApplicationAttemptStateDatapublic RMAppAttemptState getState()
ApplicationAttemptStateDatagetState in interface ApplicationAttemptStateDatapublic void setState(RMAppAttemptState state)
setState in interface ApplicationAttemptStateDatapublic String getFinalTrackingUrl()
ApplicationAttemptStateDatagetFinalTrackingUrl in interface ApplicationAttemptStateDatapublic void setFinalTrackingUrl(String url)
ApplicationAttemptStateDatasetFinalTrackingUrl in interface ApplicationAttemptStateDatapublic String getDiagnostics()
ApplicationAttemptStateDatagetDiagnostics in interface ApplicationAttemptStateDatapublic void setDiagnostics(String diagnostics)
setDiagnostics in interface ApplicationAttemptStateDatapublic long getStartTime()
ApplicationAttemptStateDatagetStartTime in interface ApplicationAttemptStateDatapublic void setStartTime(long startTime)
setStartTime in interface ApplicationAttemptStateDatapublic org.apache.hadoop.yarn.api.records.FinalApplicationStatus getFinalApplicationStatus()
ApplicationAttemptStateDatagetFinalApplicationStatus in interface ApplicationAttemptStateDatapublic void setFinalApplicationStatus(org.apache.hadoop.yarn.api.records.FinalApplicationStatus finishState)
setFinalApplicationStatus in interface ApplicationAttemptStateDatapublic static ApplicationAttemptStateData newApplicationAttemptStateData(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId, org.apache.hadoop.yarn.api.records.Container container, ByteBuffer attemptTokens, long startTime, RMAppAttemptState finalState, String finalTrackingUrl, String diagnostics, org.apache.hadoop.yarn.api.records.FinalApplicationStatus amUnregisteredFinalStatus)
public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.RMAppAttemptStateProto convertToProtoFormat(RMAppAttemptState e)
public static RMAppAttemptState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.RMAppAttemptStateProto e)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.