You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Chris Riccomini (JIRA)" <ji...@apache.org> on 2015/01/20 18:06:34 UTC

[jira] [Commented] (SAMZA-514) Provide a way to share objects within a container

    [ https://issues.apache.org/jira/browse/SAMZA-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14284022#comment-14284022 ] 

Chris Riccomini commented on SAMZA-514:
---------------------------------------

I think the right place to store this would be the SamzaContainerContext. It would also be nice if the SamzaContainerContext exposed the objects that are created in SamzaContainer.apply right now (SystemAdmins, Serdes, and MessageChooser).

> Provide a way to share objects within a container
> -------------------------------------------------
>
>                 Key: SAMZA-514
>                 URL: https://issues.apache.org/jira/browse/SAMZA-514
>             Project: Samza
>          Issue Type: New Feature
>          Components: container
>    Affects Versions: 0.8.0
>            Reporter: Tommy Becker
>
> Samza currently does not provide a way to share objects between user-provided components such as task instances and serde factories. Even if you use Singletons, there is still an issue of where to initialize them. This could be solved by providing a new interface, say JobListener, which would receive a JobContext object and the Config.  The listener implementation could then create objects and place them into the JobContext, which would then be passed to things like SerdeFactorys, StreamTask instances, etc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)