Class ComponentContainers
java.lang.Object
org.apache.hadoop.yarn.service.api.records.ComponentContainers
- All Implemented Interfaces:
Serializable
Containers of a component.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContainer(Container container) Add a container.containers(List<Container> compContainers) Sets the containers.Returns the containers of the component.Name of the service component.voidsetComponentName(String name) voidsetContainers(List<Container> containers) Sets the containers.
-
Constructor Details
-
ComponentContainers
public ComponentContainers()
-
-
Method Details
-
getComponentName
-
setComponentName
-
name
Name of the service component. -
getContainers
Returns the containers of the component. -
setContainers
Sets the containers.- Parameters:
containers- containers of the component.
-
containers
Sets the containers.- Parameters:
compContainers- containers of the component.
-
addContainer
Add a container.- Parameters:
container- container
-