{"action":"created","comment":{"url":"https://api.github.com/repos/hazelcast/hazelcast-jet/pulls/comments/171166711","pull_request_review_id":99970784,"id":171166711,"diff_hunk":"@@ -271,43 +266,16 @@ public void restoreFromSnapshot(@Nonnull Object key, @Nonnull Object value) {\n         }\n     }\n \n-    public static class MetaSupplier<K, V, T> implements ProcessorMetaSupplier {\n-\n-        private final Properties properties;\n-        private final List<String> topics;\n-        private final DistributedFunction<ConsumerRecord<K, V>, T> projectionFn;\n-        private final WatermarkGenerationParams<? super T> wmGenParams;\n-        private int totalParallelism;\n-\n-        public MetaSupplier(\n-                @Nonnull Properties properties,\n-                @Nonnull List<String> topics,\n-                @Nonnull DistributedFunction<ConsumerRecord<K, V>, T> projectionFn,\n-                @Nonnull WatermarkGenerationParams<? super T> wmGenParams) {\n-            this.properties = new Properties();\n-            this.properties.putAll(properties);\n-            this.topics = topics;\n-            this.projectionFn = projectionFn;\n-            this.wmGenParams = wmGenParams;\n-        }\n-\n-        @Override\n-        public int preferredLocalParallelism() {\n-            return 2;\n-        }\n-\n-        @Override\n-        public void init(@Nonnull Context context) {\n-            totalParallelism = context.totalParallelism();\n-        }\n-\n-        @Nonnull\n-        @Override\n-        public Function<Address, ProcessorSupplier> get(@Nonnull List<Address> addresses) {\n-            return address -> new CloseableProcessorSupplier<>(\n-                    () -> new StreamKafkaP<>(properties, topics, projectionFn, totalParallelism, wmGenParams)\n-            );\n-        }\n+    @Nonnull\n+    public static <K, V, T> ProcessorSupplier processorSupplier(\n+            @Nonnull Properties properties,\n+            @Nonnull List<String> topics,\n+            @Nonnull DistributedFunction<ConsumerRecord<K, V>, T> projectionFn,\n+            @Nonnull WatermarkGenerationParams<T> wmGenParams\n+    ) {\n+        return new CloseableProcessorSupplier<StreamKafkaP>(() -> new StreamKafkaP<>(","path":"hazelcast-jet-kafka/src/main/java/com/hazelcast/jet/impl/connector/kafka/StreamKafkaP.java","position":null,"original_position":116,"commit_id":"4df3b95688f16e9923a06a88e7842c6b59d08989","original_commit_id":"b618f47bd2026ebd730c1b7baa201e6dc83f3bc2","user":{"login":"viliam-durina","id":9109877,"avatar_url":"https://avatars0.githubusercontent.com/u/9109877?v=4","gravatar_id":"","url":"https://api.github.com/users/viliam-durina","html_url":"https://github.com/viliam-durina","followers_url":"https://api.github.com/users/viliam-durina/followers","following_url":"https://api.github.com/users/viliam-durina/following{/other_user}","gists_url":"https://api.github.com/users/viliam-durina/gists{/gist_id}","starred_url":"https://api.github.com/users/viliam-durina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viliam-durina/subscriptions","organizations_url":"https://api.github.com/users/viliam-durina/orgs","repos_url":"https://api.github.com/users/viliam-durina/repos","events_url":"https://api.github.com/users/viliam-durina/events{/privacy}","received_events_url":"https://api.github.com/users/viliam-durina/received_events","type":"User","site_admin":false},"body":"ok, missed that","created_at":"2018-02-28T08:08:57Z","updated_at":"2018-02-28T08:08:58Z","html_url":"https://github.com/hazelcast/hazelcast-jet/pull/754#discussion_r171166711","pull_request_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/pulls/754","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hazelcast/hazelcast-jet/pulls/comments/171166711"},"html":{"href":"https://github.com/hazelcast/hazelcast-jet/pull/754#discussion_r171166711"},"pull_request":{"href":"https://api.github.com/repos/hazelcast/hazelcast-jet/pulls/754"}},"in_reply_to_id":171159974},"pull_request":{"url":"https://api.github.com/repos/hazelcast/hazelcast-jet/pulls/754","id":171710151,"html_url":"https://github.com/hazelcast/hazelcast-jet/pull/754","diff_url":"https://github.com/hazelcast/hazelcast-jet/pull/754.diff","patch_url":"https://github.com/hazelcast/hazelcast-jet/pull/754.patch","issue_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/issues/754","number":754,"state":"open","locked":false,"title":"Make parallelism available to ProcessorSupplier.Context and Processor.Context","user":{"login":"cangencer","id":510278,"avatar_url":"https://avatars0.githubusercontent.com/u/510278?v=4","gravatar_id":"","url":"https://api.github.com/users/cangencer","html_url":"https://github.com/cangencer","followers_url":"https://api.github.com/users/cangencer/followers","following_url":"https://api.github.com/users/cangencer/following{/other_user}","gists_url":"https://api.github.com/users/cangencer/gists{/gist_id}","starred_url":"https://api.github.com/users/cangencer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cangencer/subscriptions","organizations_url":"https://api.github.com/users/cangencer/orgs","repos_url":"https://api.github.com/users/cangencer/repos","events_url":"https://api.github.com/users/cangencer/events{/privacy}","received_events_url":"https://api.github.com/users/cangencer/received_events","type":"User","site_admin":false},"body":"New additional fields of `localParallelism` and `totalParallelism` are now available in `Processor `and `ProcessorSupplier` level. \r\n\r\nAlso made them extend the upstream interfaces, so that gradually more information is available in each context as you drill down.","created_at":"2018-02-27T16:13:09Z","updated_at":"2018-02-28T08:08:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d73797eb5a7307bd21304aff62e05b4323d5d8e4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":535864487,"url":"https://api.github.com/repos/hazelcast/hazelcast-jet/labels/core","name":"core","color":"0e8a16","default":false},{"id":299938357,"url":"https://api.github.com/repos/hazelcast/hazelcast-jet/labels/enhancement","name":"enhancement","color":"5319e7","default":true}],"milestone":{"url":"https://api.github.com/repos/hazelcast/hazelcast-jet/milestones/8","html_url":"https://github.com/hazelcast/hazelcast-jet/milestone/8","labels_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/milestones/8/labels","id":2869179,"number":8,"title":"0.6","description":"","creator":{"login":"cangencer","id":510278,"avatar_url":"https://avatars0.githubusercontent.com/u/510278?v=4","gravatar_id":"","url":"https://api.github.com/users/cangencer","html_url":"https://github.com/cangencer","followers_url":"https://api.github.com/users/cangencer/followers","following_url":"https://api.github.com/users/cangencer/following{/other_user}","gists_url":"https://api.github.com/users/cangencer/gists{/gist_id}","starred_url":"https://api.github.com/users/cangencer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cangencer/subscriptions","organizations_url":"https://api.github.com/users/cangencer/orgs","repos_url":"https://api.github.com/users/cangencer/repos","events_url":"https://api.github.com/users/cangencer/events{/privacy}","received_events_url":"https://api.github.com/users/cangencer/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":103,"state":"open","created_at":"2017-10-27T08:19:05Z","updated_at":"2018-02-28T07:18:03Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/pulls/754/commits","review_comments_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/pulls/754/comments","review_comment_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/issues/754/comments","statuses_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/statuses/4df3b95688f16e9923a06a88e7842c6b59d08989","head":{"label":"cangencer:supplier-contexts","ref":"supplier-contexts","sha":"4df3b95688f16e9923a06a88e7842c6b59d08989","user":{"login":"cangencer","id":510278,"avatar_url":"https://avatars0.githubusercontent.com/u/510278?v=4","gravatar_id":"","url":"https://api.github.com/users/cangencer","html_url":"https://github.com/cangencer","followers_url":"https://api.github.com/users/cangencer/followers","following_url":"https://api.github.com/users/cangencer/following{/other_user}","gists_url":"https://api.github.com/users/cangencer/gists{/gist_id}","starred_url":"https://api.github.com/users/cangencer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cangencer/subscriptions","organizations_url":"https://api.github.com/users/cangencer/orgs","repos_url":"https://api.github.com/users/cangencer/repos","events_url":"https://api.github.com/users/cangencer/events{/privacy}","received_events_url":"https://api.github.com/users/cangencer/received_events","type":"User","site_admin":false},"repo":{"id":81296189,"name":"hazelcast-jet","full_name":"cangencer/hazelcast-jet","owner":{"login":"cangencer","id":510278,"avatar_url":"https://avatars0.githubusercontent.com/u/510278?v=4","gravatar_id":"","url":"https://api.github.com/users/cangencer","html_url":"https://github.com/cangencer","followers_url":"https://api.github.com/users/cangencer/followers","following_url":"https://api.github.com/users/cangencer/following{/other_user}","gists_url":"https://api.github.com/users/cangencer/gists{/gist_id}","starred_url":"https://api.github.com/users/cangencer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cangencer/subscriptions","organizations_url":"https://api.github.com/users/cangencer/orgs","repos_url":"https://api.github.com/users/cangencer/repos","events_url":"https://api.github.com/users/cangencer/events{/privacy}","received_events_url":"https://api.github.com/users/cangencer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cangencer/hazelcast-jet","description":"A general purpose distributed data processing engine, built on top of Hazelcast.","fork":true,"url":"https://api.github.com/repos/cangencer/hazelcast-jet","forks_url":"https://api.github.com/repos/cangencer/hazelcast-jet/forks","keys_url":"https://api.github.com/repos/cangencer/hazelcast-jet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cangencer/hazelcast-jet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cangencer/hazelcast-jet/teams","hooks_url":"https://api.github.com/repos/cangencer/hazelcast-jet/hooks","issue_events_url":"https://api.github.com/repos/cangencer/hazelcast-jet/issues/events{/number}","events_url":"https://api.github.com/repos/cangencer/hazelcast-jet/events","assignees_url":"https://api.github.com/repos/cangencer/hazelcast-jet/assignees{/user}","branches_url":"https://api.github.com/repos/cangencer/hazelcast-jet/branches{/branch}","tags_url":"https://api.github.com/repos/cangencer/hazelcast-jet/tags","blobs_url":"https://api.github.com/repos/cangencer/hazelcast-jet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cangencer/hazelcast-jet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cangencer/hazelcast-jet/git/refs{/sha}","trees_url":"https://api.github.com/repos/cangencer/hazelcast-jet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cangencer/hazelcast-jet/statuses/{sha}","languages_url":"https://api.github.com/repos/cangencer/hazelcast-jet/languages","stargazers_url":"https://api.github.com/repos/cangencer/hazelcast-jet/stargazers","contributors_url":"https://api.github.com/repos/cangencer/hazelcast-jet/contributors","subscribers_url":"https://api.github.com/repos/cangencer/hazelcast-jet/subscribers","subscription_url":"https://api.github.com/repos/cangencer/hazelcast-jet/subscription","commits_url":"https://api.github.com/repos/cangencer/hazelcast-jet/commits{/sha}","git_commits_url":"https://api.github.com/repos/cangencer/hazelcast-jet/git/commits{/sha}","comments_url":"https://api.github.com/repos/cangencer/hazelcast-jet/comments{/number}","issue_comment_url":"https://api.github.com/repos/cangencer/hazelcast-jet/issues/comments{/number}","contents_url":"https://api.github.com/repos/cangencer/hazelcast-jet/contents/{+path}","compare_url":"https://api.github.com/repos/cangencer/hazelcast-jet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cangencer/hazelcast-jet/merges","archive_url":"https://api.github.com/repos/cangencer/hazelcast-jet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cangencer/hazelcast-jet/downloads","issues_url":"https://api.github.com/repos/cangencer/hazelcast-jet/issues{/number}","pulls_url":"https://api.github.com/repos/cangencer/hazelcast-jet/pulls{/number}","milestones_url":"https://api.github.com/repos/cangencer/hazelcast-jet/milestones{/number}","notifications_url":"https://api.github.com/repos/cangencer/hazelcast-jet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cangencer/hazelcast-jet/labels{/name}","releases_url":"https://api.github.com/repos/cangencer/hazelcast-jet/releases{/id}","deployments_url":"https://api.github.com/repos/cangencer/hazelcast-jet/deployments","created_at":"2017-02-08T06:33:53Z","updated_at":"2017-02-08T06:33:57Z","pushed_at":"2018-02-28T07:49:14Z","git_url":"git://github.com/cangencer/hazelcast-jet.git","ssh_url":"git@github.com:cangencer/hazelcast-jet.git","clone_url":"https://github.com/cangencer/hazelcast-jet.git","svn_url":"https://github.com/cangencer/hazelcast-jet","homepage":"http://jet.hazelcast.org","size":13345,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hazelcast:master","ref":"master","sha":"14ebf56930c1bef056ace1a72e0ec6267ba14b89","user":{"login":"hazelcast","id":1453152,"avatar_url":"https://avatars2.githubusercontent.com/u/1453152?v=4","gravatar_id":"","url":"https://api.github.com/users/hazelcast","html_url":"https://github.com/hazelcast","followers_url":"https://api.github.com/users/hazelcast/followers","following_url":"https://api.github.com/users/hazelcast/following{/other_user}","gists_url":"https://api.github.com/users/hazelcast/gists{/gist_id}","starred_url":"https://api.github.com/users/hazelcast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hazelcast/subscriptions","organizations_url":"https://api.github.com/users/hazelcast/orgs","repos_url":"https://api.github.com/users/hazelcast/repos","events_url":"https://api.github.com/users/hazelcast/events{/privacy}","received_events_url":"https://api.github.com/users/hazelcast/received_events","type":"Organization","site_admin":false},"repo":{"id":48046454,"name":"hazelcast-jet","full_name":"hazelcast/hazelcast-jet","owner":{"login":"hazelcast","id":1453152,"avatar_url":"https://avatars2.githubusercontent.com/u/1453152?v=4","gravatar_id":"","url":"https://api.github.com/users/hazelcast","html_url":"https://github.com/hazelcast","followers_url":"https://api.github.com/users/hazelcast/followers","following_url":"https://api.github.com/users/hazelcast/following{/other_user}","gists_url":"https://api.github.com/users/hazelcast/gists{/gist_id}","starred_url":"https://api.github.com/users/hazelcast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hazelcast/subscriptions","organizations_url":"https://api.github.com/users/hazelcast/orgs","repos_url":"https://api.github.com/users/hazelcast/repos","events_url":"https://api.github.com/users/hazelcast/events{/privacy}","received_events_url":"https://api.github.com/users/hazelcast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hazelcast/hazelcast-jet","description":"A general purpose distributed data processing engine, built on top of Hazelcast.","fork":false,"url":"https://api.github.com/repos/hazelcast/hazelcast-jet","forks_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/forks","keys_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/teams","hooks_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/hooks","issue_events_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/issues/events{/number}","events_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/events","assignees_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/assignees{/user}","branches_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/branches{/branch}","tags_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/tags","blobs_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/git/refs{/sha}","trees_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/statuses/{sha}","languages_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/languages","stargazers_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/stargazers","contributors_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/contributors","subscribers_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/subscribers","subscription_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/subscription","commits_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/commits{/sha}","git_commits_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/git/commits{/sha}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/comments{/number}","issue_comment_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/issues/comments{/number}","contents_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/contents/{+path}","compare_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/merges","archive_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/downloads","issues_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/issues{/number}","pulls_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/pulls{/number}","milestones_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/milestones{/number}","notifications_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/labels{/name}","releases_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/releases{/id}","deployments_url":"https://api.github.com/repos/hazelcast/hazelcast-jet/deployments","created_at":"2015-12-15T14:01:14Z","updated_at":"2018-02-26T14:10:49Z","pushed_at":"2018-02-28T08:06:42Z","git_url":"git://github.com/hazelcast/hazelcast-jet.git","ssh_url":"git@github.com:hazelcast/hazelcast-jet.git","clone_url":"https://github.com/hazelcast/hazelcast-jet.git","svn_url":"https://github.com/hazelcast/hazelcast-jet","homepage":"http://jet.hazelcast.org","size":7807,"stargazers_count":191,"watchers_count":191,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":62,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":62,"open_issues":22,"watchers":191,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hazelcast/hazelcast-jet/pulls/754"},"html":{"href":"https://github.com/hazelcast/hazelcast-jet/pull/754"},"issue":{"href":"https://api.github.com/repos/hazelcast/hazelcast-jet/issues/754"},"comments":{"href":"https://api.github.com/repos/hazelcast/hazelcast-jet/issues/754/comments"},"review_comments":{"href":"https://api.github.com/repos/hazelcast/hazelcast-jet/pulls/754/comments"},"review_comment":{"href":"https://api.github.com/repos/hazelcast/hazelcast-jet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hazelcast/hazelcast-jet/pulls/754/commits"},"statuses":{"href":"https://api.github.com/repos/hazelcast/hazelcast-jet/statuses/4df3b95688f16e9923a06a88e7842c6b59d08989"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"viliam-durina"}}