|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.api.records.ProtoBase<YarnProtos.ContainerLaunchContextProto>
org.apache.hadoop.yarn.api.records.impl.pb.ContainerLaunchContextPBImpl
public class ContainerLaunchContextPBImpl
| Constructor Summary | |
|---|---|
ContainerLaunchContextPBImpl()
|
|
ContainerLaunchContextPBImpl(YarnProtos.ContainerLaunchContextProto proto)
|
|
| Method Summary | |
|---|---|
Map<ApplicationAccessType,String> |
getApplicationACLs()
Get the ApplicationACLs 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. |
YarnProtos.ContainerLaunchContextProto |
getProto()
|
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> appACLs)
Set the ApplicationACLs 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 containerTokens)
Set security tokens (if security is enabled). |
void |
setEnvironment(Map<String,String> env)
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 |
| Methods inherited from class org.apache.hadoop.yarn.api.records.ProtoBase |
|---|
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerLaunchContextPBImpl()
public ContainerLaunchContextPBImpl(YarnProtos.ContainerLaunchContextProto proto)
| Method Detail |
|---|
public YarnProtos.ContainerLaunchContextProto getProto()
getProto in class ProtoBase<YarnProtos.ContainerLaunchContextProto>public Resource getResource()
ContainerLaunchContextResource allocated to the container by the
ResourceManager.
getResource in interface ContainerLaunchContextResource allocated to the container by the
ResourceManagerpublic void setResource(Resource resource)
ContainerLaunchContextResource allocated to the container by the
ResourceManager.
setResource in interface ContainerLaunchContextresource - allocated resourcepublic List<String> getCommands()
ContainerLaunchContext
getCommands in interface ContainerLaunchContextpublic void setCommands(List<String> commands)
ContainerLaunchContext
setCommands in interface ContainerLaunchContextcommands - the list of commands for launching the containerpublic String getUser()
ContainerLaunchContext
getUser in interface ContainerLaunchContextpublic void setUser(String user)
ContainerLaunchContext
setUser in interface ContainerLaunchContextuser - user to whom the container has been allocatedpublic ContainerId getContainerId()
ContainerLaunchContextContainerId of container to be launched.
getContainerId in interface ContainerLaunchContextContainerId of container to be launchedpublic void setContainerId(ContainerId containerId)
ContainerLaunchContextContainerId of container to be launched.
setContainerId in interface ContainerLaunchContextcontainerId - et ContainerId of container to be launchedpublic Map<String,LocalResource> getLocalResources()
ContainerLaunchContextLocalResource required by the container.
getLocalResources in interface ContainerLaunchContextLocalResource required by the containerpublic void setLocalResources(Map<String,LocalResource> localResources)
ContainerLaunchContextLocalResource required by the container. All pre-existing
Map entries are cleared before adding the new Map
setLocalResources in interface ContainerLaunchContextlocalResources - LocalResource required by the containerpublic ByteBuffer getContainerTokens()
ContainerLaunchContext
getContainerTokens in interface ContainerLaunchContextpublic void setContainerTokens(ByteBuffer containerTokens)
ContainerLaunchContext
setContainerTokens in interface ContainerLaunchContextcontainerTokens - security tokenspublic Map<String,ByteBuffer> getServiceData()
ContainerLaunchContext
getServiceData in interface ContainerLaunchContextpublic void setServiceData(Map<String,ByteBuffer> serviceData)
ContainerLaunchContext
setServiceData in interface ContainerLaunchContextserviceData - application-specific binary service datapublic Map<String,String> getEnvironment()
ContainerLaunchContext
getEnvironment in interface ContainerLaunchContextpublic void setEnvironment(Map<String,String> env)
ContainerLaunchContext
setEnvironment in interface ContainerLaunchContextenv - environment variables for the containerpublic Map<ApplicationAccessType,String> getApplicationACLs()
ContainerLaunchContextApplicationACLs for the application.
getApplicationACLs in interface ContainerLaunchContextApplicationACLspublic void setApplicationACLs(Map<ApplicationAccessType,String> appACLs)
ContainerLaunchContextApplicationACLs for the application. All pre-existing
Map entries are cleared before adding the new Map
setApplicationACLs in interface ContainerLaunchContextappACLs - ApplicationACLs for the application
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||