public class ApplicationAttemptStateDataPBImpl extends ApplicationAttemptStateData
| Constructor and Description |
|---|
ApplicationAttemptStateDataPBImpl() |
ApplicationAttemptStateDataPBImpl(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto proto) |
| Modifier and Type | Method and Description |
|---|---|
static RMAppAttemptState |
convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto e) |
static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto |
convertToProtoFormat(RMAppAttemptState e) |
boolean |
equals(Object other) |
int |
getAMContainerExitStatus() |
org.apache.hadoop.security.Credentials |
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.
|
long |
getFinishTime()
Get the finish time of the application attempt.
|
org.apache.hadoop.yarn.api.records.Container |
getMasterContainer() |
long |
getMemorySeconds()
Get the memory seconds (in MB seconds) of the application.
|
long |
getPreemptedMemorySeconds()
Get the preempted memory seconds
(in MB seconds) of the application.
|
Map<String,Long> |
getPreemptedResourceSecondsMap()
Get the aggregated number of resources preempted that the application has
allocated times the number of seconds the application has been running.
|
long |
getPreemptedVcoreSeconds()
Get the preempted vcore seconds
of the application.
|
org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto |
getProto() |
Map<String,Long> |
getResourceSecondsMap()
Get the aggregated number of resources preempted that the application has
allocated times the number of seconds the application has been running.
|
long |
getStartTime()
Get the start time of the application.
|
RMAppAttemptState |
getState()
Get the final state of the application attempt.
|
int |
getTotalAllocatedContainers()
Get total number of containers allocated for this attempt.
|
long |
getVcoreSeconds()
Get the vcore seconds of the application.
|
int |
hashCode() |
void |
setAMContainerExitStatus(int exitStatus) |
void |
setAppAttemptTokens(org.apache.hadoop.security.Credentials 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 |
setFinishTime(long finishTime) |
void |
setMasterContainer(org.apache.hadoop.yarn.api.records.Container container) |
void |
setMemorySeconds(long memorySeconds) |
void |
setPreemptedMemorySeconds(long memorySeconds) |
void |
setPreemptedResourceSecondsMap(Map<String,Long> preemptedResourceSecondsMap)
Set the aggregated number of resources preempted that the application has
allocated times the number of seconds the application has been running.
|
void |
setPreemptedVcoreSeconds(long vcoreSeconds) |
void |
setResourceSecondsMap(Map<String,Long> resourceSecondsMap)
Set the aggregated number of resources that the application has
allocated times the number of seconds the application has been running.
|
void |
setStartTime(long startTime) |
void |
setState(RMAppAttemptState state) |
void |
setTotalAllocatedContainers(int totalAllocatedContainers)
Set total number of containers allocated for this attempt.
|
void |
setVcoreSeconds(long vcoreSeconds) |
String |
toString() |
newInstance, newInstancepublic ApplicationAttemptStateDataPBImpl()
public ApplicationAttemptStateDataPBImpl(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto proto)
public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto getProto()
getProto in class ApplicationAttemptStateDatapublic org.apache.hadoop.yarn.api.records.ApplicationAttemptId getAttemptId()
ApplicationAttemptStateDatagetAttemptId in class ApplicationAttemptStateDatapublic void setAttemptId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
setAttemptId in class ApplicationAttemptStateDatapublic org.apache.hadoop.yarn.api.records.Container getMasterContainer()
getMasterContainer in class ApplicationAttemptStateDatapublic void setMasterContainer(org.apache.hadoop.yarn.api.records.Container container)
setMasterContainer in class ApplicationAttemptStateDatapublic org.apache.hadoop.security.Credentials getAppAttemptTokens()
ApplicationAttemptStateDatagetAppAttemptTokens in class ApplicationAttemptStateDatapublic void setAppAttemptTokens(org.apache.hadoop.security.Credentials attemptTokens)
setAppAttemptTokens in class ApplicationAttemptStateDatapublic RMAppAttemptState getState()
ApplicationAttemptStateDatagetState in class ApplicationAttemptStateDatapublic void setState(RMAppAttemptState state)
setState in class ApplicationAttemptStateDatapublic String getFinalTrackingUrl()
ApplicationAttemptStateDatagetFinalTrackingUrl in class ApplicationAttemptStateDatapublic void setFinalTrackingUrl(String url)
ApplicationAttemptStateDatasetFinalTrackingUrl in class ApplicationAttemptStateDataurl - tracking url.public String getDiagnostics()
ApplicationAttemptStateDatagetDiagnostics in class ApplicationAttemptStateDatapublic void setDiagnostics(String diagnostics)
setDiagnostics in class ApplicationAttemptStateDatapublic long getStartTime()
ApplicationAttemptStateDatagetStartTime in class ApplicationAttemptStateDatapublic void setStartTime(long startTime)
setStartTime in class ApplicationAttemptStateDatapublic long getMemorySeconds()
ApplicationAttemptStateDatagetMemorySeconds in class ApplicationAttemptStateDatapublic long getVcoreSeconds()
ApplicationAttemptStateDatagetVcoreSeconds in class ApplicationAttemptStateDatapublic void setMemorySeconds(long memorySeconds)
setMemorySeconds in class ApplicationAttemptStateDatapublic void setVcoreSeconds(long vcoreSeconds)
setVcoreSeconds in class ApplicationAttemptStateDatapublic long getPreemptedMemorySeconds()
ApplicationAttemptStateDatagetPreemptedMemorySeconds in class ApplicationAttemptStateDatapublic long getPreemptedVcoreSeconds()
ApplicationAttemptStateDatagetPreemptedVcoreSeconds in class ApplicationAttemptStateDatapublic void setPreemptedMemorySeconds(long memorySeconds)
setPreemptedMemorySeconds in class ApplicationAttemptStateDatapublic void setPreemptedVcoreSeconds(long vcoreSeconds)
setPreemptedVcoreSeconds in class ApplicationAttemptStateDatapublic org.apache.hadoop.yarn.api.records.FinalApplicationStatus getFinalApplicationStatus()
ApplicationAttemptStateDatagetFinalApplicationStatus in class ApplicationAttemptStateDatapublic void setFinalApplicationStatus(org.apache.hadoop.yarn.api.records.FinalApplicationStatus finishState)
setFinalApplicationStatus in class ApplicationAttemptStateDatapublic int getAMContainerExitStatus()
getAMContainerExitStatus in class ApplicationAttemptStateDatapublic void setAMContainerExitStatus(int exitStatus)
setAMContainerExitStatus in class ApplicationAttemptStateDatapublic static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto convertToProtoFormat(RMAppAttemptState e)
public static RMAppAttemptState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto e)
public long getFinishTime()
ApplicationAttemptStateDatagetFinishTime in class ApplicationAttemptStateDatapublic void setFinishTime(long finishTime)
setFinishTime in class ApplicationAttemptStateDatapublic Map<String,Long> getResourceSecondsMap()
ApplicationAttemptStateDatagetResourceSecondsMap in class ApplicationAttemptStateDatapublic void setResourceSecondsMap(Map<String,Long> resourceSecondsMap)
ApplicationAttemptStateDatasetResourceSecondsMap in class ApplicationAttemptStateDataresourceSecondsMap - map containing the resource name and aggregated
resource-secondspublic Map<String,Long> getPreemptedResourceSecondsMap()
ApplicationAttemptStateDatagetPreemptedResourceSecondsMap in class ApplicationAttemptStateDatapublic void setPreemptedResourceSecondsMap(Map<String,Long> preemptedResourceSecondsMap)
ApplicationAttemptStateDatasetPreemptedResourceSecondsMap in class ApplicationAttemptStateDatapreemptedResourceSecondsMap - map containing the resource name and
aggregated preempted resource-secondspublic int getTotalAllocatedContainers()
ApplicationAttemptStateDatagetTotalAllocatedContainers in class ApplicationAttemptStateDatapublic void setTotalAllocatedContainers(int totalAllocatedContainers)
ApplicationAttemptStateDatasetTotalAllocatedContainers in class ApplicationAttemptStateDatatotalAllocatedContainers - total number of containersCopyright © 2008–2024 Apache Software Foundation. All rights reserved.