public class SamzaContainerContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Config |
config |
int |
id |
java.util.Collection<TaskName> |
taskNames |
| Constructor and Description |
|---|
SamzaContainerContext(int id,
Config config,
java.util.Collection<TaskName> taskNames)
An immutable context object that can passed to tasks to give them information
about the container in which they are executing.
|
public final int id
public final Config config
public final java.util.Collection<TaskName> taskNames
public SamzaContainerContext(int id,
Config config,
java.util.Collection<TaskName> taskNames)
id - The id of the container.config - The job configuration.taskNames - The set of taskName keys for which this container is responsible.