org.apache.hadoop.yarn.api.protocolrecords
Interface StartContainerRequest


@InterfaceAudience.Public
@InterfaceStability.Stable
public interface StartContainerRequest

The request sent by the ApplicationMaster to the NodeManager to start a container.

The ApplicationMaster has to provide details such as allocated resource capability, security tokens (if enabled), command to be executed to start the container, environment for the process, necessary binaries/jar/shared-objects etc. via the ContainerLaunchContext.

See Also:
ContainerManager.startContainer(StartContainerRequest)

Method Summary
 ContainerLaunchContext getContainerLaunchContext()
          Get the ContainerLaunchContext for the container to be started by the NodeManager.
 void setContainerLaunchContext(ContainerLaunchContext context)
          Set the ContainerLaunchContext for the container to be started by the NodeManager
 

Method Detail

getContainerLaunchContext

@InterfaceAudience.Public
@InterfaceStability.Stable
ContainerLaunchContext getContainerLaunchContext()
Get the ContainerLaunchContext for the container to be started by the NodeManager.

Returns:
ContainerLaunchContext for the container to be started by the NodeManager

setContainerLaunchContext

@InterfaceAudience.Public
@InterfaceStability.Stable
void setContainerLaunchContext(ContainerLaunchContext context)
Set the ContainerLaunchContext for the container to be started by the NodeManager

Parameters:
context - ContainerLaunchContext for the container to be started by the NodeManager


Copyright © 2013 Apache Software Foundation. All Rights Reserved.