@InterfaceAudience.Public @InterfaceStability.Stable public interface ContainerLaunchContext
ContainerLaunchContext
represents all of the information
needed by the NodeManager
to launch a container.
It includes details such as:
ContainerId
of the container.Resource
allocated to the container.LocalResource
necessary for running the container such
as binaries, jar, shared-objects, side-files etc.
Modifier and Type | Method and Description |
---|---|
Map<ApplicationAccessType,String> |
getApplicationACLs()
Get the
ApplicationACL s for the application. |
List<String> |
getCommands()
Get the list of commands for launching the container.
|
ContainerId |
getContainerId()
Get
ContainerId of container to be launched. |
ByteBuffer |
getContainerTokens()
Get security tokens (if security is enabled).
|
Map<String,String> |
getEnvironment()
Get environment variables for the container.
|
Map<String,LocalResource> |
getLocalResources()
Get
LocalResource required by the container. |
Resource |
getResource()
Get the
Resource allocated to the container by the
ResourceManager . |
Map<String,ByteBuffer> |
getServiceData()
Get application-specific binary service data.
|
String |
getUser()
Get the user to whom the container has been allocated.
|
void |
setApplicationACLs(Map<ApplicationAccessType,String> acls)
Set the
ApplicationACL s for the application. |
void |
setCommands(List<String> commands)
Add the list of commands for launching the container.
|
void |
setContainerId(ContainerId containerId)
Set
ContainerId of container to be launched. |
void |
setContainerTokens(ByteBuffer containerToken)
Set security tokens (if security is enabled).
|
void |
setEnvironment(Map<String,String> environment)
Add environment variables for the container.
|
void |
setLocalResources(Map<String,LocalResource> localResources)
Set
LocalResource required by the container. |
void |
setResource(Resource resource)
Set the
Resource allocated to the container by the
ResourceManager . |
void |
setServiceData(Map<String,ByteBuffer> serviceData)
Set application-specific binary service data.
|
void |
setUser(String user)
Set the user to whom the container has been allocated
|
@InterfaceAudience.Public @InterfaceStability.Stable ContainerId getContainerId()
ContainerId
of container to be launched.ContainerId
of container to be launched@InterfaceAudience.Public @InterfaceStability.Stable void setContainerId(ContainerId containerId)
ContainerId
of container to be launched.containerId
- et ContainerId
of container to be launched@InterfaceAudience.Public @InterfaceStability.Stable String getUser()
@InterfaceAudience.Public @InterfaceStability.Stable void setUser(String user)
user
- user to whom the container has been allocated@InterfaceAudience.Public @InterfaceStability.Stable Resource getResource()
Resource
allocated to the container by the
ResourceManager
.Resource
allocated to the container by the
ResourceManager
@InterfaceAudience.Public @InterfaceStability.Stable void setResource(Resource resource)
Resource
allocated to the container by the
ResourceManager
.resource
- allocated resource@InterfaceAudience.Public @InterfaceStability.Stable ByteBuffer getContainerTokens()
@InterfaceAudience.Public @InterfaceStability.Stable void setContainerTokens(ByteBuffer containerToken)
containerToken
- security tokens@InterfaceAudience.Public @InterfaceStability.Stable Map<String,LocalResource> getLocalResources()
LocalResource
required by the container.LocalResource
required by the container@InterfaceAudience.Public @InterfaceStability.Stable void setLocalResources(Map<String,LocalResource> localResources)
LocalResource
required by the container. All pre-existing
Map entries are cleared before adding the new MaplocalResources
- LocalResource
required by the container@InterfaceAudience.Public @InterfaceStability.Stable Map<String,ByteBuffer> getServiceData()
@InterfaceAudience.Public @InterfaceStability.Stable void setServiceData(Map<String,ByteBuffer> serviceData)
serviceData
- application-specific binary service data@InterfaceAudience.Public @InterfaceStability.Stable Map<String,String> getEnvironment()
@InterfaceAudience.Public @InterfaceStability.Stable void setEnvironment(Map<String,String> environment)
environment
- environment variables for the container@InterfaceAudience.Public @InterfaceStability.Stable List<String> getCommands()
@InterfaceAudience.Public @InterfaceStability.Stable void setCommands(List<String> commands)
commands
- the list of commands for launching the container@InterfaceAudience.Public @InterfaceStability.Stable Map<ApplicationAccessType,String> getApplicationACLs()
ApplicationACL
s for the application.ApplicationACL
s@InterfaceAudience.Public @InterfaceStability.Stable void setApplicationACLs(Map<ApplicationAccessType,String> acls)
ApplicationACL
s for the application. All pre-existing
Map entries are cleared before adding the new Mapacls
- ApplicationACL
s for the applicationCopyright © 2014 Apache Software Foundation. All Rights Reserved.