Class ApplicationAttemptStateDataPBImpl
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.recovery.records.ApplicationAttemptStateData
org.apache.hadoop.yarn.server.resourcemanager.recovery.records.impl.pb.ApplicationAttemptStateDataPBImpl
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationAttemptStateDataPBImpl(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto proto) -
Method Summary
Modifier and TypeMethodDescriptionstatic RMAppAttemptStateconvertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto e) static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProtobooleanintorg.apache.hadoop.security.CredentialsThe application attempt tokens that belong to this attemptorg.apache.hadoop.yarn.api.records.ApplicationAttemptIdThe ApplicationAttemptId for the application attemptGet the diagnositic information of the attemptorg.apache.hadoop.yarn.api.records.FinalApplicationStatusGet the final finish status of the application.Get the original not-proxied final tracking url for the application.longGet the finish time of the application attempt.org.apache.hadoop.yarn.api.records.ContainerlongGet the memory seconds (in MB seconds) of the application.longGet the preempted memory seconds (in MB seconds) of the application.Get the aggregated number of resources preempted that the application has allocated times the number of seconds the application has been running.longGet the preempted vcore seconds of the application.org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProtogetProto()Get the aggregated number of resources preempted that the application has allocated times the number of seconds the application has been running.longGet the start time of the application.getState()Get the final state of the application attempt.intGet total number of containers allocated for this attempt.longGet the vcore seconds of the application.inthashCode()voidsetAMContainerExitStatus(int exitStatus) voidsetAppAttemptTokens(org.apache.hadoop.security.Credentials attemptTokens) voidsetAttemptId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId) voidsetDiagnostics(String diagnostics) voidsetFinalApplicationStatus(org.apache.hadoop.yarn.api.records.FinalApplicationStatus finishState) voidSet the final tracking Url of the AM.voidsetFinishTime(long finishTime) voidsetMasterContainer(org.apache.hadoop.yarn.api.records.Container container) voidsetMemorySeconds(long memorySeconds) voidsetPreemptedMemorySeconds(long memorySeconds) voidsetPreemptedResourceSecondsMap(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.voidsetPreemptedVcoreSeconds(long vcoreSeconds) voidsetResourceSecondsMap(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.voidsetStartTime(long startTime) voidsetState(RMAppAttemptState state) voidsetTotalAllocatedContainers(int totalAllocatedContainers) Set total number of containers allocated for this attempt.voidsetVcoreSeconds(long vcoreSeconds) toString()Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.recovery.records.ApplicationAttemptStateData
newInstance, newInstance
-
Constructor Details
-
ApplicationAttemptStateDataPBImpl
public ApplicationAttemptStateDataPBImpl() -
ApplicationAttemptStateDataPBImpl
public ApplicationAttemptStateDataPBImpl(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto proto)
-
-
Method Details
-
getProto
public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto getProto()- Specified by:
getProtoin classApplicationAttemptStateData
-
getAttemptId
public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getAttemptId()Description copied from class:ApplicationAttemptStateDataThe ApplicationAttemptId for the application attempt- Specified by:
getAttemptIdin classApplicationAttemptStateData- Returns:
- ApplicationAttemptId for the application attempt
-
setAttemptId
public void setAttemptId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId) - Specified by:
setAttemptIdin classApplicationAttemptStateData
-
getMasterContainer
public org.apache.hadoop.yarn.api.records.Container getMasterContainer()- Specified by:
getMasterContainerin classApplicationAttemptStateData
-
setMasterContainer
public void setMasterContainer(org.apache.hadoop.yarn.api.records.Container container) - Specified by:
setMasterContainerin classApplicationAttemptStateData
-
getAppAttemptTokens
public org.apache.hadoop.security.Credentials getAppAttemptTokens()Description copied from class:ApplicationAttemptStateDataThe application attempt tokens that belong to this attempt- Specified by:
getAppAttemptTokensin classApplicationAttemptStateData- Returns:
- The application attempt tokens that belong to this attempt
-
setAppAttemptTokens
public void setAppAttemptTokens(org.apache.hadoop.security.Credentials attemptTokens) - Specified by:
setAppAttemptTokensin classApplicationAttemptStateData
-
getState
Description copied from class:ApplicationAttemptStateDataGet the final state of the application attempt.- Specified by:
getStatein classApplicationAttemptStateData- Returns:
- the final state of the application attempt.
-
setState
- Specified by:
setStatein classApplicationAttemptStateData
-
getFinalTrackingUrl
Description copied from class:ApplicationAttemptStateDataGet the original not-proxied final tracking url for the application. This is intended to only be used by the proxy itself.- Specified by:
getFinalTrackingUrlin classApplicationAttemptStateData- Returns:
- the original not-proxied final tracking url for the application
-
setFinalTrackingUrl
Description copied from class:ApplicationAttemptStateDataSet the final tracking Url of the AM.- Specified by:
setFinalTrackingUrlin classApplicationAttemptStateData- Parameters:
url- tracking url.
-
getDiagnostics
Description copied from class:ApplicationAttemptStateDataGet the diagnositic information of the attempt- Specified by:
getDiagnosticsin classApplicationAttemptStateData- Returns:
- diagnositic information of the attempt
-
setDiagnostics
- Specified by:
setDiagnosticsin classApplicationAttemptStateData
-
getStartTime
public long getStartTime()Description copied from class:ApplicationAttemptStateDataGet the start time of the application.- Specified by:
getStartTimein classApplicationAttemptStateData- Returns:
- start time of the application
-
setStartTime
public void setStartTime(long startTime) - Specified by:
setStartTimein classApplicationAttemptStateData
-
getMemorySeconds
public long getMemorySeconds()Description copied from class:ApplicationAttemptStateDataGet the memory seconds (in MB seconds) of the application.- Specified by:
getMemorySecondsin classApplicationAttemptStateData- Returns:
- memory seconds (in MB seconds) of the application
-
getVcoreSeconds
public long getVcoreSeconds()Description copied from class:ApplicationAttemptStateDataGet the vcore seconds of the application.- Specified by:
getVcoreSecondsin classApplicationAttemptStateData- Returns:
- vcore seconds of the application
-
setMemorySeconds
public void setMemorySeconds(long memorySeconds) - Specified by:
setMemorySecondsin classApplicationAttemptStateData
-
setVcoreSeconds
public void setVcoreSeconds(long vcoreSeconds) - Specified by:
setVcoreSecondsin classApplicationAttemptStateData
-
getPreemptedMemorySeconds
public long getPreemptedMemorySeconds()Description copied from class:ApplicationAttemptStateDataGet the preempted memory seconds (in MB seconds) of the application.- Specified by:
getPreemptedMemorySecondsin classApplicationAttemptStateData- Returns:
- preempted memory seconds (in MB seconds) of the application
-
getPreemptedVcoreSeconds
public long getPreemptedVcoreSeconds()Description copied from class:ApplicationAttemptStateDataGet the preempted vcore seconds of the application.- Specified by:
getPreemptedVcoreSecondsin classApplicationAttemptStateData- Returns:
- preempted vcore seconds of the application
-
setPreemptedMemorySeconds
public void setPreemptedMemorySeconds(long memorySeconds) - Specified by:
setPreemptedMemorySecondsin classApplicationAttemptStateData
-
setPreemptedVcoreSeconds
public void setPreemptedVcoreSeconds(long vcoreSeconds) - Specified by:
setPreemptedVcoreSecondsin classApplicationAttemptStateData
-
getFinalApplicationStatus
public org.apache.hadoop.yarn.api.records.FinalApplicationStatus getFinalApplicationStatus()Description copied from class:ApplicationAttemptStateDataGet the final finish status of the application.- Specified by:
getFinalApplicationStatusin classApplicationAttemptStateData- Returns:
- final finish status of the application
-
setFinalApplicationStatus
public void setFinalApplicationStatus(org.apache.hadoop.yarn.api.records.FinalApplicationStatus finishState) - Specified by:
setFinalApplicationStatusin classApplicationAttemptStateData
-
hashCode
public int hashCode() -
getAMContainerExitStatus
public int getAMContainerExitStatus()- Specified by:
getAMContainerExitStatusin classApplicationAttemptStateData
-
setAMContainerExitStatus
public void setAMContainerExitStatus(int exitStatus) - Specified by:
setAMContainerExitStatusin classApplicationAttemptStateData
-
equals
-
toString
-
convertToProtoFormat
public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto convertToProtoFormat(RMAppAttemptState e) -
convertFromProtoFormat
public static RMAppAttemptState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto e) -
getFinishTime
public long getFinishTime()Description copied from class:ApplicationAttemptStateDataGet the finish time of the application attempt.- Specified by:
getFinishTimein classApplicationAttemptStateData- Returns:
- finish time of the application attempt
-
setFinishTime
public void setFinishTime(long finishTime) - Specified by:
setFinishTimein classApplicationAttemptStateData
-
getResourceSecondsMap
Description copied from class:ApplicationAttemptStateDataGet the aggregated number of resources preempted that the application has allocated times the number of seconds the application has been running.- Specified by:
getResourceSecondsMapin classApplicationAttemptStateData- Returns:
- map containing the resource name and aggregated preempted resource-seconds
-
setResourceSecondsMap
Description copied from class:ApplicationAttemptStateDataSet the aggregated number of resources that the application has allocated times the number of seconds the application has been running.- Specified by:
setResourceSecondsMapin classApplicationAttemptStateData- Parameters:
resourceSecondsMap- map containing the resource name and aggregated resource-seconds
-
getPreemptedResourceSecondsMap
Description copied from class:ApplicationAttemptStateDataGet the aggregated number of resources preempted that the application has allocated times the number of seconds the application has been running.- Specified by:
getPreemptedResourceSecondsMapin classApplicationAttemptStateData- Returns:
- map containing the resource name and aggregated preempted resource-seconds
-
setPreemptedResourceSecondsMap
Description copied from class:ApplicationAttemptStateDataSet the aggregated number of resources preempted that the application has allocated times the number of seconds the application has been running.- Specified by:
setPreemptedResourceSecondsMapin classApplicationAttemptStateData- Parameters:
preemptedResourceSecondsMap- map containing the resource name and aggregated preempted resource-seconds
-
getTotalAllocatedContainers
public int getTotalAllocatedContainers()Description copied from class:ApplicationAttemptStateDataGet total number of containers allocated for this attempt.- Specified by:
getTotalAllocatedContainersin classApplicationAttemptStateData- Returns:
- total number of containers allocated for this attempt.
-
setTotalAllocatedContainers
public void setTotalAllocatedContainers(int totalAllocatedContainers) Description copied from class:ApplicationAttemptStateDataSet total number of containers allocated for this attempt.- Specified by:
setTotalAllocatedContainersin classApplicationAttemptStateData- Parameters:
totalAllocatedContainers- total number of containers
-