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

[jira] [Created] (SAMZA-514) Provide a way to share class instances within a single container

Tommy Becker created SAMZA-514:
----------------------------------

             Summary: Provide a way to share class instances within a single 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)