@InterfaceAudience.Private @InterfaceStability.Unstable public class ContainerLaunchContextPBImpl extends ContainerLaunchContext
| Constructor and Description |
|---|
ContainerLaunchContextPBImpl() |
ContainerLaunchContextPBImpl(YarnProtos.ContainerLaunchContextProto proto) |
| Modifier and Type | Method and Description |
|---|---|
protected ByteBuffer |
convertFromProtoFormat(com.google.protobuf.ByteString byteString) |
protected com.google.protobuf.ByteString |
convertToProtoFormat(ByteBuffer byteBuffer) |
boolean |
equals(Object other) |
Map<ApplicationAccessType,String> |
getApplicationACLs()
Get the
ApplicationACLs for the application. |
List<String> |
getCommands()
Get the list of commands for launching the container.
|
Map<String,String> |
getEnvironment()
Get environment variables for the container.
|
Map<String,LocalResource> |
getLocalResources()
Get
LocalResource required by the container. |
YarnProtos.ContainerLaunchContextProto |
getProto() |
Map<String,ByteBuffer> |
getServiceData()
Get application-specific binary service data.
|
ByteBuffer |
getTokens()
Get all the tokens needed by this container.
|
int |
hashCode() |
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 |
setEnvironment(Map<String,String> env)
Add environment variables for the container.
|
void |
setLocalResources(Map<String,LocalResource> localResources)
Set
LocalResource required by the container. |
void |
setServiceData(Map<String,ByteBuffer> serviceData)
Set application-specific binary service data.
|
void |
setTokens(ByteBuffer tokens)
Set security tokens needed by this container.
|
String |
toString() |
newInstancepublic ContainerLaunchContextPBImpl()
public ContainerLaunchContextPBImpl(YarnProtos.ContainerLaunchContextProto proto)
public YarnProtos.ContainerLaunchContextProto getProto()
protected final ByteBuffer convertFromProtoFormat(com.google.protobuf.ByteString byteString)
protected final com.google.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)
public List<String> getCommands()
ContainerLaunchContextgetCommands in class ContainerLaunchContextpublic void setCommands(List<String> commands)
ContainerLaunchContextsetCommands in class ContainerLaunchContextcommands - the list of commands for launching the containerpublic Map<String,LocalResource> getLocalResources()
ContainerLaunchContextLocalResource required by the container.getLocalResources in class 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 MapsetLocalResources in class ContainerLaunchContextlocalResources - LocalResource required by the containerpublic ByteBuffer getTokens()
ContainerLaunchContextgetTokens in class ContainerLaunchContextpublic void setTokens(ByteBuffer tokens)
ContainerLaunchContextsetTokens in class ContainerLaunchContexttokens - security tokenspublic Map<String,ByteBuffer> getServiceData()
ContainerLaunchContext
Get application-specific binary service data. This is a map keyed
by the name of each AuxiliaryService that is configured on a
NodeManager and value correspond to the application specific data targeted
for the keyed AuxiliaryService.
This will be used to initialize this application on the specific
AuxiliaryService running on the NodeManager by calling
AuxiliaryService.initializeApplication(ApplicationInitializationContext)
getServiceData in class ContainerLaunchContextpublic void setServiceData(Map<String,ByteBuffer> serviceData)
ContainerLaunchContext
Set application-specific binary service data. This is a map keyed
by the name of each AuxiliaryService that is configured on a
NodeManager and value correspond to the application specific data targeted
for the keyed AuxiliaryService. All pre-existing Map entries are
preserved.
setServiceData in class ContainerLaunchContextserviceData - application-specific binary service datapublic Map<String,String> getEnvironment()
ContainerLaunchContextgetEnvironment in class ContainerLaunchContextpublic void setEnvironment(Map<String,String> env)
ContainerLaunchContextsetEnvironment in class ContainerLaunchContextenv - environment variables for the containerpublic Map<ApplicationAccessType,String> getApplicationACLs()
ContainerLaunchContextApplicationACLs for the application.getApplicationACLs in class ContainerLaunchContextApplicationACLspublic void setApplicationACLs(Map<ApplicationAccessType,String> appACLs)
ContainerLaunchContextApplicationACLs for the application. All pre-existing
Map entries are cleared before adding the new MapsetApplicationACLs in class ContainerLaunchContextappACLs - ApplicationACLs for the applicationCopyright © 2013 Apache Software Foundation. All rights reserved.