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