public abstract class CommandBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Config |
config |
protected java.lang.String |
name |
protected java.util.Map<TaskName,java.lang.Integer> |
taskNameToChangeLogPartitionMapping |
protected java.util.Map<TaskName,java.util.Set<SystemStreamPartition>> |
taskNameToSystemStreamPartitionsMapping |
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 |
setName(java.lang.String name) |
CommandBuilder |
setTaskNameToChangeLogPartitionMapping(java.util.Map<TaskName,java.lang.Integer> mapping) |
CommandBuilder |
setTaskNameToSystemStreamPartitionsMapping(java.util.Map<TaskName,java.util.Set<SystemStreamPartition>> systemStreamPartitionTaskNames) |
protected java.util.Map<TaskName,java.util.Set<SystemStreamPartition>> taskNameToSystemStreamPartitionsMapping
protected java.util.Map<TaskName,java.lang.Integer> taskNameToChangeLogPartitionMapping
protected java.lang.String name
protected Config config
public CommandBuilder setTaskNameToSystemStreamPartitionsMapping(java.util.Map<TaskName,java.util.Set<SystemStreamPartition>> systemStreamPartitionTaskNames)
public CommandBuilder setName(java.lang.String name)
name
- associated with a specific instantiation of a TaskRunner.public CommandBuilder setConfig(Config config)
public CommandBuilder setTaskNameToChangeLogPartitionMapping(java.util.Map<TaskName,java.lang.Integer> mapping)
public abstract java.lang.String buildCommand()
public abstract java.util.Map<java.lang.String,java.lang.String> buildEnvironment()