public final class ContainerInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ACLS |
static String |
DEFAULT_SERVICE_DATA |
static String |
DEFAULT_TOKENS |
| Constructor and Description |
|---|
ContainerInfo() |
| Modifier and Type | Method and Description |
|---|---|
ContainerInfo |
addCommand(String command)
Adds a command to the command list to be executed
|
ContainerInfo |
addEnvironment(String key,
String value)
Adds an environment variable.
|
ContainerInfo |
addFileResource(String key,
FileResource fileResource) |
String |
getAcls() |
List<String> |
getCommands() |
Map<String,EnvironmentEntry> |
getEnvironment() |
Map<String,LocalResourcesEntry> |
getLocalResources() |
String |
getServiceData() |
String |
getTokens() |
ContainerInfo |
setAcls(String acls) |
ContainerInfo |
setCommands(List<String> commands) |
void |
setEnvironment(Map<String,EnvironmentEntry> environment) |
ContainerInfo |
setLocalResources(Map<String,LocalResourcesEntry> localResources) |
ContainerInfo |
setServiceData(String serviceData) |
ContainerInfo |
setTokens(String tokens) |
public static final String DEFAULT_SERVICE_DATA
public static final String DEFAULT_TOKENS
public static final String DEFAULT_ACLS
public ContainerInfo()
public ContainerInfo addEnvironment(String key, String value)
key - the name of the variablevalue - the value it shall takepublic ContainerInfo addCommand(String command)
command - public ContainerInfo addFileResource(String key, FileResource fileResource)
public String getServiceData()
public ContainerInfo setServiceData(String serviceData)
public ContainerInfo setTokens(String tokens)
public ContainerInfo setAcls(String acls)
public Map<String,EnvironmentEntry> getEnvironment()
public void setEnvironment(Map<String,EnvironmentEntry> environment)
public List<String> getCommands()
public ContainerInfo setCommands(List<String> commands)
public Map<String,LocalResourcesEntry> getLocalResources()
public ContainerInfo setLocalResources(Map<String,LocalResourcesEntry> localResources)
Copyright © 2015 The Apache Software Foundation. All rights reserved.