Class UpdatedContainer
java.lang.Object
org.apache.hadoop.yarn.api.records.UpdatedContainer
An object that encapsulates an updated container and the
type of Update.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract ContainerGet theContainer.abstract ContainerUpdateTypeGet theContainerUpdateType.inthashCode()static UpdatedContainernewInstance(ContainerUpdateType updateType, Container container) Static Factory method.abstract voidsetContainer(Container container) Set theContainer.abstract voidsetUpdateType(ContainerUpdateType updateType) Set theContainerUpdateType.
-
Constructor Details
-
UpdatedContainer
public UpdatedContainer()
-
-
Method Details
-
newInstance
@Public @Unstable public static UpdatedContainer newInstance(ContainerUpdateType updateType, Container container) Static Factory method.- Parameters:
updateType- ContainerUpdateTypecontainer- Container- Returns:
- UpdatedContainer
-
getUpdateType
Get theContainerUpdateType.- Returns:
- ContainerUpdateType
-
setUpdateType
Set theContainerUpdateType.- Parameters:
updateType- ContainerUpdateType
-
getContainer
Get theContainer.- Returns:
- Container
-
setContainer
Set theContainer.- Parameters:
container- Container
-
hashCode
public int hashCode() -
equals
-