@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
ApplicationACL s 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
ApplicationACL s 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() |
newInstance
public 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()
ContainerLaunchContext
getCommands
in class ContainerLaunchContext
public void setCommands(List<String> commands)
ContainerLaunchContext
setCommands
in class ContainerLaunchContext
commands
- the list of commands for launching the containerpublic Map<String,LocalResource> getLocalResources()
ContainerLaunchContext
LocalResource
required by the container.getLocalResources
in class ContainerLaunchContext
LocalResource
required by the containerpublic void setLocalResources(Map<String,LocalResource> localResources)
ContainerLaunchContext
LocalResource
required by the container. All pre-existing
Map entries are cleared before adding the new MapsetLocalResources
in class ContainerLaunchContext
localResources
- LocalResource
required by the containerpublic ByteBuffer getTokens()
ContainerLaunchContext
getTokens
in class ContainerLaunchContext
public void setTokens(ByteBuffer tokens)
ContainerLaunchContext
setTokens
in class ContainerLaunchContext
tokens
- 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 ContainerLaunchContext
public 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 ContainerLaunchContext
serviceData
- application-specific binary service datapublic Map<String,String> getEnvironment()
ContainerLaunchContext
getEnvironment
in class ContainerLaunchContext
public void setEnvironment(Map<String,String> env)
ContainerLaunchContext
setEnvironment
in class ContainerLaunchContext
env
- environment variables for the containerpublic Map<ApplicationAccessType,String> getApplicationACLs()
ContainerLaunchContext
ApplicationACL
s for the application.getApplicationACLs
in class ContainerLaunchContext
ApplicationACL
spublic void setApplicationACLs(Map<ApplicationAccessType,String> appACLs)
ContainerLaunchContext
ApplicationACL
s for the application. All pre-existing
Map entries are cleared before adding the new MapsetApplicationACLs
in class ContainerLaunchContext
appACLs
- ApplicationACL
s for the applicationCopyright © 2013 Apache Software Foundation. All rights reserved.