Class UpdateContainerError
java.lang.Object
org.apache.hadoop.yarn.api.records.UpdateContainerError
UpdateContainerError is used by the Scheduler to notify the
ApplicationMaster of an UpdateContainerRequest it cannot satisfy due to
an error in the request. It includes the update request as well as
a reason for why the request was not satisfiable.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract intGet current container version.abstract StringGet reason why the update request was not satisfiable.abstract UpdateContainerRequestGet theUpdateContainerRequestthat was not satisfiable.inthashCode()static UpdateContainerErrornewInstance(String reason, UpdateContainerRequest updateContainerRequest) abstract voidsetCurrentContainerVersion(int currentVersion) Set current container version.abstract voidSet reason why the update request was not satisfiable.abstract voidsetUpdateContainerRequest(UpdateContainerRequest updateContainerRequest) Set theUpdateContainerRequestthat was not satisfiable.toString()
-
Constructor Details
-
UpdateContainerError
public UpdateContainerError()
-
-
Method Details
-
newInstance
@Public @Unstable public static UpdateContainerError newInstance(String reason, UpdateContainerRequest updateContainerRequest) -
getReason
Get reason why the update request was not satisfiable.- Returns:
- Reason
-
setReason
Set reason why the update request was not satisfiable.- Parameters:
reason- Reason
-
getCurrentContainerVersion
@Public @Unstable public abstract int getCurrentContainerVersion()Get current container version.- Returns:
- Current container Version.
-
setCurrentContainerVersion
@Public @Unstable public abstract void setCurrentContainerVersion(int currentVersion) Set current container version.- Parameters:
currentVersion- Current container version.
-
getUpdateContainerRequest
Get theUpdateContainerRequestthat was not satisfiable.- Returns:
- UpdateContainerRequest
-
setUpdateContainerRequest
@Public @Unstable public abstract void setUpdateContainerRequest(UpdateContainerRequest updateContainerRequest) Set theUpdateContainerRequestthat was not satisfiable.- Parameters:
updateContainerRequest- Update Container Request
-
hashCode
public int hashCode() -
toString
-
equals
-