org.apache.hadoop.yarn.api.protocolrecords
Class StartContainersRequest

java.lang.Object
  extended by org.apache.hadoop.yarn.api.protocolrecords.StartContainersRequest

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract class StartContainersRequest
extends Object

The request which contains a list of StartContainerRequest sent by the ApplicationMaster to the NodeManager to start containers.

In each StartContainerRequest, 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:
ContainerManagementProtocol.startContainers(StartContainersRequest)

Constructor Summary
StartContainersRequest()
           
 
Method Summary
abstract  List<StartContainerRequest> getStartContainerRequests()
          Get a list of StartContainerRequest to start containers.
static StartContainersRequest newInstance(List<StartContainerRequest> requests)
           
abstract  void setStartContainerRequests(List<StartContainerRequest> request)
          Set a list of StartContainerRequest to start containers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartContainersRequest

public StartContainersRequest()
Method Detail

newInstance

@InterfaceAudience.Public
@InterfaceStability.Stable
public static StartContainersRequest newInstance(List<StartContainerRequest> requests)

getStartContainerRequests

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract List<StartContainerRequest> getStartContainerRequests()
Get a list of StartContainerRequest to start containers.

Returns:
a list of StartContainerRequest to start containers.

setStartContainerRequests

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setStartContainerRequests(List<StartContainerRequest> request)
Set a list of StartContainerRequest to start containers.

Parameters:
request - a list of StartContainerRequest to start containers


Copyright © 2014 Apache Software Foundation. All Rights Reserved.