public interface Context
| Modifier and Type | Method and Description |
|---|---|
ApplicationContainerContext |
getApplicationContainerContext()
Gets the application-defined context for the current container.
|
ApplicationTaskContext |
getApplicationTaskContext()
Gets the application-defined task context for the current task.
|
ContainerContext |
getContainerContext()
Gets the framework-provided context for the current container.
|
JobContext |
getJobContext()
Gets the framework-provided context for the job.
|
TaskContext |
getTaskContext()
Gets the framework-provided context for the current task.
|
JobContext getJobContext()
ContainerContext getContainerContext()
Use getApplicationContainerContext() to get the application-defined container context.
TaskContext getTaskContext()
Use getApplicationTaskContext() to get the application-defined task context.
ApplicationContainerContext getApplicationContainerContext()
Use ApplicationDescriptor.withApplicationContainerContextFactory(org.apache.samza.context.ApplicationContainerContextFactory<?>) to provide a factory for this context.
Cast the returned context to the concrete implementation type to use it.
Use getContainerContext() to get the framework-provided container context.
java.lang.IllegalStateException - if no ApplicationContainerContextFactory was was provided for the applicationApplicationTaskContext getApplicationTaskContext()
Use ApplicationDescriptor.withApplicationTaskContextFactory(org.apache.samza.context.ApplicationTaskContextFactory<?>) to provide a factory for this context.
Cast the returned context to the concrete implementation type to use it.
Use getTaskContext() to get the framework-provided task context.
java.lang.IllegalStateException - if no ApplicationTaskContextFactory was provided for the application