public class SamzaContainerContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Config |
config |
java.lang.String |
name |
java.util.Collection<TaskName> |
taskNames |
Constructor and Description |
---|
SamzaContainerContext(java.lang.String name,
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 name
public final Config config
public final java.util.Collection<TaskName> taskNames
public SamzaContainerContext(java.lang.String name, Config config, java.util.Collection<TaskName> taskNames)
name
- The name of the container (either a YARN AM or SamzaContainer).config
- The job configuration.taskNames
- The set of taskName keys for which this container is responsible.