public class SamzaContainerContext
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Config |
config |
java.lang.String |
name |
java.util.Collection<Partition> |
partitions |
| Constructor and Description |
|---|
SamzaContainerContext(java.lang.String name,
Config config,
java.util.Collection<Partition> partitions)
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<Partition> partitions
public SamzaContainerContext(java.lang.String name,
Config config,
java.util.Collection<Partition> partitions)
name - The name of the container (either a YARN AM or SamzaContainer).config - The job configuration.partitions - The set of input partitions assigned to this container.