public abstract class CommandBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
commandPath |
protected Config |
config |
protected java.lang.String |
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 |
setCommandPath(java.lang.String path) |
CommandBuilder |
setConfig(Config config) |
CommandBuilder |
setId(java.lang.String id) |
CommandBuilder |
setUrl(java.net.URL url) |
protected Config config
protected java.lang.String id
protected java.net.URL url
protected java.lang.String commandPath
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(java.lang.String id)
id
- associated with a specific instantiation of a SamzaContainer.public CommandBuilder setCommandPath(java.lang.String path)
path
- Specify path to the command (in case it needs to be adjusted)public abstract java.lang.String buildCommand()
public abstract java.util.Map<java.lang.String,java.lang.String> buildEnvironment()