public abstract class CommandBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Config |
config |
protected int |
id |
protected java.net.URL |
url |
Constructor and Description |
---|
CommandBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
buildCommand() |
abstract java.util.Map<java.lang.String,java.lang.String> |
buildEnvironment() |
CommandBuilder |
setConfig(Config config) |
CommandBuilder |
setId(int id) |
CommandBuilder |
setUrl(java.net.URL url) |
protected Config config
protected int id
protected java.net.URL url
public CommandBuilder setConfig(Config config)
config
- The config object to use when constructing the command and
environment.public CommandBuilder setUrl(java.net.URL url)
url
- The URL location of the job coordinator's HTTP server, which
serves all configuration, task/SSP assignments, etc.public CommandBuilder setId(int id)
id
- associated with a specific instantiation of a SamzaContainer.public abstract java.lang.String buildCommand()
public abstract java.util.Map<java.lang.String,java.lang.String> buildEnvironment()