public class SamzaContainerContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Config |
config |
java.lang.String |
id |
java.util.Collection<TaskName> |
taskNames |
Constructor and Description |
---|
SamzaContainerContext(java.lang.String 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 java.lang.String id
public final Config config
public final java.util.Collection<TaskName> taskNames
public SamzaContainerContext(java.lang.String 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.